Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / random128 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for random128 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
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 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
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.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
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.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
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'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$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 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
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
253 done
254 IFS=$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
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
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
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
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+"$@"}
369 fi
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; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
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.
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" || {
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
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.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
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
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `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';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (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
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
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
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_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.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
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
615 if 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
627
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.
638
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
650 IFS="$lt_save_ifs"
651
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+"$@"}
667 else
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=:
692
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
700
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
710 fi
711 fi
712 fi
713 fi
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.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='random128'
747 PACKAGE_TARNAME='random128'
748 PACKAGE_VERSION='0.10'
749 PACKAGE_STRING='random128 0.10'
750 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752 ac_unique_file="random128.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 OTOOL64
794 OTOOL
795 LIPO
796 NMEDIT
797 DSYMUTIL
798 lt_ECHO
799 RANLIB
800 AR
801 OBJDUMP
802 NM
803 ac_ct_DUMPBIN
804 DUMPBIN
805 LD
806 FGREP
807 SED
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 LIBTOOL
817 W
818 PS
819 LN_S
820 EGREP
821 GREP
822 CPP
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 target_alias
863 host_alias
864 build_alias
865 LIBS
866 ECHO_T
867 ECHO_N
868 ECHO_C
869 DEFS
870 mandir
871 localedir
872 libdir
873 psdir
874 pdfdir
875 dvidir
876 htmldir
877 infodir
878 docdir
879 oldincludedir
880 includedir
881 localstatedir
882 sharedstatedir
883 sysconfdir
884 datadir
885 datarootdir
886 libexecdir
887 sbindir
888 bindir
889 program_transform_name
890 prefix
891 exec_prefix
892 PACKAGE_BUGREPORT
893 PACKAGE_STRING
894 PACKAGE_VERSION
895 PACKAGE_TARNAME
896 PACKAGE_NAME
897 PATH_SEPARATOR
898 SHELL'
899 ac_subst_files=''
900 ac_user_opts='
901 enable_option_checking
902 enable_dependency_tracking
903 enable_shared
904 enable_static
905 with_pic
906 enable_fast_install
907 with_gnu_ld
908 enable_libtool_lock
909 with_random
910 '
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_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.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
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
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
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
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1029 { (exit 1); exit 1; }; }
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 ;;
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 ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1056 { (exit 1); exit 1; }; }
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 ;;
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
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
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
1123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1127
1128 -localstatedir | --localstatedir | --localstatedi | --localstated \
1129 | --localstate | --localstat | --localsta | --localst | --locals)
1130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
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
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
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-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1261 { (exit 1); exit 1; }; }
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 ;;
1272
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1278 { (exit 1); exit 1; }; }
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 ;;
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
1308 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$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 &&
1317 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1321
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328 ;;
1329
1330 esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1337 fi
1338
1339 if 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
1346 fi
1347
1348 # Check all directory arguments for consistency.
1349 for 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
1353 do
1354 eval ac_val=\$$ac_var
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.
1362 case $ac_val in
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 esac
1366 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1368 done
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.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
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
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
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" |
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'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1434 fi
1435 else
1436 ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1447 pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1451 fi
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.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for 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}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if 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
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
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
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
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]
1525 _ACEOF
1526
1527 cat <<\_ACEOF
1528
1529 Program 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
1534 System 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
1538 fi
1539
1540 if 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
1546 Optional Features:
1547 --disable-option-checking ignore unrecognized --enable/--with options
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
1552 --enable-shared[=PKGS] build shared libraries [default=yes]
1553 --enable-static[=PKGS] build static libraries [default=yes]
1554 --enable-fast-install[=PKGS]
1555 optimize for fast installation [default=yes]
1556 --disable-libtool-lock avoid locking (might break parallel builds)
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-random=/dev/urandom - location of the system random file generator
1565 --without-random - there is no system random file generator
1566
1567 Some 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>
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>
1575 CPP C preprocessor
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to <courier-users@lists.sourceforge.net>.
1581 _ACEOF
1582 ac_status=$?
1583 fi
1584
1585 if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
1591 ac_builddir=.
1592
1593 case "$ac_dir" in
1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *)
1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
1603 esac
1604 ac_abs_top_builddir=$ac_pwd
1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606 # for backward compatibility:
1607 ac_top_builddir=$ac_top_build_prefix
1608
1609 case $srcdir in
1610 .) # We are building in place.
1611 ac_srcdir=.
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
1615 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1622 esac
1623 ac_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
1633 else
1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
1637 done
1638 fi
1639
1640 test -n "$ac_init_help" && exit $ac_status
1641 if $ac_init_version; then
1642 cat <<\_ACEOF
1643 random128 configure 0.10
1644 generated by GNU Autoconf 2.63
1645
1646 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1647 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651 exit
1652 fi
1653 cat >config.log <<_ACEOF
1654 This file contains any messages produced by compilers while
1655 running configure, to aid debugging if configure makes a mistake.
1656
1657 It was created by random128 $as_me 0.10, which was
1658 generated by GNU Autoconf 2.63. Invocation command line was
1659
1660 $ $0 $@
1661
1662 _ACEOF
1663 exec 5>>config.log
1664 {
1665 cat <<_ASUNAME
1666 ## --------- ##
1667 ## Platform. ##
1668 ## --------- ##
1669
1670 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674 uname -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`
1682 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
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
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 $as_echo "PATH: $as_dir"
1695 done
1696 IFS=$as_save_IFS
1697
1698 } >&5
1699
1700 cat >&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.
1715 ac_configure_args=
1716 ac_configure_args0=
1717 ac_configure_args1=
1718 ac_must_keep_next=false
1719 for ac_pass in 1 2
1720 do
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 ;;
1728 *\'*)
1729 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1750 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 ;;
1752 esac
1753 done
1754 done
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.
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.
1763 trap '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,
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 #(
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;} ;;
1783 esac
1784 case $ac_var in #(
1785 _ | IFS | as_nl) ;; #(
1786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1787 *) $as_unset $ac_var ;;
1788 esac ;;
1789 esac
1790 done
1791 (set) 2>&1 |
1792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1793 *${as_nl}ac_space=\ *)
1794 sed -n \
1795 "s/'\''/'\''\\\\'\'''\''/g;
1796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1797 ;; #(
1798 *)
1799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800 ;;
1801 esac |
1802 sort
1803 )
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
1814 eval ac_val=\$$ac_var
1815 case $ac_val in
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 esac
1818 $as_echo "$ac_var='\''$ac_val'\''"
1819 done | sort
1820 echo
1821
1822 if test -n "$ac_subst_files"; then
1823 cat <<\_ASBOX
1824 ## ------------------- ##
1825 ## File substitutions. ##
1826 ## ------------------- ##
1827 _ASBOX
1828 echo
1829 for ac_var in $ac_subst_files
1830 do
1831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 $as_echo "$ac_var='\''$ac_val'\''"
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
1847 cat confdefs.h
1848 echo
1849 fi
1850 test "$ac_signal" != 0 &&
1851 $as_echo "$as_me: caught signal $ac_signal"
1852 $as_echo "$as_me: exit $exit_status"
1853 } >&5
1854 rm -f core *.core core.conftest.* &&
1855 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856 exit $exit_status
1857 ' 0
1858 for ac_signal in 1 2 13 15; do
1859 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860 done
1861 ac_signal=0
1862
1863 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1864 rm -f -r conftest* confdefs.h
1865
1866 # Predefined preprocessor variables.
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_NAME "$PACKAGE_NAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 _ACEOF
1886
1887
1888 cat >>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.
1894 # Prefer an explicitly selected file to automatically selected ones.
1895 ac_site_file1=NONE
1896 ac_site_file2=NONE
1897 if test -n "$CONFIG_SITE"; then
1898 ac_site_file1=$CONFIG_SITE
1899 elif test "x$prefix" != xNONE; then
1900 ac_site_file1=$prefix/share/config.site
1901 ac_site_file2=$prefix/etc/config.site
1902 else
1903 ac_site_file1=$ac_default_prefix/share/config.site
1904 ac_site_file2=$ac_default_prefix/etc/config.site
1905 fi
1906 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1907 do
1908 test "x$ac_site_file" = xNONE && continue
1909 if test -r "$ac_site_file"; then
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;}
1912 sed 's/^/| /' "$ac_site_file" >&5
1913 . "$ac_site_file"
1914 fi
1915 done
1916
1917 if 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
1921 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1922 $as_echo "$as_me: loading cache $cache_file" >&6;}
1923 case $cache_file in
1924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1925 *) . "./$cache_file";;
1926 esac
1927 fi
1928 else
1929 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1930 $as_echo "$as_me: creating cache $cache_file" >&6;}
1931 >$cache_file
1932 fi
1933
1934 # Check that the precious variables saved in the cache have kept the same
1935 # value.
1936 ac_cache_corrupted=false
1937 for ac_var in $ac_precious_vars; do
1938 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1939 eval ac_new_set=\$ac_env_${ac_var}_set
1940 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1941 eval ac_new_val=\$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1943 set,)
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;}
1946 ac_cache_corrupted=: ;;
1947 ,set)
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;}
1950 ac_cache_corrupted=: ;;
1951 ,);;
1952 *)
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
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;}
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
1975 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1983 done
1984 if $ac_cache_corrupted; then
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;}
1991 { (exit 1); exit 1; }; }
1992 fi
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
2024
2025
2026 >confdefs.h # Kill PACKAGE_ macros
2027
2028
2029 am__api_version='1.11'
2030
2031 ac_aux_dir=
2032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2033 if test -f "$ac_dir/install-sh"; then
2034 ac_aux_dir=$ac_dir
2035 ac_install_sh="$ac_aux_dir/install-sh -c"
2036 break
2037 elif test -f "$ac_dir/install.sh"; then
2038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/install.sh -c"
2040 break
2041 elif test -f "$ac_dir/shtool"; then
2042 ac_aux_dir=$ac_dir
2043 ac_install_sh="$ac_aux_dir/shtool install -c"
2044 break
2045 fi
2046 done
2047 if test -z "$ac_aux_dir"; then
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;}
2050 { (exit 1); exit 1; }; }
2051 fi
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.
2057 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2058 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2059 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2060
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.
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; }
2078 if test -z "$INSTALL"; then
2079 if test "${ac_cv_path_install+set}" = set; then
2080 $as_echo_n "(cached) " >&6
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 # Account for people who put trailing slashes in PATH elements.
2088 case $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
2099 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
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
2121 fi
2122 fi
2123 done
2124 done
2125 ;;
2126 esac
2127
2128 done
2129 IFS=$as_save_IFS
2130
2131 rm -rf conftest.one conftest.two conftest.dir
2132
2133 fi
2134 if test "${ac_cv_path_install+set}" = set; then
2135 INSTALL=$ac_cv_path_install
2136 else
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
2139 # break other packages using the cache if that directory is
2140 # removed, or if the value is a relative name.
2141 INSTALL=$ac_install_sh
2142 fi
2143 fi
2144 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2145 $as_echo "$INSTALL" >&6; }
2146
2147 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148 # It thinks the first close brace ends the variable substitution.
2149 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
2155 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2156 $as_echo_n "checking whether build environment is sane... " >&6; }
2157 # Just in case
2158 sleep 1
2159 echo timestamp > conftest.file
2160 # Reject unsafe characters in $srcdir or the absolute working directory
2161 # name. Accept space and tab only in the latter.
2162 am_lf='
2163 '
2164 case `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; }; };;
2169 esac
2170 case $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; }; };;
2175 esac
2176
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).
2182 if (
2183 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2184 if test "$*" = "X"; then
2185 # -L didn't work.
2186 set X `ls -t "$srcdir/configure" conftest.file`
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".
2196 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2197 alias in your environment" >&5
2198 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2199 alias in your environment" >&2;}
2200 { (exit 1); exit 1; }; }
2201 fi
2202
2203 test "$2" = conftest.file
2204 )
2205 then
2206 # Ok.
2207 :
2208 else
2209 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2210 Check your system clock" >&5
2211 $as_echo "$as_me: error: newly created file is older than distributed files!
2212 Check your system clock" >&2;}
2213 { (exit 1); exit 1; }; }
2214 fi
2215 { $as_echo "$as_me:$LINENO: result: yes" >&5
2216 $as_echo "yes" >&6; }
2217 test "$program_prefix" != NONE &&
2218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2219 # Use a double $ so make ignores it.
2220 test "$program_suffix" != NONE &&
2221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2222 # Double any \ or $.
2223 # By default was `s,x,x', remove it if useless.
2224 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2225 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2226
2227 # expand $ac_aux_dir to an absolute path
2228 am_aux_dir=`cd $ac_aux_dir && pwd`
2229
2230 if 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
2237 fi
2238 # Use eval to expand $SHELL
2239 if eval "$MISSING --run true"; then
2240 am_missing_run="$MISSING --run "
2241 else
2242 am_missing_run=
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;}
2245 fi
2246
2247 if 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
2254 fi
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.
2260 if 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.
2263 set 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; }
2266 if test "${ac_cv_prog_STRIP+set}" = set; then
2267 $as_echo_n "(cached) " >&6
2268 else
2269 if test -n "$STRIP"; then
2270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
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
2283 done
2284 done
2285 IFS=$as_save_IFS
2286
2287 fi
2288 fi
2289 STRIP=$ac_cv_prog_STRIP
2290 if test -n "$STRIP"; then
2291 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2292 $as_echo "$STRIP" >&6; }
2293 else
2294 { $as_echo "$as_me:$LINENO: result: no" >&5
2295 $as_echo "no" >&6; }
2296 fi
2297
2298
2299 fi
2300 if 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.
2303 set 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; }
2306 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2308 else
2309 if test -n "$ac_ct_STRIP"; then
2310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
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
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327 fi
2328 fi
2329 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2330 if test -n "$ac_ct_STRIP"; then
2331 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2332 $as_echo "$ac_ct_STRIP" >&6; }
2333 else
2334 { $as_echo "$as_me:$LINENO: result: no" >&5
2335 $as_echo "no" >&6; }
2336 fi
2337
2338 if test "x$ac_ct_STRIP" = x; then
2339 STRIP=":"
2340 else
2341 case $cross_compiling:$ac_tool_warned in
2342 yes:)
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;}
2345 ac_tool_warned=yes ;;
2346 esac
2347 STRIP=$ac_ct_STRIP
2348 fi
2349 else
2350 STRIP="$ac_cv_prog_STRIP"
2351 fi
2352
2353 fi
2354 INSTALL_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; }
2358 if test -z "$MKDIR_P"; then
2359 if test "${ac_cv_path_mkdir+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2361 else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2364 do
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
2379 done
2380 IFS=$as_save_IFS
2381
2382 fi
2383
2384 if test "${ac_cv_path_mkdir+set}" = set; then
2385 MKDIR_P="$ac_cv_path_mkdir -p"
2386 else
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"
2393 fi
2394 fi
2395 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2396 $as_echo "$MKDIR_P" >&6; }
2397
2398 mkdir_p="$MKDIR_P"
2399 case $mkdir_p in
2400 [\\/$]* | ?:[\\/]*) ;;
2401 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2402 esac
2403
2404 for ac_prog in gawk mawk nawk awk
2405 do
2406 # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if test "${ac_cv_prog_AWK+set}" = set; then
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test -n "$AWK"; then
2414 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_AWK="$ac_prog"
2424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2426 fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 AWK=$ac_cv_prog_AWK
2434 if test -n "$AWK"; then
2435 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2436 $as_echo "$AWK" >&6; }
2437 else
2438 { $as_echo "$as_me:$LINENO: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2441
2442
2443 test -n "$AWK" && break
2444 done
2445
2446 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2447 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2448 set x ${MAKE-make}
2449 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2450 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2451 $as_echo_n "(cached) " >&6
2452 else
2453 cat >conftest.make <<\_ACEOF
2454 SHELL = /bin/sh
2455 all:
2456 @echo '@@@%%%=$(MAKE)=@@@%%%'
2457 _ACEOF
2458 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2459 case `${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;;
2464 esac
2465 rm -f conftest.make
2466 fi
2467 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2468 { $as_echo "$as_me:$LINENO: result: yes" >&5
2469 $as_echo "yes" >&6; }
2470 SET_MAKE=
2471 else
2472 { $as_echo "$as_me:$LINENO: result: no" >&5
2473 $as_echo "no" >&6; }
2474 SET_MAKE="MAKE=${MAKE-make}"
2475 fi
2476
2477 rm -rf .tst 2>/dev/null
2478 mkdir .tst 2>/dev/null
2479 if test -d .tst; then
2480 am__leading_dot=.
2481 else
2482 am__leading_dot=_
2483 fi
2484 rmdir .tst 2>/dev/null
2485
2486 if 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
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;}
2494 { (exit 1); exit 1; }; }
2495 fi
2496 fi
2497
2498 # test whether we have cygpath
2499 if 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
2505 fi
2506
2507
2508 # Define the identity of the package.
2509 PACKAGE='random128'
2510 VERSION='0.10'
2511
2512
2513 # Some tools Automake needs.
2514
2515 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2516
2517
2518 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2519
2520
2521 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2522
2523
2524 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2525
2526
2527 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2528
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
2533 AMTAR=${AMTAR-"${am_missing_run}tar"}
2534
2535 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2536
2537
2538
2539
2540
2541 LPATH="$PATH:/usr/local/bin"
2542
2543
2544 ac_config_headers="$ac_config_headers config.h"
2545
2546 DEPDIR="${am__leading_dot}deps"
2547
2548 ac_config_commands="$ac_config_commands depfiles"
2549
2550
2551 am_make=${MAKE-make}
2552 cat > confinc << 'END'
2553 am__doit:
2554 @echo this is the am__doit target
2555 .PHONY: am__doit
2556 END
2557 # If we don't find an include directive, just comment out the code.
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; }
2560 am__include="#"
2561 am__quote=
2562 _am_result=none
2563 # First try GNU make style include.
2564 echo "include confinc" > confmf
2565 # Ignore all kinds of additional output from `make'.
2566 case `$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 ;;
2572 esac
2573 # Now try BSD make style include.
2574 if test "$am__include" = "#"; then
2575 echo '.include "confinc"' > confmf
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
2583 fi
2584
2585
2586 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2587 $as_echo "$_am_result" >&6; }
2588 rm -f confinc confmf
2589
2590 # Check whether --enable-dependency-tracking was given.
2591 if test "${enable_dependency_tracking+set}" = set; then
2592 enableval=$enable_dependency_tracking;
2593 fi
2594
2595 if test "x$enable_dependency_tracking" != xno; then
2596 am_depcomp="$ac_aux_dir/depcomp"
2597 AMDEPBACKSLASH='\'
2598 fi
2599 if test "x$enable_dependency_tracking" != xno; then
2600 AMDEP_TRUE=
2601 AMDEP_FALSE='#'
2602 else
2603 AMDEP_TRUE='#'
2604 AMDEP_FALSE=
2605 fi
2606
2607
2608 ac_ext=c
2609 ac_cpp='$CPP $CPPFLAGS'
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 if 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.
2615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_CC+set}" = set; then
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2645 else
2646 { $as_echo "$as_me:$LINENO: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651 fi
2652 if 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.
2655 set dummy gcc; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_CC="gcc"
2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 $as_echo "$ac_ct_CC" >&6; }
2685 else
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694 yes:)
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;}
2697 ac_tool_warned=yes ;;
2698 esac
2699 CC=$ac_ct_CC
2700 fi
2701 else
2702 CC="$ac_cv_prog_CC"
2703 fi
2704
2705 if test -z "$CC"; then
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.
2708 set dummy ${ac_tool_prefix}cc; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="${ac_tool_prefix}cc"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743
2744 fi
2745 fi
2746 if test -z "$CC"; then
2747 # Extract the first word of "cc", so it can be a program name with args.
2748 set dummy cc; ac_word=$2
2749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 else
2757 ac_prog_rejected=no
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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"
2770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775 IFS=$as_save_IFS
2776
2777 if 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
2788 fi
2789 fi
2790 fi
2791 CC=$ac_cv_prog_CC
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2795 else
2796 { $as_echo "$as_me:$LINENO: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800
2801 fi
2802 if test -z "$CC"; then
2803 if test -n "$ac_tool_prefix"; then
2804 for ac_prog in cl.exe
2805 do
2806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2808 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838 { $as_echo "$as_me:$LINENO: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843 test -n "$CC" && break
2844 done
2845 fi
2846 if test -z "$CC"; then
2847 ac_ct_CC=$CC
2848 for ac_prog in cl.exe
2849 do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 $as_echo_n "checking for $ac_word... " >&6; }
2854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2855 $as_echo_n "(cached) " >&6
2856 else
2857 if test -n "$ac_ct_CC"; then
2858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859 else
2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $PATH
2862 do
2863 IFS=$as_save_IFS
2864 test -z "$as_dir" && as_dir=.
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867 ac_cv_prog_ac_ct_CC="$ac_prog"
2868 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 fi
2876 fi
2877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878 if test -n "$ac_ct_CC"; then
2879 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2880 $as_echo "$ac_ct_CC" >&6; }
2881 else
2882 { $as_echo "$as_me:$LINENO: result: no" >&5
2883 $as_echo "no" >&6; }
2884 fi
2885
2886
2887 test -n "$ac_ct_CC" && break
2888 done
2889
2890 if test "x$ac_ct_CC" = x; then
2891 CC=""
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894 yes:)
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;}
2897 ac_tool_warned=yes ;;
2898 esac
2899 CC=$ac_ct_CC
2900 fi
2901 fi
2902
2903 fi
2904
2905
2906 test -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
2909 See \`config.log' for more details." >&5
2910 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details." >&2;}
2912 { (exit 1); exit 1; }; }; }
2913
2914 # Provide some information about the compiler.
2915 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2916 set X $ac_compile
2917 ac_compiler=$2
2918 { (ac_try="$ac_compiler --version >&5"
2919 case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922 esac
2923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924 $as_echo "$ac_try_echo") >&5
2925 (eval "$ac_compiler --version >&5") 2>&5
2926 ac_status=$?
2927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (ac_try="$ac_compiler -v >&5"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2935 $as_echo "$ac_try_echo") >&5
2936 (eval "$ac_compiler -v >&5") 2>&5
2937 ac_status=$?
2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940 { (ac_try="$ac_compiler -V >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2946 $as_echo "$ac_try_echo") >&5
2947 (eval "$ac_compiler -V >&5") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2951
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2958
2959 int
2960 main ()
2961 {
2962
2963 ;
2964 return 0;
2965 }
2966 _ACEOF
2967 ac_clean_files_save=$ac_clean_files
2968 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
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.
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; }
2974 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2975
2976 # The possible output files:
2977 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2978
2979 ac_rmfiles=
2980 for ac_file in $ac_files
2981 do
2982 case $ac_file in
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2985 esac
2986 done
2987 rm -f $ac_rmfiles
2988
2989 if { (ac_try="$ac_link_default"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995 $as_echo "$ac_try_echo") >&5
2996 (eval "$ac_link_default") 2>&5
2997 ac_status=$?
2998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; then
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.
3005 for ac_file in $ac_files ''
3006 do
3007 test -f "$ac_file" || continue
3008 case $ac_file in
3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3010 ;;
3011 [ab].out )
3012 # We found the default executable, but exeext='' is most
3013 # certainly right.
3014 break;;
3015 *.* )
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.
3025 break;;
3026 * )
3027 break;;
3028 esac
3029 done
3030 test "$ac_cv_exeext" = no && ac_cv_exeext=
3031
3032 else
3033 ac_file=''
3034 fi
3035
3036 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3037 $as_echo "$ac_file" >&6; }
3038 if test -z "$ac_file"; then
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
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
3045 See \`config.log' for more details." >&5
3046 $as_echo "$as_me: error: C compiler cannot create executables
3047 See \`config.log' for more details." >&2;}
3048 { (exit 77); exit 77; }; }; }
3049 fi
3050
3051 ac_exeext=$ac_cv_exeext
3052
3053 # Check that the compiler produces executables we can run. If not, either
3054 # the compiler is broken, or we cross compile.
3055 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3056 $as_echo_n "checking whether the C compiler works... " >&6; }
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.
3059 if test "$cross_compiling" != yes; then
3060 if { ac_try='./$ac_file'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3066 $as_echo "$ac_try_echo") >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 cross_compiling=no
3072 else
3073 if test "$cross_compiling" = maybe; then
3074 cross_compiling=yes
3075 else
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.
3079 If you meant to cross compile, use \`--host'.
3080 See \`config.log' for more details." >&5
3081 $as_echo "$as_me: error: cannot run C compiled programs.
3082 If you meant to cross compile, use \`--host'.
3083 See \`config.log' for more details." >&2;}
3084 { (exit 1); exit 1; }; }; }
3085 fi
3086 fi
3087 fi
3088 { $as_echo "$as_me:$LINENO: result: yes" >&5
3089 $as_echo "yes" >&6; }
3090
3091 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3092 ac_clean_files=$ac_clean_files_save
3093 # Check that the compiler produces executables we can run. If not, either
3094 # the compiler is broken, or we cross compile.
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; }
3099
3100 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3101 $as_echo_n "checking for suffix of executables... " >&6; }
3102 if { (ac_try="$ac_link"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108 $as_echo "$ac_try_echo") >&5
3109 (eval "$ac_link") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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'.
3117 for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 break;;
3123 * ) break;;
3124 esac
3125 done
3126 else
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
3130 See \`config.log' for more details." >&5
3131 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3132 See \`config.log' for more details." >&2;}
3133 { (exit 1); exit 1; }; }; }
3134 fi
3135
3136 rm -f conftest$ac_cv_exeext
3137 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3138 $as_echo "$ac_cv_exeext" >&6; }
3139
3140 rm -f conftest.$ac_ext
3141 EXEEXT=$ac_cv_exeext
3142 ac_exeext=$EXEEXT
3143 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3144 $as_echo_n "checking for suffix of object files... " >&6; }
3145 if test "${ac_cv_objext+set}" = set; then
3146 $as_echo_n "(cached) " >&6
3147 else
3148 cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h. */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154
3155 int
3156 main ()
3157 {
3158
3159 ;
3160 return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.o conftest.obj
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compile") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; then
3175 for ac_file in conftest.o conftest.obj conftest.*; do
3176 test -f "$ac_file" || continue;
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 break;;
3181 esac
3182 done
3183 else
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
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
3190 See \`config.log' for more details." >&5
3191 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }; }
3194 fi
3195
3196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197 fi
3198 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3199 $as_echo "$ac_cv_objext" >&6; }
3200 OBJEXT=$ac_cv_objext
3201 ac_objext=$OBJEXT
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; }
3204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3205 $as_echo_n "(cached) " >&6
3206 else
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213
3214 int
3215 main ()
3216 {
3217 #ifndef __GNUC__
3218 choke me
3219 #endif
3220
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_compiler_gnu=yes
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 ac_compiler_gnu=no
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3253
3254 fi
3255 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3256 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3257 if test $ac_compiler_gnu = yes; then
3258 GCC=yes
3259 else
3260 GCC=
3261 fi
3262 ac_test_CFLAGS=${CFLAGS+set}
3263 ac_save_CFLAGS=$CFLAGS
3264 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3265 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3266 if test "${ac_cv_prog_cc_g+set}" = set; then
3267 $as_echo_n "(cached) " >&6
3268 else
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
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295 $as_echo "$ac_try_echo") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3307 else
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 CFLAGS=""
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3318
3319 int
3320 main ()
3321 {
3322
3323 ;
3324 return 0;
3325 }
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3345 :
3346 else
3347 $as_echo "$as_me: failed program was:" >&5
3348 sed '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
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358
3359 int
3360 main ()
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.$ac_objext
3368 if { (ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && {
3382 test -z "$ac_c_werror_flag" ||
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
3385 ac_cv_prog_cc_g=yes
3386 else
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390
3391 fi
3392
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 fi
3395
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 ac_c_werror_flag=$ac_save_c_werror_flag
3401 fi
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3403 $as_echo "$ac_cv_prog_cc_g" >&6; }
3404 if test "$ac_test_CFLAGS" = set; then
3405 CFLAGS=$ac_save_CFLAGS
3406 elif 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
3412 else
3413 if test "$GCC" = yes; then
3414 CFLAGS="-O2"
3415 else
3416 CFLAGS=
3417 fi
3418 fi
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; }
3421 if test "${ac_cv_prog_cc_c89+set}" = set; then
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_cv_prog_cc_c89=no
3425 ac_save_CC=$CC
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>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. */
3437 struct buf { int x; };
3438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439 static char *e (p, i)
3440 char **p;
3441 int i;
3442 {
3443 return p[i];
3444 }
3445 static 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
3458 as 'x'. The following induces an error, until -std is added to get
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
3461 that's true only with -std. */
3462 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463
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'
3467 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468
3469 int test (int i, double x);
3470 struct s1 {int (*f) (int a);};
3471 struct s2 {int (*f) (double a);};
3472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473 int argc;
3474 char **argv;
3475 int
3476 main ()
3477 {
3478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3485 do
3486 CC="$ac_save_CC $ac_arg"
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494 $as_echo "$ac_try_echo") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3496 ac_status=$?
3497 grep -v '^ *+' conftest.er1 >conftest.err
3498 rm -f conftest.er1
3499 cat conftest.err >&5
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3506 else
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510
3511 fi
3512
3513 rm -f core conftest.err conftest.$ac_objext
3514 test "x$ac_cv_prog_cc_c89" != "xno" && break
3515 done
3516 rm -f conftest.$ac_ext
3517 CC=$ac_save_CC
3518
3519 fi
3520 # AC_CACHE_VAL
3521 case "x$ac_cv_prog_cc_c89" in
3522 x)
3523 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3524 $as_echo "none needed" >&6; } ;;
3525 xno)
3526 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3527 $as_echo "unsupported" >&6; } ;;
3528 *)
3529 CC="$CC $ac_cv_prog_cc_c89"
3530 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3532 esac
3533
3534
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540
3541 depcc="$CC" am_compiler_list=
3542
3543 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3544 $as_echo_n "checking dependency style of $depcc... " >&6; }
3545 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3546 $as_echo_n "(cached) " >&6
3547 else
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
3571 am__universal=false
3572 case " $depcc " in #(
3573 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3574 esac
3575
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
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"
3599 case $depmode in
3600 gcc)
3601 # This depmode causes a compiler race in universal mode.
3602 test "$am__universal" = false || continue
3603 ;;
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 ;;
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 ;;
3620 none) break ;;
3621 esac
3622 if depmode=$depmode \
3623 source=sub/conftest.c object=$am__obj \
3624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3626 >/dev/null 2>conftest.err &&
3627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
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
3648 else
3649 am_cv_CC_dependencies_compiler_type=none
3650 fi
3651
3652 fi
3653 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3654 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3656
3657 if
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='#'
3662 else
3663 am__fastdepCC_TRUE='#'
3664 am__fastdepCC_FALSE=
3665 fi
3666
3667
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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; }
3676 # On Suns, sometimes $CPP names a directory.
3677 if test -n "$CPP" && test -d "$CPP"; then
3678 CPP=
3679 fi
3680 if test -z "$CPP"; then
3681 if test "${ac_cv_prog_CPP+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3683 else
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
3688 for ac_c_preproc_warn_flag in '' yes
3689 do
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
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>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
3709 if { (ac_try="$ac_cpp conftest.$ac_ext"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3726 :
3727 else
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 # Broken: fails on valid input.
3732 continue
3733 fi
3734
3735 rm -f conftest.err conftest.$ac_ext
3736
3737 # OK, works on sane cases. Now check whether nonexistent headers
3738 # can be detected and how.
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h. */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3745 #include <ac_nonexistent.h>
3746 _ACEOF
3747 if { (ac_try="$ac_cpp conftest.$ac_ext"
3748 case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751 esac
3752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3753 $as_echo "$ac_try_echo") >&5
3754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3764 # Broken: success on invalid input.
3765 continue
3766 else
3767 $as_echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 # Passes both tests.
3771 ac_preproc_ok=:
3772 break
3773 fi
3774
3775 rm -f conftest.err conftest.$ac_ext
3776
3777 done
3778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779 rm -f conftest.err conftest.$ac_ext
3780 if $ac_preproc_ok; then
3781 break
3782 fi
3783
3784 done
3785 ac_cv_prog_CPP=$CPP
3786
3787 fi
3788 CPP=$ac_cv_prog_CPP
3789 else
3790 ac_cv_prog_CPP=$CPP
3791 fi
3792 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3793 $as_echo "$CPP" >&6; }
3794 ac_preproc_ok=false
3795 for ac_c_preproc_warn_flag in '' yes
3796 do
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
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>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
3816 if { (ac_try="$ac_cpp conftest.$ac_ext"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3822 $as_echo "$ac_try_echo") >&5
3823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3833 :
3834 else
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3837
3838 # Broken: fails on valid input.
3839 continue
3840 fi
3841
3842 rm -f conftest.err conftest.$ac_ext
3843
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <ac_nonexistent.h>
3853 _ACEOF
3854 if { (ac_try="$ac_cpp conftest.$ac_ext"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3860 $as_echo "$ac_try_echo") >&5
3861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3871 # Broken: success on invalid input.
3872 continue
3873 else
3874 $as_echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 # Passes both tests.
3878 ac_preproc_ok=:
3879 break
3880 fi
3881
3882 rm -f conftest.err conftest.$ac_ext
3883
3884 done
3885 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3886 rm -f conftest.err conftest.$ac_ext
3887 if $ac_preproc_ok; then
3888 :
3889 else
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
3893 See \`config.log' for more details." >&5
3894 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3895 See \`config.log' for more details." >&2;}
3896 { (exit 1); exit 1; }; }; }
3897 fi
3898
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
3905
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; }
3908 if test "${ac_cv_path_GREP+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -z "$GREP"; then
3912 ac_path_GREP_found=false
3913 # Loop through the user's path and test for each of PROGNAME-LIST
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3916 do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in grep ggrep; do
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.
3924 # Check for GNU $ac_path_GREP
3925 case `"$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
3930 $as_echo_n 0123456789 >"conftest.in"
3931 while :
3932 do
3933 cat "conftest.in" "conftest.in" >"conftest.tmp"
3934 mv "conftest.tmp" "conftest.in"
3935 cp "conftest.in" "conftest.nl"
3936 $as_echo 'GREP' >> "conftest.nl"
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;;
3949 esac
3950
3951 $ac_path_GREP_found && break 3
3952 done
3953 done
3954 done
3955 IFS=$as_save_IFS
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;}
3959 { (exit 1); exit 1; }; }
3960 fi
3961 else
3962 ac_cv_path_GREP=$GREP
3963 fi
3964
3965 fi
3966 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3967 $as_echo "$ac_cv_path_GREP" >&6; }
3968 GREP="$ac_cv_path_GREP"
3969
3970
3971 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3972 $as_echo_n "checking for egrep... " >&6; }
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977 then ac_cv_path_EGREP="$GREP -E"
3978 else
3979 if test -z "$EGREP"; then
3980 ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
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.
3992 # Check for GNU $ac_path_EGREP
3993 case `"$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
3998 $as_echo_n 0123456789 >"conftest.in"
3999 while :
4000 do
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 $as_echo 'EGREP' >> "conftest.nl"
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
4012 fi
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;;
4017 esac
4018
4019 $ac_path_EGREP_found && break 3
4020 done
4021 done
4022 done
4023 IFS=$as_save_IFS
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;}
4027 { (exit 1); exit 1; }; }
4028 fi
4029 else
4030 ac_cv_path_EGREP=$EGREP
4031 fi
4032
4033 fi
4034 fi
4035 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4036 $as_echo "$ac_cv_path_EGREP" >&6; }
4037 EGREP="$ac_cv_path_EGREP"
4038
4039
4040 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4041 $as_echo_n "checking for ANSI C header files... " >&6; }
4042 if test "${ac_cv_header_stdc+set}" = set; then
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>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
4056 int
4057 main ()
4058 {
4059
4060 ;
4061 return 0;
4062 }
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } && {
4079 test -z "$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4081 } && test -s conftest.$ac_objext; then
4082 ac_cv_header_stdc=yes
4083 else
4084 $as_echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 ac_cv_header_stdc=no
4088 fi
4089
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091
4092 if 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
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <string.h>
4101
4102 _ACEOF
4103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4104 $EGREP "memchr" >/dev/null 2>&1; then
4105 :
4106 else
4107 ac_cv_header_stdc=no
4108 fi
4109 rm -f conftest*
4110
4111 fi
4112
4113 if 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
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #include <stdlib.h>
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "free" >/dev/null 2>&1; then
4126 :
4127 else
4128 ac_cv_header_stdc=no
4129 fi
4130 rm -f conftest*
4131
4132 fi
4133
4134 if 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 :
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <ctype.h>
4146 #include <stdlib.h>
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)))
4159 int
4160 main ()
4161 {
4162 int i;
4163 for (i = 0; i < 256; i++)
4164 if (XOR (islower (i), ISLOWER (i))
4165 || toupper (i) != TOUPPER (i))
4166 return 2;
4167 return 0;
4168 }
4169 _ACEOF
4170 rm -f conftest$ac_exeext
4171 if { (ac_try="$ac_link"
4172 case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178 (eval "$ac_link") 2>&5
4179 ac_status=$?
4180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4182 { (case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185 esac
4186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187 $as_echo "$ac_try_echo") >&5
4188 (eval "$ac_try") 2>&5
4189 ac_status=$?
4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 :
4193 else
4194 $as_echo "$as_me: program exited with status $ac_status" >&5
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 ( exit $ac_status )
4199 ac_cv_header_stdc=no
4200 fi
4201 rm -rf conftest.dSYM
4202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203 fi
4204
4205
4206 fi
4207 fi
4208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4209 $as_echo "$ac_cv_header_stdc" >&6; }
4210 if test $ac_cv_header_stdc = yes; then
4211
4212 cat >>confdefs.h <<\_ACEOF
4213 #define STDC_HEADERS 1
4214 _ACEOF
4215
4216 fi
4217
4218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4229 inttypes.h stdint.h unistd.h
4230 do
4231 as_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; }
4234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243 $ac_includes_default
4244
4245 #include <$ac_header>
4246 _ACEOF
4247 rm -f conftest.$ac_objext
4248 if { (ac_try="$ac_compile"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4254 $as_echo "$ac_try_echo") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest.$ac_objext; then
4265 eval "$as_ac_Header=yes"
4266 else
4267 $as_echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4269
4270 eval "$as_ac_Header=no"
4271 fi
4272
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 fi
4275 ac_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; }
4279 as_val=`eval 'as_val=${'$as_ac_Header'}
4280 $as_echo "$as_val"'`
4281 if test "x$as_val" = x""yes; then
4282 cat >>confdefs.h <<_ACEOF
4283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284 _ACEOF
4285
4286 fi
4287
4288 done
4289
4290
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; }
4295 if test "${ac_cv_header_minix_config_h+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4297 fi
4298 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4299 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4300 else
4301 # Is the header compilable?
4302 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4303 $as_echo_n "checking minix/config.h usability... " >&6; }
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 $ac_includes_default
4311 #include <minix/config.h>
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (ac_try="$ac_compile"
4315 case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4318 esac
4319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4320 $as_echo "$ac_try_echo") >&5
4321 (eval "$ac_compile") 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && {
4328 test -z "$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4330 } && test -s conftest.$ac_objext; then
4331 ac_header_compiler=yes
4332 else
4333 $as_echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 ac_header_compiler=no
4337 fi
4338
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4341 $as_echo "$ac_header_compiler" >&6; }
4342
4343 # Is the header present?
4344 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4345 $as_echo_n "checking minix/config.h presence... " >&6; }
4346 cat >conftest.$ac_ext <<_ACEOF
4347 /* confdefs.h. */
4348 _ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 #include <minix/config.h>
4353 _ACEOF
4354 if { (ac_try="$ac_cpp conftest.$ac_ext"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4360 $as_echo "$ac_try_echo") >&5
4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
4371 ac_header_preproc=yes
4372 else
4373 $as_echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4375
4376 ac_header_preproc=no
4377 fi
4378
4379 rm -f conftest.err conftest.$ac_ext
4380 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4381 $as_echo "$ac_header_preproc" >&6; }
4382
4383 # So? What about this header?
4384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4385 yes:no: )
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;}
4390 ac_header_preproc=yes
4391 ;;
4392 no:yes:* )
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;}
4405 ( cat <<\_ASBOX
4406 ## -------------------------------------------------- ##
4407 ## Report this to courier-users@lists.sourceforge.net ##
4408 ## -------------------------------------------------- ##
4409 _ASBOX
4410 ) | sed "s/^/$as_me: WARNING: /" >&2
4411 ;;
4412 esac
4413 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4414 $as_echo_n "checking for minix/config.h... " >&6; }
4415 if test "${ac_cv_header_minix_config_h+set}" = set; then
4416 $as_echo_n "(cached) " >&6
4417 else
4418 ac_cv_header_minix_config_h=$ac_header_preproc
4419 fi
4420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4421 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4422
4423 fi
4424 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4425 MINIX=yes
4426 else
4427 MINIX=
4428 fi
4429
4430
4431 if test "$MINIX" = yes; then
4432
4433 cat >>confdefs.h <<\_ACEOF
4434 #define _POSIX_SOURCE 1
4435 _ACEOF
4436
4437
4438 cat >>confdefs.h <<\_ACEOF
4439 #define _POSIX_1_SOURCE 2
4440 _ACEOF
4441
4442
4443 cat >>confdefs.h <<\_ACEOF
4444 #define _MINIX 1
4445 _ACEOF
4446
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; }
4453 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4454 $as_echo_n "(cached) " >&6
4455 else
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462
4463 # define __EXTENSIONS__ 1
4464 $ac_includes_default
4465 int
4466 main ()
4467 {
4468
4469 ;
4470 return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4475 case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval 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
4492 else
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ac_cv_safe_to_define___extensions__=no
4497 fi
4498
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
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
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.
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; }
4541 if test -z "$INSTALL"; then
4542 if test "${ac_cv_path_install+set}" = set; then
4543 $as_echo_n "(cached) " >&6
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 # Account for people who put trailing slashes in PATH elements.
4551 case $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
4562 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
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
4584 fi
4585 fi
4586 done
4587 done
4588 ;;
4589 esac
4590
4591 done
4592 IFS=$as_save_IFS
4593
4594 rm -rf conftest.one conftest.two conftest.dir
4595
4596 fi
4597 if test "${ac_cv_path_install+set}" = set; then
4598 INSTALL=$ac_cv_path_install
4599 else
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
4602 # break other packages using the cache if that directory is
4603 # removed, or if the value is a relative name.
4604 INSTALL=$ac_install_sh
4605 fi
4606 fi
4607 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4608 $as_echo "$INSTALL" >&6; }
4609
4610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4611 # It thinks the first close brace ends the variable substitution.
4612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4613
4614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4615
4616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4617
4618 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4619 $as_echo_n "checking whether ln -s works... " >&6; }
4620 LN_S=$as_ln_s
4621 if test "$LN_S" = "ln -s"; then
4622 { $as_echo "$as_me:$LINENO: result: yes" >&5
4623 $as_echo "yes" >&6; }
4624 else
4625 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4626 $as_echo "no, using $LN_S" >&6; }
4627 fi
4628
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 if 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.
4636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_CC+set}" = set; then
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 CC=$ac_cv_prog_CC
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4666 else
4667 { $as_echo "$as_me:$LINENO: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672 fi
4673 if 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.
4676 set dummy gcc; ac_word=$2
4677 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_CC"; then
4683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_ac_ct_CC="gcc"
4693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703 if test -n "$ac_ct_CC"; then
4704 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4705 $as_echo "$ac_ct_CC" >&6; }
4706 else
4707 { $as_echo "$as_me:$LINENO: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711 if test "x$ac_ct_CC" = x; then
4712 CC=""
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715 yes:)
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;}
4718 ac_tool_warned=yes ;;
4719 esac
4720 CC=$ac_ct_CC
4721 fi
4722 else
4723 CC="$ac_cv_prog_CC"
4724 fi
4725
4726 if test -z "$CC"; then
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.
4729 set dummy ${ac_tool_prefix}cc; ac_word=$2
4730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if test "${ac_cv_prog_CC+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if test -n "$CC"; then
4736 ac_cv_prog_CC="$CC" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_CC="${ac_tool_prefix}cc"
4746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 CC=$ac_cv_prog_CC
4756 if test -n "$CC"; then
4757 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4758 $as_echo "$CC" >&6; }
4759 else
4760 { $as_echo "$as_me:$LINENO: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 fi
4767 if test -z "$CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769 set dummy cc; ac_word=$2
4770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_CC+set}" = set; then
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$CC"; then
4776 ac_cv_prog_CC="$CC" # Let the user override the test.
4777 else
4778 ac_prog_rejected=no
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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"
4791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 if 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
4809 fi
4810 fi
4811 fi
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4815 $as_echo "$CC" >&6; }
4816 else
4817 { $as_echo "$as_me:$LINENO: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821
4822 fi
4823 if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
4825 for ac_prog in cl.exe
4826 do
4827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_CC+set}" = set; then
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$CC"; then
4835 ac_cv_prog_CC="$CC" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 CC=$ac_cv_prog_CC
4855 if test -n "$CC"; then
4856 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4857 $as_echo "$CC" >&6; }
4858 else
4859 { $as_echo "$as_me:$LINENO: result: no" >&5
4860 $as_echo "no" >&6; }
4861 fi
4862
4863
4864 test -n "$CC" && break
4865 done
4866 fi
4867 if test -z "$CC"; then
4868 ac_ct_CC=$CC
4869 for ac_prog in cl.exe
4870 do
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$ac_ct_CC"; then
4879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_ac_ct_CC="$ac_prog"
4889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4891 fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896 fi
4897 fi
4898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4899 if test -n "$ac_ct_CC"; then
4900 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4901 $as_echo "$ac_ct_CC" >&6; }
4902 else
4903 { $as_echo "$as_me:$LINENO: result: no" >&5
4904 $as_echo "no" >&6; }
4905 fi
4906
4907
4908 test -n "$ac_ct_CC" && break
4909 done
4910
4911 if test "x$ac_ct_CC" = x; then
4912 CC=""
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915 yes:)
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;}
4918 ac_tool_warned=yes ;;
4919 esac
4920 CC=$ac_ct_CC
4921 fi
4922 fi
4923
4924 fi
4925
4926
4927 test -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
4930 See \`config.log' for more details." >&5
4931 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4932 See \`config.log' for more details." >&2;}
4933 { (exit 1); exit 1; }; }; }
4934
4935 # Provide some information about the compiler.
4936 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4937 set X $ac_compile
4938 ac_compiler=$2
4939 { (ac_try="$ac_compiler --version >&5"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945 $as_echo "$ac_try_echo") >&5
4946 (eval "$ac_compiler --version >&5") 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }
4950 { (ac_try="$ac_compiler -v >&5"
4951 case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954 esac
4955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4956 $as_echo "$ac_try_echo") >&5
4957 (eval "$ac_compiler -v >&5") 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }
4961 { (ac_try="$ac_compiler -V >&5"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compiler -V >&5") 2>&5
4969 ac_status=$?
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4972
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; }
4975 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4976 $as_echo_n "(cached) " >&6
4977 else
4978 cat >conftest.$ac_ext <<_ACEOF
4979 /* confdefs.h. */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984
4985 int
4986 main ()
4987 {
4988 #ifndef __GNUC__
4989 choke me
4990 #endif
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 rm -f conftest.$ac_objext
4997 if { (ac_try="$ac_compile"
4998 case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001 esac
5002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003 $as_echo "$ac_try_echo") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_c_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 ac_compiler_gnu=yes
5015 else
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 ac_compiler_gnu=no
5020 fi
5021
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5024
5025 fi
5026 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5028 if test $ac_compiler_gnu = yes; then
5029 GCC=yes
5030 else
5031 GCC=
5032 fi
5033 ac_test_CFLAGS=${CFLAGS+set}
5034 ac_save_CFLAGS=$CFLAGS
5035 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5037 if test "${ac_cv_prog_cc_g+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039 else
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
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050
5051 int
5052 main ()
5053 {
5054
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext
5060 if { (ac_try="$ac_compile"
5061 case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064 esac
5065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066 $as_echo "$ac_try_echo") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5078 else
5079 $as_echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 CFLAGS=""
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089
5090 int
5091 main ()
5092 {
5093
5094 ;
5095 return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5100 case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103 esac
5104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105 $as_echo "$ac_try_echo") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 :
5117 else
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed '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
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129
5130 int
5131 main ()
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145 $as_echo "$ac_try_echo") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_c_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cc_g=yes
5157 else
5158 $as_echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161
5162 fi
5163
5164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 fi
5166
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 fi
5169
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_c_werror_flag=$ac_save_c_werror_flag
5172 fi
5173 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5174 $as_echo "$ac_cv_prog_cc_g" >&6; }
5175 if test "$ac_test_CFLAGS" = set; then
5176 CFLAGS=$ac_save_CFLAGS
5177 elif 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
5183 else
5184 if test "$GCC" = yes; then
5185 CFLAGS="-O2"
5186 else
5187 CFLAGS=
5188 fi
5189 fi
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; }
5192 if test "${ac_cv_prog_cc_c89+set}" = set; then
5193 $as_echo_n "(cached) " >&6
5194 else
5195 ac_cv_prog_cc_c89=no
5196 ac_save_CC=$CC
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>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. */
5208 struct buf { int x; };
5209 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5210 static char *e (p, i)
5211 char **p;
5212 int i;
5213 {
5214 return p[i];
5215 }
5216 static 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
5229 as 'x'. The following induces an error, until -std is added to get
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
5232 that's true only with -std. */
5233 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5234
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'
5238 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5239
5240 int test (int i, double x);
5241 struct s1 {int (*f) (int a);};
5242 struct s2 {int (*f) (double a);};
5243 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5244 int argc;
5245 char **argv;
5246 int
5247 main ()
5248 {
5249 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5256 do
5257 CC="$ac_save_CC $ac_arg"
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5265 $as_echo "$ac_try_echo") >&5
5266 (eval "$ac_compile") 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5277 else
5278 $as_echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281
5282 fi
5283
5284 rm -f core conftest.err conftest.$ac_objext
5285 test "x$ac_cv_prog_cc_c89" != "xno" && break
5286 done
5287 rm -f conftest.$ac_ext
5288 CC=$ac_save_CC
5289
5290 fi
5291 # AC_CACHE_VAL
5292 case "x$ac_cv_prog_cc_c89" in
5293 x)
5294 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5295 $as_echo "none needed" >&6; } ;;
5296 xno)
5297 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5298 $as_echo "unsupported" >&6; } ;;
5299 *)
5300 CC="$CC $ac_cv_prog_cc_c89"
5301 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5302 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5303 esac
5304
5305
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312 depcc="$CC" am_compiler_list=
5313
5314 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5315 $as_echo_n "checking dependency style of $depcc... " >&6; }
5316 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5317 $as_echo_n "(cached) " >&6
5318 else
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
5342 am__universal=false
5343 case " $depcc " in #(
5344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5345 esac
5346
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
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"
5370 case $depmode in
5371 gcc)
5372 # This depmode causes a compiler race in universal mode.
5373 test "$am__universal" = false || continue
5374 ;;
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 ;;
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 ;;
5391 none) break ;;
5392 esac
5393 if depmode=$depmode \
5394 source=sub/conftest.c object=$am__obj \
5395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5397 >/dev/null 2>conftest.err &&
5398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
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
5419 else
5420 am_cv_CC_dependencies_compiler_type=none
5421 fi
5422
5423 fi
5424 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5426 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5427
5428 if
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='#'
5433 else
5434 am__fastdepCC_TRUE='#'
5435 am__fastdepCC_FALSE=
5436 fi
5437
5438
5439 for ac_prog in ps
5440 do
5441 # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy $ac_prog; ac_word=$2
5443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_path_PS+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5447 else
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
5454 for as_dir in $LPATH
5455 do
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5463 fi
5464 done
5465 done
5466 IFS=$as_save_IFS
5467
5468 ;;
5469 esac
5470 fi
5471 PS=$ac_cv_path_PS
5472 if test -n "$PS"; then
5473 { $as_echo "$as_me:$LINENO: result: $PS" >&5
5474 $as_echo "$PS" >&6; }
5475 else
5476 { $as_echo "$as_me:$LINENO: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 test -n "$PS" && break
5482 done
5483 test -n "$PS" || PS="ps"
5484
5485 for ac_prog in w
5486 do
5487 # Extract the first word of "$ac_prog", so it can be a program name with args.
5488 set dummy $ac_prog; ac_word=$2
5489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_path_W+set}" = set; then
5492 $as_echo_n "(cached) " >&6
5493 else
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
5500 for as_dir in $LPATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506 ac_cv_path_W="$as_dir/$ac_word$ac_exec_ext"
5507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 ;;
5515 esac
5516 fi
5517 W=$ac_cv_path_W
5518 if test -n "$W"; then
5519 { $as_echo "$as_me:$LINENO: result: $W" >&5
5520 $as_echo "$W" >&6; }
5521 else
5522 { $as_echo "$as_me:$LINENO: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526
5527 test -n "$W" && break
5528 done
5529 test -n "$W" || W="w"
5530
5531 case `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;} ;;
5535 esac
5536
5537
5538
5539 macro_version='2.2.6'
5540 macro_revision='1.3012'
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 ltmain="$ac_aux_dir/ltmain.sh"
5555
5556 # Make sure we can run config.sub.
5557 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
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;}
5560 { (exit 1); exit 1; }; }
5561
5562 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5563 $as_echo_n "checking build system type... " >&6; }
5564 if test "${ac_cv_build+set}" = set; then
5565 $as_echo_n "(cached) " >&6
5566 else
5567 ac_build_alias=$build_alias
5568 test "x$ac_build_alias" = x &&
5569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5570 test "x$ac_build_alias" = x &&
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;}
5573 { (exit 1); exit 1; }; }
5574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
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;}
5577 { (exit 1); exit 1; }; }
5578
5579 fi
5580 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5581 $as_echo "$ac_cv_build" >&6; }
5582 case $ac_cv_build in
5583 *-*-*) ;;
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;}
5586 { (exit 1); exit 1; }; };;
5587 esac
5588 build=$ac_cv_build
5589 ac_save_IFS=$IFS; IFS='-'
5590 set x $ac_cv_build
5591 shift
5592 build_cpu=$1
5593 build_vendor=$2
5594 shift; shift
5595 # Remember, the first character of IFS is used to create $*,
5596 # except with old shells:
5597 build_os=$*
5598 IFS=$ac_save_IFS
5599 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5600
5601
5602 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5603 $as_echo_n "checking host system type... " >&6; }
5604 if test "${ac_cv_host+set}" = set; then
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test "x$host_alias" = x; then
5608 ac_cv_host=$ac_cv_build
5609 else
5610 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
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;}
5613 { (exit 1); exit 1; }; }
5614 fi
5615
5616 fi
5617 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5618 $as_echo "$ac_cv_host" >&6; }
5619 case $ac_cv_host in
5620 *-*-*) ;;
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;}
5623 { (exit 1); exit 1; }; };;
5624 esac
5625 host=$ac_cv_host
5626 ac_save_IFS=$IFS; IFS='-'
5627 set x $ac_cv_host
5628 shift
5629 host_cpu=$1
5630 host_vendor=$2
5631 shift; shift
5632 # Remember, the first character of IFS is used to create $*,
5633 # except with old shells:
5634 host_os=$*
5635 IFS=$ac_save_IFS
5636 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5637
5638
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; }
5641 if test "${ac_cv_path_SED+set}" = set; then
5642 $as_echo_n "(cached) " >&6
5643 else
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
5654 for as_dir in $PATH
5655 do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_prog in sed gsed; do
5659 for ac_exec_ext in '' $ac_executable_extensions; do
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
5664 case `"$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;;
5688 esac
5689
5690 $ac_path_SED_found && break 3
5691 done
5692 done
5693 done
5694 IFS=$as_save_IFS
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; }; }
5699 fi
5700 else
5701 ac_cv_path_SED=$SED
5702 fi
5703
5704 fi
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
5709
5710 test -z "$SED" && SED=sed
5711 Xsed="$SED -e 1s/^X//"
5712
5713
5714
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; }
5725 if test "${ac_cv_path_FGREP+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5727 else
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
5735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 do
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
5745 case `"$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;;
5769 esac
5770
5771 $ac_path_FGREP_found && break 3
5772 done
5773 done
5774 done
5775 IFS=$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
5781 else
5782 ac_cv_path_FGREP=$FGREP
5783 fi
5784
5785 fi
5786 fi
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
5792 test -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.
5813 if test "${with_gnu_ld+set}" = set; then
5814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5815 else
5816 with_gnu_ld=no
5817 fi
5818
5819 ac_prog=ld
5820 if test "$GCC" = yes; then
5821 # Check if gcc -print-prog-name=ld gives a path.
5822 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5823 $as_echo_n "checking for ld used by $CC... " >&6; }
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
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%/%"`
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
5851 elif test "$with_gnu_ld" = yes; then
5852 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5853 $as_echo_n "checking for GNU ld... " >&6; }
5854 else
5855 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5856 $as_echo_n "checking for non-GNU ld... " >&6; }
5857 fi
5858 if test "${lt_cv_path_LD+set}" = set; then
5859 $as_echo_n "(cached) " >&6
5860 else
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"
5882 else
5883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5884 fi
5885 fi
5886
5887 LD="$lt_cv_path_LD"
5888 if test -n "$LD"; then
5889 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5890 $as_echo "$LD" >&6; }
5891 else
5892 { $as_echo "$as_me:$LINENO: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895 test -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;}
5897 { (exit 1); exit 1; }; }
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; }
5900 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5901 $as_echo_n "(cached) " >&6
5902 else
5903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5904 case `$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 ;;
5911 esac
5912 fi
5913 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5914 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5915 with_gnu_ld=$lt_cv_prog_gnu_ld
5916
5917
5918
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; }
5927 if test "${lt_cv_path_NM+set}" = set; then
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$NM"; then
5931 # Let the user override the test.
5932 lt_cv_path_NM="$NM"
5933 else
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
5971 : ${lt_cv_path_NM=no}
5972 fi
5973 fi
5974 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5975 $as_echo "$lt_cv_path_NM" >&6; }
5976 if test "$lt_cv_path_NM" != "no"; then
5977 NM="$lt_cv_path_NM"
5978 else
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.
5984 set 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; }
5987 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if test -n "$DUMPBIN"; then
5991 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
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
6004 done
6005 done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 DUMPBIN=$ac_cv_prog_DUMPBIN
6011 if test -n "$DUMPBIN"; then
6012 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6013 $as_echo "$DUMPBIN" >&6; }
6014 else
6015 { $as_echo "$as_me:$LINENO: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019
6020 test -n "$DUMPBIN" && break
6021 done
6022 fi
6023 if test -z "$DUMPBIN"; then
6024 ac_ct_DUMPBIN=$DUMPBIN
6025 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6026 do
6027 # Extract the first word of "$ac_prog", so it can be a program name with args.
6028 set 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; }
6031 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6032 $as_echo_n "(cached) " >&6
6033 else
6034 if test -n "$ac_ct_DUMPBIN"; then
6035 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
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
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6055 if test -n "$ac_ct_DUMPBIN"; then
6056 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6057 $as_echo "$ac_ct_DUMPBIN" >&6; }
6058 else
6059 { $as_echo "$as_me:$LINENO: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063
6064 test -n "$ac_ct_DUMPBIN" && break
6065 done
6066
6067 if test "x$ac_ct_DUMPBIN" = x; then
6068 DUMPBIN=":"
6069 else
6070 case $cross_compiling:$ac_tool_warned in
6071 yes:)
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;}
6074 ac_tool_warned=yes ;;
6075 esac
6076 DUMPBIN=$ac_ct_DUMPBIN
6077 fi
6078 fi
6079
6080
6081 if test "$DUMPBIN" != ":"; then
6082 NM="$DUMPBIN"
6083 fi
6084 fi
6085 test -z "$NM" && NM=nm
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6093 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6094 if test "${lt_cv_nm_interface+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6096 else
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"
6109 fi
6110 rm -f conftest*
6111 fi
6112 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6113 $as_echo "$lt_cv_nm_interface" >&6; }
6114
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; }
6118 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6120 else
6121 i=0
6122 teststring="ABCD"
6123
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 ;;
6132
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 ;;
6139
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 ;;
6150
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 ;;
6156
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`
6169 ;;
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
6174 ;;
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
6188 ;;
6189 sco3.2v5*)
6190 lt_cv_sys_max_cmd_len=102400
6191 ;;
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
6199 ;;
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
6230 ;;
6231 esac
6232
6233 fi
6234
6235 if 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; }
6238 else
6239 { $as_echo "$as_me:$LINENO: result: none" >&5
6240 $as_echo "none" >&6; }
6241 fi
6242 max_cmd_len=$lt_cv_sys_max_cmd_len
6243
6244
6245
6246
6247
6248
6249 : ${CP="cp -f"}
6250 : ${MV="mv -f"}
6251 : ${RM="rm -f"}
6252
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
6256 xsi_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; }
6269 lt_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
6277 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6278 lt_unset=unset
6279 else
6280 lt_unset=false
6281 fi
6282
6283
6284
6285
6286
6287 # test EBCDIC or ASCII
6288 case `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'
6293 ;;
6294 *) # EBCDIC based system
6295 lt_SP2NL='tr \100 \n'
6296 lt_NL2SP='tr \r\n \100\100'
6297 ;;
6298 esac
6299
6300
6301
6302
6303
6304
6305
6306
6307
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; }
6310 if test "${lt_cv_ld_reload_flag+set}" = set; then
6311 $as_echo_n "(cached) " >&6
6312 else
6313 lt_cv_ld_reload_flag='-r'
6314 fi
6315 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6316 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6317 reload_flag=$lt_cv_ld_reload_flag
6318 case $reload_flag in
6319 "" | " "*) ;;
6320 *) reload_flag=" $reload_flag" ;;
6321 esac
6322 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6323 case $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 ;;
6331 esac
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341 if 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.
6343 set 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; }
6346 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if test -n "$OBJDUMP"; then
6350 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 OBJDUMP=$ac_cv_prog_OBJDUMP
6370 if test -n "$OBJDUMP"; then
6371 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6372 $as_echo "$OBJDUMP" >&6; }
6373 else
6374 { $as_echo "$as_me:$LINENO: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379 fi
6380 if 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.
6383 set 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; }
6386 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if test -n "$ac_ct_OBJDUMP"; then
6390 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6410 if test -n "$ac_ct_OBJDUMP"; then
6411 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6412 $as_echo "$ac_ct_OBJDUMP" >&6; }
6413 else
6414 { $as_echo "$as_me:$LINENO: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418 if test "x$ac_ct_OBJDUMP" = x; then
6419 OBJDUMP="false"
6420 else
6421 case $cross_compiling:$ac_tool_warned in
6422 yes:)
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;}
6425 ac_tool_warned=yes ;;
6426 esac
6427 OBJDUMP=$ac_ct_OBJDUMP
6428 fi
6429 else
6430 OBJDUMP="$ac_cv_prog_OBJDUMP"
6431 fi
6432
6433 test -z "$OBJDUMP" && OBJDUMP=objdump
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6444 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6445 if test "${lt_cv_deplibs_check_method+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6447 else
6448 lt_cv_file_magic_cmd='$MAGIC_CMD'
6449 lt_cv_file_magic_test_file=
6450 lt_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.
6461
6462 case $host_os in
6463 aix[4-9]*)
6464 lt_cv_deplibs_check_method=pass_all
6465 ;;
6466
6467 beos*)
6468 lt_cv_deplibs_check_method=pass_all
6469 ;;
6470
6471 bsdi[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 ;;
6476
6477 cygwin*)
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 ;;
6482
6483 mingw* | 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 ;;
6495
6496 cegcc)
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 ;;
6501
6502 darwin* | rhapsody*)
6503 lt_cv_deplibs_check_method=pass_all
6504 ;;
6505
6506 freebsd* | 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
6517 else
6518 lt_cv_deplibs_check_method=pass_all
6519 fi
6520 ;;
6521
6522 gnu*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526 hpux10.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 ;;
6543
6544 interix[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 ;;
6548
6549 irix5* | 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 ;;
6558
6559 # This must be Linux ELF.
6560 linux* | k*bsd*-gnu)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563
6564 netbsd*)
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 ;;
6571
6572 newos6*)
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 ;;
6577
6578 *nto* | *qnx*)
6579 lt_cv_deplibs_check_method=pass_all
6580 ;;
6581
6582 openbsd*)
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 ;;
6589
6590 osf3* | osf4* | osf5*)
6591 lt_cv_deplibs_check_method=pass_all
6592 ;;
6593
6594 rdos*)
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
6597
6598 solaris*)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
6601
6602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6603 lt_cv_deplibs_check_method=pass_all
6604 ;;
6605
6606 sysv4 | 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 ;;
6632
6633 tpf*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636 esac
6637
6638 fi
6639 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6640 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6641 file_magic_cmd=$lt_cv_file_magic_cmd
6642 deplibs_check_method=$lt_cv_deplibs_check_method
6643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656 if test -n "$ac_tool_prefix"; then
6657 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6658 set 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; }
6661 if test "${ac_cv_prog_AR+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6663 else
6664 if test -n "$AR"; then
6665 ac_cv_prog_AR="$AR" # Let the user override the test.
6666 else
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_prog_AR="${ac_tool_prefix}ar"
6675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682 fi
6683 fi
6684 AR=$ac_cv_prog_AR
6685 if test -n "$AR"; then
6686 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6687 $as_echo "$AR" >&6; }
6688 else
6689 { $as_echo "$as_me:$LINENO: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694 fi
6695 if 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.
6698 set 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; }
6701 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6702 $as_echo_n "(cached) " >&6
6703 else
6704 if test -n "$ac_ct_AR"; then
6705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_ac_ct_AR="ar"
6715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6725 if test -n "$ac_ct_AR"; then
6726 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6727 $as_echo "$ac_ct_AR" >&6; }
6728 else
6729 { $as_echo "$as_me:$LINENO: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733 if test "x$ac_ct_AR" = x; then
6734 AR="false"
6735 else
6736 case $cross_compiling:$ac_tool_warned in
6737 yes:)
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;}
6740 ac_tool_warned=yes ;;
6741 esac
6742 AR=$ac_ct_AR
6743 fi
6744 else
6745 AR="$ac_cv_prog_AR"
6746 fi
6747
6748 test -z "$AR" && AR=ar
6749 test -z "$AR_FLAGS" && AR_FLAGS=cru
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 if 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.
6763 set 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; }
6766 if test "${ac_cv_prog_STRIP+set}" = set; then
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$STRIP"; then
6770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
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
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 STRIP=$ac_cv_prog_STRIP
6790 if test -n "$STRIP"; then
6791 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6792 $as_echo "$STRIP" >&6; }
6793 else
6794 { $as_echo "$as_me:$LINENO: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if 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.
6803 set 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; }
6806 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$ac_ct_STRIP"; then
6810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
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
6823 done
6824 done
6825 IFS=$as_save_IFS
6826
6827 fi
6828 fi
6829 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6830 if test -n "$ac_ct_STRIP"; then
6831 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6832 $as_echo "$ac_ct_STRIP" >&6; }
6833 else
6834 { $as_echo "$as_me:$LINENO: result: no" >&5
6835 $as_echo "no" >&6; }
6836 fi
6837
6838 if test "x$ac_ct_STRIP" = x; then
6839 STRIP=":"
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
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;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 STRIP=$ac_ct_STRIP
6848 fi
6849 else
6850 STRIP="$ac_cv_prog_STRIP"
6851 fi
6852
6853 test -z "$STRIP" && STRIP=:
6854
6855
6856
6857
6858
6859
6860 if 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.
6862 set 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; }
6865 if test "${ac_cv_prog_RANLIB+set}" = set; then
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$RANLIB"; then
6869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
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
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 RANLIB=$ac_cv_prog_RANLIB
6889 if test -n "$RANLIB"; then
6890 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6891 $as_echo "$RANLIB" >&6; }
6892 else
6893 { $as_echo "$as_me:$LINENO: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if 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.
6902 set 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; }
6905 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$ac_ct_RANLIB"; then
6909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
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
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6929 if test -n "$ac_ct_RANLIB"; then
6930 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6931 $as_echo "$ac_ct_RANLIB" >&6; }
6932 else
6933 { $as_echo "$as_me:$LINENO: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937 if test "x$ac_ct_RANLIB" = x; then
6938 RANLIB=":"
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941 yes:)
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;}
6944 ac_tool_warned=yes ;;
6945 esac
6946 RANLIB=$ac_ct_RANLIB
6947 fi
6948 else
6949 RANLIB="$ac_cv_prog_RANLIB"
6950 fi
6951
6952 test -z "$RANLIB" && RANLIB=:
6953
6954
6955
6956
6957
6958
6959 # Determine commands to create old-style static archives.
6960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6961 old_postinstall_cmds='chmod 644 $oldlib'
6962 old_postuninstall_cmds=
6963
6964 if test -n "$RANLIB"; then
6965 case $host_os in
6966 openbsd*)
6967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6968 ;;
6969 *)
6970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6971 ;;
6972 esac
6973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6974 fi
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
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.
7010 LTCC=${LTCC-"$CC"}
7011
7012 # If no C compiler flags were specified, use CFLAGS.
7013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7014
7015 # Allow CC to be a program name with arguments.
7016 compiler=$CC
7017
7018
7019 # Check for command to grab the raw symbol name followed by C symbol from nm.
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; }
7022 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7023 $as_echo_n "(cached) " >&6
7024 else
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.
7030 symcode='[BCDEGRST]'
7031
7032 # Regexp to match symbols that can be accessed directly from C.
7033 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7034
7035 # Define system-specific variables.
7036 case $host_os in
7037 aix*)
7038 symcode='[BCDT]'
7039 ;;
7040 cygwin* | mingw* | pw32* | cegcc*)
7041 symcode='[ABCDGISTW]'
7042 ;;
7043 hpux*)
7044 if test "$host_cpu" = ia64; then
7045 symcode='[ABCDEGRST]'
7046 fi
7047 ;;
7048 irix* | nonstopux*)
7049 symcode='[BCDEGRST]'
7050 ;;
7051 osf*)
7052 symcode='[BCDEGQRST]'
7053 ;;
7054 solaris*)
7055 symcode='[BDRT]'
7056 ;;
7057 sco3.2v5*)
7058 symcode='[DT]'
7059 ;;
7060 sysv4.2uw2*)
7061 symcode='[DT]'
7062 ;;
7063 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7064 symcode='[ABDT]'
7065 ;;
7066 sysv4)
7067 symcode='[DFNSTU]'
7068 ;;
7069 esac
7070
7071 # If we're using GNU nm, then use its standard symbol codes.
7072 case `$NM -V 2>&1` in
7073 *GNU* | *'with BFD'*)
7074 symcode='[ABCDGIRSTW]' ;;
7075 esac
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.
7080 lt_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
7083 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7085
7086 # Handle CRLF in mingw tool chain
7087 opt_cr=
7088 case $build_os in
7089 mingw*)
7090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7091 ;;
7092 esac
7093
7094 # Try without a prefix underscore, then with it.
7095 for 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.
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
7120
7121 # Check to see that the pipe works correctly.
7122 pipe_works=no
7123
7124 rm -f conftest*
7125 cat > conftest.$ac_ext <<_LT_EOF
7126 #ifdef __cplusplus
7127 extern "C" {
7128 #endif
7129 char nm_test_var;
7130 void nm_test_func(void);
7131 void nm_test_func(void){}
7132 #ifdef __cplusplus
7133 }
7134 #endif
7135 int main(){nm_test_var='a';nm_test_func();return(0);}
7136 _LT_EOF
7137
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7140 ac_status=$?
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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=$?
7148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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.
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
7161 #ifdef __cplusplus
7162 extern "C" {
7163 #endif
7164
7165 _LT_EOF
7166 # Now generate the symbol file.
7167 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7168
7169 cat <<_LT_EOF >> conftest.$ac_ext
7170
7171 /* The mapping between symbol names and symbols. */
7172 const struct {
7173 const char *name;
7174 void *address;
7175 }
7176 lt__PROGRAM__LTX_preloaded_symbols[] =
7177 {
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}
7183 };
7184
7185 /* This works around a problem in FreeBSD linker */
7186 #ifdef FREEBSD_WORKAROUND
7187 static const void *lt_preloaded_setup() {
7188 return lt__PROGRAM__LTX_preloaded_symbols;
7189 }
7190 #endif
7191
7192 #ifdef __cplusplus
7193 }
7194 #endif
7195 _LT_EOF
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=$?
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
7224 rm -rf conftest* conftst*
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
7232 done
7233
7234 fi
7235
7236 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7237 lt_cv_sys_global_symbol_to_cdecl=
7238 fi
7239 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7240 { $as_echo "$as_me:$LINENO: result: failed" >&5
7241 $as_echo "failed" >&6; }
7242 else
7243 { $as_echo "$as_me:$LINENO: result: ok" >&5
7244 $as_echo "ok" >&6; }
7245 fi
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268 # Check whether --enable-libtool-lock was given.
7269 if test "${enable_libtool_lock+set}" = set; then
7270 enableval=$enable_libtool_lock;
7271 fi
7272
7273 test "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.
7277 case $host in
7278 ia64-*-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
7334 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7335 s390*-*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; }
7393 if test "${lt_cv_cc_needs_belf+set}" = set; then
7394 $as_echo_n "(cached) " >&6
7395 else
7396 ac_ext=c
7397 ac_cpp='$CPP $CPPFLAGS'
7398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401
7402 cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h. */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408
7409 int
7410 main ()
7411 {
7412
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 rm -f conftest.$ac_objext conftest$ac_exeext
7418 if { (ac_try="$ac_link"
7419 case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7422 esac
7423 eval 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
7439 else
7440 $as_echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7442
7443 lt_cv_cc_needs_belf=no
7444 fi
7445
7446 rm -rf conftest.dSYM
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455 fi
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 ;;
7463 sparc*-*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 ;;
7486 esac
7487
7488 need_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.
7495 set 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; }
7498 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$DSYMUTIL"; then
7502 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7522 if test -n "$DSYMUTIL"; then
7523 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7524 $as_echo "$DSYMUTIL" >&6; }
7525 else
7526 { $as_echo "$as_me:$LINENO: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if 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.
7535 set 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; }
7538 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$ac_ct_DSYMUTIL"; then
7542 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
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
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7562 if test -n "$ac_ct_DSYMUTIL"; then
7563 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7564 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7565 else
7566 { $as_echo "$as_me:$LINENO: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570 if test "x$ac_ct_DSYMUTIL" = x; then
7571 DSYMUTIL=":"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574 yes:)
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;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 DSYMUTIL=$ac_ct_DSYMUTIL
7580 fi
7581 else
7582 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7583 fi
7584
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.
7587 set 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; }
7590 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$NMEDIT"; then
7594 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 NMEDIT=$ac_cv_prog_NMEDIT
7614 if test -n "$NMEDIT"; then
7615 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7616 $as_echo "$NMEDIT" >&6; }
7617 else
7618 { $as_echo "$as_me:$LINENO: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if 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.
7627 set 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; }
7630 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$ac_ct_NMEDIT"; then
7634 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7654 if test -n "$ac_ct_NMEDIT"; then
7655 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7656 $as_echo "$ac_ct_NMEDIT" >&6; }
7657 else
7658 { $as_echo "$as_me:$LINENO: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662 if test "x$ac_ct_NMEDIT" = x; then
7663 NMEDIT=":"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
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;}
7669 ac_tool_warned=yes ;;
7670 esac
7671 NMEDIT=$ac_ct_NMEDIT
7672 fi
7673 else
7674 NMEDIT="$ac_cv_prog_NMEDIT"
7675 fi
7676
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.
7679 set 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; }
7682 if test "${ac_cv_prog_LIPO+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$LIPO"; then
7686 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
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
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 LIPO=$ac_cv_prog_LIPO
7706 if test -n "$LIPO"; then
7707 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7708 $as_echo "$LIPO" >&6; }
7709 else
7710 { $as_echo "$as_me:$LINENO: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715 fi
7716 if 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.
7719 set 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; }
7722 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$ac_ct_LIPO"; then
7726 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
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
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7746 if test -n "$ac_ct_LIPO"; then
7747 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7748 $as_echo "$ac_ct_LIPO" >&6; }
7749 else
7750 { $as_echo "$as_me:$LINENO: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754 if test "x$ac_ct_LIPO" = x; then
7755 LIPO=":"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758 yes:)
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;}
7761 ac_tool_warned=yes ;;
7762 esac
7763 LIPO=$ac_ct_LIPO
7764 fi
7765 else
7766 LIPO="$ac_cv_prog_LIPO"
7767 fi
7768
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.
7771 set 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; }
7774 if test "${ac_cv_prog_OTOOL+set}" = set; then
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$OTOOL"; then
7778 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
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
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 OTOOL=$ac_cv_prog_OTOOL
7798 if test -n "$OTOOL"; then
7799 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7800 $as_echo "$OTOOL" >&6; }
7801 else
7802 { $as_echo "$as_me:$LINENO: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if 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.
7811 set 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; }
7814 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$ac_ct_OTOOL"; then
7818 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
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
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7838 if test -n "$ac_ct_OTOOL"; then
7839 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7840 $as_echo "$ac_ct_OTOOL" >&6; }
7841 else
7842 { $as_echo "$as_me:$LINENO: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846 if test "x$ac_ct_OTOOL" = x; then
7847 OTOOL=":"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850 yes:)
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;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 OTOOL=$ac_ct_OTOOL
7856 fi
7857 else
7858 OTOOL="$ac_cv_prog_OTOOL"
7859 fi
7860
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.
7863 set 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; }
7866 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if test -n "$OTOOL64"; then
7870 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
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
7882 fi
7883 done
7884 done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 OTOOL64=$ac_cv_prog_OTOOL64
7890 if test -n "$OTOOL64"; then
7891 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7892 $as_echo "$OTOOL64" >&6; }
7893 else
7894 { $as_echo "$as_me:$LINENO: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898
7899 fi
7900 if 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.
7903 set 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; }
7906 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7908 else
7909 if test -n "$ac_ct_OTOOL64"; then
7910 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
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
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7930 if test -n "$ac_ct_OTOOL64"; then
7931 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7932 $as_echo "$ac_ct_OTOOL64" >&6; }
7933 else
7934 { $as_echo "$as_me:$LINENO: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938 if test "x$ac_ct_OTOOL64" = x; then
7939 OTOOL64=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942 yes:)
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;}
7945 ac_tool_warned=yes ;;
7946 esac
7947 OTOOL64=$ac_ct_OTOOL64
7948 fi
7949 else
7950 OTOOL64="$ac_cv_prog_OTOOL64"
7951 fi
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
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; }
7981 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7982 $as_echo_n "(cached) " >&6
7983 else
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
8005 fi
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; }
8010 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8011 $as_echo_n "(cached) " >&6
8012 else
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
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023
8024 int
8025 main ()
8026 {
8027
8028 ;
8029 return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (ac_try="$ac_link"
8034 case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037 esac
8038 eval 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
8054 else
8055 $as_echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 lt_cv_ld_exported_symbols_list=no
8059 fi
8060
8061 rm -rf conftest.dSYM
8062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8063 conftest$ac_exeext conftest.$ac_ext
8064 LDFLAGS="$save_LDFLAGS"
8065
8066 fi
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
8103
8104
8105 for ac_header in dlfcn.h
8106 do
8107 as_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; }
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111 $as_echo_n "(cached) " >&6
8112 else
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 $ac_includes_default
8120
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8125 case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128 esac
8129 eval 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"
8142 else
8143 $as_echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 eval "$as_ac_Header=no"
8147 fi
8148
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 fi
8151 ac_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; }
8155 as_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
8161
8162 fi
8163
8164 done
8165
8166
8167
8168 # Set options
8169
8170
8171
8172 enable_dlopen=no
8173
8174
8175 enable_win32_dll=no
8176
8177
8178 # Check whether --enable-shared was given.
8179 if 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 ;;
8184 *)
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"
8195 ;;
8196 esac
8197 else
8198 enable_shared=yes
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 # Check whether --enable-static was given.
8210 if 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"
8226 ;;
8227 esac
8228 else
8229 enable_static=yes
8230 fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241 # Check whether --with-pic was given.
8242 if test "${with_pic+set}" = set; then
8243 withval=$with_pic; pic_mode="$withval"
8244 else
8245 pic_mode=default
8246 fi
8247
8248
8249 test -z "$pic_mode" && pic_mode=default
8250
8251
8252
8253
8254
8255
8256
8257 # Check whether --enable-fast-install was given.
8258 if 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
8276 else
8277 enable_fast_install=yes
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290 # This can be used to rebuild libtool when needed
8291 LIBTOOL_DEPS="$ltmain"
8292
8293 # Always use our own libtool.
8294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 test -z "$LN_S" && LN_S="ln -s"
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 if test -n "${ZSH_VERSION+set}" ; then
8336 setopt NO_GLOB_SUBST
8337 fi
8338
8339 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8340 $as_echo_n "checking for objdir... " >&6; }
8341 if test "${lt_cv_objdir+set}" = set; then
8342 $as_echo_n "(cached) " >&6
8343 else
8344 rm -f .libs 2>/dev/null
8345 mkdir .libs 2>/dev/null
8346 if test -d .libs; then
8347 lt_cv_objdir=.libs
8348 else
8349 # MS-DOS does not allow filenames that begin with a dot.
8350 lt_cv_objdir=_libs
8351 fi
8352 rmdir .libs 2>/dev/null
8353 fi
8354 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8355 $as_echo "$lt_cv_objdir" >&6; }
8356 objdir=$lt_cv_objdir
8357
8358
8359
8360
8361
8362 cat >>confdefs.h <<_ACEOF
8363 #define LT_OBJDIR "$lt_cv_objdir/"
8364 _ACEOF
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382 case $host_os in
8383 aix3*)
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 ;;
8392 esac
8393
8394 # Sed substitution that helps us do robust quoting. It backslashifies
8395 # metacharacters that are still active within double-quoted strings.
8396 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8397
8398 # Same as above, but do not quote variable references.
8399 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8400
8401 # Sed substitution to delay expansion of an escaped shell variable in a
8402 # double_quote_subst'ed string.
8403 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8404
8405 # Sed substitution to delay expansion of an escaped single quote.
8406 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8407
8408 # Sed substitution to avoid accidental globbing in evaled expressions
8409 no_glob_subst='s/\*/\\\*/g'
8410
8411 # Global variables:
8412 ofile=libtool
8413 can_build_shared=yes
8414
8415 # All known linkers require a `.a' archive for static linking (except MSVC,
8416 # which needs '.lib').
8417 libext=a
8418
8419 with_gnu_ld="$lt_cv_prog_gnu_ld"
8420
8421 old_CC="$CC"
8422 old_CFLAGS="$CFLAGS"
8423
8424 # Set sane defaults for various variables
8425 test -z "$CC" && CC=cc
8426 test -z "$LTCC" && LTCC=$CC
8427 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8428 test -z "$LD" && LD=ld
8429 test -z "$ac_objext" && ac_objext=o
8430
8431 for 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
8438 done
8439 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8440
8441
8442 # Only perform the check for file, if the check method requires it
8443 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8444 case $deplibs_check_method in
8445 file_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; }
8449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8451 else
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
8488 fi
8489 break
8490 fi
8491 done
8492 IFS="$lt_save_ifs"
8493 MAGIC_CMD="$lt_save_MAGIC_CMD"
8494 ;;
8495 esac
8496 fi
8497
8498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499 if test -n "$MAGIC_CMD"; then
8500 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8501 $as_echo "$MAGIC_CMD" >&6; }
8502 else
8503 { $as_echo "$as_me:$LINENO: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508
8509
8510
8511 if 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; }
8515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8516 $as_echo_n "(cached) " >&6
8517 else
8518 case $MAGIC_CMD in
8519 [\\/*] | ?:[\\/]*)
8520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8521 ;;
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
8541
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
8550
8551 _LT_EOF
8552 fi ;;
8553 esac
8554 fi
8555 break
8556 fi
8557 done
8558 IFS="$lt_save_ifs"
8559 MAGIC_CMD="$lt_save_MAGIC_CMD"
8560 ;;
8561 esac
8562 fi
8563
8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565 if test -n "$MAGIC_CMD"; then
8566 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8567 $as_echo "$MAGIC_CMD" >&6; }
8568 else
8569 { $as_echo "$as_me:$LINENO: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574 else
8575 MAGIC_CMD=:
8576 fi
8577 fi
8578
8579 fi
8580 ;;
8581 esac
8582
8583 # Use C for the default configuration in the libtool script
8584
8585 lt_save_CC="$CC"
8586 ac_ext=c
8587 ac_cpp='$CPP $CPPFLAGS'
8588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8591
8592
8593 # Source file extension for C test sources.
8594 ac_ext=c
8595
8596 # Object file extension for compiled C test sources.
8597 objext=o
8598 objext=$objext
8599
8600 # Code to be used in simple compile tests
8601 lt_simple_compile_test_code="int some_variable = 0;"
8602
8603 # Code to be used in simple link tests
8604 lt_simple_link_test_code='int main(){return(0);}'
8605
8606
8607
8608
8609
8610
8611
8612 # If no C compiler was specified, use CC.
8613 LTCC=${LTCC-"$CC"}
8614
8615 # If no C compiler flags were specified, use CFLAGS.
8616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8617
8618 # Allow CC to be a program name with arguments.
8619 compiler=$CC
8620
8621 # Save the default compiler, since it gets overwritten when the other
8622 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8623 compiler_DEFAULT=$CC
8624
8625 # save warnings/boilerplate of simple test code
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_compiler_boilerplate=`cat conftest.err`
8630 $RM conftest*
8631
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635 _lt_linker_boilerplate=`cat conftest.err`
8636 $RM -r conftest*
8637
8638
8639 if test -n "$compiler"; then
8640
8641 lt_prog_compiler_no_builtin_flag=
8642
8643 if test "$GCC" = yes; then
8644 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8645
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; }
8648 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8649 $as_echo_n "(cached) " >&6
8650 else
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*
8679
8680 fi
8681 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8682 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8683
8684 if 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"
8686 else
8687 :
8688 fi
8689
8690 fi
8691
8692
8693
8694
8695
8696
8697 lt_prog_compiler_wl=
8698 lt_prog_compiler_pic=
8699 lt_prog_compiler_static=
8700
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; }
8703
8704 if test "$GCC" = yes; then
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_static='-static'
8707
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 ;;
8716
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 ;;
8731
8732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8733 # PIC is the default for these OSes.
8734 ;;
8735
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 ;;
8743
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 ;;
8749
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 ;;
8763
8764 interix[3-9]*)
8765 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8766 # Instead, we relocate shared libraries at runtime.
8767 ;;
8768
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 ;;
8775
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 ;;
8781
8782 sysv4*MP*)
8783 if test -d /usr/nec; then
8784 lt_prog_compiler_pic=-Kconform_pic
8785 fi
8786 ;;
8787
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 ;;
8804
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 ;;
8810
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 ;;
8826
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 ;;
8832
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 ;;
8890
8891 newsos6)
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
8895
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 ;;
8901
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 ;;
8907
8908 rdos*)
8909 lt_prog_compiler_static='-non_shared'
8910 ;;
8911
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
8964 case $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 ;;
8972 esac
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 #
8984 if 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; }
8987 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8988 $as_echo_n "(cached) " >&6
8989 else
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*
9018
9019 fi
9020 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9021 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9022
9023 if 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
9028 else
9029 lt_prog_compiler_pic=
9030 lt_prog_compiler_can_build_shared=no
9031 fi
9032
9033 fi
9034
9035
9036
9037
9038
9039
9040 #
9041 # Check to make sure the static flag actually works.
9042 #
9043 wl=$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; }
9046 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9047 $as_echo_n "(cached) " >&6
9048 else
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"
9070
9071 fi
9072 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9073 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9074
9075 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9076 :
9077 else
9078 lt_prog_compiler_static=
9079 fi
9080
9081
9082
9083
9084
9085
9086
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; }
9089 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9090 $as_echo_n "(cached) " >&6
9091 else
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
9098
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*
9132
9133 fi
9134 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9135 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9136
9137
9138
9139
9140
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; }
9144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9145 $as_echo_n "(cached) " >&6
9146 else
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
9153
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*
9187
9188 fi
9189 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9191
9192
9193
9194
9195 hard_links="nottested"
9196 if 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
9213 else
9214 need_locks=no
9215 fi
9216
9217
9218
9219
9220
9221
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=
9265
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
9281 ;;
9282 esac
9283
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}'
9288
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
9309
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
9317
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.
9323
9324 _LT_EOF
9325 fi
9326 ;;
9327
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 ;;
9342
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 ;;
9353
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'
9362
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 ;;
9378
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 ;;
9393
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'
9436
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
9443
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 ;;
9463
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 ;;
9473
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
9478
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.
9485
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 ;;
9494
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
9500
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.
9507
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 ;;
9525
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
9531 ;;
9532
9533 *)
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
9540 ;;
9541 esac
9542
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 ;;
9565
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
9582
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
9595
9596 exp_sym_flag='-bexport'
9597 no_entry_flag='-bnoentry'
9598 fi
9599
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.
9605
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,'
9612
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
9653
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
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670
9671 int
9672 main ()
9673 {
9674
9675 ;
9676 return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9681 case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684 esac
9685 eval 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
9700
9701 lt_aix_libpath_sed='
9702 /Import File Strings/,/^$/ {
9703 /^0/ {
9704 s/^0 *\(.*\)$/\1/
9705 p
9706 }
9707 }'
9708 aix_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.
9710 if test -z "$aix_libpath"; then
9711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712 fi
9713 else
9714 $as_echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717
9718 fi
9719
9720 rm -rf conftest.dSYM
9721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722 conftest$ac_exeext conftest.$ac_ext
9723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9724
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
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741
9742 int
9743 main ()
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9752 case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755 esac
9756 eval 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
9771
9772 lt_aix_libpath_sed='
9773 /Import File Strings/,/^$/ {
9774 /^0/ {
9775 s/^0 *\(.*\)$/\1/
9776 p
9777 }
9778 }'
9779 aix_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.
9781 if test -z "$aix_libpath"; then
9782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9783 fi
9784 else
9785 $as_echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788
9789 fi
9790
9791 rm -rf conftest.dSYM
9792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9793 conftest$ac_exeext conftest.$ac_ext
9794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9795
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 ;;
9809
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 ;;
9824
9825 bsdi[45]*)
9826 export_dynamic_flag_spec=-rdynamic
9827 ;;
9828
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 ;;
9849
9850 darwin* | rhapsody*)
9851
9852
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}"
9870
9871 else
9872 ld_shlibs=no
9873 fi
9874
9875 ;;
9876
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 ;;
9882
9883 freebsd1*)
9884 ld_shlibs=no
9885 ;;
9886
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 ;;
9897
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 ;;
9905
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 ;;
9913
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
9923
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 ;;
9929
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 ;;
9948
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=:
9978
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'
9988
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 ;;
9996
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
10006 int foo(void) {}
10007 _ACEOF
10008 rm -f conftest.$ac_objext conftest$ac_exeext
10009 if { (ac_try="$ac_link"
10010 case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10013 esac
10014 eval 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'
10030
10031 else
10032 $as_echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035
10036 fi
10037
10038 rm -rf conftest.dSYM
10039 rm -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 ;;
10052
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 ;;
10063
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 ;;
10071
10072 *nto* | *qnx*)
10073 ;;
10074
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 ;;
10101
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 ;;
10109
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 ;;
10122
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'
10133
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 ;;
10140
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 ;;
10182
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 ;;
10196
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 ;;
10218
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 ;;
10224
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 ;;
10234
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'
10240
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 ;;
10249
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'
10266
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 ;;
10275
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 ;;
10281
10282 *)
10283 ld_shlibs=no
10284 ;;
10285 esac
10286
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
10295
10296 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10297 $as_echo "$ld_shlibs" >&6; }
10298 test "$ld_shlibs" = no && can_build_shared=no
10299
10300 with_gnu_ld=$with_gnu_ld
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316 #
10317 # Do we need to explicitly link libc?
10318 #
10319 case "x$archive_cmds_need_lc" in
10320 x|xyes)
10321 # Assume -lc should be added
10322 archive_cmds_need_lc=yes
10323
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
10337
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 ;;
10377 esac
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
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
10538 if 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 '
10566 BEGIN {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`
10586 else
10587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10588 fi
10589 library_names_spec=
10590 libname_spec='lib$name'
10591 soname_spec=
10592 shrext_cmds=".so"
10593 postinstall_cmds=
10594 postuninstall_cmds=
10595 finish_cmds=
10596 finish_eval=
10597 shlibpath_var=
10598 shlibpath_overrides_runpath=unknown
10599 version_type=none
10600 dynamic_linker="$host_os ld.so"
10601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10602 need_lib_prefix=unknown
10603 hardcode_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
10607 need_version=unknown
10608
10609 case $host_os in
10610 aix3*)
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
10619 aix[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].*)
10636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10637 echo ' yes '
10638 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
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
10663 amigaos*)
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
10676 ;;
10677
10678 beos*)
10679 library_names_spec='${libname}${shared_ext}'
10680 dynamic_linker="$host_os ld.so"
10681 shlibpath_var=LIBRARY_PATH
10682 ;;
10683
10684 bsdi[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
10698 cygwin* | mingw* | pw32* | cegcc*)
10699 version_type=windows
10700 shrext_cmds=".dll"
10701 need_version=no
10702 need_lib_prefix=no
10703
10704 case $GCC,$host_os in
10705 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10706 library_names_spec='$libname.dll.a'
10707 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10708 postinstall_cmds='base_file=`basename \${file}`~
10709 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10710 dldir=$destdir/`dirname \$dlpath`~
10711 test -d \$dldir || mkdir -p \$dldir~
10712 $install_prog $dir/$dlname \$dldir/$dlname~
10713 chmod a+x \$dldir/$dlname~
10714 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10715 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10716 fi'
10717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10718 dlpath=$dir/\$dldll~
10719 $RM \$dlpath'
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 ;;
10728 mingw* | cegcc*)
10729 # MinGW DLLs use traditional 'lib' prefix
10730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
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
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.
10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10740 else
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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
10760 darwin* | rhapsody*)
10761 dynamic_linker="$host_os dyld"
10762 version_type=darwin
10763 need_lib_prefix=no
10764 need_version=no
10765 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
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`'
10770
10771 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10772 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10773 ;;
10774
10775 dgux*)
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
10784 freebsd1*)
10785 dynamic_linker=no
10786 ;;
10787
10788 freebsd* | 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 ;;
10825 *) # from 4.6 on, and DragonFly
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 esac
10830 ;;
10831
10832 gnu*)
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
10842 hpux9* | 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 ;;
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 *)
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
10888 interix[3-9]*)
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
10900 irix5* | 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.
10938 linux*oldld* | linux*aout* | linux*coff*)
10939 dynamic_linker=no
10940 ;;
10941
10942 # This must be Linux ELF.
10943 linux* | k*bsd*-gnu)
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
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
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963
10964 int
10965 main ()
10966 {
10967
10968 ;
10969 return 0;
10970 }
10971 _ACEOF
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (ac_try="$ac_link"
10974 case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977 esac
10978 eval 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
10995 fi
10996
10997 else
10998 $as_echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001
11002 fi
11003
11004 rm -rf conftest.dSYM
11005 rm -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
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
11014
11015 # Add ABI-specific directories to the system library path.
11016 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11017
11018 # Append ld.so.conf contents to the search path
11019 if test -f /etc/ld.so.conf; then
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' ' '`
11021 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
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
11033 netbsd*)
11034 version_type=sunos
11035 need_lib_prefix=no
11036 need_version=no
11037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
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
11051 newsos6)
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
11058 *nto* | *qnx*)
11059 version_type=qnx
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
11065 shlibpath_overrides_runpath=no
11066 hardcode_into_libs=yes
11067 dynamic_linker='ldqnx.so'
11068 ;;
11069
11070 openbsd*)
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
11076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11077 *) need_version=no ;;
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
11082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
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
11096 os2*)
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
11105 osf3* | 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
11116 rdos*)
11117 dynamic_linker=no
11118 ;;
11119
11120 solaris*)
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
11133 sunos4*)
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
11145 sysv4 | 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
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
11168 sysv4*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
11177 sysv5* | 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
11184 shlibpath_overrides_runpath=yes
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'
11188 else
11189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
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
11199 tpf*)
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
11210 uts4*)
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 ;;
11220 esac
11221 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11222 $as_echo "$dynamic_linker" >&6; }
11223 test "$dynamic_linker" = no && can_build_shared=no
11224
11225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11226 if test "$GCC" = yes; then
11227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11228 fi
11229
11230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11232 fi
11233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
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; }
11325 hardcode_action=
11326 if test -n "$hardcode_libdir_flag_spec" ||
11327 test -n "$runpath_var" ||
11328 test "X$hardcode_automatic" = "Xyes" ; then
11329
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
11342 fi
11343 else
11344 # We cannot hardcode anything, or else we can only hardcode existing
11345 # directories.
11346 hardcode_action=unsupported
11347 fi
11348 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11349 $as_echo "$hardcode_action" >&6; }
11350
11351 if test "$hardcode_action" = relink ||
11352 test "$inherit_rpath" = yes; then
11353 # Fast installation is not supported
11354 enable_fast_install=no
11355 elif test "$shlibpath_overrides_runpath" = yes ||
11356 test "$enable_shared" = no; then
11357 # Fast installation is not necessary
11358 enable_fast_install=needless
11359 fi
11360
11361
11362
11363
11364
11365
11366 if test "x$enable_dlopen" != xyes; then
11367 enable_dlopen=unknown
11368 enable_dlopen_self=unknown
11369 enable_dlopen_self_static=unknown
11370 else
11371 lt_cv_dlopen=no
11372 lt_cv_dlopen_libs=
11373
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 ;;
11380
11381 mingw* | pw32* | cegcc*)
11382 lt_cv_dlopen="LoadLibrary"
11383 lt_cv_dlopen_libs=
11384 ;;
11385
11386 cygwin*)
11387 lt_cv_dlopen="dlopen"
11388 lt_cv_dlopen_libs=
11389 ;;
11390
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; }
11395 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11396 $as_echo_n "(cached) " >&6
11397 else
11398 ac_check_lib_save_LIBS=$LIBS
11399 LIBS="-ldl $LIBS"
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h. */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h. */
11406
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
11411 extern "C"
11412 #endif
11413 char dlopen ();
11414 int
11415 main ()
11416 {
11417 return dlopen ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (ac_try="$ac_link"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval 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
11444 else
11445 $as_echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 ac_cv_lib_dl_dlopen=no
11449 fi
11450
11451 rm -rf conftest.dSYM
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11457 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11458 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11460 else
11461
11462 lt_cv_dlopen="dyld"
11463 lt_cv_dlopen_libs=
11464 lt_cv_dlopen_self=yes
11465
11466 fi
11467
11468 ;;
11469
11470 *)
11471 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11472 $as_echo_n "checking for shl_load... " >&6; }
11473 if test "${ac_cv_func_shl_load+set}" = set; then
11474 $as_echo_n "(cached) " >&6
11475 else
11476 cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h. */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>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
11485
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. */
11490
11491 #ifdef __STDC__
11492 # include <limits.h>
11493 #else
11494 # include <assert.h>
11495 #endif
11496
11497 #undef shl_load
11498
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
11503 extern "C"
11504 #endif
11505 char 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
11510 choke me
11511 #endif
11512
11513 int
11514 main ()
11515 {
11516 return shl_load ();
11517 ;
11518 return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext conftest$ac_exeext
11522 if { (ac_try="$ac_link"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526 esac
11527 eval 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
11543 else
11544 $as_echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_cv_func_shl_load=no
11548 fi
11549
11550 rm -rf conftest.dSYM
11551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11552 conftest$ac_exeext conftest.$ac_ext
11553 fi
11554 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11555 $as_echo "$ac_cv_func_shl_load" >&6; }
11556 if test "x$ac_cv_func_shl_load" = x""yes; then
11557 lt_cv_dlopen="shl_load"
11558 else
11559 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11560 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11561 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-ldld $LIBS"
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572
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
11577 extern "C"
11578 #endif
11579 char shl_load ();
11580 int
11581 main ()
11582 {
11583 return shl_load ();
11584 ;
11585 return 0;
11586 }
11587 _ACEOF
11588 rm -f conftest.$ac_objext conftest$ac_exeext
11589 if { (ac_try="$ac_link"
11590 case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593 esac
11594 eval 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
11610 else
11611 $as_echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 ac_cv_lib_dld_shl_load=no
11615 fi
11616
11617 rm -rf conftest.dSYM
11618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11621 fi
11622 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11623 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11624 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11625 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11626 else
11627 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11628 $as_echo_n "checking for dlopen... " >&6; }
11629 if test "${ac_cv_func_dlopen+set}" = set; then
11630 $as_echo_n "(cached) " >&6
11631 else
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>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
11641
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. */
11646
11647 #ifdef __STDC__
11648 # include <limits.h>
11649 #else
11650 # include <assert.h>
11651 #endif
11652
11653 #undef dlopen
11654
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
11659 extern "C"
11660 #endif
11661 char 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
11666 choke me
11667 #endif
11668
11669 int
11670 main ()
11671 {
11672 return dlopen ();
11673 ;
11674 return 0;
11675 }
11676 _ACEOF
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682 esac
11683 eval 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
11699 else
11700 $as_echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703 ac_cv_func_dlopen=no
11704 fi
11705
11706 rm -rf conftest.dSYM
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11709 fi
11710 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11711 $as_echo "$ac_cv_func_dlopen" >&6; }
11712 if test "x$ac_cv_func_dlopen" = x""yes; then
11713 lt_cv_dlopen="dlopen"
11714 else
11715 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11717 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11718 $as_echo_n "(cached) " >&6
11719 else
11720 ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-ldl $LIBS"
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728
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
11733 extern "C"
11734 #endif
11735 char dlopen ();
11736 int
11737 main ()
11738 {
11739 return dlopen ();
11740 ;
11741 return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749 esac
11750 eval 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
11766 else
11767 $as_echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 ac_cv_lib_dl_dlopen=no
11771 fi
11772
11773 rm -rf conftest.dSYM
11774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11779 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11780 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11781 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11782 else
11783 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11784 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11785 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11786 $as_echo_n "(cached) " >&6
11787 else
11788 ac_check_lib_save_LIBS=$LIBS
11789 LIBS="-lsvld $LIBS"
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796
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
11801 extern "C"
11802 #endif
11803 char dlopen ();
11804 int
11805 main ()
11806 {
11807 return dlopen ();
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (ac_try="$ac_link"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817 esac
11818 eval 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
11834 else
11835 $as_echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_cv_lib_svld_dlopen=no
11839 fi
11840
11841 rm -rf conftest.dSYM
11842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11843 conftest$ac_exeext conftest.$ac_ext
11844 LIBS=$ac_check_lib_save_LIBS
11845 fi
11846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11847 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11848 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11850 else
11851 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11852 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11853 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11854 $as_echo_n "(cached) " >&6
11855 else
11856 ac_check_lib_save_LIBS=$LIBS
11857 LIBS="-ldld $LIBS"
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864
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
11869 extern "C"
11870 #endif
11871 char dld_link ();
11872 int
11873 main ()
11874 {
11875 return dld_link ();
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval 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
11902 else
11903 $as_echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 ac_cv_lib_dld_dld_link=no
11907 fi
11908
11909 rm -rf conftest.dSYM
11910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11913 fi
11914 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11915 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11916 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11918 fi
11919
11920
11921 fi
11922
11923
11924 fi
11925
11926
11927 fi
11928
11929
11930 fi
11931
11932
11933 fi
11934
11935 ;;
11936 esac
11937
11938 if test "x$lt_cv_dlopen" != xno; then
11939 enable_dlopen=yes
11940 else
11941 enable_dlopen=no
11942 fi
11943
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"
11948
11949 save_LDFLAGS="$LDFLAGS"
11950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11951
11952 save_LIBS="$LIBS"
11953 LIBS="$lt_cv_dlopen_libs $LIBS"
11954
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; }
11957 if test "${lt_cv_dlopen_self+set}" = set; then
11958 $as_echo_n "(cached) " >&6
11959 else
11960 if test "$cross_compiling" = yes; then :
11961 lt_cv_dlopen_self=cross
11962 else
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"
11968
11969 #if HAVE_DLFCN_H
11970 #include <dlfcn.h>
11971 #endif
11972
11973 #include <stdio.h>
11974
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
11984
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
12006
12007 void fnord() { int i=42;}
12008 int main ()
12009 {
12010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12011 int status = $lt_dlunknown;
12012
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 ());
12021
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
12041 fi
12042 rm -fr conftest*
12043
12044
12045 fi
12046 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12047 $as_echo "$lt_cv_dlopen_self" >&6; }
12048
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; }
12053 if test "${lt_cv_dlopen_self_static+set}" = set; then
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test "$cross_compiling" = yes; then :
12057 lt_cv_dlopen_self_static=cross
12058 else
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"
12064
12065 #if HAVE_DLFCN_H
12066 #include <dlfcn.h>
12067 #endif
12068
12069 #include <stdio.h>
12070
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
12080
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
12102
12103 void fnord() { int i=42;}
12104 int main ()
12105 {
12106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12107 int status = $lt_dlunknown;
12108
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 ());
12117
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
12137 fi
12138 rm -fr conftest*
12139
12140
12141 fi
12142 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12143 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12144 fi
12145
12146 CPPFLAGS="$save_CPPFLAGS"
12147 LDFLAGS="$save_LDFLAGS"
12148 LIBS="$save_LIBS"
12149 ;;
12150 esac
12151
12152 case $lt_cv_dlopen_self in
12153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12154 *) enable_dlopen_self=unknown ;;
12155 esac
12156
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
12161 fi
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179 striplib=
12180 old_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; }
12183 if 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; }
12188 else
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
12207 fi
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
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; }
12225
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
12229
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 ;;
12240
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; }
12249
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; }
12256
12257
12258
12259
12260 fi
12261 ac_ext=c
12262 ac_cpp='$CPP $CPPFLAGS'
12263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12266
12267 CC="$lt_save_CC"
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281 ac_config_commands="$ac_config_commands libtool"
12282
12283
12284
12285
12286 # Only expand once:
12287
12288
12289
12290 if test "$PS" = "ps"
12291 then
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; }; }
12295 fi
12296
12297 if test x$GXX = xyes
12298 then
12299 CFLAGS="-Wall $CFLAGS"
12300 fi
12301
12302 CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
12303
12304
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; }
12307 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12308 $as_echo_n "(cached) " >&6
12309 else
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>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
12325 int
12326 main ()
12327 {
12328 int s;
12329 wait (&s);
12330 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12331 ;
12332 return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext
12336 if { (ac_try="$ac_compile"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340 esac
12341 eval 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
12354 else
12355 $as_echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 ac_cv_header_sys_wait_h=no
12359 fi
12360
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12364 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12365 if test $ac_cv_header_sys_wait_h = yes; then
12366
12367 cat >>confdefs.h <<\_ACEOF
12368 #define HAVE_SYS_WAIT_H 1
12369 _ACEOF
12370
12371 fi
12372
12373
12374
12375 for ac_header in unistd.h fcntl.h
12376 do
12377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378 if { 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; }
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382 $as_echo_n "(cached) " >&6
12383 fi
12384 ac_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; }
12388 else
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; }
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h. */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 $ac_includes_default
12399 #include <$ac_header>
12400 _ACEOF
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12406 esac
12407 eval 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
12420 else
12421 $as_echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_header_compiler=no
12425 fi
12426
12427 rm -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; }
12430
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; }
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h. */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 #include <$ac_header>
12441 _ACEOF
12442 if { (ac_try="$ac_cpp conftest.$ac_ext"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval 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
12460 else
12461 $as_echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12463
12464 ac_header_preproc=no
12465 fi
12466
12467 rm -f conftest.err conftest.$ac_ext
12468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12469 $as_echo "$ac_header_preproc" >&6; }
12470
12471 # So? What about this header?
12472 case $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 ;;
12500 esac
12501 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 $as_echo_n "checking for $ac_header... " >&6; }
12503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 $as_echo_n "(cached) " >&6
12505 else
12506 eval "$as_ac_Header=\$ac_header_preproc"
12507 fi
12508 ac_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; }
12512
12513 fi
12514 as_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
12520
12521 fi
12522
12523 done
12524
12525
12526 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12527 $as_echo_n "checking for pid_t... " >&6; }
12528 if test "${ac_cv_type_pid_t+set}" = set; then
12529 $as_echo_n "(cached) " >&6
12530 else
12531 ac_cv_type_pid_t=no
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 $ac_includes_default
12539 int
12540 main ()
12541 {
12542 if (sizeof (pid_t))
12543 return 0;
12544 ;
12545 return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext
12549 if { (ac_try="$ac_compile"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553 esac
12554 eval 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
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 $ac_includes_default
12573 int
12574 main ()
12575 {
12576 if (sizeof ((pid_t)))
12577 return 0;
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval 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 :
12601 else
12602 $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12604
12605 ac_cv_type_pid_t=yes
12606 fi
12607
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 else
12610 $as_echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613
12614 fi
12615
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 fi
12618 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12619 $as_echo "$ac_cv_type_pid_t" >&6; }
12620 if test "x$ac_cv_type_pid_t" = x""yes; then
12621 :
12622 else
12623
12624 cat >>confdefs.h <<_ACEOF
12625 #define pid_t int
12626 _ACEOF
12627
12628 fi
12629
12630
12631
12632 # Check whether --with-random was given.
12633 if test "${with_random+set}" = set; then
12634 withval=$with_random; random="$withval"
12635 else
12636 random="y"
12637 fi
12638
12639
12640 case "$random" in
12641 /*)
12642 ;;
12643 y*|1*)
12644 { $as_echo "$as_me:$LINENO: checking for random source" >&5
12645 $as_echo_n "checking for random source... " >&6; }
12646 if test "${random_cv_RANDOM+set}" = set; then
12647 $as_echo_n "(cached) " >&6
12648 else
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
12660
12661 fi
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 ;;
12669 esac
12670
12671 if test "$random" != "none"
12672 then
12673
12674 cat >>confdefs.h <<_ACEOF
12675 #define RANDOM "$random"
12676 _ACEOF
12677
12678 fi
12679
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; }
12682 if test "${random_cv_PS_OPTIONS+set}" = set; then
12683 $as_echo_n "(cached) " >&6
12684 else
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"
12691
12692 fi
12693 { $as_echo "$as_me:$LINENO: result: $random_cv_PS_OPTIONS" >&5
12694 $as_echo "$random_cv_PS_OPTIONS" >&6; }
12695
12696
12697 cat >>confdefs.h <<_ACEOF
12698 #define PS_OPTIONS "$random_cv_PS_OPTIONS"
12699 _ACEOF
12700
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define PS "$PS"
12704 _ACEOF
12705
12706
12707 if test "$W" != "w"
12708 then
12709
12710 cat >>confdefs.h <<_ACEOF
12711 #define W "$w"
12712 _ACEOF
12713
12714 fi
12715
12716 ac_config_files="$ac_config_files Makefile"
12717
12718 cat >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.
12731
12732 _ACEOF
12733
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
12755
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
12780 if 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
12790 fi
12791 rm -f confcache
12792
12793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12794 # Let make expand exec_prefix.
12795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12796
12797 DEFS=-DHAVE_CONFIG_H
12798
12799 ac_libobjs=
12800 ac_ltlibobjs=
12801 for 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'
12809 done
12810 LIBOBJS=$ac_libobjs
12811
12812 LTLIBOBJS=$ac_ltlibobjs
12813
12814
12815 if test -n "$EXEEXT"; then
12816 am__EXEEXT_TRUE=
12817 am__EXEEXT_FALSE='#'
12818 else
12819 am__EXEEXT_TRUE='#'
12820 am__EXEEXT_FALSE=
12821 fi
12822
12823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12824 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12825 Usually this means the macro was only invoked conditionally." >&5
12826 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12827 Usually this means the macro was only invoked conditionally." >&2;}
12828 { (exit 1); exit 1; }; }
12829 fi
12830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12831 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12832 Usually this means the macro was only invoked conditionally." >&5
12833 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12834 Usually this means the macro was only invoked conditionally." >&2;}
12835 { (exit 1); exit 1; }; }
12836 fi
12837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12838 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12839 Usually this means the macro was only invoked conditionally." >&5
12840 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12841 Usually this means the macro was only invoked conditionally." >&2;}
12842 { (exit 1); exit 1; }; }
12843 fi
12844
12845 : ${CONFIG_STATUS=./config.status}
12846 ac_write_fail=0
12847 ac_clean_files_save=$ac_clean_files
12848 ac_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;}
12851 cat >$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.
12857
12858 debug=false
12859 ac_cs_recheck=false
12860 ac_cs_silent=false
12861 SHELL=\${CONFIG_SHELL-$SHELL}
12862 _ACEOF
12863
12864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12865 ## --------------------- ##
12866 ## M4sh Initialization. ##
12867 ## --------------------- ##
12868
12869 # Be more Bourne compatible
12870 DUALCASE=1; export DUALCASE # for MKS sh
12871 if 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
12878 else
12879 case `(set -o) 2>/dev/null` in
12880 *posix*) set -o posix ;;
12881 esac
12882
12883 fi
12884
12885
12886
12887
12888 # PATH needs CR
12889 # Avoid depending upon Character Ranges.
12890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12893 as_cr_digits='0123456789'
12894 as_cr_alnum=$as_cr_Letters$as_cr_digits
12895
12896 as_nl='
12897 '
12898 export as_nl
12899 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12900 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12903 if (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'
12906 else
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'
12926 fi
12927
12928 # The user is always right.
12929 if 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 }
12935 fi
12936
12937 # Support unset when possible.
12938 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12939 as_unset=unset
12940 else
12941 as_unset=false
12942 fi
12943
12944
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.)
12950 IFS=" "" $as_nl"
12951
12952 # Find who we are. Look in the path if we contain no directory separator.
12953 case $0 in
12954 *[\\/]* ) as_myself=$0 ;;
12955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12957 do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
12960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12961 done
12962 IFS=$as_save_IFS
12963
12964 ;;
12965 esac
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.
12968 if test "x$as_myself" = x; then
12969 as_myself=$0
12970 fi
12971 if 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; }
12974 fi
12975
12976 # Work around bugs in pre-3.0 UWIN ksh.
12977 for as_var in ENV MAIL MAILPATH
12978 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12979 done
12980 PS1='$ '
12981 PS2='> '
12982 PS4='+ '
12983
12984 # NLS nuisances.
12985 LC_ALL=C
12986 export LC_ALL
12987 LANGUAGE=C
12988 export LANGUAGE
12989
12990 # Required to use basename.
12991 if expr a : '\(a\)' >/dev/null 2>&1 &&
12992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12993 as_expr=expr
12994 else
12995 as_expr=false
12996 fi
12997
12998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12999 as_basename=basename
13000 else
13001 as_basename=false
13002 fi
13003
13004
13005 # Name of the executable.
13006 as_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'`
13024
13025 # CDPATH.
13026 $as_unset CDPATH
13027
13028
13029
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" || {
13034
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; }; }
13063
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 }
13071
13072
13073 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13074 as_dirname=dirname
13075 else
13076 as_dirname=false
13077 fi
13078
13079 ECHO_C= ECHO_N= ECHO_T=
13080 case `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';;
13088 esac
13089 if expr a : '\(a\)' >/dev/null 2>&1 &&
13090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13091 as_expr=expr
13092 else
13093 as_expr=false
13094 fi
13095
13096 rm -f conf$$ conf$$.exe conf$$.file
13097 if test -d conf$$.dir; then
13098 rm -f conf$$.dir/conf$$.file
13099 else
13100 rm -f conf$$.dir
13101 mkdir conf$$.dir 2>/dev/null
13102 fi
13103 if (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
13117 else
13118 as_ln_s='cp -p'
13119 fi
13120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13121 rmdir conf$$.dir 2>/dev/null
13122
13123 if mkdir -p . 2>/dev/null; then
13124 as_mkdir_p=:
13125 else
13126 test -d ./-p && rmdir ./-p
13127 as_mkdir_p=false
13128 fi
13129
13130 if test -x / >/dev/null 2>&1; then
13131 as_test_x='test -x'
13132 else
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 '
13150 fi
13151 as_executable_p=$as_test_x
13152
13153 # Sed expression to map a string onto a valid CPP name.
13154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13155
13156 # Sed expression to map a string onto a valid variable name.
13157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13158
13159
13160 exec 6>&1
13161
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.
13165 ac_log="
13166 This file was extended by random128 $as_me 0.10, which was
13167 generated by GNU Autoconf 2.63. Invocation command line was
13168
13169 CONFIG_FILES = $CONFIG_FILES
13170 CONFIG_HEADERS = $CONFIG_HEADERS
13171 CONFIG_LINKS = $CONFIG_LINKS
13172 CONFIG_COMMANDS = $CONFIG_COMMANDS
13173 $ $0 $@
13174
13175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13176 "
13177
13178 _ACEOF
13179
13180 case $ac_config_files in *"
13181 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13182 esac
13183
13184 case $ac_config_headers in *"
13185 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13186 esac
13187
13188
13189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13190 # Files that config.status was made for.
13191 config_files="$ac_config_files"
13192 config_headers="$ac_config_headers"
13193 config_commands="$ac_config_commands"
13194
13195 _ACEOF
13196
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 ac_cs_usage="\
13199 \`$as_me' instantiates files from templates according to the
13200 current configuration.
13201
13202 Usage: $0 [OPTION]... [FILE]...
13203
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
13214
13215 Configuration files:
13216 $config_files
13217
13218 Configuration headers:
13219 $config_headers
13220
13221 Configuration commands:
13222 $config_commands
13223
13224 Report bugs to <bug-autoconf@gnu.org>."
13225
13226 _ACEOF
13227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13228 ac_cs_version="\\
13229 random128 config.status 0.10
13230 configured by $0, generated by GNU Autoconf 2.63,
13231 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13232
13233 Copyright (C) 2008 Free Software Foundation, Inc.
13234 This config.status script is free software; the Free Software Foundation
13235 gives unlimited permission to copy, distribute and modify it."
13236
13237 ac_pwd='$ac_pwd'
13238 srcdir='$srcdir'
13239 INSTALL='$INSTALL'
13240 MKDIR_P='$MKDIR_P'
13241 AWK='$AWK'
13242 test -n "\$AWK" || AWK=awk
13243 _ACEOF
13244
13245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13246 # The default lists apply if the user does not specify any file.
13247 ac_need_defaults=:
13248 while test $# != 0
13249 do
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
13262
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
13288 Try \`$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=: ;;
13295
13296 # This is an error.
13297 -*) { $as_echo "$as_me: error: unrecognized option: $1
13298 Try \`$0 --help' for more information." >&2
13299 { (exit 1); exit 1; }; } ;;
13300
13301 *) ac_config_targets="$ac_config_targets $1"
13302 ac_need_defaults=false ;;
13303
13304 esac
13305 shift
13306 done
13307
13308 ac_configure_extra_args=
13309
13310 if $ac_cs_silent; then
13311 exec 6>/dev/null
13312 ac_configure_extra_args="$ac_configure_extra_args --silent"
13313 fi
13314
13315 _ACEOF
13316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13317 if \$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 "\$@"
13324 fi
13325
13326 _ACEOF
13327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13328 exec 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
13336
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339 #
13340 # INIT-COMMANDS
13341 #
13342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13343
13344
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
13348
13349 sed_quote_subst='$sed_quote_subst'
13350 double_quote_subst='$double_quote_subst'
13351 delay_variable_subst='$delay_variable_subst'
13352 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13353 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13354 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13355 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13356 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13357 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13358 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13359 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13360 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13361 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13362 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13363 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13364 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13365 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13366 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13367 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13368 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13369 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13370 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13371 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13372 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13373 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13374 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13375 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13376 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13377 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13378 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13379 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13380 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13381 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13382 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13383 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13384 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13385 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13386 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13387 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13388 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13389 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13390 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13391 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13392 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13393 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13394 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13395 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13396 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13397 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13398 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13399 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13400 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13401 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13402 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13403 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13404 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13405 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13406 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13407 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13408 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13409 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13410 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13411 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13412 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13413 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13414 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13415 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13416 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13417 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13418 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13419 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13420 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13421 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13422 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13423 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13424 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13425 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13426 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13427 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13428 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13429 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13430 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13431 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13432 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13433 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13434 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13435 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13436 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13437 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13438 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13439 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13440 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13441 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13442 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13443 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13444 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13445 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13446 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13447 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13448 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13449 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13450 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13451 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13452 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13453 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13454 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13455 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13456 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13457 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13458 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13459 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13460 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13461 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13462 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13463 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13464 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13465 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13466 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13467 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13468 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13469 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13470
13471 LTCC='$LTCC'
13472 LTCFLAGS='$LTCFLAGS'
13473 compiler='$compiler_DEFAULT'
13474
13475 # Quote evaled strings.
13476 for var in SED \
13477 GREP \
13478 EGREP \
13479 FGREP \
13480 LD \
13481 NM \
13482 LN_S \
13483 lt_SP2NL \
13484 lt_NL2SP \
13485 reload_flag \
13486 OBJDUMP \
13487 deplibs_check_method \
13488 file_magic_cmd \
13489 AR \
13490 AR_FLAGS \
13491 STRIP \
13492 RANLIB \
13493 CC \
13494 CFLAGS \
13495 compiler \
13496 lt_cv_sys_global_symbol_pipe \
13497 lt_cv_sys_global_symbol_to_cdecl \
13498 lt_cv_sys_global_symbol_to_c_name_address \
13499 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13500 SHELL \
13501 ECHO \
13502 lt_prog_compiler_no_builtin_flag \
13503 lt_prog_compiler_wl \
13504 lt_prog_compiler_pic \
13505 lt_prog_compiler_static \
13506 lt_cv_prog_compiler_c_o \
13507 need_locks \
13508 DSYMUTIL \
13509 NMEDIT \
13510 LIPO \
13511 OTOOL \
13512 OTOOL64 \
13513 shrext_cmds \
13514 export_dynamic_flag_spec \
13515 whole_archive_flag_spec \
13516 compiler_needs_object \
13517 with_gnu_ld \
13518 allow_undefined_flag \
13519 no_undefined_flag \
13520 hardcode_libdir_flag_spec \
13521 hardcode_libdir_flag_spec_ld \
13522 hardcode_libdir_separator \
13523 fix_srcfile_path \
13524 exclude_expsyms \
13525 include_expsyms \
13526 file_list_spec \
13527 variables_saved_for_relink \
13528 libname_spec \
13529 library_names_spec \
13530 soname_spec \
13531 finish_eval \
13532 old_striplib \
13533 striplib; 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
13542 done
13543
13544 # Double-quote double-evaled strings.
13545 for var in reload_cmds \
13546 old_postinstall_cmds \
13547 old_postuninstall_cmds \
13548 old_archive_cmds \
13549 extract_expsyms_cmds \
13550 old_archive_from_new_cmds \
13551 old_archive_from_expsyms_cmds \
13552 archive_cmds \
13553 archive_expsym_cmds \
13554 module_cmds \
13555 module_expsym_cmds \
13556 export_symbols_cmds \
13557 prelink_cmds \
13558 postinstall_cmds \
13559 postuninstall_cmds \
13560 finish_cmds \
13561 sys_lib_search_path_spec \
13562 sys_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
13571 done
13572
13573 # Fix-up fallback echo if it was mangled by the above quoting rules.
13574 case \$lt_ECHO in
13575 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13576 ;;
13577 esac
13578
13579 ac_aux_dir='$ac_aux_dir'
13580 xsi_shell='$xsi_shell'
13581 lt_shell_append='$lt_shell_append'
13582
13583 # See if we are running on zsh, and set the options which allow our
13584 # commands through without removal of \ escapes INIT.
13585 if test -n "\${ZSH_VERSION+set}" ; then
13586 setopt NO_GLOB_SUBST
13587 fi
13588
13589
13590 PACKAGE='$PACKAGE'
13591 VERSION='$VERSION'
13592 TIMESTAMP='$TIMESTAMP'
13593 RM='$RM'
13594 ofile='$ofile'
13595
13596
13597
13598
13599 _ACEOF
13600
13601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13602
13603 # Handling of arguments.
13604 for ac_config_target in $ac_config_targets
13605 do
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" ;;
13611
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
13616 done
13617
13618
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.
13623 if $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
13627 fi
13628
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.
13644
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 }
13657
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'.
13661 if test -n "$CONFIG_FILES"; then
13662
13663
13664 ac_cr=' '
13665 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13666 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13667 ac_cs_awk_cr='\\r'
13668 else
13669 ac_cs_awk_cr=$ac_cr
13670 fi
13671
13672 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13673 _ACEOF
13674
13675
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; }; }
13684 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13685 ac_delim='%!_!# '
13686 for 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; }; }
13691
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
13702 done
13703 rm -f conf$$subs.sh
13704
13705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13707 _ACEOF
13708 sed -n '
13709 h
13710 s/^/S["/; s/!.*/"]=/
13711 p
13712 g
13713 s/^[^!]*!//
13714 :repl
13715 t repl
13716 s/'"$ac_delim"'$//
13717 t delim
13718 :nl
13719 h
13720 s/\(.\{148\}\).*/\1/
13721 t more1
13722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13723 p
13724 n
13725 b repl
13726 :more1
13727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13728 p
13729 g
13730 s/.\{148\}//
13731 t nl
13732 :delim
13733 h
13734 s/\(.\{148\}\).*/\1/
13735 t more2
13736 s/["\\]/\\&/g; s/^/"/; s/$/"/
13737 p
13738 b
13739 :more2
13740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13741 p
13742 g
13743 s/.\{148\}//
13744 t delim
13745 ' <conf$$subs.awk | sed '
13746 /^[^""]/{
13747 N
13748 s/\n//
13749 }
13750 ' >>$CONFIG_STATUS || ac_write_fail=1
13751 rm -f conf$$subs.awk
13752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13753 _ACAWK
13754 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13755 for (key in S) S_is_set[key] = 1
13756 FS = "\a"
13757
13758 }
13759 {
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
13777 }
13778
13779 _ACAWK
13780 _ACEOF
13781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13784 else
13785 cat
13786 fi < "$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
13791
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).
13796 if test "x$srcdir" = x.; then
13797 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13798 s/:*\$(srcdir):*/:/
13799 s/:*\${srcdir}:*/:/
13800 s/:*@srcdir@:*/:/
13801 s/^\([^=]*=[ ]*\):*/\1/
13802 s/:*$//
13803 s/^[^=]*=[ ]*$//
13804 }'
13805 fi
13806
13807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13808 fi # test -n "$CONFIG_FILES"
13809
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'.
13813 if test -n "$CONFIG_HEADERS"; then
13814 cat >"$tmp/defines.awk" <<\_ACAWK ||
13815 BEGIN {
13816 _ACEOF
13817
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.
13821
13822 # Create a delimiter string that does not exist in confdefs.h, to ease
13823 # handling of long lines.
13824 ac_delim='%!_!# '
13825 for 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
13836 done
13837
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.
13841
13842 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13843 sed -n '
13844 s/.\{148\}/&'"$ac_delim"'/g
13845 t rset
13846 :rset
13847 s/^[ ]*#[ ]*define[ ][ ]*/ /
13848 t def
13849 d
13850 :def
13851 s/\\$//
13852 t bsnl
13853 s/["\\]/\\&/g
13854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13855 D["\1"]=" \3"/p
13856 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13857 d
13858 :bsnl
13859 s/["\\]/\\&/g
13860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13861 D["\1"]=" \3\\\\\\n"\\/p
13862 t cont
13863 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13864 t cont
13865 d
13866 :cont
13867 n
13868 s/.\{148\}/&'"$ac_delim"'/g
13869 t clear
13870 :clear
13871 s/\\$//
13872 t bsnlc
13873 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13874 d
13875 :bsnlc
13876 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13877 b cont
13878 ' <confdefs.h | sed '
13879 s/'"$ac_delim"'/"\\\
13880 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13881
13882 cat >>$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
13916 cat >>$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; }; }
13920 fi # test -n "$CONFIG_HEADERS"
13921
13922
13923 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13924 shift
13925 for ac_tag
13926 do
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
13945
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
14064 case "$ac_dir" in
14065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14066 *)
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 ;;
14074 esac
14075 ac_abs_top_builddir=$ac_pwd
14076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14077 # for backward compatibility:
14078 ac_top_builddir=$ac_top_build_prefix
14079
14080 case $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 ;;
14093 esac
14094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14095
14096
14097 case $ac_mode in
14098 :F)
14099 #
14100 # CONFIG_FILE
14101 #
14102
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
14113
14114 cat >>$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.
14117 ac_datarootdir_hack=; ac_datarootdir_seen=
14118
14119 ac_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 '
14130 case `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
14136 cat >>$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' ;;
14144 esac
14145 _ACEOF
14146
14147 # Neutralize VPATH when `$srcdir' = `.'.
14148 # Shell code in configure.ac might set extrasub.
14149 # FIXME: do we really want to maintain this feature?
14150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14151 ac_sed_extra="$ac_vpsub
14152 $extrasub
14153 _ACEOF
14154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155 :t
14156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14157 s|@configure_input@|$ac_sed_conf_input|;t t
14158 s&@top_builddir@&$ac_top_builddir_sub&;t t
14159 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14160 s&@srcdir@&$ac_srcdir&;t t
14161 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14162 s&@top_srcdir@&$ac_top_srcdir&;t t
14163 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14164 s&@builddir@&$ac_builddir&;t t
14165 s&@abs_builddir@&$ac_abs_builddir&;t t
14166 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14167 s&@INSTALL@&$ac_INSTALL&;t t
14168 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14169 $ac_datarootdir_hack
14170 "
14171 eval 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; }; }
14175
14176 test -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'
14180 which 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'
14182 which seems to be undefined. Please make sure it is defined." >&2;}
14183
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
14225 for _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
14232 done
14233 echo "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 ;;
14257
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
14262
14263
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)
14401
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
14407
14408 cfgfile="${ofile}T"
14409 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14410 $RM "$cfgfile"
14411
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.
14419 #
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
14423 #
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.
14446
14447
14448 # The names of the tagged configurations supported by this script.
14449 available_tags=""
14450
14451 # ### BEGIN LIBTOOL CONFIG
14452
14453 # Which release of libtool.m4 was used?
14454 macro_version=$macro_version
14455 macro_revision=$macro_revision
14456
14457 # Whether or not to build shared libraries.
14458 build_libtool_libs=$enable_shared
14459
14460 # Whether or not to build static libraries.
14461 build_old_libs=$enable_static
14462
14463 # What type of objects to build.
14464 pic_mode=$pic_mode
14465
14466 # Whether or not to optimize for fast installation.
14467 fast_install=$enable_fast_install
14468
14469 # The host system.
14470 host_alias=$host_alias
14471 host=$host
14472 host_os=$host_os
14473
14474 # The build system.
14475 build_alias=$build_alias
14476 build=$build
14477 build_os=$build_os
14478
14479 # A sed program that does not truncate output.
14480 SED=$lt_SED
14481
14482 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14483 Xsed="\$SED -e 1s/^X//"
14484
14485 # A grep program that handles long lines.
14486 GREP=$lt_GREP
14487
14488 # An ERE matcher.
14489 EGREP=$lt_EGREP
14490
14491 # A literal string matcher.
14492 FGREP=$lt_FGREP
14493
14494 # A BSD- or MS-compatible name lister.
14495 NM=$lt_NM
14496
14497 # Whether we need soft or hard links.
14498 LN_S=$lt_LN_S
14499
14500 # What is the maximum length of a command?
14501 max_cmd_len=$max_cmd_len
14502
14503 # Object file suffix (normally "o").
14504 objext=$ac_objext
14505
14506 # Executable file suffix (normally "").
14507 exeext=$exeext
14508
14509 # whether the shell understands "unset".
14510 lt_unset=$lt_unset
14511
14512 # turn spaces into newlines.
14513 SP2NL=$lt_lt_SP2NL
14514
14515 # turn newlines into spaces.
14516 NL2SP=$lt_lt_NL2SP
14517
14518 # How to create reloadable object files.
14519 reload_flag=$lt_reload_flag
14520 reload_cmds=$lt_reload_cmds
14521
14522 # An object symbol dumper.
14523 OBJDUMP=$lt_OBJDUMP
14524
14525 # Method to check whether dependent libraries are shared objects.
14526 deplibs_check_method=$lt_deplibs_check_method
14527
14528 # Command to use when deplibs_check_method == "file_magic".
14529 file_magic_cmd=$lt_file_magic_cmd
14530
14531 # The archiver.
14532 AR=$lt_AR
14533 AR_FLAGS=$lt_AR_FLAGS
14534
14535 # A symbol stripping program.
14536 STRIP=$lt_STRIP
14537
14538 # Commands used to install an old-style archive.
14539 RANLIB=$lt_RANLIB
14540 old_postinstall_cmds=$lt_old_postinstall_cmds
14541 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14542
14543 # A C compiler.
14544 LTCC=$lt_CC
14545
14546 # LTCC compiler flags.
14547 LTCFLAGS=$lt_CFLAGS
14548
14549 # Take the output of nm and produce a listing of raw symbols and C names.
14550 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14551
14552 # Transform the output of nm in a proper C declaration.
14553 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14554
14555 # Transform the output of nm in a C name address pair.
14556 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14557
14558 # Transform the output of nm in a C name address pair when lib prefix is needed.
14559 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14560
14561 # The name of the directory that contains temporary libtool files.
14562 objdir=$objdir
14563
14564 # Shell to use when invoking shell scripts.
14565 SHELL=$lt_SHELL
14566
14567 # An echo program that does not interpret backslashes.
14568 ECHO=$lt_ECHO
14569
14570 # Used to examine libraries when file_magic_cmd begins with "file".
14571 MAGIC_CMD=$MAGIC_CMD
14572
14573 # Must we lock files when doing compilation?
14574 need_locks=$lt_need_locks
14575
14576 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14577 DSYMUTIL=$lt_DSYMUTIL
14578
14579 # Tool to change global to local symbols on Mac OS X.
14580 NMEDIT=$lt_NMEDIT
14581
14582 # Tool to manipulate fat objects and archives on Mac OS X.
14583 LIPO=$lt_LIPO
14584
14585 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14586 OTOOL=$lt_OTOOL
14587
14588 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14589 OTOOL64=$lt_OTOOL64
14590
14591 # Old archive suffix (normally "a").
14592 libext=$libext
14593
14594 # Shared library suffix (normally ".so").
14595 shrext_cmds=$lt_shrext_cmds
14596
14597 # The commands to extract the exported symbol list from a shared archive.
14598 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14599
14600 # Variables whose values should be saved in libtool wrapper scripts and
14601 # restored at link time.
14602 variables_saved_for_relink=$lt_variables_saved_for_relink
14603
14604 # Do we need the "lib" prefix for modules?
14605 need_lib_prefix=$need_lib_prefix
14606
14607 # Do we need a version for libraries?
14608 need_version=$need_version
14609
14610 # Library versioning type.
14611 version_type=$version_type
14612
14613 # Shared library runtime path variable.
14614 runpath_var=$runpath_var
14615
14616 # Shared library path variable.
14617 shlibpath_var=$shlibpath_var
14618
14619 # Is shlibpath searched before the hard-coded library search path?
14620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14621
14622 # Format of library name prefix.
14623 libname_spec=$lt_libname_spec
14624
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
14627 library_names_spec=$lt_library_names_spec
14628
14629 # The coded name of the library, if different from the real name.
14630 soname_spec=$lt_soname_spec
14631
14632 # Command to use after installation of a shared archive.
14633 postinstall_cmds=$lt_postinstall_cmds
14634
14635 # Command to use after uninstallation of a shared archive.
14636 postuninstall_cmds=$lt_postuninstall_cmds
14637
14638 # Commands used to finish a libtool library installation in a directory.
14639 finish_cmds=$lt_finish_cmds
14640
14641 # As "finish_cmds", except a single script fragment to be evaled but
14642 # not shown.
14643 finish_eval=$lt_finish_eval
14644
14645 # Whether we should hardcode library paths into libraries.
14646 hardcode_into_libs=$hardcode_into_libs
14647
14648 # Compile-time system search path for libraries.
14649 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14650
14651 # Run-time system search path for libraries.
14652 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14653
14654 # Whether dlopen is supported.
14655 dlopen_support=$enable_dlopen
14656
14657 # Whether dlopen of programs is supported.
14658 dlopen_self=$enable_dlopen_self
14659
14660 # Whether dlopen of statically linked programs is supported.
14661 dlopen_self_static=$enable_dlopen_self_static
14662
14663 # Commands to strip libraries.
14664 old_striplib=$lt_old_striplib
14665 striplib=$lt_striplib
14666
14667
14668 # The linker used to build libraries.
14669 LD=$lt_LD
14670
14671 # Commands used to build an old-style archive.
14672 old_archive_cmds=$lt_old_archive_cmds
14673
14674 # A language specific compiler.
14675 CC=$lt_compiler
14676
14677 # Is the compiler the GNU compiler?
14678 with_gcc=$GCC
14679
14680 # Compiler flag to turn off builtin functions.
14681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14682
14683 # How to pass a linker flag through the compiler.
14684 wl=$lt_lt_prog_compiler_wl
14685
14686 # Additional compiler flags for building library objects.
14687 pic_flag=$lt_lt_prog_compiler_pic
14688
14689 # Compiler flag to prevent dynamic linking.
14690 link_static_flag=$lt_lt_prog_compiler_static
14691
14692 # Does compiler simultaneously support -c and -o options?
14693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14694
14695 # Whether or not to add -lc for building shared libraries.
14696 build_libtool_need_lc=$archive_cmds_need_lc
14697
14698 # Whether or not to disallow shared libs when runtime libs are static.
14699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14700
14701 # Compiler flag to allow reflexive dlopens.
14702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14703
14704 # Compiler flag to generate shared objects directly from archives.
14705 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14706
14707 # Whether the compiler copes with passing no objects directly.
14708 compiler_needs_object=$lt_compiler_needs_object
14709
14710 # Create an old-style archive from a shared archive.
14711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14712
14713 # Create a temporary old-style archive to link instead of a shared archive.
14714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14715
14716 # Commands used to build a shared archive.
14717 archive_cmds=$lt_archive_cmds
14718 archive_expsym_cmds=$lt_archive_expsym_cmds
14719
14720 # Commands used to build a loadable module if different from building
14721 # a shared archive.
14722 module_cmds=$lt_module_cmds
14723 module_expsym_cmds=$lt_module_expsym_cmds
14724
14725 # Whether we are building with GNU ld or not.
14726 with_gnu_ld=$lt_with_gnu_ld
14727
14728 # Flag that allows shared libraries with undefined symbols to be built.
14729 allow_undefined_flag=$lt_allow_undefined_flag
14730
14731 # Flag that enforces no undefined symbols.
14732 no_undefined_flag=$lt_no_undefined_flag
14733
14734 # Flag to hardcode \$libdir into a binary during linking.
14735 # This must work even if \$libdir does not exist
14736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14737
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.
14740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14741
14742 # Whether we need a single "-rpath" flag with a separated argument.
14743 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14744
14745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14746 # DIR into the resulting binary.
14747 hardcode_direct=$hardcode_direct
14748
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.
14753 hardcode_direct_absolute=$hardcode_direct_absolute
14754
14755 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14756 # into the resulting binary.
14757 hardcode_minus_L=$hardcode_minus_L
14758
14759 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14760 # into the resulting binary.
14761 hardcode_shlibpath_var=$hardcode_shlibpath_var
14762
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.
14766 hardcode_automatic=$hardcode_automatic
14767
14768 # Set to yes if linker adds runtime paths of dependent libraries
14769 # to runtime path list.
14770 inherit_rpath=$inherit_rpath
14771
14772 # Whether libtool must link a program against all its dependency libraries.
14773 link_all_deplibs=$link_all_deplibs
14774
14775 # Fix the shell variable \$srcfile for the compiler.
14776 fix_srcfile_path=$lt_fix_srcfile_path
14777
14778 # Set to "yes" if exported symbols are required.
14779 always_export_symbols=$always_export_symbols
14780
14781 # The commands to list exported symbols.
14782 export_symbols_cmds=$lt_export_symbols_cmds
14783
14784 # Symbols that should not be listed in the preloaded symbols.
14785 exclude_expsyms=$lt_exclude_expsyms
14786
14787 # Symbols that must always be exported.
14788 include_expsyms=$lt_include_expsyms
14789
14790 # Commands necessary for linking programs (against libraries) with templates.
14791 prelink_cmds=$lt_prelink_cmds
14792
14793 # Specify filename containing input files.
14794 file_list_spec=$lt_file_list_spec
14795
14796 # How to hardcode a shared library path into an executable.
14797 hardcode_action=$hardcode_action
14798
14799 # ### END LIBTOOL CONFIG
14800
14801 _LT_EOF
14802
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.
14809 if test "X${COLLECT_NAMES+set}" != Xset; then
14810 COLLECT_NAMES=
14811 export COLLECT_NAMES
14812 fi
14813 _LT_EOF
14814 ;;
14815 esac
14816
14817
14818 ltmain="$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.
14835 func_dirname ()
14836 {
14837 case ${1} in
14838 */*) func_dirname_result="${1%/*}${2}" ;;
14839 * ) func_dirname_result="${3}" ;;
14840 esac
14841 }
14842
14843 # func_basename file
14844 func_basename ()
14845 {
14846 func_basename_result="${1##*/}"
14847 }
14848
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.
14861 func_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##*/}"
14868 }
14869
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).
14875 func_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 }
14883
14884 # func_opt_split
14885 func_opt_split ()
14886 {
14887 func_opt_split_opt=${1%%=*}
14888 func_opt_split_arg=${1#*=}
14889 }
14890
14891 # func_lo2o object
14892 func_lo2o ()
14893 {
14894 case ${1} in
14895 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14896 *) func_lo2o_result=${1} ;;
14897 esac
14898 }
14899
14900 # func_xform libobj-or-source
14901 func_xform ()
14902 {
14903 func_xform_result=${1%.*}.lo
14904 }
14905
14906 # func_arith arithmetic-term...
14907 func_arith ()
14908 {
14909 func_arith_result=$(( $* ))
14910 }
14911
14912 # func_len string
14913 # STRING may not start with a hyphen.
14914 func_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.
14927 func_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}"
14933 else
14934 func_dirname_result="$func_dirname_result${2}"
14935 fi
14936 }
14937
14938 # func_basename file
14939 func_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
14951 func_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}\$%%"`;;
14958 esac
14959 }
14960
14961 # sed scripts:
14962 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14963 my_sed_long_arg='1s/^-[^=]*=//'
14964
14965 # func_opt_split
14966 func_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
14973 func_lo2o ()
14974 {
14975 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14976 }
14977
14978 # func_xform libobj-or-source
14979 func_xform ()
14980 {
14981 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14982 }
14983
14984 # func_arith arithmetic-term...
14985 func_arith ()
14986 {
14987 func_arith_result=`expr "$@"`
14988 }
14989
14990 # func_len string
14991 # STRING may not start with a hyphen.
14992 func_len ()
14993 {
14994 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14995 }
14996
14997 _LT_EOF
14998 esac
14999
15000 case $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.
15006 func_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.
15017 func_append ()
15018 {
15019 eval "$1=\$$1\$2"
15020 }
15021
15022 _LT_EOF
15023 ;;
15024 esac
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
15034 ;;
15035
15036 esac
15037 done # for ac_tag
15038
15039
15040 { (exit 0); exit 0; }
15041 _ACEOF
15042 chmod +x $CONFIG_STATUS
15043 ac_clean_files=$ac_clean_files_save
15044
15045 test $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
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.
15059 if 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; }
15070 fi
15071 if 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;}
15074 fi
15075