Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libdaemon 0.14.
4 #
5 # Report bugs to <mzqnrzba (at) 0pointer (dot) de>.
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 [email protected] 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='libdaemon'
747 PACKAGE_TARNAME='libdaemon'
748 PACKAGE_VERSION='0.14'
749 PACKAGE_STRING='libdaemon 0.14'
750 PACKAGE_BUGREPORT='mzqnrzba (at) 0pointer (dot) de'
751
752 ac_unique_file="libdaemon/dfork.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 EXAMPLES_FALSE
794 EXAMPLES_TRUE
795 USE_LYNX_FALSE
796 USE_LYNX_TRUE
797 have_lynx
798 LDFLAGS_NOUNDEFINED
799 OTOOL64
800 OTOOL
801 LIPO
802 NMEDIT
803 DSYMUTIL
804 lt_ECHO
805 RANLIB
806 AR
807 OBJDUMP
808 NM
809 ac_ct_DUMPBIN
810 DUMPBIN
811 LD
812 FGREP
813 SED
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 LIBTOOL
823 LN_S
824 EGREP
825 GREP
826 CPP
827 am__fastdepCC_FALSE
828 am__fastdepCC_TRUE
829 CCDEPMODE
830 AMDEPBACKSLASH
831 AMDEP_FALSE
832 AMDEP_TRUE
833 am__quote
834 am__include
835 DEPDIR
836 OBJEXT
837 EXEEXT
838 ac_ct_CC
839 CPPFLAGS
840 LDFLAGS
841 CFLAGS
842 CC
843 AM_BACKSLASH
844 AM_DEFAULT_VERBOSITY
845 LIBDAEMON_VERSION_INFO
846 PACKAGE_URL
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 MKDIR_P
855 INSTALL_STRIP_PROGRAM
856 STRIP
857 install_sh
858 MAKEINFO
859 AUTOHEADER
860 AUTOMAKE
861 AUTOCONF
862 ACLOCAL
863 VERSION
864 PACKAGE
865 CYGPATH_W
866 am__isrc
867 INSTALL_DATA
868 INSTALL_SCRIPT
869 INSTALL_PROGRAM
870 target_alias
871 host_alias
872 build_alias
873 LIBS
874 ECHO_T
875 ECHO_N
876 ECHO_C
877 DEFS
878 mandir
879 localedir
880 libdir
881 psdir
882 pdfdir
883 dvidir
884 htmldir
885 infodir
886 docdir
887 oldincludedir
888 includedir
889 localstatedir
890 sharedstatedir
891 sysconfdir
892 datadir
893 datarootdir
894 libexecdir
895 sbindir
896 bindir
897 program_transform_name
898 prefix
899 exec_prefix
900 PACKAGE_BUGREPORT
901 PACKAGE_STRING
902 PACKAGE_VERSION
903 PACKAGE_TARNAME
904 PACKAGE_NAME
905 PATH_SEPARATOR
906 SHELL'
907 ac_subst_files=''
908 ac_user_opts='
909 enable_option_checking
910 enable_silent_rules
911 enable_dependency_tracking
912 enable_shared
913 enable_static
914 with_pic
915 enable_fast_install
916 with_gnu_ld
917 enable_libtool_lock
918 enable_assert
919 enable_largefile
920 enable_lynx
921 enable_examples
922 '
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 CC
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
931 CPP'
932
933
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 ac_unrecognized_opts=
938 ac_unrecognized_sep=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
955
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
991 fi
992
993 case $ac_option in
994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *) ac_optarg=yes ;;
996 esac
997
998 # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000 case $ac_dashdash$ac_option in
1001 --)
1002 ac_dashdash=yes ;;
1003
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005 ac_prev=bindir ;;
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1008
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1013
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1020
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1023
1024 -datadir | --datadir | --datadi | --datad)
1025 ac_prev=datadir ;;
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1028
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1035
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1052
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1057
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
1062
1063 -enable-* | --enable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=\$ac_optarg ;;
1079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=\$ac_optarg ;;
1284
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1290 { (exit 1); exit 1; }; }
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=no ;;
1301
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1305
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1312
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1319
1320 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1321 Try \`$0 --help' for more information." >&2
1322 { (exit 1); exit 1; }; }
1323 ;;
1324
1325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330 { (exit 1); exit 1; }; }
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1333
1334 *)
1335 # FIXME: should be removed in autoconf 3.0.
1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 ;;
1341
1342 esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1348 { (exit 1); exit 1; }; }
1349 fi
1350
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1353 no) ;;
1354 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1355 { (exit 1); exit 1; }; } ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1365 do
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1368 case $ac_val in
1369 */ )
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1372 esac
1373 # Be sure to have absolute directory names.
1374 case $ac_val in
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 esac
1378 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1379 { (exit 1); exit 1; }; }
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1410 { (exit 1); exit 1; }; }
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1413 { (exit 1); exit 1; }; }
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1453 { (exit 1); exit 1; }; }
1454 fi
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456 ac_abs_confdir=`(
1457 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1458 { (exit 1); exit 1; }; }
1459 pwd)`
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1463 fi
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1467 case $srcdir in
1468 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 esac
1470 for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475 done
1476
1477 #
1478 # Report the --help message.
1479 #
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1483 cat <<_ACEOF
1484 \`configure' configures libdaemon 0.14 to adapt to many kinds of systems.
1485
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1490
1491 Defaults for the options are specified in brackets.
1492
1493 Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 [PREFIX]
1509
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1514
1515 For better control, use the options below.
1516
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/libdaemon]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1537 _ACEOF
1538
1539 cat <<\_ACEOF
1540
1541 Program names:
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1545
1546 System types:
1547 --build=BUILD configure for building on BUILD [guessed]
1548 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1549 _ACEOF
1550 fi
1551
1552 if test -n "$ac_init_help"; then
1553 case $ac_init_help in
1554 short | recursive ) echo "Configuration of libdaemon 0.14:";;
1555 esac
1556 cat <<\_ACEOF
1557
1558 Optional Features:
1559 --disable-option-checking ignore unrecognized --enable/--with options
1560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1562 --enable-silent-rules less verbose build output (undo: `make V=1')
1563 --disable-silent-rules verbose build output (undo: `make V=0')
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --disable-assert turn off assertions
1572 --disable-largefile omit support for large files
1573 --disable-lynx Turn off lynx usage for documentation generation
1574 --disable-examples Don't build examples during make
1575
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <mzqnrzba (at) 0pointer (dot) de>.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 libdaemon configure 0.14
1660 generated by GNU Autoconf 2.63
1661
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667 exit
1668 fi
1669 cat >config.log <<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1672
1673 It was created by libdaemon $as_me 0.14, which was
1674 generated by GNU Autoconf 2.63. Invocation command line was
1675
1676 $ $0 $@
1677
1678 _ACEOF
1679 exec 5>>config.log
1680 {
1681 cat <<_ASUNAME
1682 ## --------- ##
1683 ## Platform. ##
1684 ## --------- ##
1685
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1691
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1694
1695 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1699 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1702
1703 _ASUNAME
1704
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 $as_echo "PATH: $as_dir"
1711 done
1712 IFS=$as_save_IFS
1713
1714 } >&5
1715
1716 cat >&5 <<_ACEOF
1717
1718
1719 ## ----------- ##
1720 ## Core tests. ##
1721 ## ----------- ##
1722
1723 _ACEOF
1724
1725
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_configure_args=
1732 ac_configure_args0=
1733 ac_configure_args1=
1734 ac_must_keep_next=false
1735 for ac_pass in 1 2
1736 do
1737 for ac_arg
1738 do
1739 case $ac_arg in
1740 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742 | -silent | --silent | --silen | --sile | --sil)
1743 continue ;;
1744 *\'*)
1745 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 esac
1747 case $ac_pass in
1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1749 2)
1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true; then
1752 ac_must_keep_next=false # Got value, back to normal.
1753 else
1754 case $ac_arg in
1755 *=* | --config-cache | -C | -disable-* | --disable-* \
1756 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758 | -with-* | --with-* | -without-* | --without-* | --x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761 esac
1762 ;;
1763 -* ) ac_must_keep_next=true ;;
1764 esac
1765 fi
1766 ac_configure_args="$ac_configure_args '$ac_arg'"
1767 ;;
1768 esac
1769 done
1770 done
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1773
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log. We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1781 {
1782 echo
1783
1784 cat <<\_ASBOX
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1788 _ASBOX
1789 echo
1790 # The following way of writing the cache mishandles newlines in values,
1791 (
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in #(
1795 *${as_nl}*)
1796 case $ac_var in #(
1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1799 esac
1800 case $ac_var in #(
1801 _ | IFS | as_nl) ;; #(
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
1807 (set) 2>&1 |
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1810 sed -n \
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
1814 *)
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816 ;;
1817 esac |
1818 sort
1819 )
1820 echo
1821
1822 cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1829 do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 $as_echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1837
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1846 do
1847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 $as_echo "$ac_var='\''$ac_val'\''"
1852 done | sort
1853 echo
1854 fi
1855
1856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862 echo
1863 cat confdefs.h
1864 echo
1865 fi
1866 test "$ac_signal" != 0 &&
1867 $as_echo "$as_me: caught signal $ac_signal"
1868 $as_echo "$as_me: exit $exit_status"
1869 } >&5
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872 exit $exit_status
1873 ' 0
1874 for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1878
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1881
1882 # Predefined preprocessor variables.
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1907
1908
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer an explicitly selected file to automatically selected ones.
1911 ac_site_file1=NONE
1912 ac_site_file2=NONE
1913 if test -n "$CONFIG_SITE"; then
1914 ac_site_file1=$CONFIG_SITE
1915 elif test "x$prefix" != xNONE; then
1916 ac_site_file1=$prefix/share/config.site
1917 ac_site_file2=$prefix/etc/config.site
1918 else
1919 ac_site_file1=$ac_default_prefix/share/config.site
1920 ac_site_file2=$ac_default_prefix/etc/config.site
1921 fi
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1923 do
1924 test "x$ac_site_file" = xNONE && continue
1925 if test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1929 . "$ac_site_file"
1930 fi
1931 done
1932
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1939 case $cache_file in
1940 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941 *) . "./$cache_file";;
1942 esac
1943 fi
1944 else
1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1947 >$cache_file
1948 fi
1949
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955 eval ac_new_set=\$ac_env_${ac_var}_set
1956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957 eval ac_new_val=\$ac_env_${ac_var}_value
1958 case $ac_old_set,$ac_new_set in
1959 set,)
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,set)
1964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,);;
1968 *)
1969 if test "x$ac_old_val" != "x$ac_new_val"; then
1970 # differences in whitespace do not lead to failure.
1971 ac_old_val_w=`echo x $ac_old_val`
1972 ac_new_val_w=`echo x $ac_new_val`
1973 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 ac_cache_corrupted=:
1977 else
1978 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1979 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1980 eval $ac_var=\$ac_old_val
1981 fi
1982 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1983 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1984 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1985 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1986 fi;;
1987 esac
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1990 case $ac_new_val in
1991 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 *) ac_arg=$ac_var=$ac_new_val ;;
1993 esac
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997 esac
1998 fi
1999 done
2000 if $ac_cache_corrupted; then
2001 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2004 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2005 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2006 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2007 { (exit 1); exit 1; }; }
2008 fi
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034 ac_ext=c
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039
2040
2041
2042 ac_config_headers="$ac_config_headers config.h"
2043
2044
2045
2046 am__api_version='1.11'
2047
2048 ac_aux_dir=
2049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2050 if test -f "$ac_dir/install-sh"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 break
2054 elif test -f "$ac_dir/install.sh"; then
2055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 break
2058 elif test -f "$ac_dir/shtool"; then
2059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 break
2062 fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2066 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2067 { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
2078
2079 # Find a good install program. We prefer a C program (faster),
2080 # so one script is as good as another. But avoid the broken or
2081 # incompatible versions:
2082 # SysV /etc/install, /usr/sbin/install
2083 # SunOS /usr/etc/install
2084 # IRIX /sbin/install
2085 # AIX /bin/install
2086 # AmigaOS /C/install, which installs bootblocks on floppy discs
2087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090 # OS/2's system install, which has a completely different semantic
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 # Reject install programs that cannot install multiple files.
2093 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2095 if test -z "$INSTALL"; then
2096 if test "${ac_cv_path_install+set}" = set; then
2097 $as_echo_n "(cached) " >&6
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 # Account for people who put trailing slashes in PATH elements.
2105 case $as_dir/ in
2106 ./ | .// | /cC/* | \
2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109 /usr/ucb/* ) ;;
2110 *)
2111 # OSF1 and SCO ODT 3.0 have their own names for install.
2112 # Don't use installbsd from OSF since it installs stuff as root
2113 # by default.
2114 for ac_prog in ginstall scoinst install; do
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117 if test $ac_prog = install &&
2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2120 :
2121 elif test $ac_prog = install &&
2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2124 :
2125 else
2126 rm -rf conftest.one conftest.two conftest.dir
2127 echo one > conftest.one
2128 echo two > conftest.two
2129 mkdir conftest.dir
2130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2131 test -s conftest.one && test -s conftest.two &&
2132 test -s conftest.dir/conftest.one &&
2133 test -s conftest.dir/conftest.two
2134 then
2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136 break 3
2137 fi
2138 fi
2139 fi
2140 done
2141 done
2142 ;;
2143 esac
2144
2145 done
2146 IFS=$as_save_IFS
2147
2148 rm -rf conftest.one conftest.two conftest.dir
2149
2150 fi
2151 if test "${ac_cv_path_install+set}" = set; then
2152 INSTALL=$ac_cv_path_install
2153 else
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for INSTALL within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 INSTALL=$ac_install_sh
2159 fi
2160 fi
2161 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2162 $as_echo "$INSTALL" >&6; }
2163
2164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2165 # It thinks the first close brace ends the variable substitution.
2166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2167
2168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2169
2170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2171
2172 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2173 $as_echo_n "checking whether build environment is sane... " >&6; }
2174 # Just in case
2175 sleep 1
2176 echo timestamp > conftest.file
2177 # Reject unsafe characters in $srcdir or the absolute working directory
2178 # name. Accept space and tab only in the latter.
2179 am_lf='
2180 '
2181 case `pwd` in
2182 *[\\\"\#\$\&\'\`$am_lf]*)
2183 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2184 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2185 { (exit 1); exit 1; }; };;
2186 esac
2187 case $srcdir in
2188 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2189 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2190 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2191 { (exit 1); exit 1; }; };;
2192 esac
2193
2194 # Do `set' in a subshell so we don't clobber the current shell's
2195 # arguments. Must try -L first in case configure is actually a
2196 # symlink; some systems play weird games with the mod time of symlinks
2197 # (eg FreeBSD returns the mod time of the symlink's containing
2198 # directory).
2199 if (
2200 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2201 if test "$*" = "X"; then
2202 # -L didn't work.
2203 set X `ls -t "$srcdir/configure" conftest.file`
2204 fi
2205 rm -f conftest.file
2206 if test "$*" != "X $srcdir/configure conftest.file" \
2207 && test "$*" != "X conftest.file $srcdir/configure"; then
2208
2209 # If neither matched, then we have a broken ls. This can happen
2210 # if, for instance, CONFIG_SHELL is bash and it inherits a
2211 # broken ls alias from the environment. This has actually
2212 # happened. Such a system could not be considered "sane".
2213 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2214 alias in your environment" >&5
2215 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2216 alias in your environment" >&2;}
2217 { (exit 1); exit 1; }; }
2218 fi
2219
2220 test "$2" = conftest.file
2221 )
2222 then
2223 # Ok.
2224 :
2225 else
2226 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2227 Check your system clock" >&5
2228 $as_echo "$as_me: error: newly created file is older than distributed files!
2229 Check your system clock" >&2;}
2230 { (exit 1); exit 1; }; }
2231 fi
2232 { $as_echo "$as_me:$LINENO: result: yes" >&5
2233 $as_echo "yes" >&6; }
2234 test "$program_prefix" != NONE &&
2235 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2236 # Use a double $ so make ignores it.
2237 test "$program_suffix" != NONE &&
2238 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2239 # Double any \ or $.
2240 # By default was `s,x,x', remove it if useless.
2241 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2242 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2243
2244 # expand $ac_aux_dir to an absolute path
2245 am_aux_dir=`cd $ac_aux_dir && pwd`
2246
2247 if test x"${MISSING+set}" != xset; then
2248 case $am_aux_dir in
2249 *\ * | *\ *)
2250 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2251 *)
2252 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2253 esac
2254 fi
2255 # Use eval to expand $SHELL
2256 if eval "$MISSING --run true"; then
2257 am_missing_run="$MISSING --run "
2258 else
2259 am_missing_run=
2260 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2261 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262 fi
2263
2264 if test x"${install_sh}" != xset; then
2265 case $am_aux_dir in
2266 *\ * | *\ *)
2267 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2268 *)
2269 install_sh="\${SHELL} $am_aux_dir/install-sh"
2270 esac
2271 fi
2272
2273 # Installed binaries are usually stripped using `strip' when the user
2274 # run `make install-strip'. However `strip' might not be the right
2275 # tool to use in cross-compilation environments, therefore Automake
2276 # will honor the `STRIP' environment variable to overrule this program.
2277 if test "$cross_compiling" != no; then
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}strip; ac_word=$2
2281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if test "${ac_cv_prog_STRIP+set}" = set; then
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$STRIP"; then
2287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300 done
2301 done
2302 IFS=$as_save_IFS
2303
2304 fi
2305 fi
2306 STRIP=$ac_cv_prog_STRIP
2307 if test -n "$STRIP"; then
2308 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2309 $as_echo "$STRIP" >&6; }
2310 else
2311 { $as_echo "$as_me:$LINENO: result: no" >&5
2312 $as_echo "no" >&6; }
2313 fi
2314
2315
2316 fi
2317 if test -z "$ac_cv_prog_STRIP"; then
2318 ac_ct_STRIP=$STRIP
2319 # Extract the first word of "strip", so it can be a program name with args.
2320 set dummy strip; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test -n "$ac_ct_STRIP"; then
2327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_STRIP="strip"
2337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2347 if test -n "$ac_ct_STRIP"; then
2348 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2349 $as_echo "$ac_ct_STRIP" >&6; }
2350 else
2351 { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2353 fi
2354
2355 if test "x$ac_ct_STRIP" = x; then
2356 STRIP=":"
2357 else
2358 case $cross_compiling:$ac_tool_warned in
2359 yes:)
2360 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364 STRIP=$ac_ct_STRIP
2365 fi
2366 else
2367 STRIP="$ac_cv_prog_STRIP"
2368 fi
2369
2370 fi
2371 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2372
2373 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2374 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2375 if test -z "$MKDIR_P"; then
2376 if test "${ac_cv_path_mkdir+set}" = set; then
2377 $as_echo_n "(cached) " >&6
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2381 do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_prog in mkdir gmkdir; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2387 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2388 'mkdir (GNU coreutils) '* | \
2389 'mkdir (coreutils) '* | \
2390 'mkdir (fileutils) '4.1*)
2391 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2392 break 3;;
2393 esac
2394 done
2395 done
2396 done
2397 IFS=$as_save_IFS
2398
2399 fi
2400
2401 if test "${ac_cv_path_mkdir+set}" = set; then
2402 MKDIR_P="$ac_cv_path_mkdir -p"
2403 else
2404 # As a last resort, use the slow shell script. Don't cache a
2405 # value for MKDIR_P within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the value is a relative name.
2408 test -d ./--version && rmdir ./--version
2409 MKDIR_P="$ac_install_sh -d"
2410 fi
2411 fi
2412 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2413 $as_echo "$MKDIR_P" >&6; }
2414
2415 mkdir_p="$MKDIR_P"
2416 case $mkdir_p in
2417 [\\/$]* | ?:[\\/]*) ;;
2418 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2419 esac
2420
2421 for ac_prog in gawk mawk nawk awk
2422 do
2423 # Extract the first word of "$ac_prog", so it can be a program name with args.
2424 set dummy $ac_prog; ac_word=$2
2425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if test "${ac_cv_prog_AWK+set}" = set; then
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test -n "$AWK"; then
2431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_AWK="$ac_prog"
2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 AWK=$ac_cv_prog_AWK
2451 if test -n "$AWK"; then
2452 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2453 $as_echo "$AWK" >&6; }
2454 else
2455 { $as_echo "$as_me:$LINENO: result: no" >&5
2456 $as_echo "no" >&6; }
2457 fi
2458
2459
2460 test -n "$AWK" && break
2461 done
2462
2463 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2464 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2465 set x ${MAKE-make}
2466 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2467 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2468 $as_echo_n "(cached) " >&6
2469 else
2470 cat >conftest.make <<\_ACEOF
2471 SHELL = /bin/sh
2472 all:
2473 @echo '@@@%%%=$(MAKE)=@@@%%%'
2474 _ACEOF
2475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2476 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2477 *@@@%%%=?*=@@@%%%*)
2478 eval ac_cv_prog_make_${ac_make}_set=yes;;
2479 *)
2480 eval ac_cv_prog_make_${ac_make}_set=no;;
2481 esac
2482 rm -f conftest.make
2483 fi
2484 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2485 { $as_echo "$as_me:$LINENO: result: yes" >&5
2486 $as_echo "yes" >&6; }
2487 SET_MAKE=
2488 else
2489 { $as_echo "$as_me:$LINENO: result: no" >&5
2490 $as_echo "no" >&6; }
2491 SET_MAKE="MAKE=${MAKE-make}"
2492 fi
2493
2494 rm -rf .tst 2>/dev/null
2495 mkdir .tst 2>/dev/null
2496 if test -d .tst; then
2497 am__leading_dot=.
2498 else
2499 am__leading_dot=_
2500 fi
2501 rmdir .tst 2>/dev/null
2502
2503 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2504 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2505 # is not polluted with repeated "-I."
2506 am__isrc=' -I$(srcdir)'
2507 # test to see if srcdir already configured
2508 if test -f $srcdir/config.status; then
2509 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2510 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2511 { (exit 1); exit 1; }; }
2512 fi
2513 fi
2514
2515 # test whether we have cygpath
2516 if test -z "$CYGPATH_W"; then
2517 if (cygpath --version) >/dev/null 2>/dev/null; then
2518 CYGPATH_W='cygpath -w'
2519 else
2520 CYGPATH_W=echo
2521 fi
2522 fi
2523
2524
2525 # Define the identity of the package.
2526 PACKAGE='libdaemon'
2527 VERSION='0.14'
2528
2529
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE "$PACKAGE"
2532 _ACEOF
2533
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define VERSION "$VERSION"
2537 _ACEOF
2538
2539 # Some tools Automake needs.
2540
2541 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2542
2543
2544 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2545
2546
2547 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2548
2549
2550 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2551
2552
2553 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2554
2555 # We need awk for the "check" target. The system "awk" is bad on
2556 # some platforms.
2557 # Always define AMTAR for backward compatibility.
2558
2559 AMTAR=${AMTAR-"${am_missing_run}tar"}
2560
2561 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2562
2563
2564
2565
2566
2567
2568 PACKAGE_URL=http://0pointer.de/lennart/projects/libdaemon/
2569
2570
2571 LIBDAEMON_VERSION_INFO=5:0:5
2572
2573
2574 if type -p stow > /dev/null && test -d /usr/local/stow ; then
2575 { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2576 $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2577 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2578 fi
2579
2580 # Check whether --enable-silent-rules was given.
2581 if test "${enable_silent_rules+set}" = set; then
2582 enableval=$enable_silent_rules;
2583 fi
2584
2585 case $enable_silent_rules in
2586 yes) AM_DEFAULT_VERBOSITY=0;;
2587 no) AM_DEFAULT_VERBOSITY=1;;
2588 *) AM_DEFAULT_VERBOSITY=0;;
2589 esac
2590 AM_BACKSLASH='\'
2591
2592
2593 # Checks for programs.
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 CC=$ac_cv_prog_CC
2628 if test -n "$CC"; then
2629 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2630 $as_echo "$CC" >&6; }
2631 else
2632 { $as_echo "$as_me:$LINENO: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636
2637 fi
2638 if test -z "$ac_cv_prog_CC"; then
2639 ac_ct_CC=$CC
2640 # Extract the first word of "gcc", so it can be a program name with args.
2641 set dummy gcc; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$ac_ct_CC"; then
2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_ac_ct_CC="gcc"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2668 if test -n "$ac_ct_CC"; then
2669 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2670 $as_echo "$ac_ct_CC" >&6; }
2671 else
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676 if test "x$ac_ct_CC" = x; then
2677 CC=""
2678 else
2679 case $cross_compiling:$ac_tool_warned in
2680 yes:)
2681 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685 CC=$ac_ct_CC
2686 fi
2687 else
2688 CC="$ac_cv_prog_CC"
2689 fi
2690
2691 if test -z "$CC"; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}cc; ac_word=$2
2695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_CC+set}" = set; then
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_CC="${ac_tool_prefix}cc"
2711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 CC=$ac_cv_prog_CC
2721 if test -n "$CC"; then
2722 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2723 $as_echo "$CC" >&6; }
2724 else
2725 { $as_echo "$as_me:$LINENO: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 fi
2732 if test -z "$CC"; then
2733 # Extract the first word of "cc", so it can be a program name with args.
2734 set dummy cc; ac_word=$2
2735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_CC+set}" = set; then
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 ac_prog_rejected=no
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2752 ac_prog_rejected=yes
2753 continue
2754 fi
2755 ac_cv_prog_CC="cc"
2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 if test $ac_prog_rejected = yes; then
2764 # We found a bogon in the path, so make sure we never use it.
2765 set dummy $ac_cv_prog_CC
2766 shift
2767 if test $# != 0; then
2768 # We chose a different compiler from the bogus one.
2769 # However, it has the same basename, so the bogon will be chosen
2770 # first if we set CC to just the basename; use the full file name.
2771 shift
2772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2773 fi
2774 fi
2775 fi
2776 fi
2777 CC=$ac_cv_prog_CC
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2781 else
2782 { $as_echo "$as_me:$LINENO: result: no" >&5
2783 $as_echo "no" >&6; }
2784 fi
2785
2786
2787 fi
2788 if test -z "$CC"; then
2789 if test -n "$ac_tool_prefix"; then
2790 for ac_prog in cl.exe
2791 do
2792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 $as_echo_n "checking for $ac_word... " >&6; }
2796 if test "${ac_cv_prog_CC+set}" = set; then
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CC=$ac_cv_prog_CC
2820 if test -n "$CC"; then
2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2822 $as_echo "$CC" >&6; }
2823 else
2824 { $as_echo "$as_me:$LINENO: result: no" >&5
2825 $as_echo "no" >&6; }
2826 fi
2827
2828
2829 test -n "$CC" && break
2830 done
2831 fi
2832 if test -z "$CC"; then
2833 ac_ct_CC=$CC
2834 for ac_prog in cl.exe
2835 do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CC="$ac_prog"
2854 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2867 else
2868 { $as_echo "$as_me:$LINENO: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 test -n "$ac_ct_CC" && break
2874 done
2875
2876 if test "x$ac_ct_CC" = x; then
2877 CC=""
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885 CC=$ac_ct_CC
2886 fi
2887 fi
2888
2889 fi
2890
2891
2892 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&5
2896 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }; }
2899
2900 # Provide some information about the compiler.
2901 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2902 set X $ac_compile
2903 ac_compiler=$2
2904 { (ac_try="$ac_compiler --version >&5"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2910 $as_echo "$ac_try_echo") >&5
2911 (eval "$ac_compiler --version >&5") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (ac_try="$ac_compiler -v >&5"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2921 $as_echo "$ac_try_echo") >&5
2922 (eval "$ac_compiler -v >&5") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926 { (ac_try="$ac_compiler -V >&5"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_compiler -V >&5") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944
2945 int
2946 main ()
2947 {
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 ac_clean_files_save=$ac_clean_files
2954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2955 # Try to create an executable without -o first, disregard a.out.
2956 # It will help us diagnose broken compilers, and finding out an intuition
2957 # of exeext.
2958 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2959 $as_echo_n "checking for C compiler default output file name... " >&6; }
2960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2961
2962 # The possible output files:
2963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2964
2965 ac_rmfiles=
2966 for ac_file in $ac_files
2967 do
2968 case $ac_file in
2969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971 esac
2972 done
2973 rm -f $ac_rmfiles
2974
2975 if { (ac_try="$ac_link_default"
2976 case "(($ac_try" in
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982 (eval "$ac_link_default") 2>&5
2983 ac_status=$?
2984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; then
2986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2989 # so that the user can short-circuit this test for compilers unknown to
2990 # Autoconf.
2991 for ac_file in $ac_files ''
2992 do
2993 test -f "$ac_file" || continue
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2996 ;;
2997 [ab].out )
2998 # We found the default executable, but exeext='' is most
2999 # certainly right.
3000 break;;
3001 *.* )
3002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3003 then :; else
3004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 fi
3006 # We set ac_cv_exeext here because the later test for it is not
3007 # safe: cross compilers may not add the suffix if given an `-o'
3008 # argument, so we may need to know it at that point already.
3009 # Even if this section looks crufty: it has the advantage of
3010 # actually working.
3011 break;;
3012 * )
3013 break;;
3014 esac
3015 done
3016 test "$ac_cv_exeext" = no && ac_cv_exeext=
3017
3018 else
3019 ac_file=''
3020 fi
3021
3022 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3023 $as_echo "$ac_file" >&6; }
3024 if test -z "$ac_file"; then
3025 $as_echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3031 See \`config.log' for more details." >&5
3032 $as_echo "$as_me: error: C compiler cannot create executables
3033 See \`config.log' for more details." >&2;}
3034 { (exit 77); exit 77; }; }; }
3035 fi
3036
3037 ac_exeext=$ac_cv_exeext
3038
3039 # Check that the compiler produces executables we can run. If not, either
3040 # the compiler is broken, or we cross compile.
3041 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3042 $as_echo_n "checking whether the C compiler works... " >&6; }
3043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3044 # If not cross compiling, check that we can run a simple program.
3045 if test "$cross_compiling" != yes; then
3046 if { ac_try='./$ac_file'
3047 { (case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053 (eval "$ac_try") 2>&5
3054 ac_status=$?
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 cross_compiling=no
3058 else
3059 if test "$cross_compiling" = maybe; then
3060 cross_compiling=yes
3061 else
3062 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3064 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details." >&5
3067 $as_echo "$as_me: error: cannot run C compiled programs.
3068 If you meant to cross compile, use \`--host'.
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }; }
3071 fi
3072 fi
3073 fi
3074 { $as_echo "$as_me:$LINENO: result: yes" >&5
3075 $as_echo "yes" >&6; }
3076
3077 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3078 ac_clean_files=$ac_clean_files_save
3079 # Check that the compiler produces executables we can run. If not, either
3080 # the compiler is broken, or we cross compile.
3081 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3082 $as_echo_n "checking whether we are cross compiling... " >&6; }
3083 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3085
3086 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3087 $as_echo_n "checking for suffix of executables... " >&6; }
3088 if { (ac_try="$ac_link"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_link") 2>&5
3096 ac_status=$?
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; then
3099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3101 # work properly (i.e., refer to `conftest.exe'), while it won't with
3102 # `rm'.
3103 for ac_file in conftest.exe conftest conftest.*; do
3104 test -f "$ac_file" || continue
3105 case $ac_file in
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108 break;;
3109 * ) break;;
3110 esac
3111 done
3112 else
3113 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details." >&5
3117 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }; }
3120 fi
3121
3122 rm -f conftest$ac_cv_exeext
3123 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3124 $as_echo "$ac_cv_exeext" >&6; }
3125
3126 rm -f conftest.$ac_ext
3127 EXEEXT=$ac_cv_exeext
3128 ac_exeext=$EXEEXT
3129 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3130 $as_echo_n "checking for suffix of object files... " >&6; }
3131 if test "${ac_cv_objext+set}" = set; then
3132 $as_echo_n "(cached) " >&6
3133 else
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140
3141 int
3142 main ()
3143 {
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 rm -f conftest.o conftest.obj
3150 if { (ac_try="$ac_compile"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_compile") 2>&5
3158 ac_status=$?
3159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; then
3161 for ac_file in conftest.o conftest.obj conftest.*; do
3162 test -f "$ac_file" || continue;
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3166 break;;
3167 esac
3168 done
3169 else
3170 $as_echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3176 See \`config.log' for more details." >&5
3177 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }; }
3180 fi
3181
3182 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3183 fi
3184 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3185 $as_echo "$ac_cv_objext" >&6; }
3186 OBJEXT=$ac_cv_objext
3187 ac_objext=$OBJEXT
3188 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3190 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3191 $as_echo_n "(cached) " >&6
3192 else
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3199
3200 int
3201 main ()
3202 {
3203 #ifndef __GNUC__
3204 choke me
3205 #endif
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (ac_try="$ac_compile"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3218 $as_echo "$ac_try_echo") >&5
3219 (eval "$ac_compile") 2>conftest.er1
3220 ac_status=$?
3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
3224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
3229 ac_compiler_gnu=yes
3230 else
3231 $as_echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 ac_compiler_gnu=no
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239
3240 fi
3241 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3242 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3243 if test $ac_compiler_gnu = yes; then
3244 GCC=yes
3245 else
3246 GCC=
3247 fi
3248 ac_test_CFLAGS=${CFLAGS+set}
3249 ac_save_CFLAGS=$CFLAGS
3250 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3251 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3252 if test "${ac_cv_prog_cc_g+set}" = set; then
3253 $as_echo_n "(cached) " >&6
3254 else
3255 ac_save_c_werror_flag=$ac_c_werror_flag
3256 ac_c_werror_flag=yes
3257 ac_cv_prog_cc_g=no
3258 CFLAGS="-g"
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3292 ac_cv_prog_cc_g=yes
3293 else
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 CFLAGS=""
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_compile") 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } && {
3328 test -z "$ac_c_werror_flag" ||
3329 test ! -s conftest.err
3330 } && test -s conftest.$ac_objext; then
3331 :
3332 else
3333 $as_echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3335
3336 ac_c_werror_flag=$ac_save_c_werror_flag
3337 CFLAGS="-g"
3338 cat >conftest.$ac_ext <<_ACEOF
3339 /* confdefs.h. */
3340 _ACEOF
3341 cat confdefs.h >>conftest.$ac_ext
3342 cat >>conftest.$ac_ext <<_ACEOF
3343 /* end confdefs.h. */
3344
3345 int
3346 main ()
3347 {
3348
3349 ;
3350 return 0;
3351 }
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (ac_try="$ac_compile"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compile") 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest.$ac_objext; then
3371 ac_cv_prog_cc_g=yes
3372 else
3373 $as_echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3375
3376
3377 fi
3378
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 fi
3381
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 fi
3384
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3387 fi
3388 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3389 $as_echo "$ac_cv_prog_cc_g" >&6; }
3390 if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3394 CFLAGS="-g -O2"
3395 else
3396 CFLAGS="-g"
3397 fi
3398 else
3399 if test "$GCC" = yes; then
3400 CFLAGS="-O2"
3401 else
3402 CFLAGS=
3403 fi
3404 fi
3405 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3407 if test "${ac_cv_prog_cc_c89+set}" = set; then
3408 $as_echo_n "(cached) " >&6
3409 else
3410 ac_cv_prog_cc_c89=no
3411 ac_save_CC=$CC
3412 cat >conftest.$ac_ext <<_ACEOF
3413 /* confdefs.h. */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include <stdarg.h>
3419 #include <stdio.h>
3420 #include <sys/types.h>
3421 #include <sys/stat.h>
3422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3423 struct buf { int x; };
3424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425 static char *e (p, i)
3426 char **p;
3427 int i;
3428 {
3429 return p[i];
3430 }
3431 static char *f (char * (*g) (char **, int), char **p, ...)
3432 {
3433 char *s;
3434 va_list v;
3435 va_start (v,p);
3436 s = g (p, va_arg (v,int));
3437 va_end (v);
3438 return s;
3439 }
3440
3441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3442 function prototypes and stuff, but not '\xHH' hex character constants.
3443 These don't provoke an error unfortunately, instead are silently treated
3444 as 'x'. The following induces an error, until -std is added to get
3445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3446 array size at least. It's necessary to write '\x00'==0 to get something
3447 that's true only with -std. */
3448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449
3450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3451 inside strings and character constants. */
3452 #define FOO(x) 'x'
3453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3454
3455 int test (int i, double x);
3456 struct s1 {int (*f) (int a);};
3457 struct s2 {int (*f) (double a);};
3458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459 int argc;
3460 char **argv;
3461 int
3462 main ()
3463 {
3464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3471 do
3472 CC="$ac_save_CC $ac_arg"
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && {
3488 test -z "$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 } && test -s conftest.$ac_objext; then
3491 ac_cv_prog_cc_c89=$ac_arg
3492 else
3493 $as_echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext
3500 test "x$ac_cv_prog_cc_c89" != "xno" && break
3501 done
3502 rm -f conftest.$ac_ext
3503 CC=$ac_save_CC
3504
3505 fi
3506 # AC_CACHE_VAL
3507 case "x$ac_cv_prog_cc_c89" in
3508 x)
3509 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3510 $as_echo "none needed" >&6; } ;;
3511 xno)
3512 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3513 $as_echo "unsupported" >&6; } ;;
3514 *)
3515 CC="$CC $ac_cv_prog_cc_c89"
3516 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3518 esac
3519
3520
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526 DEPDIR="${am__leading_dot}deps"
3527
3528 ac_config_commands="$ac_config_commands depfiles"
3529
3530
3531 am_make=${MAKE-make}
3532 cat > confinc << 'END'
3533 am__doit:
3534 @echo this is the am__doit target
3535 .PHONY: am__doit
3536 END
3537 # If we don't find an include directive, just comment out the code.
3538 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3539 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3540 am__include="#"
3541 am__quote=
3542 _am_result=none
3543 # First try GNU make style include.
3544 echo "include confinc" > confmf
3545 # Ignore all kinds of additional output from `make'.
3546 case `$am_make -s -f confmf 2> /dev/null` in #(
3547 *the\ am__doit\ target*)
3548 am__include=include
3549 am__quote=
3550 _am_result=GNU
3551 ;;
3552 esac
3553 # Now try BSD make style include.
3554 if test "$am__include" = "#"; then
3555 echo '.include "confinc"' > confmf
3556 case `$am_make -s -f confmf 2> /dev/null` in #(
3557 *the\ am__doit\ target*)
3558 am__include=.include
3559 am__quote="\""
3560 _am_result=BSD
3561 ;;
3562 esac
3563 fi
3564
3565
3566 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3567 $as_echo "$_am_result" >&6; }
3568 rm -f confinc confmf
3569
3570 # Check whether --enable-dependency-tracking was given.
3571 if test "${enable_dependency_tracking+set}" = set; then
3572 enableval=$enable_dependency_tracking;
3573 fi
3574
3575 if test "x$enable_dependency_tracking" != xno; then
3576 am_depcomp="$ac_aux_dir/depcomp"
3577 AMDEPBACKSLASH='\'
3578 fi
3579 if test "x$enable_dependency_tracking" != xno; then
3580 AMDEP_TRUE=
3581 AMDEP_FALSE='#'
3582 else
3583 AMDEP_TRUE='#'
3584 AMDEP_FALSE=
3585 fi
3586
3587
3588
3589 depcc="$CC" am_compiler_list=
3590
3591 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592 $as_echo_n "checking dependency style of $depcc... " >&6; }
3593 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597 # We make a subdir and do the tests there. Otherwise we can end up
3598 # making bogus files that we don't know about and never remove. For
3599 # instance it was reported that on HP-UX the gcc test will end up
3600 # making a dummy file named `D' -- because `-MD' means `put the output
3601 # in D'.
3602 mkdir conftest.dir
3603 # Copy depcomp to subdir because otherwise we won't find it if we're
3604 # using a relative directory.
3605 cp "$am_depcomp" conftest.dir
3606 cd conftest.dir
3607 # We will build objects and dependencies in a subdirectory because
3608 # it helps to detect inapplicable dependency modes. For instance
3609 # both Tru64's cc and ICC support -MD to output dependencies as a
3610 # side effect of compilation, but ICC will put the dependencies in
3611 # the current directory while Tru64 will put them in the object
3612 # directory.
3613 mkdir sub
3614
3615 am_cv_CC_dependencies_compiler_type=none
3616 if test "$am_compiler_list" = ""; then
3617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3618 fi
3619 am__universal=false
3620 case " $depcc " in #(
3621 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3622 esac
3623
3624 for depmode in $am_compiler_list; do
3625 # Setup a source with many dependencies, because some compilers
3626 # like to wrap large dependency lists on column 80 (with \), and
3627 # we should not choose a depcomp mode which is confused by this.
3628 #
3629 # We need to recreate these files for each test, as the compiler may
3630 # overwrite some of them when testing with obscure command lines.
3631 # This happens at least with the AIX C compiler.
3632 : > sub/conftest.c
3633 for i in 1 2 3 4 5 6; do
3634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3635 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3636 # Solaris 8's {/usr,}/bin/sh.
3637 touch sub/conftst$i.h
3638 done
3639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3640
3641 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3642 # mode. It turns out that the SunPro C++ compiler does not properly
3643 # handle `-M -o', and we need to detect this. Also, some Intel
3644 # versions had trouble with output in subdirs
3645 am__obj=sub/conftest.${OBJEXT-o}
3646 am__minus_obj="-o $am__obj"
3647 case $depmode in
3648 gcc)
3649 # This depmode causes a compiler race in universal mode.
3650 test "$am__universal" = false || continue
3651 ;;
3652 nosideeffect)
3653 # after this tag, mechanisms are not by side-effect, so they'll
3654 # only be used when explicitly requested
3655 if test "x$enable_dependency_tracking" = xyes; then
3656 continue
3657 else
3658 break
3659 fi
3660 ;;
3661 msvisualcpp | msvcmsys)
3662 # This compiler won't grok `-c -o', but also, the minuso test has
3663 # not run yet. These depmodes are late enough in the game, and
3664 # so weak that their functioning should not be impacted.
3665 am__obj=conftest.${OBJEXT-o}
3666 am__minus_obj=
3667 ;;
3668 none) break ;;
3669 esac
3670 if depmode=$depmode \
3671 source=sub/conftest.c object=$am__obj \
3672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3674 >/dev/null 2>conftest.err &&
3675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3679 # icc doesn't choke on unknown options, it will just issue warnings
3680 # or remarks (even with -Werror). So we grep stderr for any message
3681 # that says an option was ignored or not supported.
3682 # When given -MP, icc 7.0 and 7.1 complain thusly:
3683 # icc: Command line warning: ignoring option '-M'; no argument required
3684 # The diagnosis changed in icc 8.0:
3685 # icc: Command line remark: option '-MP' not supported
3686 if (grep 'ignoring option' conftest.err ||
3687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3688 am_cv_CC_dependencies_compiler_type=$depmode
3689 break
3690 fi
3691 fi
3692 done
3693
3694 cd ..
3695 rm -rf conftest.dir
3696 else
3697 am_cv_CC_dependencies_compiler_type=none
3698 fi
3699
3700 fi
3701 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3702 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3704
3705 if
3706 test "x$enable_dependency_tracking" != xno \
3707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708 am__fastdepCC_TRUE=
3709 am__fastdepCC_FALSE='#'
3710 else
3711 am__fastdepCC_TRUE='#'
3712 am__fastdepCC_FALSE=
3713 fi
3714
3715
3716 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3717 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3718 if test "${ac_cv_prog_cc_c99+set}" = set; then
3719 $as_echo_n "(cached) " >&6
3720 else
3721 ac_cv_prog_cc_c99=no
3722 ac_save_CC=$CC
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #include <stdarg.h>
3730 #include <stdbool.h>
3731 #include <stdlib.h>
3732 #include <wchar.h>
3733 #include <stdio.h>
3734
3735 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3736 #define debug(...) fprintf (stderr, __VA_ARGS__)
3737 #define showlist(...) puts (#__VA_ARGS__)
3738 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3739 static void
3740 test_varargs_macros (void)
3741 {
3742 int x = 1234;
3743 int y = 5678;
3744 debug ("Flag");
3745 debug ("X = %d\n", x);
3746 showlist (The first, second, and third items.);
3747 report (x>y, "x is %d but y is %d", x, y);
3748 }
3749
3750 // Check long long types.
3751 #define BIG64 18446744073709551615ull
3752 #define BIG32 4294967295ul
3753 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3754 #if !BIG_OK
3755 your preprocessor is broken;
3756 #endif
3757 #if BIG_OK
3758 #else
3759 your preprocessor is broken;
3760 #endif
3761 static long long int bignum = -9223372036854775807LL;
3762 static unsigned long long int ubignum = BIG64;
3763
3764 struct incomplete_array
3765 {
3766 int datasize;
3767 double data[];
3768 };
3769
3770 struct named_init {
3771 int number;
3772 const wchar_t *name;
3773 double average;
3774 };
3775
3776 typedef const char *ccp;
3777
3778 static inline int
3779 test_restrict (ccp restrict text)
3780 {
3781 // See if C++-style comments work.
3782 // Iterate through items via the restricted pointer.
3783 // Also check for declarations in for loops.
3784 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3785 continue;
3786 return 0;
3787 }
3788
3789 // Check varargs and va_copy.
3790 static void
3791 test_varargs (const char *format, ...)
3792 {
3793 va_list args;
3794 va_start (args, format);
3795 va_list args_copy;
3796 va_copy (args_copy, args);
3797
3798 const char *str;
3799 int number;
3800 float fnumber;
3801
3802 while (*format)
3803 {
3804 switch (*format++)
3805 {
3806 case 's': // string
3807 str = va_arg (args_copy, const char *);
3808 break;
3809 case 'd': // int
3810 number = va_arg (args_copy, int);
3811 break;
3812 case 'f': // float
3813 fnumber = va_arg (args_copy, double);
3814 break;
3815 default:
3816 break;
3817 }
3818 }
3819 va_end (args_copy);
3820 va_end (args);
3821 }
3822
3823 int
3824 main ()
3825 {
3826
3827 // Check bool.
3828 _Bool success = false;
3829
3830 // Check restrict.
3831 if (test_restrict ("String literal") == 0)
3832 success = true;
3833 char *restrict newvar = "Another string";
3834
3835 // Check varargs.
3836 test_varargs ("s, d' f .", "string", 65, 34.234);
3837 test_varargs_macros ();
3838
3839 // Check flexible array members.
3840 struct incomplete_array *ia =
3841 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3842 ia->datasize = 10;
3843 for (int i = 0; i < ia->datasize; ++i)
3844 ia->data[i] = i * 1.234;
3845
3846 // Check named initializers.
3847 struct named_init ni = {
3848 .number = 34,
3849 .name = L"Test wide string",
3850 .average = 543.34343,
3851 };
3852
3853 ni.number = 58;
3854
3855 int dynamic_array[ni.number];
3856 dynamic_array[ni.number - 1] = 543;
3857
3858 // work around unused variable warnings
3859 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3860 || dynamic_array[ni.number - 1] != 543);
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3867 do
3868 CC="$ac_save_CC $ac_arg"
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3876 $as_echo "$ac_try_echo") >&5
3877 (eval "$ac_compile") 2>conftest.er1
3878 ac_status=$?
3879 grep -v '^ *+' conftest.er1 >conftest.err
3880 rm -f conftest.er1
3881 cat conftest.err >&5
3882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); } && {
3884 test -z "$ac_c_werror_flag" ||
3885 test ! -s conftest.err
3886 } && test -s conftest.$ac_objext; then
3887 ac_cv_prog_cc_c99=$ac_arg
3888 else
3889 $as_echo "$as_me: failed program was:" >&5
3890 sed 's/^/| /' conftest.$ac_ext >&5
3891
3892
3893 fi
3894
3895 rm -f core conftest.err conftest.$ac_objext
3896 test "x$ac_cv_prog_cc_c99" != "xno" && break
3897 done
3898 rm -f conftest.$ac_ext
3899 CC=$ac_save_CC
3900
3901 fi
3902 # AC_CACHE_VAL
3903 case "x$ac_cv_prog_cc_c99" in
3904 x)
3905 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3906 $as_echo "none needed" >&6; } ;;
3907 xno)
3908 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3909 $as_echo "unsupported" >&6; } ;;
3910 *)
3911 CC="$CC $ac_cv_prog_cc_c99"
3912 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3913 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3914 esac
3915
3916
3917 if test "x$CC" != xcc; then
3918 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3919 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3920 else
3921 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3922 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3923 fi
3924 set dummy $CC; ac_cc=`$as_echo "$2" |
3925 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3926 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3927 $as_echo_n "(cached) " >&6
3928 else
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935
3936 int
3937 main ()
3938 {
3939
3940 ;
3941 return 0;
3942 }
3943 _ACEOF
3944 # Make sure it works both with $CC and with simple cc.
3945 # We do the test twice because some compilers refuse to overwrite an
3946 # existing .o file with -o, though they will create one.
3947 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3948 rm -f conftest2.*
3949 if { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3954 $as_echo "$ac_try_echo") >&5
3955 (eval "$ac_try") 2>&5
3956 ac_status=$?
3957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3964 $as_echo "$ac_try_echo") >&5
3965 (eval "$ac_try") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); };
3969 then
3970 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3971 if test "x$CC" != xcc; then
3972 # Test first that cc exists at all.
3973 if { ac_try='cc -c conftest.$ac_ext >&5'
3974 { (case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3979 $as_echo "$ac_try_echo") >&5
3980 (eval "$ac_try") 2>&5
3981 ac_status=$?
3982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3985 rm -f conftest2.*
3986 if { (case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_try") 2>&5
3993 ac_status=$?
3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } &&
3996 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_try") 2>&5
4003 ac_status=$?
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); };
4006 then
4007 # cc works too.
4008 :
4009 else
4010 # cc exists but doesn't like -o.
4011 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4012 fi
4013 fi
4014 fi
4015 else
4016 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4017 fi
4018 rm -f core conftest*
4019
4020 fi
4021 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4022 { $as_echo "$as_me:$LINENO: result: yes" >&5
4023 $as_echo "yes" >&6; }
4024 else
4025 { $as_echo "$as_me:$LINENO: result: no" >&5
4026 $as_echo "no" >&6; }
4027
4028 cat >>confdefs.h <<\_ACEOF
4029 #define NO_MINUS_C_MINUS_O 1
4030 _ACEOF
4031
4032 fi
4033
4034 # FIXME: we rely on the cache variable name because
4035 # there is no other way.
4036 set dummy $CC
4037 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4038 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4039 if test "$am_t" != yes; then
4040 # Losing compiler, so override with the script.
4041 # FIXME: It is wrong to rewrite CC.
4042 # But if we don't then we get into trouble of one sort or another.
4043 # A longer-term fix would be to have automake use am__CC in this case,
4044 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4045 CC="$am_aux_dir/compile $CC"
4046 fi
4047
4048
4049
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4057 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4058 # On Suns, sometimes $CPP names a directory.
4059 if test -n "$CPP" && test -d "$CPP"; then
4060 CPP=
4061 fi
4062 if test -z "$CPP"; then
4063 if test "${ac_cv_prog_CPP+set}" = set; then
4064 $as_echo_n "(cached) " >&6
4065 else
4066 # Double quotes because CPP needs to be expanded
4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4068 do
4069 ac_preproc_ok=false
4070 for ac_c_preproc_warn_flag in '' yes
4071 do
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error" is here to catch this case.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #ifdef __STDC__
4085 # include <limits.h>
4086 #else
4087 # include <assert.h>
4088 #endif
4089 Syntax error
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev/null && {
4105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 }; then
4108 :
4109 else
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 # Broken: fails on valid input.
4114 continue
4115 fi
4116
4117 rm -f conftest.err conftest.$ac_ext
4118
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4128 _ACEOF
4129 if { (ac_try="$ac_cpp conftest.$ac_ext"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } >/dev/null && {
4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 }; then
4146 # Broken: success on invalid input.
4147 continue
4148 else
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 # Passes both tests.
4153 ac_preproc_ok=:
4154 break
4155 fi
4156
4157 rm -f conftest.err conftest.$ac_ext
4158
4159 done
4160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161 rm -f conftest.err conftest.$ac_ext
4162 if $ac_preproc_ok; then
4163 break
4164 fi
4165
4166 done
4167 ac_cv_prog_CPP=$CPP
4168
4169 fi
4170 CPP=$ac_cv_prog_CPP
4171 else
4172 ac_cv_prog_CPP=$CPP
4173 fi
4174 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4175 $as_echo "$CPP" >&6; }
4176 ac_preproc_ok=false
4177 for ac_c_preproc_warn_flag in '' yes
4178 do
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error" is here to catch this case.
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #ifdef __STDC__
4192 # include <limits.h>
4193 #else
4194 # include <assert.h>
4195 #endif
4196 Syntax error
4197 _ACEOF
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4204 $as_echo "$ac_try_echo") >&5
4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4214 }; then
4215 :
4216 else
4217 $as_echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 # Broken: fails on valid input.
4221 continue
4222 fi
4223
4224 rm -f conftest.err conftest.$ac_ext
4225
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if { (ac_try="$ac_cpp conftest.$ac_ext"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4242 $as_echo "$ac_try_echo") >&5
4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 }; then
4253 # Broken: success on invalid input.
4254 continue
4255 else
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 # Passes both tests.
4260 ac_preproc_ok=:
4261 break
4262 fi
4263
4264 rm -f conftest.err conftest.$ac_ext
4265
4266 done
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4270 :
4271 else
4272 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4275 See \`config.log' for more details." >&5
4276 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log' for more details." >&2;}
4278 { (exit 1); exit 1; }; }; }
4279 fi
4280
4281 ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287
4288 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4290 if test "${ac_cv_path_GREP+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -z "$GREP"; then
4294 ac_path_GREP_found=false
4295 # Loop through the user's path and test for each of PROGNAME-LIST
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_prog in grep ggrep; do
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4305 # Check for GNU ac_path_GREP and select it if it is found.
4306 # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4308 *GNU*)
4309 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4310 *)
4311 ac_count=0
4312 $as_echo_n 0123456789 >"conftest.in"
4313 while :
4314 do
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'GREP' >> "conftest.nl"
4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4320 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4321 ac_count=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_GREP="$ac_path_GREP"
4325 ac_path_GREP_max=$ac_count
4326 fi
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4329 done
4330 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 esac
4332
4333 $ac_path_GREP_found && break 3
4334 done
4335 done
4336 done
4337 IFS=$as_save_IFS
4338 if test -z "$ac_cv_path_GREP"; then
4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4340 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4341 { (exit 1); exit 1; }; }
4342 fi
4343 else
4344 ac_cv_path_GREP=$GREP
4345 fi
4346
4347 fi
4348 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4349 $as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP="$ac_cv_path_GREP"
4351
4352
4353 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4354 $as_echo_n "checking for egrep... " >&6; }
4355 if test "${ac_cv_path_EGREP+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4359 then ac_cv_path_EGREP="$GREP -E"
4360 else
4361 if test -z "$EGREP"; then
4362 ac_path_EGREP_found=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_prog in egrep; do
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4373 # Check for GNU ac_path_EGREP and select it if it is found.
4374 # Check for GNU $ac_path_EGREP
4375 case `"$ac_path_EGREP" --version 2>&1` in
4376 *GNU*)
4377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4378 *)
4379 ac_count=0
4380 $as_echo_n 0123456789 >"conftest.in"
4381 while :
4382 do
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo 'EGREP' >> "conftest.nl"
4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389 ac_count=`expr $ac_count + 1`
4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_EGREP="$ac_path_EGREP"
4393 ac_path_EGREP_max=$ac_count
4394 fi
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4397 done
4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399 esac
4400
4401 $ac_path_EGREP_found && break 3
4402 done
4403 done
4404 done
4405 IFS=$as_save_IFS
4406 if test -z "$ac_cv_path_EGREP"; then
4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4408 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4409 { (exit 1); exit 1; }; }
4410 fi
4411 else
4412 ac_cv_path_EGREP=$EGREP
4413 fi
4414
4415 fi
4416 fi
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP="$ac_cv_path_EGREP"
4420
4421
4422 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <stdlib.h>
4434 #include <stdarg.h>
4435 #include <string.h>
4436 #include <float.h>
4437
4438 int
4439 main ()
4440 {
4441
4442 ;
4443 return 0;
4444 }
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_stdc=yes
4465 else
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 ac_cv_header_stdc=no
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <string.h>
4483
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then
4487 :
4488 else
4489 ac_cv_header_stdc=no
4490 fi
4491 rm -f conftest*
4492
4493 fi
4494
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <stdlib.h>
4504
4505 _ACEOF
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "free" >/dev/null 2>&1; then
4508 :
4509 else
4510 ac_cv_header_stdc=no
4511 fi
4512 rm -f conftest*
4513
4514 fi
4515
4516 if test $ac_cv_header_stdc = yes; then
4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4518 if test "$cross_compiling" = yes; then
4519 :
4520 else
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h. */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4527 #include <ctype.h>
4528 #include <stdlib.h>
4529 #if ((' ' & 0x0FF) == 0x020)
4530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4532 #else
4533 # define ISLOWER(c) \
4534 (('a' <= (c) && (c) <= 'i') \
4535 || ('j' <= (c) && (c) <= 'r') \
4536 || ('s' <= (c) && (c) <= 'z'))
4537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #endif
4539
4540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4541 int
4542 main ()
4543 {
4544 int i;
4545 for (i = 0; i < 256; i++)
4546 if (XOR (islower (i), ISLOWER (i))
4547 || toupper (i) != TOUPPER (i))
4548 return 2;
4549 return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4559 $as_echo "$ac_try_echo") >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564 { (case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 :
4575 else
4576 $as_echo "$as_me: program exited with status $ac_status" >&5
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 ( exit $ac_status )
4581 ac_cv_header_stdc=no
4582 fi
4583 rm -rf conftest.dSYM
4584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4585 fi
4586
4587
4588 fi
4589 fi
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4591 $as_echo "$ac_cv_header_stdc" >&6; }
4592 if test $ac_cv_header_stdc = yes; then
4593
4594 cat >>confdefs.h <<\_ACEOF
4595 #define STDC_HEADERS 1
4596 _ACEOF
4597
4598 fi
4599
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4611 inttypes.h stdint.h unistd.h
4612 do
4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 $as_echo_n "checking for $ac_header... " >&6; }
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4626
4627 #include <$ac_header>
4628 _ACEOF
4629 rm -f conftest.$ac_objext
4630 if { (ac_try="$ac_compile"
4631 case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compile") 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest.$ac_objext; then
4647 eval "$as_ac_Header=yes"
4648 else
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 eval "$as_ac_Header=no"
4653 fi
4654
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 fi
4657 ac_res=`eval 'as_val=${'$as_ac_Header'}
4658 $as_echo "$as_val"'`
4659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4660 $as_echo "$ac_res" >&6; }
4661 as_val=`eval 'as_val=${'$as_ac_Header'}
4662 $as_echo "$as_val"'`
4663 if test "x$as_val" = x""yes; then
4664 cat >>confdefs.h <<_ACEOF
4665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4666 _ACEOF
4667
4668 fi
4669
4670 done
4671
4672
4673
4674 if test "${ac_cv_header_minix_config_h+set}" = set; then
4675 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4676 $as_echo_n "checking for minix/config.h... " >&6; }
4677 if test "${ac_cv_header_minix_config_h+set}" = set; then
4678 $as_echo_n "(cached) " >&6
4679 fi
4680 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4681 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4682 else
4683 # Is the header compilable?
4684 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4685 $as_echo_n "checking minix/config.h usability... " >&6; }
4686 cat >conftest.$ac_ext <<_ACEOF
4687 /* confdefs.h. */
4688 _ACEOF
4689 cat confdefs.h >>conftest.$ac_ext
4690 cat >>conftest.$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 $ac_includes_default
4693 #include <minix/config.h>
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (ac_try="$ac_compile"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702 $as_echo "$ac_try_echo") >&5
4703 (eval "$ac_compile") 2>conftest.er1
4704 ac_status=$?
4705 grep -v '^ *+' conftest.er1 >conftest.err
4706 rm -f conftest.er1
4707 cat conftest.err >&5
4708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } && {
4710 test -z "$ac_c_werror_flag" ||
4711 test ! -s conftest.err
4712 } && test -s conftest.$ac_objext; then
4713 ac_header_compiler=yes
4714 else
4715 $as_echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718 ac_header_compiler=no
4719 fi
4720
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4723 $as_echo "$ac_header_compiler" >&6; }
4724
4725 # Is the header present?
4726 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4727 $as_echo_n "checking minix/config.h presence... " >&6; }
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <minix/config.h>
4735 _ACEOF
4736 if { (ac_try="$ac_cpp conftest.$ac_ext"
4737 case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740 esac
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev/null && {
4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 }; then
4753 ac_header_preproc=yes
4754 else
4755 $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ac_header_preproc=no
4759 fi
4760
4761 rm -f conftest.err conftest.$ac_ext
4762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4763 $as_echo "$ac_header_preproc" >&6; }
4764
4765 # So? What about this header?
4766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4767 yes:no: )
4768 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4769 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4770 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4771 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4772 ac_header_preproc=yes
4773 ;;
4774 no:yes:* )
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4787 ( cat <<\_ASBOX
4788 ## ---------------------------------------------- ##
4789 ## Report this to mzqnrzba (at) 0pointer (dot) de ##
4790 ## ---------------------------------------------- ##
4791 _ASBOX
4792 ) | sed "s/^/$as_me: WARNING: /" >&2
4793 ;;
4794 esac
4795 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4796 $as_echo_n "checking for minix/config.h... " >&6; }
4797 if test "${ac_cv_header_minix_config_h+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4799 else
4800 ac_cv_header_minix_config_h=$ac_header_preproc
4801 fi
4802 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4803 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4804
4805 fi
4806 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4807 MINIX=yes
4808 else
4809 MINIX=
4810 fi
4811
4812
4813 if test "$MINIX" = yes; then
4814
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _POSIX_SOURCE 1
4817 _ACEOF
4818
4819
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _POSIX_1_SOURCE 2
4822 _ACEOF
4823
4824
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _MINIX 1
4827 _ACEOF
4828
4829 fi
4830
4831
4832
4833 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4834 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4835 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4836 $as_echo_n "(cached) " >&6
4837 else
4838 cat >conftest.$ac_ext <<_ACEOF
4839 /* confdefs.h. */
4840 _ACEOF
4841 cat confdefs.h >>conftest.$ac_ext
4842 cat >>conftest.$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4844
4845 # define __EXTENSIONS__ 1
4846 $ac_includes_default
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (ac_try="$ac_compile"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_compile") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest.$ac_objext; then
4873 ac_cv_safe_to_define___extensions__=yes
4874 else
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878 ac_cv_safe_to_define___extensions__=no
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 fi
4883 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4884 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4885 test $ac_cv_safe_to_define___extensions__ = yes &&
4886 cat >>confdefs.h <<\_ACEOF
4887 #define __EXTENSIONS__ 1
4888 _ACEOF
4889
4890 cat >>confdefs.h <<\_ACEOF
4891 #define _ALL_SOURCE 1
4892 _ACEOF
4893
4894 cat >>confdefs.h <<\_ACEOF
4895 #define _GNU_SOURCE 1
4896 _ACEOF
4897
4898 cat >>confdefs.h <<\_ACEOF
4899 #define _POSIX_PTHREAD_SEMANTICS 1
4900 _ACEOF
4901
4902 cat >>confdefs.h <<\_ACEOF
4903 #define _TANDEM_SOURCE 1
4904 _ACEOF
4905
4906
4907
4908 # Find a good install program. We prefer a C program (faster),
4909 # so one script is as good as another. But avoid the broken or
4910 # incompatible versions:
4911 # SysV /etc/install, /usr/sbin/install
4912 # SunOS /usr/etc/install
4913 # IRIX /sbin/install
4914 # AIX /bin/install
4915 # AmigaOS /C/install, which installs bootblocks on floppy discs
4916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4919 # OS/2's system install, which has a completely different semantic
4920 # ./install, which can be erroneously created by make from ./install.sh.
4921 # Reject install programs that cannot install multiple files.
4922 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4923 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4924 if test -z "$INSTALL"; then
4925 if test "${ac_cv_path_install+set}" = set; then
4926 $as_echo_n "(cached) " >&6
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 # Account for people who put trailing slashes in PATH elements.
4934 case $as_dir/ in
4935 ./ | .// | /cC/* | \
4936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4938 /usr/ucb/* ) ;;
4939 *)
4940 # OSF1 and SCO ODT 3.0 have their own names for install.
4941 # Don't use installbsd from OSF since it installs stuff as root
4942 # by default.
4943 for ac_prog in ginstall scoinst install; do
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4946 if test $ac_prog = install &&
4947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4948 # AIX install. It has an incompatible calling convention.
4949 :
4950 elif test $ac_prog = install &&
4951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4952 # program-specific install script used by HP pwplus--don't use.
4953 :
4954 else
4955 rm -rf conftest.one conftest.two conftest.dir
4956 echo one > conftest.one
4957 echo two > conftest.two
4958 mkdir conftest.dir
4959 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4960 test -s conftest.one && test -s conftest.two &&
4961 test -s conftest.dir/conftest.one &&
4962 test -s conftest.dir/conftest.two
4963 then
4964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4965 break 3
4966 fi
4967 fi
4968 fi
4969 done
4970 done
4971 ;;
4972 esac
4973
4974 done
4975 IFS=$as_save_IFS
4976
4977 rm -rf conftest.one conftest.two conftest.dir
4978
4979 fi
4980 if test "${ac_cv_path_install+set}" = set; then
4981 INSTALL=$ac_cv_path_install
4982 else
4983 # As a last resort, use the slow shell script. Don't cache a
4984 # value for INSTALL within a source directory, because that will
4985 # break other packages using the cache if that directory is
4986 # removed, or if the value is a relative name.
4987 INSTALL=$ac_install_sh
4988 fi
4989 fi
4990 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4991 $as_echo "$INSTALL" >&6; }
4992
4993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4994 # It thinks the first close brace ends the variable substitution.
4995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4996
4997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4998
4999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5000
5001 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5002 $as_echo_n "checking whether ln -s works... " >&6; }
5003 LN_S=$as_ln_s
5004 if test "$LN_S" = "ln -s"; then
5005 { $as_echo "$as_me:$LINENO: result: yes" >&5
5006 $as_echo "yes" >&6; }
5007 else
5008 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5009 $as_echo "no, using $LN_S" >&6; }
5010 fi
5011
5012 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5013 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5014 set x ${MAKE-make}
5015 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5016 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat >conftest.make <<\_ACEOF
5020 SHELL = /bin/sh
5021 all:
5022 @echo '@@@%%%=$(MAKE)=@@@%%%'
5023 _ACEOF
5024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5025 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5026 *@@@%%%=?*=@@@%%%*)
5027 eval ac_cv_prog_make_${ac_make}_set=yes;;
5028 *)
5029 eval ac_cv_prog_make_${ac_make}_set=no;;
5030 esac
5031 rm -f conftest.make
5032 fi
5033 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5034 { $as_echo "$as_me:$LINENO: result: yes" >&5
5035 $as_echo "yes" >&6; }
5036 SET_MAKE=
5037 else
5038 { $as_echo "$as_me:$LINENO: result: no" >&5
5039 $as_echo "no" >&6; }
5040 SET_MAKE="MAKE=${MAKE-make}"
5041 fi
5042
5043 case `pwd` in
5044 *\ * | *\ *)
5045 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5046 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5047 esac
5048
5049
5050
5051 macro_version='2.2.6'
5052 macro_revision='1.3012'
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 ltmain="$ac_aux_dir/ltmain.sh"
5067
5068 # Make sure we can run config.sub.
5069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5070 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5071 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5072 { (exit 1); exit 1; }; }
5073
5074 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5075 $as_echo_n "checking build system type... " >&6; }
5076 if test "${ac_cv_build+set}" = set; then
5077 $as_echo_n "(cached) " >&6
5078 else
5079 ac_build_alias=$build_alias
5080 test "x$ac_build_alias" = x &&
5081 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5082 test "x$ac_build_alias" = x &&
5083 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5084 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5085 { (exit 1); exit 1; }; }
5086 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5087 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5088 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5089 { (exit 1); exit 1; }; }
5090
5091 fi
5092 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5093 $as_echo "$ac_cv_build" >&6; }
5094 case $ac_cv_build in
5095 *-*-*) ;;
5096 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5097 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5098 { (exit 1); exit 1; }; };;
5099 esac
5100 build=$ac_cv_build
5101 ac_save_IFS=$IFS; IFS='-'
5102 set x $ac_cv_build
5103 shift
5104 build_cpu=$1
5105 build_vendor=$2
5106 shift; shift
5107 # Remember, the first character of IFS is used to create $*,
5108 # except with old shells:
5109 build_os=$*
5110 IFS=$ac_save_IFS
5111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5112
5113
5114 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5115 $as_echo_n "checking host system type... " >&6; }
5116 if test "${ac_cv_host+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test "x$host_alias" = x; then
5120 ac_cv_host=$ac_cv_build
5121 else
5122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5123 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5124 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5125 { (exit 1); exit 1; }; }
5126 fi
5127
5128 fi
5129 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5130 $as_echo "$ac_cv_host" >&6; }
5131 case $ac_cv_host in
5132 *-*-*) ;;
5133 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5134 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5135 { (exit 1); exit 1; }; };;
5136 esac
5137 host=$ac_cv_host
5138 ac_save_IFS=$IFS; IFS='-'
5139 set x $ac_cv_host
5140 shift
5141 host_cpu=$1
5142 host_vendor=$2
5143 shift; shift
5144 # Remember, the first character of IFS is used to create $*,
5145 # except with old shells:
5146 host_os=$*
5147 IFS=$ac_save_IFS
5148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5149
5150
5151 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5153 if test "${ac_cv_path_SED+set}" = set; then
5154 $as_echo_n "(cached) " >&6
5155 else
5156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5157 for ac_i in 1 2 3 4 5 6 7; do
5158 ac_script="$ac_script$as_nl$ac_script"
5159 done
5160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5161 $as_unset ac_script || ac_script=
5162 if test -z "$SED"; then
5163 ac_path_SED_found=false
5164 # Loop through the user's path and test for each of PROGNAME-LIST
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_prog in sed gsed; do
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5174 # Check for GNU ac_path_SED and select it if it is found.
5175 # Check for GNU $ac_path_SED
5176 case `"$ac_path_SED" --version 2>&1` in
5177 *GNU*)
5178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5179 *)
5180 ac_count=0
5181 $as_echo_n 0123456789 >"conftest.in"
5182 while :
5183 do
5184 cat "conftest.in" "conftest.in" >"conftest.tmp"
5185 mv "conftest.tmp" "conftest.in"
5186 cp "conftest.in" "conftest.nl"
5187 $as_echo '' >> "conftest.nl"
5188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5190 ac_count=`expr $ac_count + 1`
5191 if test $ac_count -gt ${ac_path_SED_max-0}; then
5192 # Best one so far, save it but keep looking for a better one
5193 ac_cv_path_SED="$ac_path_SED"
5194 ac_path_SED_max=$ac_count
5195 fi
5196 # 10*(2^10) chars as input seems more than enough
5197 test $ac_count -gt 10 && break
5198 done
5199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5200 esac
5201
5202 $ac_path_SED_found && break 3
5203 done
5204 done
5205 done
5206 IFS=$as_save_IFS
5207 if test -z "$ac_cv_path_SED"; then
5208 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5209 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5210 { (exit 1); exit 1; }; }
5211 fi
5212 else
5213 ac_cv_path_SED=$SED
5214 fi
5215
5216 fi
5217 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5218 $as_echo "$ac_cv_path_SED" >&6; }
5219 SED="$ac_cv_path_SED"
5220 rm -f conftest.sed
5221
5222 test -z "$SED" && SED=sed
5223 Xsed="$SED -e 1s/^X//"
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5236 $as_echo_n "checking for fgrep... " >&6; }
5237 if test "${ac_cv_path_FGREP+set}" = set; then
5238 $as_echo_n "(cached) " >&6
5239 else
5240 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5241 then ac_cv_path_FGREP="$GREP -F"
5242 else
5243 if test -z "$FGREP"; then
5244 ac_path_FGREP_found=false
5245 # Loop through the user's path and test for each of PROGNAME-LIST
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_prog in fgrep; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5254 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5255 # Check for GNU ac_path_FGREP and select it if it is found.
5256 # Check for GNU $ac_path_FGREP
5257 case `"$ac_path_FGREP" --version 2>&1` in
5258 *GNU*)
5259 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5260 *)
5261 ac_count=0
5262 $as_echo_n 0123456789 >"conftest.in"
5263 while :
5264 do
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 $as_echo 'FGREP' >> "conftest.nl"
5269 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 ac_count=`expr $ac_count + 1`
5272 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_FGREP="$ac_path_FGREP"
5275 ac_path_FGREP_max=$ac_count
5276 fi
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5279 done
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 esac
5282
5283 $ac_path_FGREP_found && break 3
5284 done
5285 done
5286 done
5287 IFS=$as_save_IFS
5288 if test -z "$ac_cv_path_FGREP"; then
5289 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5290 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5291 { (exit 1); exit 1; }; }
5292 fi
5293 else
5294 ac_cv_path_FGREP=$FGREP
5295 fi
5296
5297 fi
5298 fi
5299 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5300 $as_echo "$ac_cv_path_FGREP" >&6; }
5301 FGREP="$ac_cv_path_FGREP"
5302
5303
5304 test -z "$GREP" && GREP=grep
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 # Check whether --with-gnu-ld was given.
5325 if test "${with_gnu_ld+set}" = set; then
5326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5327 else
5328 with_gnu_ld=no
5329 fi
5330
5331 ac_prog=ld
5332 if test "$GCC" = yes; then
5333 # Check if gcc -print-prog-name=ld gives a path.
5334 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5335 $as_echo_n "checking for ld used by $CC... " >&6; }
5336 case $host in
5337 *-*-mingw*)
5338 # gcc leaves a trailing carriage return which upsets mingw
5339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5340 *)
5341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5342 esac
5343 case $ac_prog in
5344 # Accept absolute paths.
5345 [\\/]* | ?:[\\/]*)
5346 re_direlt='/[^/][^/]*/\.\./'
5347 # Canonicalize the pathname of ld
5348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5351 done
5352 test -z "$LD" && LD="$ac_prog"
5353 ;;
5354 "")
5355 # If it fails, then pretend we aren't using GCC.
5356 ac_prog=ld
5357 ;;
5358 *)
5359 # If it is relative, then search for the first ld in PATH.
5360 with_gnu_ld=unknown
5361 ;;
5362 esac
5363 elif test "$with_gnu_ld" = yes; then
5364 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5365 $as_echo_n "checking for GNU ld... " >&6; }
5366 else
5367 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5368 $as_echo_n "checking for non-GNU ld... " >&6; }
5369 fi
5370 if test "${lt_cv_path_LD+set}" = set; then
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -z "$LD"; then
5374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5375 for ac_dir in $PATH; do
5376 IFS="$lt_save_ifs"
5377 test -z "$ac_dir" && ac_dir=.
5378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5379 lt_cv_path_LD="$ac_dir/$ac_prog"
5380 # Check to see if the program is GNU ld. I'd rather use --version,
5381 # but apparently some variants of GNU ld only accept -v.
5382 # Break only if it was the GNU/non-GNU ld that we prefer.
5383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 test "$with_gnu_ld" != no && break
5386 ;;
5387 *)
5388 test "$with_gnu_ld" != yes && break
5389 ;;
5390 esac
5391 fi
5392 done
5393 IFS="$lt_save_ifs"
5394 else
5395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5396 fi
5397 fi
5398
5399 LD="$lt_cv_path_LD"
5400 if test -n "$LD"; then
5401 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5402 $as_echo "$LD" >&6; }
5403 else
5404 { $as_echo "$as_me:$LINENO: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5408 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5409 { (exit 1); exit 1; }; }
5410 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5411 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5412 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5413 $as_echo_n "(cached) " >&6
5414 else
5415 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5416 case `$LD -v 2>&1 </dev/null` in
5417 *GNU* | *'with BFD'*)
5418 lt_cv_prog_gnu_ld=yes
5419 ;;
5420 *)
5421 lt_cv_prog_gnu_ld=no
5422 ;;
5423 esac
5424 fi
5425 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5426 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5427 with_gnu_ld=$lt_cv_prog_gnu_ld
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5438 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5439 if test "${lt_cv_path_NM+set}" = set; then
5440 $as_echo_n "(cached) " >&6
5441 else
5442 if test -n "$NM"; then
5443 # Let the user override the test.
5444 lt_cv_path_NM="$NM"
5445 else
5446 lt_nm_to_check="${ac_tool_prefix}nm"
5447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5448 lt_nm_to_check="$lt_nm_to_check nm"
5449 fi
5450 for lt_tmp_nm in $lt_nm_to_check; do
5451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5453 IFS="$lt_save_ifs"
5454 test -z "$ac_dir" && ac_dir=.
5455 tmp_nm="$ac_dir/$lt_tmp_nm"
5456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5457 # Check to see if the nm accepts a BSD-compat flag.
5458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5459 # nm: unknown option "B" ignored
5460 # Tru64's nm complains that /dev/null is an invalid object file
5461 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5462 */dev/null* | *'Invalid file or object type'*)
5463 lt_cv_path_NM="$tmp_nm -B"
5464 break
5465 ;;
5466 *)
5467 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5468 */dev/null*)
5469 lt_cv_path_NM="$tmp_nm -p"
5470 break
5471 ;;
5472 *)
5473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5474 continue # so that we can try to find one that supports BSD flags
5475 ;;
5476 esac
5477 ;;
5478 esac
5479 fi
5480 done
5481 IFS="$lt_save_ifs"
5482 done
5483 : ${lt_cv_path_NM=no}
5484 fi
5485 fi
5486 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5487 $as_echo "$lt_cv_path_NM" >&6; }
5488 if test "$lt_cv_path_NM" != "no"; then
5489 NM="$lt_cv_path_NM"
5490 else
5491 # Didn't find any BSD compatible name lister, look for dumpbin.
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$DUMPBIN"; then
5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 DUMPBIN=$ac_cv_prog_DUMPBIN
5523 if test -n "$DUMPBIN"; then
5524 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5525 $as_echo "$DUMPBIN" >&6; }
5526 else
5527 { $as_echo "$as_me:$LINENO: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 test -n "$DUMPBIN" && break
5533 done
5534 fi
5535 if test -z "$DUMPBIN"; then
5536 ac_ct_DUMPBIN=$DUMPBIN
5537 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5538 do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540 set dummy $ac_prog; ac_word=$2
5541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$ac_ct_DUMPBIN"; then
5547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560 done
5561 done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5567 if test -n "$ac_ct_DUMPBIN"; then
5568 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5569 $as_echo "$ac_ct_DUMPBIN" >&6; }
5570 else
5571 { $as_echo "$as_me:$LINENO: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575
5576 test -n "$ac_ct_DUMPBIN" && break
5577 done
5578
5579 if test "x$ac_ct_DUMPBIN" = x; then
5580 DUMPBIN=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583 yes:)
5584 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586 ac_tool_warned=yes ;;
5587 esac
5588 DUMPBIN=$ac_ct_DUMPBIN
5589 fi
5590 fi
5591
5592
5593 if test "$DUMPBIN" != ":"; then
5594 NM="$DUMPBIN"
5595 fi
5596 fi
5597 test -z "$NM" && NM=nm
5598
5599
5600
5601
5602
5603
5604 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5605 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5606 if test "${lt_cv_nm_interface+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5608 else
5609 lt_cv_nm_interface="BSD nm"
5610 echo "int some_variable = 0;" > conftest.$ac_ext
5611 (eval echo "\"\$as_me:5611: $ac_compile\"" >&5)
5612 (eval "$ac_compile" 2>conftest.err)
5613 cat conftest.err >&5
5614 (eval echo "\"\$as_me:5614: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5615 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5616 cat conftest.err >&5
5617 (eval echo "\"\$as_me:5617: output\"" >&5)
5618 cat conftest.out >&5
5619 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5620 lt_cv_nm_interface="MS dumpbin"
5621 fi
5622 rm -f conftest*
5623 fi
5624 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5625 $as_echo "$lt_cv_nm_interface" >&6; }
5626
5627 # find the maximum length of command line arguments
5628 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5629 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5630 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5631 $as_echo_n "(cached) " >&6
5632 else
5633 i=0
5634 teststring="ABCD"
5635
5636 case $build_os in
5637 msdosdjgpp*)
5638 # On DJGPP, this test can blow up pretty badly due to problems in libc
5639 # (any single argument exceeding 2000 bytes causes a buffer overrun
5640 # during glob expansion). Even if it were fixed, the result of this
5641 # check would be larger than it should be.
5642 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5643 ;;
5644
5645 gnu*)
5646 # Under GNU Hurd, this test is not required because there is
5647 # no limit to the length of command line arguments.
5648 # Libtool will interpret -1 as no limit whatsoever
5649 lt_cv_sys_max_cmd_len=-1;
5650 ;;
5651
5652 cygwin* | mingw* | cegcc*)
5653 # On Win9x/ME, this test blows up -- it succeeds, but takes
5654 # about 5 minutes as the teststring grows exponentially.
5655 # Worse, since 9x/ME are not pre-emptively multitasking,
5656 # you end up with a "frozen" computer, even though with patience
5657 # the test eventually succeeds (with a max line length of 256k).
5658 # Instead, let's just punt: use the minimum linelength reported by
5659 # all of the supported platforms: 8192 (on NT/2K/XP).
5660 lt_cv_sys_max_cmd_len=8192;
5661 ;;
5662
5663 amigaos*)
5664 # On AmigaOS with pdksh, this test takes hours, literally.
5665 # So we just punt and use a minimum line length of 8192.
5666 lt_cv_sys_max_cmd_len=8192;
5667 ;;
5668
5669 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5670 # This has been around since 386BSD, at least. Likely further.
5671 if test -x /sbin/sysctl; then
5672 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5673 elif test -x /usr/sbin/sysctl; then
5674 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5675 else
5676 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5677 fi
5678 # And add a safety zone
5679 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5681 ;;
5682
5683 interix*)
5684 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5685 lt_cv_sys_max_cmd_len=196608
5686 ;;
5687
5688 osf*)
5689 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5690 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5691 # nice to cause kernel panics so lets avoid the loop below.
5692 # First set a reasonable default.
5693 lt_cv_sys_max_cmd_len=16384
5694 #
5695 if test -x /sbin/sysconfig; then
5696 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5697 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5698 esac
5699 fi
5700 ;;
5701 sco3.2v5*)
5702 lt_cv_sys_max_cmd_len=102400
5703 ;;
5704 sysv5* | sco5v6* | sysv4.2uw2*)
5705 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5706 if test -n "$kargmax"; then
5707 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5708 else
5709 lt_cv_sys_max_cmd_len=32768
5710 fi
5711 ;;
5712 *)
5713 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5714 if test -n "$lt_cv_sys_max_cmd_len"; then
5715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5717 else
5718 # Make teststring a little bigger before we do anything with it.
5719 # a 1K string should be a reasonable start.
5720 for i in 1 2 3 4 5 6 7 8 ; do
5721 teststring=$teststring$teststring
5722 done
5723 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5724 # If test is not a shell built-in, we'll probably end up computing a
5725 # maximum length that is only half of the actual maximum length, but
5726 # we can't tell.
5727 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5728 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5729 test $i != 17 # 1/2 MB should be enough
5730 do
5731 i=`expr $i + 1`
5732 teststring=$teststring$teststring
5733 done
5734 # Only check the string length outside the loop.
5735 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5736 teststring=
5737 # Add a significant safety factor because C++ compilers can tack on
5738 # massive amounts of additional arguments before passing them to the
5739 # linker. It appears as though 1/2 is a usable value.
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5741 fi
5742 ;;
5743 esac
5744
5745 fi
5746
5747 if test -n $lt_cv_sys_max_cmd_len ; then
5748 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5749 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5750 else
5751 { $as_echo "$as_me:$LINENO: result: none" >&5
5752 $as_echo "none" >&6; }
5753 fi
5754 max_cmd_len=$lt_cv_sys_max_cmd_len
5755
5756
5757
5758
5759
5760
5761 : ${CP="cp -f"}
5762 : ${MV="mv -f"}
5763 : ${RM="rm -f"}
5764
5765 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5766 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5767 # Try some XSI features
5768 xsi_shell=no
5769 ( _lt_dummy="a/b/c"
5770 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5771 = c,a/b,, \
5772 && eval 'test $(( 1 + 1 )) -eq 2 \
5773 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5774 && xsi_shell=yes
5775 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5776 $as_echo "$xsi_shell" >&6; }
5777
5778
5779 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5780 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5781 lt_shell_append=no
5782 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5783 >/dev/null 2>&1 \
5784 && lt_shell_append=yes
5785 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5786 $as_echo "$lt_shell_append" >&6; }
5787
5788
5789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5790 lt_unset=unset
5791 else
5792 lt_unset=false
5793 fi
5794
5795
5796
5797
5798
5799 # test EBCDIC or ASCII
5800 case `echo X|tr X '\101'` in
5801 A) # ASCII based system
5802 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5803 lt_SP2NL='tr \040 \012'
5804 lt_NL2SP='tr \015\012 \040\040'
5805 ;;
5806 *) # EBCDIC based system
5807 lt_SP2NL='tr \100 \n'
5808 lt_NL2SP='tr \r\n \100\100'
5809 ;;
5810 esac
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5822 if test "${lt_cv_ld_reload_flag+set}" = set; then
5823 $as_echo_n "(cached) " >&6
5824 else
5825 lt_cv_ld_reload_flag='-r'
5826 fi
5827 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5829 reload_flag=$lt_cv_ld_reload_flag
5830 case $reload_flag in
5831 "" | " "*) ;;
5832 *) reload_flag=" $reload_flag" ;;
5833 esac
5834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5835 case $host_os in
5836 darwin*)
5837 if test "$GCC" = yes; then
5838 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5839 else
5840 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5841 fi
5842 ;;
5843 esac
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853 if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5856 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 $as_echo_n "checking for $ac_word... " >&6; }
5858 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5859 $as_echo_n "(cached) " >&6
5860 else
5861 if test -n "$OBJDUMP"; then
5862 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879 fi
5880 fi
5881 OBJDUMP=$ac_cv_prog_OBJDUMP
5882 if test -n "$OBJDUMP"; then
5883 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5884 $as_echo "$OBJDUMP" >&6; }
5885 else
5886 { $as_echo "$as_me:$LINENO: result: no" >&5
5887 $as_echo "no" >&6; }
5888 fi
5889
5890
5891 fi
5892 if test -z "$ac_cv_prog_OBJDUMP"; then
5893 ac_ct_OBJDUMP=$OBJDUMP
5894 # Extract the first word of "objdump", so it can be a program name with args.
5895 set dummy objdump; ac_word=$2
5896 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$ac_ct_OBJDUMP"; then
5902 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5912 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5922 if test -n "$ac_ct_OBJDUMP"; then
5923 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5924 $as_echo "$ac_ct_OBJDUMP" >&6; }
5925 else
5926 { $as_echo "$as_me:$LINENO: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930 if test "x$ac_ct_OBJDUMP" = x; then
5931 OBJDUMP="false"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934 yes:)
5935 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5937 ac_tool_warned=yes ;;
5938 esac
5939 OBJDUMP=$ac_ct_OBJDUMP
5940 fi
5941 else
5942 OBJDUMP="$ac_cv_prog_OBJDUMP"
5943 fi
5944
5945 test -z "$OBJDUMP" && OBJDUMP=objdump
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5956 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5957 if test "${lt_cv_deplibs_check_method+set}" = set; then
5958 $as_echo_n "(cached) " >&6
5959 else
5960 lt_cv_file_magic_cmd='$MAGIC_CMD'
5961 lt_cv_file_magic_test_file=
5962 lt_cv_deplibs_check_method='unknown'
5963 # Need to set the preceding variable on all platforms that support
5964 # interlibrary dependencies.
5965 # 'none' -- dependencies not supported.
5966 # `unknown' -- same as none, but documents that we really don't know.
5967 # 'pass_all' -- all dependencies passed with no checks.
5968 # 'test_compile' -- check by making test program.
5969 # 'file_magic [[regex]]' -- check by looking for files in library path
5970 # which responds to the $file_magic_cmd with a given extended regex.
5971 # If you have `file' or equivalent on your system and you're not sure
5972 # whether `pass_all' will *always* work, you probably want this one.
5973
5974 case $host_os in
5975 aix[4-9]*)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978
5979 beos*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982
5983 bsdi[45]*)
5984 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5985 lt_cv_file_magic_cmd='/usr/bin/file -L'
5986 lt_cv_file_magic_test_file=/shlib/libc.so
5987 ;;
5988
5989 cygwin*)
5990 # func_win32_libid is a shell function defined in ltmain.sh
5991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5992 lt_cv_file_magic_cmd='func_win32_libid'
5993 ;;
5994
5995 mingw* | pw32*)
5996 # Base MSYS/MinGW do not provide the 'file' command needed by
5997 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5998 # unless we find 'file', for example because we are cross-compiling.
5999 if ( file / ) >/dev/null 2>&1; then
6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6001 lt_cv_file_magic_cmd='func_win32_libid'
6002 else
6003 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6004 lt_cv_file_magic_cmd='$OBJDUMP -f'
6005 fi
6006 ;;
6007
6008 cegcc)
6009 # use the weaker test based on 'objdump'. See mingw*.
6010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6011 lt_cv_file_magic_cmd='$OBJDUMP -f'
6012 ;;
6013
6014 darwin* | rhapsody*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 freebsd* | dragonfly*)
6019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6020 case $host_cpu in
6021 i*86 )
6022 # Not sure whether the presence of OpenBSD here was a mistake.
6023 # Let's accept both of them until this is cleared up.
6024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6025 lt_cv_file_magic_cmd=/usr/bin/file
6026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6027 ;;
6028 esac
6029 else
6030 lt_cv_deplibs_check_method=pass_all
6031 fi
6032 ;;
6033
6034 gnu*)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037
6038 hpux10.20* | hpux11*)
6039 lt_cv_file_magic_cmd=/usr/bin/file
6040 case $host_cpu in
6041 ia64*)
6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6044 ;;
6045 hppa*64*)
6046 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]'
6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6048 ;;
6049 *)
6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6052 ;;
6053 esac
6054 ;;
6055
6056 interix[3-9]*)
6057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6059 ;;
6060
6061 irix5* | irix6* | nonstopux*)
6062 case $LD in
6063 *-32|*"-32 ") libmagic=32-bit;;
6064 *-n32|*"-n32 ") libmagic=N32;;
6065 *-64|*"-64 ") libmagic=64-bit;;
6066 *) libmagic=never-match;;
6067 esac
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071 # This must be Linux ELF.
6072 linux* | k*bsd*-gnu)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075
6076 netbsd*)
6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6079 else
6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6081 fi
6082 ;;
6083
6084 newos6*)
6085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6086 lt_cv_file_magic_cmd=/usr/bin/file
6087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6088 ;;
6089
6090 *nto* | *qnx*)
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094 openbsd*)
6095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6097 else
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6099 fi
6100 ;;
6101
6102 osf3* | osf4* | osf5*)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105
6106 rdos*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110 solaris*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 sysv4 | sysv4.3*)
6119 case $host_vendor in
6120 motorola)
6121 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]'
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6123 ;;
6124 ncr)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127 sequent)
6128 lt_cv_file_magic_cmd='/bin/file'
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6130 ;;
6131 sni)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6134 lt_cv_file_magic_test_file=/lib/libc.so
6135 ;;
6136 siemens)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139 pc)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142 esac
6143 ;;
6144
6145 tpf*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148 esac
6149
6150 fi
6151 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6153 file_magic_cmd=$lt_cv_file_magic_cmd
6154 deplibs_check_method=$lt_cv_deplibs_check_method
6155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ar; ac_word=$2
6171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_AR+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$AR"; then
6177 ac_cv_prog_AR="$AR" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_AR="${ac_tool_prefix}ar"
6187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6193
6194 fi
6195 fi
6196 AR=$ac_cv_prog_AR
6197 if test -n "$AR"; then
6198 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6199 $as_echo "$AR" >&6; }
6200 else
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6204
6205
6206 fi
6207 if test -z "$ac_cv_prog_AR"; then
6208 ac_ct_AR=$AR
6209 # Extract the first word of "ar", so it can be a program name with args.
6210 set dummy ar; ac_word=$2
6211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_AR="ar"
6227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6239 $as_echo "$ac_ct_AR" >&6; }
6240 else
6241 { $as_echo "$as_me:$LINENO: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245 if test "x$ac_ct_AR" = x; then
6246 AR="false"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6253 esac
6254 AR=$ac_ct_AR
6255 fi
6256 else
6257 AR="$ac_cv_prog_AR"
6258 fi
6259
6260 test -z "$AR" && AR=ar
6261 test -z "$AR_FLAGS" && AR_FLAGS=cru
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}strip; ac_word=$2
6276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_STRIP+set}" = set; then
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$STRIP"; then
6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6286 do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6294 fi
6295 done
6296 done
6297 IFS=$as_save_IFS
6298
6299 fi
6300 fi
6301 STRIP=$ac_cv_prog_STRIP
6302 if test -n "$STRIP"; then
6303 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6304 $as_echo "$STRIP" >&6; }
6305 else
6306 { $as_echo "$as_me:$LINENO: result: no" >&5
6307 $as_echo "no" >&6; }
6308 fi
6309
6310
6311 fi
6312 if test -z "$ac_cv_prog_STRIP"; then
6313 ac_ct_STRIP=$STRIP
6314 # Extract the first word of "strip", so it can be a program name with args.
6315 set dummy strip; ac_word=$2
6316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_STRIP"; then
6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_STRIP="strip"
6332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342 if test -n "$ac_ct_STRIP"; then
6343 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6344 $as_echo "$ac_ct_STRIP" >&6; }
6345 else
6346 { $as_echo "$as_me:$LINENO: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350 if test "x$ac_ct_STRIP" = x; then
6351 STRIP=":"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 STRIP=$ac_ct_STRIP
6360 fi
6361 else
6362 STRIP="$ac_cv_prog_STRIP"
6363 fi
6364
6365 test -z "$STRIP" && STRIP=:
6366
6367
6368
6369
6370
6371
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_prog_RANLIB+set}" = set; then
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if test -n "$RANLIB"; then
6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 RANLIB=$ac_cv_prog_RANLIB
6401 if test -n "$RANLIB"; then
6402 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6403 $as_echo "$RANLIB" >&6; }
6404 else
6405 { $as_echo "$as_me:$LINENO: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408
6409
6410 fi
6411 if test -z "$ac_cv_prog_RANLIB"; then
6412 ac_ct_RANLIB=$RANLIB
6413 # Extract the first word of "ranlib", so it can be a program name with args.
6414 set dummy ranlib; ac_word=$2
6415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$ac_ct_RANLIB"; then
6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_ac_ct_RANLIB="ranlib"
6431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6433 fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441 if test -n "$ac_ct_RANLIB"; then
6442 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6443 $as_echo "$ac_ct_RANLIB" >&6; }
6444 else
6445 { $as_echo "$as_me:$LINENO: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449 if test "x$ac_ct_RANLIB" = x; then
6450 RANLIB=":"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 RANLIB=$ac_ct_RANLIB
6459 fi
6460 else
6461 RANLIB="$ac_cv_prog_RANLIB"
6462 fi
6463
6464 test -z "$RANLIB" && RANLIB=:
6465
6466
6467
6468
6469
6470
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6475
6476 if test -n "$RANLIB"; then
6477 case $host_os in
6478 openbsd*)
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6480 ;;
6481 *)
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6483 ;;
6484 esac
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6486 fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 # If no C compiler was specified, use CC.
6522 LTCC=${LTCC-"$CC"}
6523
6524 # If no C compiler flags were specified, use CFLAGS.
6525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6526
6527 # Allow CC to be a program name with arguments.
6528 compiler=$CC
6529
6530
6531 # Check for command to grab the raw symbol name followed by C symbol from nm.
6532 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6533 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6534 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6535 $as_echo_n "(cached) " >&6
6536 else
6537
6538 # These are sane defaults that work on at least a few old systems.
6539 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6540
6541 # Character class describing NM global symbol codes.
6542 symcode='[BCDEGRST]'
6543
6544 # Regexp to match symbols that can be accessed directly from C.
6545 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6546
6547 # Define system-specific variables.
6548 case $host_os in
6549 aix*)
6550 symcode='[BCDT]'
6551 ;;
6552 cygwin* | mingw* | pw32* | cegcc*)
6553 symcode='[ABCDGISTW]'
6554 ;;
6555 hpux*)
6556 if test "$host_cpu" = ia64; then
6557 symcode='[ABCDEGRST]'
6558 fi
6559 ;;
6560 irix* | nonstopux*)
6561 symcode='[BCDEGRST]'
6562 ;;
6563 osf*)
6564 symcode='[BCDEGQRST]'
6565 ;;
6566 solaris*)
6567 symcode='[BDRT]'
6568 ;;
6569 sco3.2v5*)
6570 symcode='[DT]'
6571 ;;
6572 sysv4.2uw2*)
6573 symcode='[DT]'
6574 ;;
6575 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6576 symcode='[ABDT]'
6577 ;;
6578 sysv4)
6579 symcode='[DFNSTU]'
6580 ;;
6581 esac
6582
6583 # If we're using GNU nm, then use its standard symbol codes.
6584 case `$NM -V 2>&1` in
6585 *GNU* | *'with BFD'*)
6586 symcode='[ABCDGIRSTW]' ;;
6587 esac
6588
6589 # Transform an extracted symbol line into a proper C declaration.
6590 # Some systems (esp. on ia64) link data and code symbols differently,
6591 # so use this general approach.
6592 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6593
6594 # Transform an extracted symbol line into symbol name and symbol address
6595 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6596 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'"
6597
6598 # Handle CRLF in mingw tool chain
6599 opt_cr=
6600 case $build_os in
6601 mingw*)
6602 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6603 ;;
6604 esac
6605
6606 # Try without a prefix underscore, then with it.
6607 for ac_symprfx in "" "_"; do
6608
6609 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6610 symxfrm="\\1 $ac_symprfx\\2 \\2"
6611
6612 # Write the raw and C identifiers.
6613 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6614 # Fake it for dumpbin and say T for any non-static function
6615 # and D for any global variable.
6616 # Also find C++ and __fastcall symbols from MSVC++,
6617 # which start with @ or ?.
6618 lt_cv_sys_global_symbol_pipe="$AWK '"\
6619 " {last_section=section; section=\$ 3};"\
6620 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6621 " \$ 0!~/External *\|/{next};"\
6622 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6623 " {if(hide[section]) next};"\
6624 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6625 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6626 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6627 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6628 " ' prfx=^$ac_symprfx"
6629 else
6630 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6631 fi
6632
6633 # Check to see that the pipe works correctly.
6634 pipe_works=no
6635
6636 rm -f conftest*
6637 cat > conftest.$ac_ext <<_LT_EOF
6638 #ifdef __cplusplus
6639 extern "C" {
6640 #endif
6641 char nm_test_var;
6642 void nm_test_func(void);
6643 void nm_test_func(void){}
6644 #ifdef __cplusplus
6645 }
6646 #endif
6647 int main(){nm_test_var='a';nm_test_func();return(0);}
6648 _LT_EOF
6649
6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>&5
6652 ac_status=$?
6653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; then
6655 # Now try to grab the symbols.
6656 nlist=conftest.nm
6657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && test -s "$nlist"; then
6662 # Try sorting and uniquifying the output.
6663 if sort "$nlist" | uniq > "$nlist"T; then
6664 mv -f "$nlist"T "$nlist"
6665 else
6666 rm -f "$nlist"T
6667 fi
6668
6669 # Make sure that we snagged all the symbols we need.
6670 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6671 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6672 cat <<_LT_EOF > conftest.$ac_ext
6673 #ifdef __cplusplus
6674 extern "C" {
6675 #endif
6676
6677 _LT_EOF
6678 # Now generate the symbol file.
6679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6680
6681 cat <<_LT_EOF >> conftest.$ac_ext
6682 /* The mapping between symbol names and symbols. */
6683 const struct {
6684 const char *name;
6685 void *address;
6686 }
6687 lt__PROGRAM__LTX_preloaded_symbols[] =
6688 {
6689 { "@PROGRAM@", (void *) 0 },
6690 _LT_EOF
6691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6692 cat <<\_LT_EOF >> conftest.$ac_ext
6693 {0, (void *) 0}
6694 };
6695
6696 /* This works around a problem in FreeBSD linker */
6697 #ifdef FREEBSD_WORKAROUND
6698 static const void *lt_preloaded_setup() {
6699 return lt__PROGRAM__LTX_preloaded_symbols;
6700 }
6701 #endif
6702
6703 #ifdef __cplusplus
6704 }
6705 #endif
6706 _LT_EOF
6707 # Now try linking the two files.
6708 mv conftest.$ac_objext conftstm.$ac_objext
6709 lt_save_LIBS="$LIBS"
6710 lt_save_CFLAGS="$CFLAGS"
6711 LIBS="conftstm.$ac_objext"
6712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6718 pipe_works=yes
6719 fi
6720 LIBS="$lt_save_LIBS"
6721 CFLAGS="$lt_save_CFLAGS"
6722 else
6723 echo "cannot find nm_test_func in $nlist" >&5
6724 fi
6725 else
6726 echo "cannot find nm_test_var in $nlist" >&5
6727 fi
6728 else
6729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6730 fi
6731 else
6732 echo "$progname: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6734 fi
6735 rm -rf conftest* conftst*
6736
6737 # Do not use the global_symbol_pipe unless it works.
6738 if test "$pipe_works" = yes; then
6739 break
6740 else
6741 lt_cv_sys_global_symbol_pipe=
6742 fi
6743 done
6744
6745 fi
6746
6747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6748 lt_cv_sys_global_symbol_to_cdecl=
6749 fi
6750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6751 { $as_echo "$as_me:$LINENO: result: failed" >&5
6752 $as_echo "failed" >&6; }
6753 else
6754 { $as_echo "$as_me:$LINENO: result: ok" >&5
6755 $as_echo "ok" >&6; }
6756 fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 # Check whether --enable-libtool-lock was given.
6780 if test "${enable_libtool_lock+set}" = set; then
6781 enableval=$enable_libtool_lock;
6782 fi
6783
6784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6785
6786 # Some flags need to be propagated to the compiler or linker for good
6787 # libtool support.
6788 case $host in
6789 ia64-*-hpux*)
6790 # Find out which ABI we are using.
6791 echo 'int i;' > conftest.$ac_ext
6792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6793 (eval $ac_compile) 2>&5
6794 ac_status=$?
6795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; then
6797 case `/usr/bin/file conftest.$ac_objext` in
6798 *ELF-32*)
6799 HPUX_IA64_MODE="32"
6800 ;;
6801 *ELF-64*)
6802 HPUX_IA64_MODE="64"
6803 ;;
6804 esac
6805 fi
6806 rm -rf conftest*
6807 ;;
6808 *-*-irix6*)
6809 # Find out which ABI we are using.
6810 echo '#line 6810 "configure"' > conftest.$ac_ext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6813 ac_status=$?
6814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; then
6816 if test "$lt_cv_prog_gnu_ld" = yes; then
6817 case `/usr/bin/file conftest.$ac_objext` in
6818 *32-bit*)
6819 LD="${LD-ld} -melf32bsmip"
6820 ;;
6821 *N32*)
6822 LD="${LD-ld} -melf32bmipn32"
6823 ;;
6824 *64-bit*)
6825 LD="${LD-ld} -melf64bmip"
6826 ;;
6827 esac
6828 else
6829 case `/usr/bin/file conftest.$ac_objext` in
6830 *32-bit*)
6831 LD="${LD-ld} -32"
6832 ;;
6833 *N32*)
6834 LD="${LD-ld} -n32"
6835 ;;
6836 *64-bit*)
6837 LD="${LD-ld} -64"
6838 ;;
6839 esac
6840 fi
6841 fi
6842 rm -rf conftest*
6843 ;;
6844
6845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6847 # Find out which ABI we are using.
6848 echo 'int i;' > conftest.$ac_ext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; then
6854 case `/usr/bin/file conftest.o` in
6855 *32-bit*)
6856 case $host in
6857 x86_64-*kfreebsd*-gnu)
6858 LD="${LD-ld} -m elf_i386_fbsd"
6859 ;;
6860 x86_64-*linux*)
6861 LD="${LD-ld} -m elf_i386"
6862 ;;
6863 ppc64-*linux*|powerpc64-*linux*)
6864 LD="${LD-ld} -m elf32ppclinux"
6865 ;;
6866 s390x-*linux*)
6867 LD="${LD-ld} -m elf_s390"
6868 ;;
6869 sparc64-*linux*)
6870 LD="${LD-ld} -m elf32_sparc"
6871 ;;
6872 esac
6873 ;;
6874 *64-bit*)
6875 case $host in
6876 x86_64-*kfreebsd*-gnu)
6877 LD="${LD-ld} -m elf_x86_64_fbsd"
6878 ;;
6879 x86_64-*linux*)
6880 LD="${LD-ld} -m elf_x86_64"
6881 ;;
6882 ppc*-*linux*|powerpc*-*linux*)
6883 LD="${LD-ld} -m elf64ppc"
6884 ;;
6885 s390*-*linux*|s390*-*tpf*)
6886 LD="${LD-ld} -m elf64_s390"
6887 ;;
6888 sparc*-*linux*)
6889 LD="${LD-ld} -m elf64_sparc"
6890 ;;
6891 esac
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897
6898 *-*-sco3.2v5*)
6899 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6900 SAVE_CFLAGS="$CFLAGS"
6901 CFLAGS="$CFLAGS -belf"
6902 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6903 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6904 if test "${lt_cv_cc_needs_belf+set}" = set; then
6905 $as_echo_n "(cached) " >&6
6906 else
6907 ac_ext=c
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919
6920 int
6921 main ()
6922 {
6923
6924 ;
6925 return 0;
6926 }
6927 _ACEOF
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6930 case "(($ac_try" in
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6933 esac
6934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6935 $as_echo "$ac_try_echo") >&5
6936 (eval "$ac_link") 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext && {
6946 test "$cross_compiling" = yes ||
6947 $as_test_x conftest$ac_exeext
6948 }; then
6949 lt_cv_cc_needs_belf=yes
6950 else
6951 $as_echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6953
6954 lt_cv_cc_needs_belf=no
6955 fi
6956
6957 rm -rf conftest.dSYM
6958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6959 conftest$ac_exeext conftest.$ac_ext
6960 ac_ext=c
6961 ac_cpp='$CPP $CPPFLAGS'
6962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
6966 fi
6967 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6968 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6969 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6971 CFLAGS="$SAVE_CFLAGS"
6972 fi
6973 ;;
6974 sparc*-*solaris*)
6975 # Find out which ABI we are using.
6976 echo 'int i;' > conftest.$ac_ext
6977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6978 (eval $ac_compile) 2>&5
6979 ac_status=$?
6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; then
6982 case `/usr/bin/file conftest.o` in
6983 *64-bit*)
6984 case $lt_cv_prog_gnu_ld in
6985 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6986 *)
6987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6988 LD="${LD-ld} -64"
6989 fi
6990 ;;
6991 esac
6992 ;;
6993 esac
6994 fi
6995 rm -rf conftest*
6996 ;;
6997 esac
6998
6999 need_locks="$enable_libtool_lock"
7000
7001
7002 case $host_os in
7003 rhapsody* | darwin*)
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$DSYMUTIL"; then
7013 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7033 if test -n "$DSYMUTIL"; then
7034 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7035 $as_echo "$DSYMUTIL" >&6; }
7036 else
7037 { $as_echo "$as_me:$LINENO: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_DSYMUTIL"; then
7044 ac_ct_DSYMUTIL=$DSYMUTIL
7045 # Extract the first word of "dsymutil", so it can be a program name with args.
7046 set dummy dsymutil; ac_word=$2
7047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7075 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7076 else
7077 { $as_echo "$as_me:$LINENO: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_DSYMUTIL" = x; then
7082 DSYMUTIL=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 DSYMUTIL=$ac_ct_DSYMUTIL
7091 fi
7092 else
7093 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7094 fi
7095
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$NMEDIT"; then
7105 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 NMEDIT=$ac_cv_prog_NMEDIT
7125 if test -n "$NMEDIT"; then
7126 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7127 $as_echo "$NMEDIT" >&6; }
7128 else
7129 { $as_echo "$as_me:$LINENO: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_NMEDIT"; then
7136 ac_ct_NMEDIT=$NMEDIT
7137 # Extract the first word of "nmedit", so it can be a program name with args.
7138 set dummy nmedit; ac_word=$2
7139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_NMEDIT"; then
7145 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7165 if test -n "$ac_ct_NMEDIT"; then
7166 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7167 $as_echo "$ac_ct_NMEDIT" >&6; }
7168 else
7169 { $as_echo "$as_me:$LINENO: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_NMEDIT" = x; then
7174 NMEDIT=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 NMEDIT=$ac_ct_NMEDIT
7183 fi
7184 else
7185 NMEDIT="$ac_cv_prog_NMEDIT"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if test "${ac_cv_prog_LIPO+set}" = set; then
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$LIPO"; then
7197 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 LIPO=$ac_cv_prog_LIPO
7217 if test -n "$LIPO"; then
7218 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7219 $as_echo "$LIPO" >&6; }
7220 else
7221 { $as_echo "$as_me:$LINENO: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_LIPO"; then
7228 ac_ct_LIPO=$LIPO
7229 # Extract the first word of "lipo", so it can be a program name with args.
7230 set dummy lipo; ac_word=$2
7231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_LIPO"; then
7237 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246 ac_cv_prog_ac_ct_LIPO="lipo"
7247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7257 if test -n "$ac_ct_LIPO"; then
7258 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7259 $as_echo "$ac_ct_LIPO" >&6; }
7260 else
7261 { $as_echo "$as_me:$LINENO: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_LIPO" = x; then
7266 LIPO=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 LIPO=$ac_ct_LIPO
7275 fi
7276 else
7277 LIPO="$ac_cv_prog_LIPO"
7278 fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}otool; ac_word=$2
7283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_prog_OTOOL+set}" = set; then
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$OTOOL"; then
7289 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 OTOOL=$ac_cv_prog_OTOOL
7309 if test -n "$OTOOL"; then
7310 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7311 $as_echo "$OTOOL" >&6; }
7312 else
7313 { $as_echo "$as_me:$LINENO: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_OTOOL"; then
7320 ac_ct_OTOOL=$OTOOL
7321 # Extract the first word of "otool", so it can be a program name with args.
7322 set dummy otool; ac_word=$2
7323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_OTOOL"; then
7329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_prog_ac_ct_OTOOL="otool"
7339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7349 if test -n "$ac_ct_OTOOL"; then
7350 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7351 $as_echo "$ac_ct_OTOOL" >&6; }
7352 else
7353 { $as_echo "$as_me:$LINENO: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357 if test "x$ac_ct_OTOOL" = x; then
7358 OTOOL=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 OTOOL=$ac_ct_OTOOL
7367 fi
7368 else
7369 OTOOL="$ac_cv_prog_OTOOL"
7370 fi
7371
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$OTOOL64"; then
7381 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 OTOOL64=$ac_cv_prog_OTOOL64
7401 if test -n "$OTOOL64"; then
7402 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7403 $as_echo "$OTOOL64" >&6; }
7404 else
7405 { $as_echo "$as_me:$LINENO: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_OTOOL64"; then
7412 ac_ct_OTOOL64=$OTOOL64
7413 # Extract the first word of "otool64", so it can be a program name with args.
7414 set dummy otool64; ac_word=$2
7415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_OTOOL64"; then
7421 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_prog_ac_ct_OTOOL64="otool64"
7431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7441 if test -n "$ac_ct_OTOOL64"; then
7442 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7443 $as_echo "$ac_ct_OTOOL64" >&6; }
7444 else
7445 { $as_echo "$as_me:$LINENO: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449 if test "x$ac_ct_OTOOL64" = x; then
7450 OTOOL64=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 OTOOL64=$ac_ct_OTOOL64
7459 fi
7460 else
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7462 fi
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7491 $as_echo_n "checking for -single_module linker flag... " >&6; }
7492 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7493 $as_echo_n "(cached) " >&6
7494 else
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7500 # link flags.
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507 _lt_result=$?
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7510 else
7511 cat conftest.err >&5
7512 fi
7513 rm -rf libconftest.dylib*
7514 rm -f conftest.*
7515 fi
7516 fi
7517 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7518 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7519 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7520 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7521 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7522 $as_echo_n "(cached) " >&6
7523 else
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534
7535 int
7536 main ()
7537 {
7538
7539 ;
7540 return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext conftest$ac_exeext
7544 if { (ac_try="$ac_link"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550 $as_echo "$ac_try_echo") >&5
7551 (eval "$ac_link") 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && {
7558 test -z "$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 } && test -s conftest$ac_exeext && {
7561 test "$cross_compiling" = yes ||
7562 $as_test_x conftest$ac_exeext
7563 }; then
7564 lt_cv_ld_exported_symbols_list=yes
7565 else
7566 $as_echo "$as_me: failed program was:" >&5
7567 sed 's/^/| /' conftest.$ac_ext >&5
7568
7569 lt_cv_ld_exported_symbols_list=no
7570 fi
7571
7572 rm -rf conftest.dSYM
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LDFLAGS="$save_LDFLAGS"
7576
7577 fi
7578 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7580 case $host_os in
7581 rhapsody* | darwin1.[012])
7582 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7583 darwin1.*)
7584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7585 darwin*) # darwin 5.x on
7586 # if running on 10.5 or later, the deployment target defaults
7587 # to the OS version, if on x86, and 10.4, the deployment
7588 # target defaults to 10.4. Don't you love it?
7589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7590 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7591 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7592 10.[012]*)
7593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7594 10.*)
7595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7596 esac
7597 ;;
7598 esac
7599 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7600 _lt_dar_single_mod='$single_module'
7601 fi
7602 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7603 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7604 else
7605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7606 fi
7607 if test "$DSYMUTIL" != ":"; then
7608 _lt_dsymutil='~$DSYMUTIL $lib || :'
7609 else
7610 _lt_dsymutil=
7611 fi
7612 ;;
7613 esac
7614
7615
7616 for ac_header in dlfcn.h
7617 do
7618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 $as_echo_n "checking for $ac_header... " >&6; }
7621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7622 $as_echo_n "(cached) " >&6
7623 else
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631
7632 #include <$ac_header>
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (ac_try="$ac_compile"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7641 $as_echo "$ac_try_echo") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7643 ac_status=$?
7644 grep -v '^ *+' conftest.er1 >conftest.err
7645 rm -f conftest.er1
7646 cat conftest.err >&5
7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.$ac_objext; then
7652 eval "$as_ac_Header=yes"
7653 else
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 eval "$as_ac_Header=no"
7658 fi
7659
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 fi
7662 ac_res=`eval 'as_val=${'$as_ac_Header'}
7663 $as_echo "$as_val"'`
7664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7665 $as_echo "$ac_res" >&6; }
7666 as_val=`eval 'as_val=${'$as_ac_Header'}
7667 $as_echo "$as_val"'`
7668 if test "x$as_val" = x""yes; then
7669 cat >>confdefs.h <<_ACEOF
7670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7671 _ACEOF
7672
7673 fi
7674
7675 done
7676
7677
7678
7679 # Set options
7680
7681
7682
7683 enable_dlopen=no
7684
7685
7686 enable_win32_dll=no
7687
7688
7689 # Check whether --enable-shared was given.
7690 if test "${enable_shared+set}" = set; then
7691 enableval=$enable_shared; p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_shared=yes ;;
7694 no) enable_shared=no ;;
7695 *)
7696 enable_shared=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7700 IFS="$lt_save_ifs"
7701 if test "X$pkg" = "X$p"; then
7702 enable_shared=yes
7703 fi
7704 done
7705 IFS="$lt_save_ifs"
7706 ;;
7707 esac
7708 else
7709 enable_shared=yes
7710 fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720 # Check whether --enable-static was given.
7721 if test "${enable_static+set}" = set; then
7722 enableval=$enable_static; p=${PACKAGE-default}
7723 case $enableval in
7724 yes) enable_static=yes ;;
7725 no) enable_static=no ;;
7726 *)
7727 enable_static=no
7728 # Look at the argument we got. We use all the common list separators.
7729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7730 for pkg in $enableval; do
7731 IFS="$lt_save_ifs"
7732 if test "X$pkg" = "X$p"; then
7733 enable_static=yes
7734 fi
7735 done
7736 IFS="$lt_save_ifs"
7737 ;;
7738 esac
7739 else
7740 enable_static=yes
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752 # Check whether --with-pic was given.
7753 if test "${with_pic+set}" = set; then
7754 withval=$with_pic; pic_mode="$withval"
7755 else
7756 pic_mode=default
7757 fi
7758
7759
7760 test -z "$pic_mode" && pic_mode=default
7761
7762
7763
7764
7765
7766
7767
7768 # Check whether --enable-fast-install was given.
7769 if test "${enable_fast_install+set}" = set; then
7770 enableval=$enable_fast_install; p=${PACKAGE-default}
7771 case $enableval in
7772 yes) enable_fast_install=yes ;;
7773 no) enable_fast_install=no ;;
7774 *)
7775 enable_fast_install=no
7776 # Look at the argument we got. We use all the common list separators.
7777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7778 for pkg in $enableval; do
7779 IFS="$lt_save_ifs"
7780 if test "X$pkg" = "X$p"; then
7781 enable_fast_install=yes
7782 fi
7783 done
7784 IFS="$lt_save_ifs"
7785 ;;
7786 esac
7787 else
7788 enable_fast_install=yes
7789 fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 # This can be used to rebuild libtool when needed
7802 LIBTOOL_DEPS="$ltmain"
7803
7804 # Always use our own libtool.
7805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831 test -z "$LN_S" && LN_S="ln -s"
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 if test -n "${ZSH_VERSION+set}" ; then
7847 setopt NO_GLOB_SUBST
7848 fi
7849
7850 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7851 $as_echo_n "checking for objdir... " >&6; }
7852 if test "${lt_cv_objdir+set}" = set; then
7853 $as_echo_n "(cached) " >&6
7854 else
7855 rm -f .libs 2>/dev/null
7856 mkdir .libs 2>/dev/null
7857 if test -d .libs; then
7858 lt_cv_objdir=.libs
7859 else
7860 # MS-DOS does not allow filenames that begin with a dot.
7861 lt_cv_objdir=_libs
7862 fi
7863 rmdir .libs 2>/dev/null
7864 fi
7865 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7866 $as_echo "$lt_cv_objdir" >&6; }
7867 objdir=$lt_cv_objdir
7868
7869
7870
7871
7872
7873 cat >>confdefs.h <<_ACEOF
7874 #define LT_OBJDIR "$lt_cv_objdir/"
7875 _ACEOF
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893 case $host_os in
7894 aix3*)
7895 # AIX sometimes has problems with the GCC collect2 program. For some
7896 # reason, if we set the COLLECT_NAMES environment variable, the problems
7897 # vanish in a puff of smoke.
7898 if test "X${COLLECT_NAMES+set}" != Xset; then
7899 COLLECT_NAMES=
7900 export COLLECT_NAMES
7901 fi
7902 ;;
7903 esac
7904
7905 # Sed substitution that helps us do robust quoting. It backslashifies
7906 # metacharacters that are still active within double-quoted strings.
7907 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7908
7909 # Same as above, but do not quote variable references.
7910 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7911
7912 # Sed substitution to delay expansion of an escaped shell variable in a
7913 # double_quote_subst'ed string.
7914 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7915
7916 # Sed substitution to delay expansion of an escaped single quote.
7917 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7918
7919 # Sed substitution to avoid accidental globbing in evaled expressions
7920 no_glob_subst='s/\*/\\\*/g'
7921
7922 # Global variables:
7923 ofile=libtool
7924 can_build_shared=yes
7925
7926 # All known linkers require a `.a' archive for static linking (except MSVC,
7927 # which needs '.lib').
7928 libext=a
7929
7930 with_gnu_ld="$lt_cv_prog_gnu_ld"
7931
7932 old_CC="$CC"
7933 old_CFLAGS="$CFLAGS"
7934
7935 # Set sane defaults for various variables
7936 test -z "$CC" && CC=cc
7937 test -z "$LTCC" && LTCC=$CC
7938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7939 test -z "$LD" && LD=ld
7940 test -z "$ac_objext" && ac_objext=o
7941
7942 for cc_temp in $compiler""; do
7943 case $cc_temp in
7944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7946 \-*) ;;
7947 *) break;;
7948 esac
7949 done
7950 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7951
7952
7953 # Only perform the check for file, if the check method requires it
7954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7955 case $deplibs_check_method in
7956 file_magic*)
7957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7958 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7959 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7962 else
7963 case $MAGIC_CMD in
7964 [\\/*] | ?:[\\/]*)
7965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 lt_save_MAGIC_CMD="$MAGIC_CMD"
7969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7971 for ac_dir in $ac_dummy; do
7972 IFS="$lt_save_ifs"
7973 test -z "$ac_dir" && ac_dir=.
7974 if test -f $ac_dir/${ac_tool_prefix}file; then
7975 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7976 if test -n "$file_magic_test_file"; then
7977 case $deplibs_check_method in
7978 "file_magic "*)
7979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7982 $EGREP "$file_magic_regex" > /dev/null; then
7983 :
7984 else
7985 cat <<_LT_EOF 1>&2
7986
7987 *** Warning: the command libtool uses to detect shared libraries,
7988 *** $file_magic_cmd, produces output that libtool cannot recognize.
7989 *** The result is that libtool may fail to recognize shared libraries
7990 *** as such. This will affect the creation of libtool libraries that
7991 *** depend on shared libraries, but programs linked with such libtool
7992 *** libraries will work regardless of this problem. Nevertheless, you
7993 *** may want to report the problem to your system manager and/or to
7994 *** [email protected]
7995
7996 _LT_EOF
7997 fi ;;
7998 esac
7999 fi
8000 break
8001 fi
8002 done
8003 IFS="$lt_save_ifs"
8004 MAGIC_CMD="$lt_save_MAGIC_CMD"
8005 ;;
8006 esac
8007 fi
8008
8009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010 if test -n "$MAGIC_CMD"; then
8011 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8012 $as_echo "$MAGIC_CMD" >&6; }
8013 else
8014 { $as_echo "$as_me:$LINENO: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018
8019
8020
8021
8022 if test -z "$lt_cv_path_MAGIC_CMD"; then
8023 if test -n "$ac_tool_prefix"; then
8024 { $as_echo "$as_me:$LINENO: checking for file" >&5
8025 $as_echo_n "checking for file... " >&6; }
8026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8027 $as_echo_n "(cached) " >&6
8028 else
8029 case $MAGIC_CMD in
8030 [\\/*] | ?:[\\/]*)
8031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8032 ;;
8033 *)
8034 lt_save_MAGIC_CMD="$MAGIC_CMD"
8035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8037 for ac_dir in $ac_dummy; do
8038 IFS="$lt_save_ifs"
8039 test -z "$ac_dir" && ac_dir=.
8040 if test -f $ac_dir/file; then
8041 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8042 if test -n "$file_magic_test_file"; then
8043 case $deplibs_check_method in
8044 "file_magic "*)
8045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8048 $EGREP "$file_magic_regex" > /dev/null; then
8049 :
8050 else
8051 cat <<_LT_EOF 1>&2
8052
8053 *** Warning: the command libtool uses to detect shared libraries,
8054 *** $file_magic_cmd, produces output that libtool cannot recognize.
8055 *** The result is that libtool may fail to recognize shared libraries
8056 *** as such. This will affect the creation of libtool libraries that
8057 *** depend on shared libraries, but programs linked with such libtool
8058 *** libraries will work regardless of this problem. Nevertheless, you
8059 *** may want to report the problem to your system manager and/or to
8060 *** [email protected]
8061
8062 _LT_EOF
8063 fi ;;
8064 esac
8065 fi
8066 break
8067 fi
8068 done
8069 IFS="$lt_save_ifs"
8070 MAGIC_CMD="$lt_save_MAGIC_CMD"
8071 ;;
8072 esac
8073 fi
8074
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if test -n "$MAGIC_CMD"; then
8077 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8078 $as_echo "$MAGIC_CMD" >&6; }
8079 else
8080 { $as_echo "$as_me:$LINENO: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083
8084
8085 else
8086 MAGIC_CMD=:
8087 fi
8088 fi
8089
8090 fi
8091 ;;
8092 esac
8093
8094 # Use C for the default configuration in the libtool script
8095
8096 lt_save_CC="$CC"
8097 ac_ext=c
8098 ac_cpp='$CPP $CPPFLAGS'
8099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102
8103
8104 # Source file extension for C test sources.
8105 ac_ext=c
8106
8107 # Object file extension for compiled C test sources.
8108 objext=o
8109 objext=$objext
8110
8111 # Code to be used in simple compile tests
8112 lt_simple_compile_test_code="int some_variable = 0;"
8113
8114 # Code to be used in simple link tests
8115 lt_simple_link_test_code='int main(){return(0);}'
8116
8117
8118
8119
8120
8121
8122
8123 # If no C compiler was specified, use CC.
8124 LTCC=${LTCC-"$CC"}
8125
8126 # If no C compiler flags were specified, use CFLAGS.
8127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8128
8129 # Allow CC to be a program name with arguments.
8130 compiler=$CC
8131
8132 # Save the default compiler, since it gets overwritten when the other
8133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8134 compiler_DEFAULT=$CC
8135
8136 # save warnings/boilerplate of simple test code
8137 ac_outfile=conftest.$ac_objext
8138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8140 _lt_compiler_boilerplate=`cat conftest.err`
8141 $RM conftest*
8142
8143 ac_outfile=conftest.$ac_objext
8144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8146 _lt_linker_boilerplate=`cat conftest.err`
8147 $RM -r conftest*
8148
8149
8150 ## CAVEAT EMPTOR:
8151 ## There is no encapsulation within the following macros, do not change
8152 ## the running order or otherwise move them around unless you know exactly
8153 ## what you are doing...
8154 if test -n "$compiler"; then
8155
8156 lt_prog_compiler_no_builtin_flag=
8157
8158 if test "$GCC" = yes; then
8159 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8160
8161 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8162 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8163 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8164 $as_echo_n "(cached) " >&6
8165 else
8166 lt_cv_prog_compiler_rtti_exceptions=no
8167 ac_outfile=conftest.$ac_objext
8168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8169 lt_compiler_flag="-fno-rtti -fno-exceptions"
8170 # Insert the option either (1) after the last *FLAGS variable, or
8171 # (2) before a word containing "conftest.", or (3) at the end.
8172 # Note that $ac_compile itself does not contain backslashes and begins
8173 # with a dollar sign (not a hyphen), so the echo should work correctly.
8174 # The option is referenced via a variable to avoid confusing sed.
8175 lt_compile=`echo "$ac_compile" | $SED \
8176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8178 -e 's:$: $lt_compiler_flag:'`
8179 (eval echo "\"\$as_me:8179: $lt_compile\"" >&5)
8180 (eval "$lt_compile" 2>conftest.err)
8181 ac_status=$?
8182 cat conftest.err >&5
8183 echo "$as_me:8183: \$? = $ac_status" >&5
8184 if (exit $ac_status) && test -s "$ac_outfile"; then
8185 # The compiler can only warn and ignore the option if not recognized
8186 # So say no if there are warnings other than the usual output.
8187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8190 lt_cv_prog_compiler_rtti_exceptions=yes
8191 fi
8192 fi
8193 $RM conftest*
8194
8195 fi
8196 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8197 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8198
8199 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8200 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8201 else
8202 :
8203 fi
8204
8205 fi
8206
8207
8208
8209
8210
8211
8212 lt_prog_compiler_wl=
8213 lt_prog_compiler_pic=
8214 lt_prog_compiler_static=
8215
8216 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8218
8219 if test "$GCC" = yes; then
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_static='-static'
8222
8223 case $host_os in
8224 aix*)
8225 # All AIX code is PIC.
8226 if test "$host_cpu" = ia64; then
8227 # AIX 5 now supports IA64 processor
8228 lt_prog_compiler_static='-Bstatic'
8229 fi
8230 ;;
8231
8232 amigaos*)
8233 case $host_cpu in
8234 powerpc)
8235 # see comment about AmigaOS4 .so support
8236 lt_prog_compiler_pic='-fPIC'
8237 ;;
8238 m68k)
8239 # FIXME: we need at least 68020 code to build shared libraries, but
8240 # adding the `-m68020' flag to GCC prevents building anything better,
8241 # like `-m68040'.
8242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8243 ;;
8244 esac
8245 ;;
8246
8247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8248 # PIC is the default for these OSes.
8249 ;;
8250
8251 mingw* | cygwin* | pw32* | os2* | cegcc*)
8252 # This hack is so that the source file can tell whether it is being
8253 # built for inclusion in a dll (and should export symbols for example).
8254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8255 # (--disable-auto-import) libraries
8256 lt_prog_compiler_pic='-DDLL_EXPORT'
8257 ;;
8258
8259 darwin* | rhapsody*)
8260 # PIC is the default on this platform
8261 # Common symbols not allowed in MH_DYLIB files
8262 lt_prog_compiler_pic='-fno-common'
8263 ;;
8264
8265 hpux*)
8266 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8267 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8268 # sets the default TLS model and affects inlining.
8269 case $host_cpu in
8270 hppa*64*)
8271 # +Z the default
8272 ;;
8273 *)
8274 lt_prog_compiler_pic='-fPIC'
8275 ;;
8276 esac
8277 ;;
8278
8279 interix[3-9]*)
8280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8281 # Instead, we relocate shared libraries at runtime.
8282 ;;
8283
8284 msdosdjgpp*)
8285 # Just because we use GCC doesn't mean we suddenly get shared libraries
8286 # on systems that don't support them.
8287 lt_prog_compiler_can_build_shared=no
8288 enable_shared=no
8289 ;;
8290
8291 *nto* | *qnx*)
8292 # QNX uses GNU C++, but need to define -shared option too, otherwise
8293 # it will coredump.
8294 lt_prog_compiler_pic='-fPIC -shared'
8295 ;;
8296
8297 sysv4*MP*)
8298 if test -d /usr/nec; then
8299 lt_prog_compiler_pic=-Kconform_pic
8300 fi
8301 ;;
8302
8303 *)
8304 lt_prog_compiler_pic='-fPIC'
8305 ;;
8306 esac
8307 else
8308 # PORTME Check for flag to pass linker flags through the system compiler.
8309 case $host_os in
8310 aix*)
8311 lt_prog_compiler_wl='-Wl,'
8312 if test "$host_cpu" = ia64; then
8313 # AIX 5 now supports IA64 processor
8314 lt_prog_compiler_static='-Bstatic'
8315 else
8316 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8317 fi
8318 ;;
8319
8320 mingw* | cygwin* | pw32* | os2* | cegcc*)
8321 # This hack is so that the source file can tell whether it is being
8322 # built for inclusion in a dll (and should export symbols for example).
8323 lt_prog_compiler_pic='-DDLL_EXPORT'
8324 ;;
8325
8326 hpux9* | hpux10* | hpux11*)
8327 lt_prog_compiler_wl='-Wl,'
8328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8329 # not for PA HP-UX.
8330 case $host_cpu in
8331 hppa*64*|ia64*)
8332 # +Z the default
8333 ;;
8334 *)
8335 lt_prog_compiler_pic='+Z'
8336 ;;
8337 esac
8338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8339 lt_prog_compiler_static='${wl}-a ${wl}archive'
8340 ;;
8341
8342 irix5* | irix6* | nonstopux*)
8343 lt_prog_compiler_wl='-Wl,'
8344 # PIC (with -KPIC) is the default.
8345 lt_prog_compiler_static='-non_shared'
8346 ;;
8347
8348 linux* | k*bsd*-gnu)
8349 case $cc_basename in
8350 # old Intel for x86_64 which still supported -KPIC.
8351 ecc*)
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-static'
8355 ;;
8356 # icc used to be incompatible with GCC.
8357 # ICC 10 doesn't accept -KPIC any more.
8358 icc* | ifort*)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-fPIC'
8361 lt_prog_compiler_static='-static'
8362 ;;
8363 # Lahey Fortran 8.1.
8364 lf95*)
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_pic='--shared'
8367 lt_prog_compiler_static='--static'
8368 ;;
8369 pgcc* | pgf77* | pgf90* | pgf95*)
8370 # Portland Group compilers (*not* the Pentium gcc compiler,
8371 # which looks to be a dead project)
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_pic='-fpic'
8374 lt_prog_compiler_static='-Bstatic'
8375 ;;
8376 ccc*)
8377 lt_prog_compiler_wl='-Wl,'
8378 # All Alpha code is PIC.
8379 lt_prog_compiler_static='-non_shared'
8380 ;;
8381 xl*)
8382 # IBM XL C 8.0/Fortran 10.1 on PPC
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='-qpic'
8385 lt_prog_compiler_static='-qstaticlink'
8386 ;;
8387 *)
8388 case `$CC -V 2>&1 | sed 5q` in
8389 *Sun\ C*)
8390 # Sun C 5.9
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 lt_prog_compiler_wl='-Wl,'
8394 ;;
8395 *Sun\ F*)
8396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 lt_prog_compiler_wl=''
8400 ;;
8401 esac
8402 ;;
8403 esac
8404 ;;
8405
8406 newsos6)
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 ;;
8410
8411 *nto* | *qnx*)
8412 # QNX uses GNU C++, but need to define -shared option too, otherwise
8413 # it will coredump.
8414 lt_prog_compiler_pic='-fPIC -shared'
8415 ;;
8416
8417 osf3* | osf4* | osf5*)
8418 lt_prog_compiler_wl='-Wl,'
8419 # All OSF/1 code is PIC.
8420 lt_prog_compiler_static='-non_shared'
8421 ;;
8422
8423 rdos*)
8424 lt_prog_compiler_static='-non_shared'
8425 ;;
8426
8427 solaris*)
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-Bstatic'
8430 case $cc_basename in
8431 f77* | f90* | f95*)
8432 lt_prog_compiler_wl='-Qoption ld ';;
8433 *)
8434 lt_prog_compiler_wl='-Wl,';;
8435 esac
8436 ;;
8437
8438 sunos4*)
8439 lt_prog_compiler_wl='-Qoption ld '
8440 lt_prog_compiler_pic='-PIC'
8441 lt_prog_compiler_static='-Bstatic'
8442 ;;
8443
8444 sysv4 | sysv4.2uw2* | sysv4.3*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_pic='-KPIC'
8447 lt_prog_compiler_static='-Bstatic'
8448 ;;
8449
8450 sysv4*MP*)
8451 if test -d /usr/nec ;then
8452 lt_prog_compiler_pic='-Kconform_pic'
8453 lt_prog_compiler_static='-Bstatic'
8454 fi
8455 ;;
8456
8457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='-KPIC'
8460 lt_prog_compiler_static='-Bstatic'
8461 ;;
8462
8463 unicos*)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_can_build_shared=no
8466 ;;
8467
8468 uts4*)
8469 lt_prog_compiler_pic='-pic'
8470 lt_prog_compiler_static='-Bstatic'
8471 ;;
8472
8473 *)
8474 lt_prog_compiler_can_build_shared=no
8475 ;;
8476 esac
8477 fi
8478
8479 case $host_os in
8480 # For platforms which do not support PIC, -DPIC is meaningless:
8481 *djgpp*)
8482 lt_prog_compiler_pic=
8483 ;;
8484 *)
8485 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8486 ;;
8487 esac
8488 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8489 $as_echo "$lt_prog_compiler_pic" >&6; }
8490
8491
8492
8493
8494
8495
8496 #
8497 # Check to make sure the PIC flag actually works.
8498 #
8499 if test -n "$lt_prog_compiler_pic"; then
8500 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8501 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8502 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_pic_works=no
8506 ac_outfile=conftest.$ac_objext
8507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8508 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8509 # Insert the option either (1) after the last *FLAGS variable, or
8510 # (2) before a word containing "conftest.", or (3) at the end.
8511 # Note that $ac_compile itself does not contain backslashes and begins
8512 # with a dollar sign (not a hyphen), so the echo should work correctly.
8513 # The option is referenced via a variable to avoid confusing sed.
8514 lt_compile=`echo "$ac_compile" | $SED \
8515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8517 -e 's:$: $lt_compiler_flag:'`
8518 (eval echo "\"\$as_me:8518: $lt_compile\"" >&5)
8519 (eval "$lt_compile" 2>conftest.err)
8520 ac_status=$?
8521 cat conftest.err >&5
8522 echo "$as_me:8522: \$? = $ac_status" >&5
8523 if (exit $ac_status) && test -s "$ac_outfile"; then
8524 # The compiler can only warn and ignore the option if not recognized
8525 # So say no if there are warnings other than the usual output.
8526 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8529 lt_cv_prog_compiler_pic_works=yes
8530 fi
8531 fi
8532 $RM conftest*
8533
8534 fi
8535 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8536 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8537
8538 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8539 case $lt_prog_compiler_pic in
8540 "" | " "*) ;;
8541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8542 esac
8543 else
8544 lt_prog_compiler_pic=
8545 lt_prog_compiler_can_build_shared=no
8546 fi
8547
8548 fi
8549
8550
8551
8552
8553
8554
8555 #
8556 # Check to make sure the static flag actually works.
8557 #
8558 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8559 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8560 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8561 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8562 $as_echo_n "(cached) " >&6
8563 else
8564 lt_cv_prog_compiler_static_works=no
8565 save_LDFLAGS="$LDFLAGS"
8566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8569 # The linker can only warn and ignore the option if not recognized
8570 # So say no if there are warnings
8571 if test -s conftest.err; then
8572 # Append any errors to the config.log.
8573 cat conftest.err 1>&5
8574 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8576 if diff conftest.exp conftest.er2 >/dev/null; then
8577 lt_cv_prog_compiler_static_works=yes
8578 fi
8579 else
8580 lt_cv_prog_compiler_static_works=yes
8581 fi
8582 fi
8583 $RM -r conftest*
8584 LDFLAGS="$save_LDFLAGS"
8585
8586 fi
8587 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8588 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8589
8590 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8591 :
8592 else
8593 lt_prog_compiler_static=
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8603 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8604 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8605 $as_echo_n "(cached) " >&6
8606 else
8607 lt_cv_prog_compiler_c_o=no
8608 $RM -r conftest 2>/dev/null
8609 mkdir conftest
8610 cd conftest
8611 mkdir out
8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613
8614 lt_compiler_flag="-o out/conftest2.$ac_objext"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 lt_compile=`echo "$ac_compile" | $SED \
8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622 -e 's:$: $lt_compiler_flag:'`
8623 (eval echo "\"\$as_me:8623: $lt_compile\"" >&5)
8624 (eval "$lt_compile" 2>out/conftest.err)
8625 ac_status=$?
8626 cat out/conftest.err >&5
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8629 then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings
8632 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_c_o=yes
8636 fi
8637 fi
8638 chmod u+w . 2>&5
8639 $RM conftest*
8640 # SGI C++ compiler will create directory out/ii_files/ for
8641 # template instantiation
8642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8643 $RM out/* && rmdir out
8644 cd ..
8645 $RM -r conftest
8646 $RM conftest*
8647
8648 fi
8649 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8650 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8651
8652
8653
8654
8655
8656
8657 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8658 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8659 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8660 $as_echo_n "(cached) " >&6
8661 else
8662 lt_cv_prog_compiler_c_o=no
8663 $RM -r conftest 2>/dev/null
8664 mkdir conftest
8665 cd conftest
8666 mkdir out
8667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8668
8669 lt_compiler_flag="-o out/conftest2.$ac_objext"
8670 # Insert the option either (1) after the last *FLAGS variable, or
8671 # (2) before a word containing "conftest.", or (3) at the end.
8672 # Note that $ac_compile itself does not contain backslashes and begins
8673 # with a dollar sign (not a hyphen), so the echo should work correctly.
8674 lt_compile=`echo "$ac_compile" | $SED \
8675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8677 -e 's:$: $lt_compiler_flag:'`
8678 (eval echo "\"\$as_me:8678: $lt_compile\"" >&5)
8679 (eval "$lt_compile" 2>out/conftest.err)
8680 ac_status=$?
8681 cat out/conftest.err >&5
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8684 then
8685 # The compiler can only warn and ignore the option if not recognized
8686 # So say no if there are warnings
8687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8690 lt_cv_prog_compiler_c_o=yes
8691 fi
8692 fi
8693 chmod u+w . 2>&5
8694 $RM conftest*
8695 # SGI C++ compiler will create directory out/ii_files/ for
8696 # template instantiation
8697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8698 $RM out/* && rmdir out
8699 cd ..
8700 $RM -r conftest
8701 $RM conftest*
8702
8703 fi
8704 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8705 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8706
8707
8708
8709
8710 hard_links="nottested"
8711 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8712 # do not overwrite the value of need_locks provided by the user
8713 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8714 $as_echo_n "checking if we can lock with hard links... " >&6; }
8715 hard_links=yes
8716 $RM conftest*
8717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8718 touch conftest.a
8719 ln conftest.a conftest.b 2>&5 || hard_links=no
8720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8721 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8722 $as_echo "$hard_links" >&6; }
8723 if test "$hard_links" = no; then
8724 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8725 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8726 need_locks=warn
8727 fi
8728 else
8729 need_locks=no
8730 fi
8731
8732
8733
8734
8735
8736
8737 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8738 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8739
8740 runpath_var=
8741 allow_undefined_flag=
8742 always_export_symbols=no
8743 archive_cmds=
8744 archive_expsym_cmds=
8745 compiler_needs_object=no
8746 enable_shared_with_static_runtimes=no
8747 export_dynamic_flag_spec=
8748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8749 hardcode_automatic=no
8750 hardcode_direct=no
8751 hardcode_direct_absolute=no
8752 hardcode_libdir_flag_spec=
8753 hardcode_libdir_flag_spec_ld=
8754 hardcode_libdir_separator=
8755 hardcode_minus_L=no
8756 hardcode_shlibpath_var=unsupported
8757 inherit_rpath=no
8758 link_all_deplibs=unknown
8759 module_cmds=
8760 module_expsym_cmds=
8761 old_archive_from_new_cmds=
8762 old_archive_from_expsyms_cmds=
8763 thread_safe_flag_spec=
8764 whole_archive_flag_spec=
8765 # include_expsyms should be a list of space-separated symbols to be *always*
8766 # included in the symbol list
8767 include_expsyms=
8768 # exclude_expsyms can be an extended regexp of symbols to exclude
8769 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8771 # as well as any symbol that contains `d'.
8772 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8774 # platforms (ab)use it in PIC code, but their linkers get confused if
8775 # the symbol is explicitly referenced. Since portable code cannot
8776 # rely on this symbol name, it's probably fine to never include it in
8777 # preloaded symbol tables.
8778 # Exclude shared library initialization/finalization symbols.
8779 extract_expsyms_cmds=
8780
8781 case $host_os in
8782 cygwin* | mingw* | pw32* | cegcc*)
8783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8784 # When not using gcc, we currently assume that we are using
8785 # Microsoft Visual C++.
8786 if test "$GCC" != yes; then
8787 with_gnu_ld=no
8788 fi
8789 ;;
8790 interix*)
8791 # we just hope/assume this is gcc and not c89 (= MSVC++)
8792 with_gnu_ld=yes
8793 ;;
8794 openbsd*)
8795 with_gnu_ld=no
8796 ;;
8797 esac
8798
8799 ld_shlibs=yes
8800 if test "$with_gnu_ld" = yes; then
8801 # If archive_cmds runs LD, not CC, wlarc should be empty
8802 wlarc='${wl}'
8803
8804 # Set some defaults for GNU ld with shared library support. These
8805 # are reset later if shared libraries are not supported. Putting them
8806 # here allows them to be overridden if necessary.
8807 runpath_var=LD_RUN_PATH
8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809 export_dynamic_flag_spec='${wl}--export-dynamic'
8810 # ancient GNU ld didn't support --whole-archive et. al.
8811 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8812 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8813 else
8814 whole_archive_flag_spec=
8815 fi
8816 supports_anon_versioning=no
8817 case `$LD -v 2>&1` in
8818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8821 *\ 2.11.*) ;; # other 2.11 versions
8822 *) supports_anon_versioning=yes ;;
8823 esac
8824
8825 # See if GNU ld supports shared libraries.
8826 case $host_os in
8827 aix[3-9]*)
8828 # On AIX/PPC, the GNU linker is very broken
8829 if test "$host_cpu" != ia64; then
8830 ld_shlibs=no
8831 cat <<_LT_EOF 1>&2
8832
8833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8834 *** to be unable to reliably create shared libraries on AIX.
8835 *** Therefore, libtool is disabling shared libraries support. If you
8836 *** really care for shared libraries, you may want to modify your PATH
8837 *** so that a non-GNU linker is found, and then restart.
8838
8839 _LT_EOF
8840 fi
8841 ;;
8842
8843 amigaos*)
8844 case $host_cpu in
8845 powerpc)
8846 # see comment about AmigaOS4 .so support
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848 archive_expsym_cmds=''
8849 ;;
8850 m68k)
8851 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)'
8852 hardcode_libdir_flag_spec='-L$libdir'
8853 hardcode_minus_L=yes
8854 ;;
8855 esac
8856 ;;
8857
8858 beos*)
8859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 allow_undefined_flag=unsupported
8861 # Joseph Beckenbach <[email protected]> says some releases of gcc
8862 # support --undefined. This deserves some investigation. FIXME
8863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
8868
8869 cygwin* | mingw* | pw32* | cegcc*)
8870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8871 # as there is no search path for DLLs.
8872 hardcode_libdir_flag_spec='-L$libdir'
8873 allow_undefined_flag=unsupported
8874 always_export_symbols=no
8875 enable_shared_with_static_runtimes=yes
8876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8877
8878 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8880 # If the export-symbols file already is a .def file (1st line
8881 # is EXPORTS), use it as is; otherwise, prepend...
8882 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8883 cp $export_symbols $output_objdir/$soname.def;
8884 else
8885 echo EXPORTS > $output_objdir/$soname.def;
8886 cat $export_symbols >> $output_objdir/$soname.def;
8887 fi~
8888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8889 else
8890 ld_shlibs=no
8891 fi
8892 ;;
8893
8894 interix[3-9]*)
8895 hardcode_direct=no
8896 hardcode_shlibpath_var=no
8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8898 export_dynamic_flag_spec='${wl}-E'
8899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8900 # Instead, shared libraries are loaded at an image base (0x10000000 by
8901 # default) and relocated if they conflict, which is a slow very memory
8902 # consuming and fragmenting process. To avoid this, we pick a random,
8903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8906 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'
8907 ;;
8908
8909 gnu* | linux* | tpf* | k*bsd*-gnu)
8910 tmp_diet=no
8911 if test "$host_os" = linux-dietlibc; then
8912 case $cc_basename in
8913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8914 esac
8915 fi
8916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8917 && test "$tmp_diet" = no
8918 then
8919 tmp_addflag=
8920 tmp_sharedflag='-shared'
8921 case $cc_basename,$host_cpu in
8922 pgcc*) # Portland Group C compiler
8923 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'
8924 tmp_addflag=' $pic_flag'
8925 ;;
8926 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8927 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'
8928 tmp_addflag=' $pic_flag -Mnomain' ;;
8929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8930 tmp_addflag=' -i_dynamic' ;;
8931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8932 tmp_addflag=' -i_dynamic -nofor_main' ;;
8933 ifc* | ifort*) # Intel Fortran compiler
8934 tmp_addflag=' -nofor_main' ;;
8935 lf95*) # Lahey Fortran 8.1
8936 whole_archive_flag_spec=
8937 tmp_sharedflag='--shared' ;;
8938 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8939 tmp_sharedflag='-qmkshrobj'
8940 tmp_addflag= ;;
8941 esac
8942 case `$CC -V 2>&1 | sed 5q` in
8943 *Sun\ C*) # Sun C 5.9
8944 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'
8945 compiler_needs_object=yes
8946 tmp_sharedflag='-G' ;;
8947 *Sun\ F*) # Sun Fortran 8.3
8948 tmp_sharedflag='-G' ;;
8949 esac
8950 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951
8952 if test "x$supports_anon_versioning" = xyes; then
8953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8955 echo "local: *; };" >> $output_objdir/$libname.ver~
8956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8957 fi
8958
8959 case $cc_basename in
8960 xlf*)
8961 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8962 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8963 hardcode_libdir_flag_spec=
8964 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8965 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8966 if test "x$supports_anon_versioning" = xyes; then
8967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8969 echo "local: *; };" >> $output_objdir/$libname.ver~
8970 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8971 fi
8972 ;;
8973 esac
8974 else
8975 ld_shlibs=no
8976 fi
8977 ;;
8978
8979 netbsd*)
8980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8982 wlarc=
8983 else
8984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8986 fi
8987 ;;
8988
8989 solaris*)
8990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8991 ld_shlibs=no
8992 cat <<_LT_EOF 1>&2
8993
8994 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8995 *** create shared libraries on Solaris systems. Therefore, libtool
8996 *** is disabling shared libraries support. We urge you to upgrade GNU
8997 *** binutils to release 2.9.1 or newer. Another option is to modify
8998 *** your PATH or compiler configuration so that the native linker is
8999 *** used, and then restart.
9000
9001 _LT_EOF
9002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9005 else
9006 ld_shlibs=no
9007 fi
9008 ;;
9009
9010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9011 case `$LD -v 2>&1` in
9012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9013 ld_shlibs=no
9014 cat <<_LT_EOF 1>&2
9015
9016 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9017 *** reliably create shared libraries on SCO systems. Therefore, libtool
9018 *** is disabling shared libraries support. We urge you to upgrade GNU
9019 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9020 *** your PATH or compiler configuration so that the native linker is
9021 *** used, and then restart.
9022
9023 _LT_EOF
9024 ;;
9025 *)
9026 # For security reasons, it is highly recommended that you always
9027 # use absolute paths for naming shared libraries, and exclude the
9028 # DT_RUNPATH tag from executables and libraries. But doing so
9029 # requires that you compile everything twice, which is a pain.
9030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034 else
9035 ld_shlibs=no
9036 fi
9037 ;;
9038 esac
9039 ;;
9040
9041 sunos4*)
9042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9043 wlarc=
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 *)
9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052 else
9053 ld_shlibs=no
9054 fi
9055 ;;
9056 esac
9057
9058 if test "$ld_shlibs" = no; then
9059 runpath_var=
9060 hardcode_libdir_flag_spec=
9061 export_dynamic_flag_spec=
9062 whole_archive_flag_spec=
9063 fi
9064 else
9065 # PORTME fill in a description of your system's linker (not GNU ld)
9066 case $host_os in
9067 aix3*)
9068 allow_undefined_flag=unsupported
9069 always_export_symbols=yes
9070 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'
9071 # Note: this linker hardcodes the directories in LIBPATH if there
9072 # are no directories specified by -L.
9073 hardcode_minus_L=yes
9074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9075 # Neither direct hardcoding nor static linking is supported with a
9076 # broken collect2.
9077 hardcode_direct=unsupported
9078 fi
9079 ;;
9080
9081 aix[4-9]*)
9082 if test "$host_cpu" = ia64; then
9083 # On IA64, the linker does run time linking by default, so we don't
9084 # have to do anything special.
9085 aix_use_runtimelinking=no
9086 exp_sym_flag='-Bexport'
9087 no_entry_flag=""
9088 else
9089 # If we're using GNU nm, then we don't want the "-C" option.
9090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9092 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'
9093 else
9094 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'
9095 fi
9096 aix_use_runtimelinking=no
9097
9098 # Test if we are trying to use run time linking or normal
9099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9100 # need to do runtime linking.
9101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9102 for ld_flag in $LDFLAGS; do
9103 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9104 aix_use_runtimelinking=yes
9105 break
9106 fi
9107 done
9108 ;;
9109 esac
9110
9111 exp_sym_flag='-bexport'
9112 no_entry_flag='-bnoentry'
9113 fi
9114
9115 # When large executables or shared objects are built, AIX ld can
9116 # have problems creating the table of contents. If linking a library
9117 # or program results in "error TOC overflow" add -mminimal-toc to
9118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9120
9121 archive_cmds=''
9122 hardcode_direct=yes
9123 hardcode_direct_absolute=yes
9124 hardcode_libdir_separator=':'
9125 link_all_deplibs=yes
9126 file_list_spec='${wl}-f,'
9127
9128 if test "$GCC" = yes; then
9129 case $host_os in aix4.[012]|aix4.[012].*)
9130 # We only want to do this on AIX 4.2 and lower, the check
9131 # below for broken collect2 doesn't work under 4.3+
9132 collect2name=`${CC} -print-prog-name=collect2`
9133 if test -f "$collect2name" &&
9134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9135 then
9136 # We have reworked collect2
9137 :
9138 else
9139 # We have old collect2
9140 hardcode_direct=unsupported
9141 # It fails to find uninstalled libraries when the uninstalled
9142 # path is not listed in the libpath. Setting hardcode_minus_L
9143 # to unsupported forces relinking
9144 hardcode_minus_L=yes
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_libdir_separator=
9147 fi
9148 ;;
9149 esac
9150 shared_flag='-shared'
9151 if test "$aix_use_runtimelinking" = yes; then
9152 shared_flag="$shared_flag "'${wl}-G'
9153 fi
9154 else
9155 # not using gcc
9156 if test "$host_cpu" = ia64; then
9157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9158 # chokes on -Wl,-G. The following line is correct:
9159 shared_flag='-G'
9160 else
9161 if test "$aix_use_runtimelinking" = yes; then
9162 shared_flag='${wl}-G'
9163 else
9164 shared_flag='${wl}-bM:SRE'
9165 fi
9166 fi
9167 fi
9168
9169 export_dynamic_flag_spec='${wl}-bexpall'
9170 # It seems that -bexpall does not export symbols beginning with
9171 # underscore (_), so it is better to generate a list of symbols to export.
9172 always_export_symbols=yes
9173 if test "$aix_use_runtimelinking" = yes; then
9174 # Warning - without using the other runtime loading flags (-brtl),
9175 # -berok will link without error, but may produce a broken library.
9176 allow_undefined_flag='-berok'
9177 # Determine the default libpath from the value encoded in an
9178 # empty executable.
9179 cat >conftest.$ac_ext <<_ACEOF
9180 /* confdefs.h. */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185
9186 int
9187 main ()
9188 {
9189
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9199 esac
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202 (eval "$ac_link") 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest$ac_exeext && {
9212 test "$cross_compiling" = yes ||
9213 $as_test_x conftest$ac_exeext
9214 }; then
9215
9216 lt_aix_libpath_sed='
9217 /Import File Strings/,/^$/ {
9218 /^0/ {
9219 s/^0 *\(.*\)$/\1/
9220 p
9221 }
9222 }'
9223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9224 # Check for a 64-bit object if we didn't find anything.
9225 if test -z "$aix_libpath"; then
9226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 fi
9228 else
9229 $as_echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9231
9232
9233 fi
9234
9235 rm -rf conftest.dSYM
9236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9237 conftest$ac_exeext conftest.$ac_ext
9238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9239
9240 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9241 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"
9242 else
9243 if test "$host_cpu" = ia64; then
9244 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9245 allow_undefined_flag="-z nodefs"
9246 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"
9247 else
9248 # Determine the default libpath from the value encoded in an
9249 # empty executable.
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256
9257 int
9258 main ()
9259 {
9260
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (ac_try="$ac_link"
9267 case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9272 $as_echo "$ac_try_echo") >&5
9273 (eval "$ac_link") 2>conftest.er1
9274 ac_status=$?
9275 grep -v '^ *+' conftest.er1 >conftest.err
9276 rm -f conftest.er1
9277 cat conftest.err >&5
9278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest$ac_exeext && {
9283 test "$cross_compiling" = yes ||
9284 $as_test_x conftest$ac_exeext
9285 }; then
9286
9287 lt_aix_libpath_sed='
9288 /Import File Strings/,/^$/ {
9289 /^0/ {
9290 s/^0 *\(.*\)$/\1/
9291 p
9292 }
9293 }'
9294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9295 # Check for a 64-bit object if we didn't find anything.
9296 if test -z "$aix_libpath"; then
9297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9298 fi
9299 else
9300 $as_echo "$as_me: failed program was:" >&5
9301 sed 's/^/| /' conftest.$ac_ext >&5
9302
9303
9304 fi
9305
9306 rm -rf conftest.dSYM
9307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9308 conftest$ac_exeext conftest.$ac_ext
9309 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9310
9311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9312 # Warning - without using the other run time loading flags,
9313 # -berok will link without error, but may produce a broken library.
9314 no_undefined_flag=' ${wl}-bernotok'
9315 allow_undefined_flag=' ${wl}-berok'
9316 # Exported symbols can be pulled into shared objects from archives
9317 whole_archive_flag_spec='$convenience'
9318 archive_cmds_need_lc=yes
9319 # This is similar to how AIX traditionally builds its shared libraries.
9320 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'
9321 fi
9322 fi
9323 ;;
9324
9325 amigaos*)
9326 case $host_cpu in
9327 powerpc)
9328 # see comment about AmigaOS4 .so support
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 archive_expsym_cmds=''
9331 ;;
9332 m68k)
9333 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)'
9334 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_minus_L=yes
9336 ;;
9337 esac
9338 ;;
9339
9340 bsdi[45]*)
9341 export_dynamic_flag_spec=-rdynamic
9342 ;;
9343
9344 cygwin* | mingw* | pw32* | cegcc*)
9345 # When not using gcc, we currently assume that we are using
9346 # Microsoft Visual C++.
9347 # hardcode_libdir_flag_spec is actually meaningless, as there is
9348 # no search path for DLLs.
9349 hardcode_libdir_flag_spec=' '
9350 allow_undefined_flag=unsupported
9351 # Tell ltmain to make .lib files, not .a files.
9352 libext=lib
9353 # Tell ltmain to make .dll files, not .so files.
9354 shrext_cmds=".dll"
9355 # FIXME: Setting linknames here is a bad hack.
9356 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9357 # The linker will automatically build a .lib file if we build a DLL.
9358 old_archive_from_new_cmds='true'
9359 # FIXME: Should let the user specify the lib program.
9360 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9361 fix_srcfile_path='`cygpath -w "$srcfile"`'
9362 enable_shared_with_static_runtimes=yes
9363 ;;
9364
9365 darwin* | rhapsody*)
9366
9367
9368 archive_cmds_need_lc=no
9369 hardcode_direct=no
9370 hardcode_automatic=yes
9371 hardcode_shlibpath_var=unsupported
9372 whole_archive_flag_spec=''
9373 link_all_deplibs=yes
9374 allow_undefined_flag="$_lt_dar_allow_undefined"
9375 case $cc_basename in
9376 ifort*) _lt_dar_can_shared=yes ;;
9377 *) _lt_dar_can_shared=$GCC ;;
9378 esac
9379 if test "$_lt_dar_can_shared" = "yes"; then
9380 output_verbose_link_cmd=echo
9381 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9382 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9383 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}"
9384 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}"
9385
9386 else
9387 ld_shlibs=no
9388 fi
9389
9390 ;;
9391
9392 dgux*)
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_libdir_flag_spec='-L$libdir'
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 freebsd1*)
9399 ld_shlibs=no
9400 ;;
9401
9402 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9403 # support. Future versions do this automatically, but an explicit c++rt0.o
9404 # does not break anything, and helps significantly (at the cost of a little
9405 # extra space).
9406 freebsd2.2*)
9407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9408 hardcode_libdir_flag_spec='-R$libdir'
9409 hardcode_direct=yes
9410 hardcode_shlibpath_var=no
9411 ;;
9412
9413 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9414 freebsd2*)
9415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9416 hardcode_direct=yes
9417 hardcode_minus_L=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9422 freebsd* | dragonfly*)
9423 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9424 hardcode_libdir_flag_spec='-R$libdir'
9425 hardcode_direct=yes
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 hpux9*)
9430 if test "$GCC" = yes; then
9431 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'
9432 else
9433 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'
9434 fi
9435 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9436 hardcode_libdir_separator=:
9437 hardcode_direct=yes
9438
9439 # hardcode_minus_L: Not really in the search PATH,
9440 # but as the default location of the library.
9441 hardcode_minus_L=yes
9442 export_dynamic_flag_spec='${wl}-E'
9443 ;;
9444
9445 hpux10*)
9446 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9447 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9448 else
9449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9450 fi
9451 if test "$with_gnu_ld" = no; then
9452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9453 hardcode_libdir_flag_spec_ld='+b $libdir'
9454 hardcode_libdir_separator=:
9455 hardcode_direct=yes
9456 hardcode_direct_absolute=yes
9457 export_dynamic_flag_spec='${wl}-E'
9458 # hardcode_minus_L: Not really in the search PATH,
9459 # but as the default location of the library.
9460 hardcode_minus_L=yes
9461 fi
9462 ;;
9463
9464 hpux11*)
9465 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9466 case $host_cpu in
9467 hppa*64*)
9468 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 ;;
9470 ia64*)
9471 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9472 ;;
9473 *)
9474 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9475 ;;
9476 esac
9477 else
9478 case $host_cpu in
9479 hppa*64*)
9480 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481 ;;
9482 ia64*)
9483 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9484 ;;
9485 *)
9486 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9487 ;;
9488 esac
9489 fi
9490 if test "$with_gnu_ld" = no; then
9491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9492 hardcode_libdir_separator=:
9493
9494 case $host_cpu in
9495 hppa*64*|ia64*)
9496 hardcode_direct=no
9497 hardcode_shlibpath_var=no
9498 ;;
9499 *)
9500 hardcode_direct=yes
9501 hardcode_direct_absolute=yes
9502 export_dynamic_flag_spec='${wl}-E'
9503
9504 # hardcode_minus_L: Not really in the search PATH,
9505 # but as the default location of the library.
9506 hardcode_minus_L=yes
9507 ;;
9508 esac
9509 fi
9510 ;;
9511
9512 irix5* | irix6* | nonstopux*)
9513 if test "$GCC" = yes; then
9514 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'
9515 # Try to use the -exported_symbol ld option, if it does not
9516 # work, assume that -exports_file does not work either and
9517 # implicitly export all symbols.
9518 save_LDFLAGS="$LDFLAGS"
9519 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9520 cat >conftest.$ac_ext <<_ACEOF
9521 int foo(void) {}
9522 _ACEOF
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (ac_try="$ac_link"
9525 case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528 esac
9529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9530 $as_echo "$ac_try_echo") >&5
9531 (eval "$ac_link") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest$ac_exeext && {
9541 test "$cross_compiling" = yes ||
9542 $as_test_x conftest$ac_exeext
9543 }; then
9544 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'
9545
9546 else
9547 $as_echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550
9551 fi
9552
9553 rm -rf conftest.dSYM
9554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LDFLAGS="$save_LDFLAGS"
9557 else
9558 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'
9559 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'
9560 fi
9561 archive_cmds_need_lc='no'
9562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563 hardcode_libdir_separator=:
9564 inherit_rpath=yes
9565 link_all_deplibs=yes
9566 ;;
9567
9568 netbsd*)
9569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9571 else
9572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9573 fi
9574 hardcode_libdir_flag_spec='-R$libdir'
9575 hardcode_direct=yes
9576 hardcode_shlibpath_var=no
9577 ;;
9578
9579 newsos6)
9580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_direct=yes
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584 hardcode_shlibpath_var=no
9585 ;;
9586
9587 *nto* | *qnx*)
9588 ;;
9589
9590 openbsd*)
9591 if test -f /usr/libexec/ld.so; then
9592 hardcode_direct=yes
9593 hardcode_shlibpath_var=no
9594 hardcode_direct_absolute=yes
9595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9599 export_dynamic_flag_spec='${wl}-E'
9600 else
9601 case $host_os in
9602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604 hardcode_libdir_flag_spec='-R$libdir'
9605 ;;
9606 *)
9607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9608 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9609 ;;
9610 esac
9611 fi
9612 else
9613 ld_shlibs=no
9614 fi
9615 ;;
9616
9617 os2*)
9618 hardcode_libdir_flag_spec='-L$libdir'
9619 hardcode_minus_L=yes
9620 allow_undefined_flag=unsupported
9621 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'
9622 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9623 ;;
9624
9625 osf3*)
9626 if test "$GCC" = yes; then
9627 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9628 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'
9629 else
9630 allow_undefined_flag=' -expect_unresolved \*'
9631 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'
9632 fi
9633 archive_cmds_need_lc='no'
9634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635 hardcode_libdir_separator=:
9636 ;;
9637
9638 osf4* | osf5*) # as osf3* with the addition of -msym flag
9639 if test "$GCC" = yes; then
9640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641 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'
9642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9643 else
9644 allow_undefined_flag=' -expect_unresolved \*'
9645 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'
9646 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~
9647 $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'
9648
9649 # Both c and cxx compiler support -rpath directly
9650 hardcode_libdir_flag_spec='-rpath $libdir'
9651 fi
9652 archive_cmds_need_lc='no'
9653 hardcode_libdir_separator=:
9654 ;;
9655
9656 solaris*)
9657 no_undefined_flag=' -z defs'
9658 if test "$GCC" = yes; then
9659 wlarc='${wl}'
9660 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9662 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9663 else
9664 case `$CC -V 2>&1` in
9665 *"Compilers 5.0"*)
9666 wlarc=''
9667 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9669 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9670 ;;
9671 *)
9672 wlarc='${wl}'
9673 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9675 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9676 ;;
9677 esac
9678 fi
9679 hardcode_libdir_flag_spec='-R$libdir'
9680 hardcode_shlibpath_var=no
9681 case $host_os in
9682 solaris2.[0-5] | solaris2.[0-5].*) ;;
9683 *)
9684 # The compiler driver will combine and reorder linker options,
9685 # but understands `-z linker_flag'. GCC discards it without `$wl',
9686 # but is careful enough not to reorder.
9687 # Supported since Solaris 2.6 (maybe 2.5.1?)
9688 if test "$GCC" = yes; then
9689 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9690 else
9691 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9692 fi
9693 ;;
9694 esac
9695 link_all_deplibs=yes
9696 ;;
9697
9698 sunos4*)
9699 if test "x$host_vendor" = xsequent; then
9700 # Use $CC to link under sequent, because it throws in some extra .o
9701 # files that make .init and .fini sections work.
9702 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9703 else
9704 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9705 fi
9706 hardcode_libdir_flag_spec='-L$libdir'
9707 hardcode_direct=yes
9708 hardcode_minus_L=yes
9709 hardcode_shlibpath_var=no
9710 ;;
9711
9712 sysv4)
9713 case $host_vendor in
9714 sni)
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_direct=yes # is this really true???
9717 ;;
9718 siemens)
9719 ## LD is ld it makes a PLAMLIB
9720 ## CC just makes a GrossModule.
9721 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9722 reload_cmds='$CC -r -o $output$reload_objs'
9723 hardcode_direct=no
9724 ;;
9725 motorola)
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9728 ;;
9729 esac
9730 runpath_var='LD_RUN_PATH'
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 sysv4.3*)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_shlibpath_var=no
9737 export_dynamic_flag_spec='-Bexport'
9738 ;;
9739
9740 sysv4*MP*)
9741 if test -d /usr/nec; then
9742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743 hardcode_shlibpath_var=no
9744 runpath_var=LD_RUN_PATH
9745 hardcode_runpath_var=yes
9746 ld_shlibs=yes
9747 fi
9748 ;;
9749
9750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9751 no_undefined_flag='${wl}-z,text'
9752 archive_cmds_need_lc=no
9753 hardcode_shlibpath_var=no
9754 runpath_var='LD_RUN_PATH'
9755
9756 if test "$GCC" = yes; then
9757 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 else
9760 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9762 fi
9763 ;;
9764
9765 sysv5* | sco3.2v5* | sco5v6*)
9766 # Note: We can NOT use -z defs as we might desire, because we do not
9767 # link with -lc, and that would cause any symbols used from libc to
9768 # always be unresolved, which means just about no library would
9769 # ever link correctly. If we're not using GNU ld we use -z text
9770 # though, which does catch some bad symbols but isn't as heavy-handed
9771 # as -z defs.
9772 no_undefined_flag='${wl}-z,text'
9773 allow_undefined_flag='${wl}-z,nodefs'
9774 archive_cmds_need_lc=no
9775 hardcode_shlibpath_var=no
9776 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9777 hardcode_libdir_separator=':'
9778 link_all_deplibs=yes
9779 export_dynamic_flag_spec='${wl}-Bexport'
9780 runpath_var='LD_RUN_PATH'
9781
9782 if test "$GCC" = yes; then
9783 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785 else
9786 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9788 fi
9789 ;;
9790
9791 uts4*)
9792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793 hardcode_libdir_flag_spec='-L$libdir'
9794 hardcode_shlibpath_var=no
9795 ;;
9796
9797 *)
9798 ld_shlibs=no
9799 ;;
9800 esac
9801
9802 if test x$host_vendor = xsni; then
9803 case $host in
9804 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9805 export_dynamic_flag_spec='${wl}-Blargedynsym'
9806 ;;
9807 esac
9808 fi
9809 fi
9810
9811 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9812 $as_echo "$ld_shlibs" >&6; }
9813 test "$ld_shlibs" = no && can_build_shared=no
9814
9815 with_gnu_ld=$with_gnu_ld
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831 #
9832 # Do we need to explicitly link libc?
9833 #
9834 case "x$archive_cmds_need_lc" in
9835 x|xyes)
9836 # Assume -lc should be added
9837 archive_cmds_need_lc=yes
9838
9839 if test "$enable_shared" = yes && test "$GCC" = yes; then
9840 case $archive_cmds in
9841 *'~'*)
9842 # FIXME: we may have to deal with multi-command sequences.
9843 ;;
9844 '$CC '*)
9845 # Test whether the compiler implicitly links with -lc since on some
9846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9847 # to ld, don't add -lc before -lgcc.
9848 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9849 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9850 $RM conftest*
9851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9852
9853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9854 (eval $ac_compile) 2>&5
9855 ac_status=$?
9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } 2>conftest.err; then
9858 soname=conftest
9859 lib=conftest
9860 libobjs=conftest.$ac_objext
9861 deplibs=
9862 wl=$lt_prog_compiler_wl
9863 pic_flag=$lt_prog_compiler_pic
9864 compiler_flags=-v
9865 linker_flags=-v
9866 verstring=
9867 output_objdir=.
9868 libname=conftest
9869 lt_save_allow_undefined_flag=$allow_undefined_flag
9870 allow_undefined_flag=
9871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9872 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9873 ac_status=$?
9874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }
9876 then
9877 archive_cmds_need_lc=no
9878 else
9879 archive_cmds_need_lc=yes
9880 fi
9881 allow_undefined_flag=$lt_save_allow_undefined_flag
9882 else
9883 cat conftest.err 1>&5
9884 fi
9885 $RM conftest*
9886 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9887 $as_echo "$archive_cmds_need_lc" >&6; }
9888 ;;
9889 esac
9890 fi
9891 ;;
9892 esac
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10051 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10052
10053 if test "$GCC" = yes; then
10054 case $host_os in
10055 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10056 *) lt_awk_arg="/^libraries:/" ;;
10057 esac
10058 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10059 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10060 # if the path contains ";" then we assume it to be the separator
10061 # otherwise default to the standard path separator (i.e. ":") - it is
10062 # assumed that no part of a normal pathname contains ";" but that should
10063 # okay in the real world where ";" in dirpaths is itself problematic.
10064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10065 else
10066 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10067 fi
10068 # Ok, now we have the path, separated by spaces, we can step through it
10069 # and add multilib dir if necessary.
10070 lt_tmp_lt_search_path_spec=
10071 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10072 for lt_sys_path in $lt_search_path_spec; do
10073 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10075 else
10076 test -d "$lt_sys_path" && \
10077 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10078 fi
10079 done
10080 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10081 BEGIN {RS=" "; FS="/|\n";} {
10082 lt_foo="";
10083 lt_count=0;
10084 for (lt_i = NF; lt_i > 0; lt_i--) {
10085 if ($lt_i != "" && $lt_i != ".") {
10086 if ($lt_i == "..") {
10087 lt_count++;
10088 } else {
10089 if (lt_count == 0) {
10090 lt_foo="/" $lt_i lt_foo;
10091 } else {
10092 lt_count--;
10093 }
10094 }
10095 }
10096 }
10097 if (lt_foo != "") { lt_freq[lt_foo]++; }
10098 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10099 }'`
10100 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10101 else
10102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10103 fi
10104 library_names_spec=
10105 libname_spec='lib$name'
10106 soname_spec=
10107 shrext_cmds=".so"
10108 postinstall_cmds=
10109 postuninstall_cmds=
10110 finish_cmds=
10111 finish_eval=
10112 shlibpath_var=
10113 shlibpath_overrides_runpath=unknown
10114 version_type=none
10115 dynamic_linker="$host_os ld.so"
10116 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10117 need_lib_prefix=unknown
10118 hardcode_into_libs=no
10119
10120 # when you set need_version to no, make sure it does not cause -set_version
10121 # flags to be left without arguments
10122 need_version=unknown
10123
10124 case $host_os in
10125 aix3*)
10126 version_type=linux
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10128 shlibpath_var=LIBPATH
10129
10130 # AIX 3 has no versioning support, so we append a major version to the name.
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 ;;
10133
10134 aix[4-9]*)
10135 version_type=linux
10136 need_lib_prefix=no
10137 need_version=no
10138 hardcode_into_libs=yes
10139 if test "$host_cpu" = ia64; then
10140 # AIX 5 supports IA64
10141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10142 shlibpath_var=LD_LIBRARY_PATH
10143 else
10144 # With GCC up to 2.95.x, collect2 would create an import file
10145 # for dependence libraries. The import file would start with
10146 # the line `#! .'. This would cause the generated library to
10147 # depend on `.', always an invalid library. This was fixed in
10148 # development snapshots of GCC prior to 3.0.
10149 case $host_os in
10150 aix4 | aix4.[01] | aix4.[01].*)
10151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10152 echo ' yes '
10153 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10154 :
10155 else
10156 can_build_shared=no
10157 fi
10158 ;;
10159 esac
10160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10161 # soname into executable. Probably we can add versioning support to
10162 # collect2, so additional links can be useful in future.
10163 if test "$aix_use_runtimelinking" = yes; then
10164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10165 # instead of lib<name>.a to let people know that these are not
10166 # typical AIX shared libraries.
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 else
10169 # We preserve .a as extension for shared libraries through AIX4.2
10170 # and later when we are not doing run time linking.
10171 library_names_spec='${libname}${release}.a $libname.a'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 fi
10174 shlibpath_var=LIBPATH
10175 fi
10176 ;;
10177
10178 amigaos*)
10179 case $host_cpu in
10180 powerpc)
10181 # Since July 2007 AmigaOS4 officially supports .so libraries.
10182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 ;;
10185 m68k)
10186 library_names_spec='$libname.ixlibrary $libname.a'
10187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10188 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'
10189 ;;
10190 esac
10191 ;;
10192
10193 beos*)
10194 library_names_spec='${libname}${shared_ext}'
10195 dynamic_linker="$host_os ld.so"
10196 shlibpath_var=LIBRARY_PATH
10197 ;;
10198
10199 bsdi[45]*)
10200 version_type=linux
10201 need_version=no
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10208 # the default ld.so.conf also contains /usr/contrib/lib and
10209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10210 # libtool to hard-code these into programs
10211 ;;
10212
10213 cygwin* | mingw* | pw32* | cegcc*)
10214 version_type=windows
10215 shrext_cmds=".dll"
10216 need_version=no
10217 need_lib_prefix=no
10218
10219 case $GCC,$host_os in
10220 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10221 library_names_spec='$libname.dll.a'
10222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10223 postinstall_cmds='base_file=`basename \${file}`~
10224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10225 dldir=$destdir/`dirname \$dlpath`~
10226 test -d \$dldir || mkdir -p \$dldir~
10227 $install_prog $dir/$dlname \$dldir/$dlname~
10228 chmod a+x \$dldir/$dlname~
10229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10231 fi'
10232 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10233 dlpath=$dir/\$dldll~
10234 $RM \$dlpath'
10235 shlibpath_overrides_runpath=yes
10236
10237 case $host_os in
10238 cygwin*)
10239 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10240 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10241 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10242 ;;
10243 mingw* | cegcc*)
10244 # MinGW DLLs use traditional 'lib' prefix
10245 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10246 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10247 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10248 # It is most probably a Windows format PATH printed by
10249 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10250 # path with ; separators, and with drive letters. We can handle the
10251 # drive letters (cygwin fileutils understands them), so leave them,
10252 # especially as we might pass files found there to a mingw objdump,
10253 # which wouldn't understand a cygwinified path. Ahh.
10254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10255 else
10256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10257 fi
10258 ;;
10259 pw32*)
10260 # pw32 DLLs use 'pw' prefix rather than 'lib'
10261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10262 ;;
10263 esac
10264 ;;
10265
10266 *)
10267 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10268 ;;
10269 esac
10270 dynamic_linker='Win32 ld.exe'
10271 # FIXME: first we should search . and the directory the executable is in
10272 shlibpath_var=PATH
10273 ;;
10274
10275 darwin* | rhapsody*)
10276 dynamic_linker="$host_os dyld"
10277 version_type=darwin
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10281 soname_spec='${libname}${release}${major}$shared_ext'
10282 shlibpath_overrides_runpath=yes
10283 shlibpath_var=DYLD_LIBRARY_PATH
10284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10285
10286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10288 ;;
10289
10290 dgux*)
10291 version_type=linux
10292 need_lib_prefix=no
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 ;;
10298
10299 freebsd1*)
10300 dynamic_linker=no
10301 ;;
10302
10303 freebsd* | dragonfly*)
10304 # DragonFly does not have aout. When/if they implement a new
10305 # versioning mechanism, adjust this.
10306 if test -x /usr/bin/objformat; then
10307 objformat=`/usr/bin/objformat`
10308 else
10309 case $host_os in
10310 freebsd[123]*) objformat=aout ;;
10311 *) objformat=elf ;;
10312 esac
10313 fi
10314 version_type=freebsd-$objformat
10315 case $version_type in
10316 freebsd-elf*)
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10318 need_version=no
10319 need_lib_prefix=no
10320 ;;
10321 freebsd-*)
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10323 need_version=yes
10324 ;;
10325 esac
10326 shlibpath_var=LD_LIBRARY_PATH
10327 case $host_os in
10328 freebsd2*)
10329 shlibpath_overrides_runpath=yes
10330 ;;
10331 freebsd3.[01]* | freebsdelf3.[01]*)
10332 shlibpath_overrides_runpath=yes
10333 hardcode_into_libs=yes
10334 ;;
10335 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10336 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10337 shlibpath_overrides_runpath=no
10338 hardcode_into_libs=yes
10339 ;;
10340 *) # from 4.6 on, and DragonFly
10341 shlibpath_overrides_runpath=yes
10342 hardcode_into_libs=yes
10343 ;;
10344 esac
10345 ;;
10346
10347 gnu*)
10348 version_type=linux
10349 need_lib_prefix=no
10350 need_version=no
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 hardcode_into_libs=yes
10355 ;;
10356
10357 hpux9* | hpux10* | hpux11*)
10358 # Give a soname corresponding to the major version so that dld.sl refuses to
10359 # link against other versions.
10360 version_type=sunos
10361 need_lib_prefix=no
10362 need_version=no
10363 case $host_cpu in
10364 ia64*)
10365 shrext_cmds='.so'
10366 hardcode_into_libs=yes
10367 dynamic_linker="$host_os dld.so"
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 if test "X$HPUX_IA64_MODE" = X32; then
10373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10374 else
10375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10376 fi
10377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10378 ;;
10379 hppa*64*)
10380 shrext_cmds='.sl'
10381 hardcode_into_libs=yes
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10389 ;;
10390 *)
10391 shrext_cmds='.sl'
10392 dynamic_linker="$host_os dld.sl"
10393 shlibpath_var=SHLIB_PATH
10394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 ;;
10398 esac
10399 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10400 postinstall_cmds='chmod 555 $lib'
10401 ;;
10402
10403 interix[3-9]*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 shlibpath_overrides_runpath=no
10412 hardcode_into_libs=yes
10413 ;;
10414
10415 irix5* | irix6* | nonstopux*)
10416 case $host_os in
10417 nonstopux*) version_type=nonstopux ;;
10418 *)
10419 if test "$lt_cv_prog_gnu_ld" = yes; then
10420 version_type=linux
10421 else
10422 version_type=irix
10423 fi ;;
10424 esac
10425 need_lib_prefix=no
10426 need_version=no
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10429 case $host_os in
10430 irix5* | nonstopux*)
10431 libsuff= shlibsuff=
10432 ;;
10433 *)
10434 case $LD in # libtool.m4 will add one of these switches to LD
10435 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10436 libsuff= shlibsuff= libmagic=32-bit;;
10437 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10438 libsuff=32 shlibsuff=N32 libmagic=N32;;
10439 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10440 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10441 *) libsuff= shlibsuff= libmagic=never-match;;
10442 esac
10443 ;;
10444 esac
10445 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10446 shlibpath_overrides_runpath=no
10447 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10448 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10449 hardcode_into_libs=yes
10450 ;;
10451
10452 # No shared lib support for Linux oldld, aout, or coff.
10453 linux*oldld* | linux*aout* | linux*coff*)
10454 dynamic_linker=no
10455 ;;
10456
10457 # This must be Linux ELF.
10458 linux* | k*bsd*-gnu)
10459 version_type=linux
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 shlibpath_overrides_runpath=no
10467 # Some binutils ld are patched to set DT_RUNPATH
10468 save_LDFLAGS=$LDFLAGS
10469 save_libdir=$libdir
10470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478
10479 int
10480 main ()
10481 {
10482
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext conftest$ac_exeext
10488 if { (ac_try="$ac_link"
10489 case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492 esac
10493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10494 $as_echo "$ac_try_echo") >&5
10495 (eval "$ac_link") 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && {
10502 test -z "$ac_c_werror_flag" ||
10503 test ! -s conftest.err
10504 } && test -s conftest$ac_exeext && {
10505 test "$cross_compiling" = yes ||
10506 $as_test_x conftest$ac_exeext
10507 }; then
10508 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10509 shlibpath_overrides_runpath=yes
10510 fi
10511
10512 else
10513 $as_echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516
10517 fi
10518
10519 rm -rf conftest.dSYM
10520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10521 conftest$ac_exeext conftest.$ac_ext
10522 LDFLAGS=$save_LDFLAGS
10523 libdir=$save_libdir
10524
10525 # This implies no fast_install, which is unacceptable.
10526 # Some rework will be needed to allow for fast_install
10527 # before this can be enabled.
10528 hardcode_into_libs=yes
10529
10530 # Add ABI-specific directories to the system library path.
10531 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10532
10533 # Append ld.so.conf contents to the search path
10534 if test -f /etc/ld.so.conf; then
10535 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' ' '`
10536 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10537 fi
10538
10539 # We used to test for /lib/ld.so.1 and disable shared libraries on
10540 # powerpc, because MkLinux only supported shared libraries with the
10541 # GNU dynamic linker. Since this was broken with cross compilers,
10542 # most powerpc-linux boxes support dynamic linking these days and
10543 # people can always --disable-shared, the test was removed, and we
10544 # assume the GNU/Linux dynamic linker is in use.
10545 dynamic_linker='GNU/Linux ld.so'
10546 ;;
10547
10548 netbsd*)
10549 version_type=sunos
10550 need_lib_prefix=no
10551 need_version=no
10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555 dynamic_linker='NetBSD (a.out) ld.so'
10556 else
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 dynamic_linker='NetBSD ld.elf_so'
10560 fi
10561 shlibpath_var=LD_LIBRARY_PATH
10562 shlibpath_overrides_runpath=yes
10563 hardcode_into_libs=yes
10564 ;;
10565
10566 newsos6)
10567 version_type=linux
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 shlibpath_overrides_runpath=yes
10571 ;;
10572
10573 *nto* | *qnx*)
10574 version_type=qnx
10575 need_lib_prefix=no
10576 need_version=no
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 shlibpath_overrides_runpath=no
10581 hardcode_into_libs=yes
10582 dynamic_linker='ldqnx.so'
10583 ;;
10584
10585 openbsd*)
10586 version_type=sunos
10587 sys_lib_dlsearch_path_spec="/usr/lib"
10588 need_lib_prefix=no
10589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10590 case $host_os in
10591 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10592 *) need_version=no ;;
10593 esac
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10598 case $host_os in
10599 openbsd2.[89] | openbsd2.[89].*)
10600 shlibpath_overrides_runpath=no
10601 ;;
10602 *)
10603 shlibpath_overrides_runpath=yes
10604 ;;
10605 esac
10606 else
10607 shlibpath_overrides_runpath=yes
10608 fi
10609 ;;
10610
10611 os2*)
10612 libname_spec='$name'
10613 shrext_cmds=".dll"
10614 need_lib_prefix=no
10615 library_names_spec='$libname${shared_ext} $libname.a'
10616 dynamic_linker='OS/2 ld.exe'
10617 shlibpath_var=LIBPATH
10618 ;;
10619
10620 osf3* | osf4* | osf5*)
10621 version_type=osf
10622 need_lib_prefix=no
10623 need_version=no
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10628 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10629 ;;
10630
10631 rdos*)
10632 dynamic_linker=no
10633 ;;
10634
10635 solaris*)
10636 version_type=linux
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 shlibpath_overrides_runpath=yes
10643 hardcode_into_libs=yes
10644 # ldd complains unless libraries are executable
10645 postinstall_cmds='chmod +x $lib'
10646 ;;
10647
10648 sunos4*)
10649 version_type=sunos
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes
10654 if test "$with_gnu_ld" = yes; then
10655 need_lib_prefix=no
10656 fi
10657 need_version=yes
10658 ;;
10659
10660 sysv4 | sysv4.3*)
10661 version_type=linux
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 case $host_vendor in
10666 sni)
10667 shlibpath_overrides_runpath=no
10668 need_lib_prefix=no
10669 runpath_var=LD_RUN_PATH
10670 ;;
10671 siemens)
10672 need_lib_prefix=no
10673 ;;
10674 motorola)
10675 need_lib_prefix=no
10676 need_version=no
10677 shlibpath_overrides_runpath=no
10678 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10679 ;;
10680 esac
10681 ;;
10682
10683 sysv4*MP*)
10684 if test -d /usr/nec ;then
10685 version_type=linux
10686 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10687 soname_spec='$libname${shared_ext}.$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 fi
10690 ;;
10691
10692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10693 version_type=freebsd-elf
10694 need_lib_prefix=no
10695 need_version=no
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=yes
10700 hardcode_into_libs=yes
10701 if test "$with_gnu_ld" = yes; then
10702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10703 else
10704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10705 case $host_os in
10706 sco3.2v5*)
10707 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10708 ;;
10709 esac
10710 fi
10711 sys_lib_dlsearch_path_spec='/usr/lib'
10712 ;;
10713
10714 tpf*)
10715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10716 version_type=linux
10717 need_lib_prefix=no
10718 need_version=no
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 shlibpath_var=LD_LIBRARY_PATH
10721 shlibpath_overrides_runpath=no
10722 hardcode_into_libs=yes
10723 ;;
10724
10725 uts4*)
10726 version_type=linux
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 ;;
10731
10732 *)
10733 dynamic_linker=no
10734 ;;
10735 esac
10736 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10737 $as_echo "$dynamic_linker" >&6; }
10738 test "$dynamic_linker" = no && can_build_shared=no
10739
10740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10741 if test "$GCC" = yes; then
10742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10743 fi
10744
10745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10747 fi
10748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10750 fi
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10839 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10840 hardcode_action=
10841 if test -n "$hardcode_libdir_flag_spec" ||
10842 test -n "$runpath_var" ||
10843 test "X$hardcode_automatic" = "Xyes" ; then
10844
10845 # We can hardcode non-existent directories.
10846 if test "$hardcode_direct" != no &&
10847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10848 # have to relink, otherwise we might link with an installed library
10849 # when we should be linking with a yet-to-be-installed one
10850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10851 test "$hardcode_minus_L" != no; then
10852 # Linking always hardcodes the temporary library directory.
10853 hardcode_action=relink
10854 else
10855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10856 hardcode_action=immediate
10857 fi
10858 else
10859 # We cannot hardcode anything, or else we can only hardcode existing
10860 # directories.
10861 hardcode_action=unsupported
10862 fi
10863 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10864 $as_echo "$hardcode_action" >&6; }
10865
10866 if test "$hardcode_action" = relink ||
10867 test "$inherit_rpath" = yes; then
10868 # Fast installation is not supported
10869 enable_fast_install=no
10870 elif test "$shlibpath_overrides_runpath" = yes ||
10871 test "$enable_shared" = no; then
10872 # Fast installation is not necessary
10873 enable_fast_install=needless
10874 fi
10875
10876
10877
10878
10879
10880
10881 if test "x$enable_dlopen" != xyes; then
10882 enable_dlopen=unknown
10883 enable_dlopen_self=unknown
10884 enable_dlopen_self_static=unknown
10885 else
10886 lt_cv_dlopen=no
10887 lt_cv_dlopen_libs=
10888
10889 case $host_os in
10890 beos*)
10891 lt_cv_dlopen="load_add_on"
10892 lt_cv_dlopen_libs=
10893 lt_cv_dlopen_self=yes
10894 ;;
10895
10896 mingw* | pw32* | cegcc*)
10897 lt_cv_dlopen="LoadLibrary"
10898 lt_cv_dlopen_libs=
10899 ;;
10900
10901 cygwin*)
10902 lt_cv_dlopen="dlopen"
10903 lt_cv_dlopen_libs=
10904 ;;
10905
10906 darwin*)
10907 # if libdl is installed we need to link against it
10908 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10909 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10911 $as_echo_n "(cached) " >&6
10912 else
10913 ac_check_lib_save_LIBS=$LIBS
10914 LIBS="-ldl $LIBS"
10915 cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h. */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10921
10922 /* Override any GCC internal prototype to avoid an error.
10923 Use char because int might match the return type of a GCC
10924 builtin and then its argument prototype would still apply. */
10925 #ifdef __cplusplus
10926 extern "C"
10927 #endif
10928 char dlopen ();
10929 int
10930 main ()
10931 {
10932 return dlopen ();
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 rm -f conftest.$ac_objext conftest$ac_exeext
10938 if { (ac_try="$ac_link"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10942 esac
10943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944 $as_echo "$ac_try_echo") >&5
10945 (eval "$ac_link") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest$ac_exeext && {
10955 test "$cross_compiling" = yes ||
10956 $as_test_x conftest$ac_exeext
10957 }; then
10958 ac_cv_lib_dl_dlopen=yes
10959 else
10960 $as_echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963 ac_cv_lib_dl_dlopen=no
10964 fi
10965
10966 rm -rf conftest.dSYM
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10970 fi
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10973 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10975 else
10976
10977 lt_cv_dlopen="dyld"
10978 lt_cv_dlopen_libs=
10979 lt_cv_dlopen_self=yes
10980
10981 fi
10982
10983 ;;
10984
10985 *)
10986 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10987 $as_echo_n "checking for shl_load... " >&6; }
10988 if test "${ac_cv_func_shl_load+set}" = set; then
10989 $as_echo_n "(cached) " >&6
10990 else
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999 #define shl_load innocuous_shl_load
11000
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char shl_load (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11005
11006 #ifdef __STDC__
11007 # include <limits.h>
11008 #else
11009 # include <assert.h>
11010 #endif
11011
11012 #undef shl_load
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char shl_load ();
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined __stub_shl_load || defined __stub___shl_load
11025 choke me
11026 #endif
11027
11028 int
11029 main ()
11030 {
11031 return shl_load ();
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
11057 ac_cv_func_shl_load=yes
11058 else
11059 $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 ac_cv_func_shl_load=no
11063 fi
11064
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 fi
11069 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11070 $as_echo "$ac_cv_func_shl_load" >&6; }
11071 if test "x$ac_cv_func_shl_load" = x""yes; then
11072 lt_cv_dlopen="shl_load"
11073 else
11074 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11075 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11076 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11077 $as_echo_n "(cached) " >&6
11078 else
11079 ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-ldld $LIBS"
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char shl_load ();
11095 int
11096 main ()
11097 {
11098 return shl_load ();
11099 ;
11100 return 0;
11101 }
11102 _ACEOF
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (ac_try="$ac_link"
11105 case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108 esac
11109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11110 $as_echo "$ac_try_echo") >&5
11111 (eval "$ac_link") 2>conftest.er1
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest$ac_exeext && {
11121 test "$cross_compiling" = yes ||
11122 $as_test_x conftest$ac_exeext
11123 }; then
11124 ac_cv_lib_dld_shl_load=yes
11125 else
11126 $as_echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11128
11129 ac_cv_lib_dld_shl_load=no
11130 fi
11131
11132 rm -rf conftest.dSYM
11133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11136 fi
11137 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11138 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11139 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11140 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11141 else
11142 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11143 $as_echo_n "checking for dlopen... " >&6; }
11144 if test "${ac_cv_func_dlopen+set}" = set; then
11145 $as_echo_n "(cached) " >&6
11146 else
11147 cat >conftest.$ac_ext <<_ACEOF
11148 /* confdefs.h. */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11155 #define dlopen innocuous_dlopen
11156
11157 /* System header to define __stub macros and hopefully few prototypes,
11158 which can conflict with char dlopen (); below.
11159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11160 <limits.h> exists even on freestanding compilers. */
11161
11162 #ifdef __STDC__
11163 # include <limits.h>
11164 #else
11165 # include <assert.h>
11166 #endif
11167
11168 #undef dlopen
11169
11170 /* Override any GCC internal prototype to avoid an error.
11171 Use char because int might match the return type of a GCC
11172 builtin and then its argument prototype would still apply. */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char dlopen ();
11177 /* The GNU C library defines this for functions which it implements
11178 to always fail with ENOSYS. Some functions are actually named
11179 something starting with __ and the normal name is an alias. */
11180 #if defined __stub_dlopen || defined __stub___dlopen
11181 choke me
11182 #endif
11183
11184 int
11185 main ()
11186 {
11187 return dlopen ();
11188 ;
11189 return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (ac_try="$ac_link"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199 $as_echo "$ac_try_echo") >&5
11200 (eval "$ac_link") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest$ac_exeext && {
11210 test "$cross_compiling" = yes ||
11211 $as_test_x conftest$ac_exeext
11212 }; then
11213 ac_cv_func_dlopen=yes
11214 else
11215 $as_echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 ac_cv_func_dlopen=no
11219 fi
11220
11221 rm -rf conftest.dSYM
11222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11223 conftest$ac_exeext conftest.$ac_ext
11224 fi
11225 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11226 $as_echo "$ac_cv_func_dlopen" >&6; }
11227 if test "x$ac_cv_func_dlopen" = x""yes; then
11228 lt_cv_dlopen="dlopen"
11229 else
11230 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11233 $as_echo_n "(cached) " >&6
11234 else
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-ldl $LIBS"
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char dlopen ();
11251 int
11252 main ()
11253 {
11254 return dlopen ();
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (ac_try="$ac_link"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264 esac
11265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11266 $as_echo "$ac_try_echo") >&5
11267 (eval "$ac_link") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext && {
11277 test "$cross_compiling" = yes ||
11278 $as_test_x conftest$ac_exeext
11279 }; then
11280 ac_cv_lib_dl_dlopen=yes
11281 else
11282 $as_echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_cv_lib_dl_dlopen=no
11286 fi
11287
11288 rm -rf conftest.dSYM
11289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11294 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11295 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11297 else
11298 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11299 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lsvld $LIBS"
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char dlopen ();
11319 int
11320 main ()
11321 {
11322 return dlopen ();
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11334 $as_echo "$ac_try_echo") >&5
11335 (eval "$ac_link") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest$ac_exeext && {
11345 test "$cross_compiling" = yes ||
11346 $as_test_x conftest$ac_exeext
11347 }; then
11348 ac_cv_lib_svld_dlopen=yes
11349 else
11350 $as_echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11352
11353 ac_cv_lib_svld_dlopen=no
11354 fi
11355
11356 rm -rf conftest.dSYM
11357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11358 conftest$ac_exeext conftest.$ac_ext
11359 LIBS=$ac_check_lib_save_LIBS
11360 fi
11361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11362 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11363 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11365 else
11366 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11367 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11368 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11369 $as_echo_n "(cached) " >&6
11370 else
11371 ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-ldld $LIBS"
11373 cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h. */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char dld_link ();
11387 int
11388 main ()
11389 {
11390 return dld_link ();
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 rm -f conftest.$ac_objext conftest$ac_exeext
11396 if { (ac_try="$ac_link"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400 esac
11401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402 $as_echo "$ac_try_echo") >&5
11403 (eval "$ac_link") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext && {
11413 test "$cross_compiling" = yes ||
11414 $as_test_x conftest$ac_exeext
11415 }; then
11416 ac_cv_lib_dld_dld_link=yes
11417 else
11418 $as_echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_cv_lib_dld_dld_link=no
11422 fi
11423
11424 rm -rf conftest.dSYM
11425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426 conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11428 fi
11429 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11430 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11431 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11433 fi
11434
11435
11436 fi
11437
11438
11439 fi
11440
11441
11442 fi
11443
11444
11445 fi
11446
11447
11448 fi
11449
11450 ;;
11451 esac
11452
11453 if test "x$lt_cv_dlopen" != xno; then
11454 enable_dlopen=yes
11455 else
11456 enable_dlopen=no
11457 fi
11458
11459 case $lt_cv_dlopen in
11460 dlopen)
11461 save_CPPFLAGS="$CPPFLAGS"
11462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11463
11464 save_LDFLAGS="$LDFLAGS"
11465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11466
11467 save_LIBS="$LIBS"
11468 LIBS="$lt_cv_dlopen_libs $LIBS"
11469
11470 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11471 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11472 if test "${lt_cv_dlopen_self+set}" = set; then
11473 $as_echo_n "(cached) " >&6
11474 else
11475 if test "$cross_compiling" = yes; then :
11476 lt_cv_dlopen_self=cross
11477 else
11478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11479 lt_status=$lt_dlunknown
11480 cat > conftest.$ac_ext <<_LT_EOF
11481 #line 11481 "configure"
11482 #include "confdefs.h"
11483
11484 #if HAVE_DLFCN_H
11485 #include <dlfcn.h>
11486 #endif
11487
11488 #include <stdio.h>
11489
11490 #ifdef RTLD_GLOBAL
11491 # define LT_DLGLOBAL RTLD_GLOBAL
11492 #else
11493 # ifdef DL_GLOBAL
11494 # define LT_DLGLOBAL DL_GLOBAL
11495 # else
11496 # define LT_DLGLOBAL 0
11497 # endif
11498 #endif
11499
11500 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11501 find out it does not work in some platform. */
11502 #ifndef LT_DLLAZY_OR_NOW
11503 # ifdef RTLD_LAZY
11504 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11505 # else
11506 # ifdef DL_LAZY
11507 # define LT_DLLAZY_OR_NOW DL_LAZY
11508 # else
11509 # ifdef RTLD_NOW
11510 # define LT_DLLAZY_OR_NOW RTLD_NOW
11511 # else
11512 # ifdef DL_NOW
11513 # define LT_DLLAZY_OR_NOW DL_NOW
11514 # else
11515 # define LT_DLLAZY_OR_NOW 0
11516 # endif
11517 # endif
11518 # endif
11519 # endif
11520 #endif
11521
11522 void fnord() { int i=42;}
11523 int main ()
11524 {
11525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11526 int status = $lt_dlunknown;
11527
11528 if (self)
11529 {
11530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11532 /* dlclose (self); */
11533 }
11534 else
11535 puts (dlerror ());
11536
11537 return status;
11538 }
11539 _LT_EOF
11540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11541 (eval $ac_link) 2>&5
11542 ac_status=$?
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11545 (./conftest; exit; ) >&5 2>/dev/null
11546 lt_status=$?
11547 case x$lt_status in
11548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11550 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11551 esac
11552 else :
11553 # compilation failed
11554 lt_cv_dlopen_self=no
11555 fi
11556 fi
11557 rm -fr conftest*
11558
11559
11560 fi
11561 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11562 $as_echo "$lt_cv_dlopen_self" >&6; }
11563
11564 if test "x$lt_cv_dlopen_self" = xyes; then
11565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11566 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11567 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11568 if test "${lt_cv_dlopen_self_static+set}" = set; then
11569 $as_echo_n "(cached) " >&6
11570 else
11571 if test "$cross_compiling" = yes; then :
11572 lt_cv_dlopen_self_static=cross
11573 else
11574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11575 lt_status=$lt_dlunknown
11576 cat > conftest.$ac_ext <<_LT_EOF
11577 #line 11577 "configure"
11578 #include "confdefs.h"
11579
11580 #if HAVE_DLFCN_H
11581 #include <dlfcn.h>
11582 #endif
11583
11584 #include <stdio.h>
11585
11586 #ifdef RTLD_GLOBAL
11587 # define LT_DLGLOBAL RTLD_GLOBAL
11588 #else
11589 # ifdef DL_GLOBAL
11590 # define LT_DLGLOBAL DL_GLOBAL
11591 # else
11592 # define LT_DLGLOBAL 0
11593 # endif
11594 #endif
11595
11596 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11597 find out it does not work in some platform. */
11598 #ifndef LT_DLLAZY_OR_NOW
11599 # ifdef RTLD_LAZY
11600 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11601 # else
11602 # ifdef DL_LAZY
11603 # define LT_DLLAZY_OR_NOW DL_LAZY
11604 # else
11605 # ifdef RTLD_NOW
11606 # define LT_DLLAZY_OR_NOW RTLD_NOW
11607 # else
11608 # ifdef DL_NOW
11609 # define LT_DLLAZY_OR_NOW DL_NOW
11610 # else
11611 # define LT_DLLAZY_OR_NOW 0
11612 # endif
11613 # endif
11614 # endif
11615 # endif
11616 #endif
11617
11618 void fnord() { int i=42;}
11619 int main ()
11620 {
11621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11622 int status = $lt_dlunknown;
11623
11624 if (self)
11625 {
11626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11628 /* dlclose (self); */
11629 }
11630 else
11631 puts (dlerror ());
11632
11633 return status;
11634 }
11635 _LT_EOF
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>&5
11638 ac_status=$?
11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11641 (./conftest; exit; ) >&5 2>/dev/null
11642 lt_status=$?
11643 case x$lt_status in
11644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11647 esac
11648 else :
11649 # compilation failed
11650 lt_cv_dlopen_self_static=no
11651 fi
11652 fi
11653 rm -fr conftest*
11654
11655
11656 fi
11657 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11659 fi
11660
11661 CPPFLAGS="$save_CPPFLAGS"
11662 LDFLAGS="$save_LDFLAGS"
11663 LIBS="$save_LIBS"
11664 ;;
11665 esac
11666
11667 case $lt_cv_dlopen_self in
11668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11669 *) enable_dlopen_self=unknown ;;
11670 esac
11671
11672 case $lt_cv_dlopen_self_static in
11673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11674 *) enable_dlopen_self_static=unknown ;;
11675 esac
11676 fi
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694 striplib=
11695 old_striplib=
11696 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11697 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11698 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11700 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11701 { $as_echo "$as_me:$LINENO: result: yes" >&5
11702 $as_echo "yes" >&6; }
11703 else
11704 # FIXME - insert some real tests, host_os isn't really good enough
11705 case $host_os in
11706 darwin*)
11707 if test -n "$STRIP" ; then
11708 striplib="$STRIP -x"
11709 old_striplib="$STRIP -S"
11710 { $as_echo "$as_me:$LINENO: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712 else
11713 { $as_echo "$as_me:$LINENO: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716 ;;
11717 *)
11718 { $as_echo "$as_me:$LINENO: result: no" >&5
11719 $as_echo "no" >&6; }
11720 ;;
11721 esac
11722 fi
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735 # Report which library types will actually be built
11736 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11737 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11738 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11739 $as_echo "$can_build_shared" >&6; }
11740
11741 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11742 $as_echo_n "checking whether to build shared libraries... " >&6; }
11743 test "$can_build_shared" = "no" && enable_shared=no
11744
11745 # On AIX, shared libraries and static libraries use the same namespace, and
11746 # are all built from PIC.
11747 case $host_os in
11748 aix3*)
11749 test "$enable_shared" = yes && enable_static=no
11750 if test -n "$RANLIB"; then
11751 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11752 postinstall_cmds='$RANLIB $lib'
11753 fi
11754 ;;
11755
11756 aix[4-9]*)
11757 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11758 test "$enable_shared" = yes && enable_static=no
11759 fi
11760 ;;
11761 esac
11762 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11763 $as_echo "$enable_shared" >&6; }
11764
11765 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11766 $as_echo_n "checking whether to build static libraries... " >&6; }
11767 # Make sure either enable_shared or enable_static is yes.
11768 test "$enable_shared" = yes || enable_static=yes
11769 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11770 $as_echo "$enable_static" >&6; }
11771
11772
11773
11774
11775 fi
11776 ac_ext=c
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781
11782 CC="$lt_save_CC"
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796 ac_config_commands="$ac_config_commands libtool"
11797
11798
11799
11800
11801 # Only expand once:
11802
11803
11804
11805
11806 for flag in -pipe -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -Wstrict-aliasing; do
11807
11808 { $as_echo "$as_me:$LINENO: checking if $CC supports $flag flag" >&5
11809 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
11810 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
11811 $as_echo_n "(cached) " >&6
11812 else
11813
11814 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
11815 $as_echo_n "(cached) " >&6
11816 else
11817 ac_save_CFLAGS="$CFLAGS"
11818 CFLAGS="$CFLAGS $flag"
11819 cat >conftest.$ac_ext <<_ACEOF
11820 int a;
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (ac_try="$ac_compile"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827 esac
11828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11829 $as_echo "$ac_try_echo") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest.$ac_objext; then
11840 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
11841 else
11842 $as_echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 CFLAGS="$ac_save_CFLAGS"
11850
11851 fi
11852
11853
11854
11855
11856 fi
11857 ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh\`'}
11858 $as_echo "$as_val"'`
11859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11860 $as_echo "$ac_res" >&6; }
11861
11862 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then
11863 CFLAGS="$CFLAGS $flag";
11864 fi
11865
11866
11867 done
11868
11869
11870 # Checks for header files.
11871
11872 { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5
11873 $as_echo_n "checking whether to enable assertions... " >&6; }
11874 # Check whether --enable-assert was given.
11875 if test "${enable_assert+set}" = set; then
11876 enableval=$enable_assert; { $as_echo "$as_me:$LINENO: result: no" >&5
11877 $as_echo "no" >&6; }
11878
11879 cat >>confdefs.h <<\_ACEOF
11880 #define NDEBUG 1
11881 _ACEOF
11882
11883 else
11884 { $as_echo "$as_me:$LINENO: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886 fi
11887
11888
11889 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11890 $as_echo_n "checking for ANSI C header files... " >&6; }
11891 if test "${ac_cv_header_stdc+set}" = set; then
11892 $as_echo_n "(cached) " >&6
11893 else
11894 cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h. */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <stdlib.h>
11901 #include <stdarg.h>
11902 #include <string.h>
11903 #include <float.h>
11904
11905 int
11906 main ()
11907 {
11908
11909 ;
11910 return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext
11914 if { (ac_try="$ac_compile"
11915 case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918 esac
11919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920 $as_echo "$ac_try_echo") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 ac_cv_header_stdc=yes
11932 else
11933 $as_echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_header_stdc=no
11937 fi
11938
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940
11941 if test $ac_cv_header_stdc = yes; then
11942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <string.h>
11950
11951 _ACEOF
11952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11953 $EGREP "memchr" >/dev/null 2>&1; then
11954 :
11955 else
11956 ac_cv_header_stdc=no
11957 fi
11958 rm -f conftest*
11959
11960 fi
11961
11962 if test $ac_cv_header_stdc = yes; then
11963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11964 cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h. */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 #include <stdlib.h>
11971
11972 _ACEOF
11973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11974 $EGREP "free" >/dev/null 2>&1; then
11975 :
11976 else
11977 ac_cv_header_stdc=no
11978 fi
11979 rm -f conftest*
11980
11981 fi
11982
11983 if test $ac_cv_header_stdc = yes; then
11984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11985 if test "$cross_compiling" = yes; then
11986 :
11987 else
11988 cat >conftest.$ac_ext <<_ACEOF
11989 /* confdefs.h. */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 #include <ctype.h>
11995 #include <stdlib.h>
11996 #if ((' ' & 0x0FF) == 0x020)
11997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11999 #else
12000 # define ISLOWER(c) \
12001 (('a' <= (c) && (c) <= 'i') \
12002 || ('j' <= (c) && (c) <= 'r') \
12003 || ('s' <= (c) && (c) <= 'z'))
12004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12005 #endif
12006
12007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12008 int
12009 main ()
12010 {
12011 int i;
12012 for (i = 0; i < 256; i++)
12013 if (XOR (islower (i), ISLOWER (i))
12014 || toupper (i) != TOUPPER (i))
12015 return 2;
12016 return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024 esac
12025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12026 $as_echo "$ac_try_echo") >&5
12027 (eval "$ac_link") 2>&5
12028 ac_status=$?
12029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12031 { (case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12034 esac
12035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12036 $as_echo "$ac_try_echo") >&5
12037 (eval "$ac_try") 2>&5
12038 ac_status=$?
12039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 :
12042 else
12043 $as_echo "$as_me: program exited with status $ac_status" >&5
12044 $as_echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 ( exit $ac_status )
12048 ac_cv_header_stdc=no
12049 fi
12050 rm -rf conftest.dSYM
12051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12052 fi
12053
12054
12055 fi
12056 fi
12057 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12058 $as_echo "$ac_cv_header_stdc" >&6; }
12059 if test $ac_cv_header_stdc = yes; then
12060
12061 cat >>confdefs.h <<\_ACEOF
12062 #define STDC_HEADERS 1
12063 _ACEOF
12064
12065 fi
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075 for ac_header in fcntl.h limits.h stdlib.h string.h syslog.h unistd.h sys/ioctl.h sys/time.h
12076 do
12077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12080 $as_echo_n "checking for $ac_header... " >&6; }
12081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12082 $as_echo_n "(cached) " >&6
12083 fi
12084 ac_res=`eval 'as_val=${'$as_ac_Header'}
12085 $as_echo "$as_val"'`
12086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12087 $as_echo "$ac_res" >&6; }
12088 else
12089 # Is the header compilable?
12090 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12091 $as_echo_n "checking $ac_header usability... " >&6; }
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12099 #include <$ac_header>
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (ac_try="$ac_compile"
12103 case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106 esac
12107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12108 $as_echo "$ac_try_echo") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 ac_header_compiler=yes
12120 else
12121 $as_echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 ac_header_compiler=no
12125 fi
12126
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12129 $as_echo "$ac_header_compiler" >&6; }
12130
12131 # Is the header present?
12132 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12133 $as_echo_n "checking $ac_header presence... " >&6; }
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h. */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <$ac_header>
12141 _ACEOF
12142 if { (ac_try="$ac_cpp conftest.$ac_ext"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12146 esac
12147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12148 $as_echo "$ac_try_echo") >&5
12149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } >/dev/null && {
12156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12158 }; then
12159 ac_header_preproc=yes
12160 else
12161 $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164 ac_header_preproc=no
12165 fi
12166
12167 rm -f conftest.err conftest.$ac_ext
12168 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12169 $as_echo "$ac_header_preproc" >&6; }
12170
12171 # So? What about this header?
12172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12173 yes:no: )
12174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12175 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12178 ac_header_preproc=yes
12179 ;;
12180 no:yes:* )
12181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12182 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12184 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12185 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12186 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12188 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12192 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12193 ( cat <<\_ASBOX
12194 ## ---------------------------------------------- ##
12195 ## Report this to mzqnrzba (at) 0pointer (dot) de ##
12196 ## ---------------------------------------------- ##
12197 _ASBOX
12198 ) | sed "s/^/$as_me: WARNING: /" >&2
12199 ;;
12200 esac
12201 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12202 $as_echo_n "checking for $ac_header... " >&6; }
12203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12204 $as_echo_n "(cached) " >&6
12205 else
12206 eval "$as_ac_Header=\$ac_header_preproc"
12207 fi
12208 ac_res=`eval 'as_val=${'$as_ac_Header'}
12209 $as_echo "$as_val"'`
12210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12211 $as_echo "$ac_res" >&6; }
12212
12213 fi
12214 as_val=`eval 'as_val=${'$as_ac_Header'}
12215 $as_echo "$as_val"'`
12216 if test "x$as_val" = x""yes; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219 _ACEOF
12220
12221 fi
12222
12223 done
12224
12225 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12226 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12227 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12228 $as_echo_n "(cached) " >&6
12229 else
12230 cat >conftest.$ac_ext <<_ACEOF
12231 /* confdefs.h. */
12232 _ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <sys/types.h>
12237 #include <sys/wait.h>
12238 #ifndef WEXITSTATUS
12239 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12240 #endif
12241 #ifndef WIFEXITED
12242 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12243 #endif
12244
12245 int
12246 main ()
12247 {
12248 int s;
12249 wait (&s);
12250 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_compile") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest.$ac_objext; then
12273 ac_cv_header_sys_wait_h=yes
12274 else
12275 $as_echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_cv_header_sys_wait_h=no
12279 fi
12280
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 fi
12283 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12284 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12285 if test $ac_cv_header_sys_wait_h = yes; then
12286
12287 cat >>confdefs.h <<\_ACEOF
12288 #define HAVE_SYS_WAIT_H 1
12289 _ACEOF
12290
12291 fi
12292
12293
12294 # Checks for typedefs, structures, and compiler characteristics.
12295 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12296 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12297 if test "${ac_cv_c_const+set}" = set; then
12298 $as_echo_n "(cached) " >&6
12299 else
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306
12307 int
12308 main ()
12309 {
12310 /* FIXME: Include the comments suggested by Paul. */
12311 #ifndef __cplusplus
12312 /* Ultrix mips cc rejects this. */
12313 typedef int charset[2];
12314 const charset cs;
12315 /* SunOS 4.1.1 cc rejects this. */
12316 char const *const *pcpcc;
12317 char **ppc;
12318 /* NEC SVR4.0.2 mips cc rejects this. */
12319 struct point {int x, y;};
12320 static struct point const zero = {0,0};
12321 /* AIX XL C 1.02.0.0 rejects this.
12322 It does not let you subtract one const X* pointer from another in
12323 an arm of an if-expression whose if-part is not a constant
12324 expression */
12325 const char *g = "string";
12326 pcpcc = &g + (g ? g-g : 0);
12327 /* HPUX 7.0 cc rejects these. */
12328 ++pcpcc;
12329 ppc = (char**) pcpcc;
12330 pcpcc = (char const *const *) ppc;
12331 { /* SCO 3.2v4 cc rejects this. */
12332 char *t;
12333 char const *s = 0 ? (char *) 0 : (char const *) 0;
12334
12335 *t++ = 0;
12336 if (s) return 0;
12337 }
12338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12339 int x[] = {25, 17};
12340 const int *foo = &x[0];
12341 ++foo;
12342 }
12343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12344 typedef const int *iptr;
12345 iptr p = 0;
12346 ++p;
12347 }
12348 { /* AIX XL C 1.02.0.0 rejects this saying
12349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12350 struct s { int j; const int *ap[3]; };
12351 struct s *b; b->j = 5;
12352 }
12353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12354 const int foo = 10;
12355 if (!foo) return 0;
12356 }
12357 return !cs[0] && !zero.x;
12358 #endif
12359
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371 $as_echo "$ac_try_echo") >&5
12372 (eval "$ac_compile") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest.$ac_objext; then
12382 ac_cv_c_const=yes
12383 else
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 ac_cv_c_const=no
12388 fi
12389
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12393 $as_echo "$ac_cv_c_const" >&6; }
12394 if test $ac_cv_c_const = no; then
12395
12396 cat >>confdefs.h <<\_ACEOF
12397 #define const /**/
12398 _ACEOF
12399
12400 fi
12401
12402 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12403 $as_echo_n "checking for pid_t... " >&6; }
12404 if test "${ac_cv_type_pid_t+set}" = set; then
12405 $as_echo_n "(cached) " >&6
12406 else
12407 ac_cv_type_pid_t=no
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 $ac_includes_default
12415 int
12416 main ()
12417 {
12418 if (sizeof (pid_t))
12419 return 0;
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h. */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 $ac_includes_default
12449 int
12450 main ()
12451 {
12452 if (sizeof ((pid_t)))
12453 return 0;
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (ac_try="$ac_compile"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12465 $as_echo "$ac_try_echo") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest.$ac_objext; then
12476 :
12477 else
12478 $as_echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_cv_type_pid_t=yes
12482 fi
12483
12484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 else
12486 $as_echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489
12490 fi
12491
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 fi
12494 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12495 $as_echo "$ac_cv_type_pid_t" >&6; }
12496 if test "x$ac_cv_type_pid_t" = x""yes; then
12497 :
12498 else
12499
12500 cat >>confdefs.h <<_ACEOF
12501 #define pid_t int
12502 _ACEOF
12503
12504 fi
12505
12506 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12507 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12508 if test "${ac_cv_header_time+set}" = set; then
12509 $as_echo_n "(cached) " >&6
12510 else
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 #include <sys/types.h>
12518 #include <sys/time.h>
12519 #include <time.h>
12520
12521 int
12522 main ()
12523 {
12524 if ((struct tm *) 0)
12525 return 0;
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (ac_try="$ac_compile"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535 esac
12536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12537 $as_echo "$ac_try_echo") >&5
12538 (eval "$ac_compile") 2>conftest.er1
12539 ac_status=$?
12540 grep -v '^ *+' conftest.er1 >conftest.err
12541 rm -f conftest.er1
12542 cat conftest.err >&5
12543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } && {
12545 test -z "$ac_c_werror_flag" ||
12546 test ! -s conftest.err
12547 } && test -s conftest.$ac_objext; then
12548 ac_cv_header_time=yes
12549 else
12550 $as_echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_cv_header_time=no
12554 fi
12555
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 fi
12558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12559 $as_echo "$ac_cv_header_time" >&6; }
12560 if test $ac_cv_header_time = yes; then
12561
12562 cat >>confdefs.h <<\_ACEOF
12563 #define TIME_WITH_SYS_TIME 1
12564 _ACEOF
12565
12566 fi
12567
12568 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
12569 $as_echo_n "checking for working volatile... " >&6; }
12570 if test "${ac_cv_c_volatile+set}" = set; then
12571 $as_echo_n "(cached) " >&6
12572 else
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579
12580 int
12581 main ()
12582 {
12583
12584 volatile int x;
12585 int * volatile y = (int *) 0;
12586 return !x && !y;
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 rm -f conftest.$ac_objext
12592 if { (ac_try="$ac_compile"
12593 case "(($ac_try" in
12594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595 *) ac_try_echo=$ac_try;;
12596 esac
12597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12598 $as_echo "$ac_try_echo") >&5
12599 (eval "$ac_compile") 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && {
12606 test -z "$ac_c_werror_flag" ||
12607 test ! -s conftest.err
12608 } && test -s conftest.$ac_objext; then
12609 ac_cv_c_volatile=yes
12610 else
12611 $as_echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_cv_c_volatile=no
12615 fi
12616
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 fi
12619 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12620 $as_echo "$ac_cv_c_volatile" >&6; }
12621 if test $ac_cv_c_volatile = no; then
12622
12623 cat >>confdefs.h <<\_ACEOF
12624 #define volatile /**/
12625 _ACEOF
12626
12627 fi
12628
12629
12630 # Checks for library functions.
12631
12632 for ac_header in vfork.h
12633 do
12634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12637 $as_echo_n "checking for $ac_header... " >&6; }
12638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12639 $as_echo_n "(cached) " >&6
12640 fi
12641 ac_res=`eval 'as_val=${'$as_ac_Header'}
12642 $as_echo "$as_val"'`
12643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12644 $as_echo "$ac_res" >&6; }
12645 else
12646 # Is the header compilable?
12647 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12648 $as_echo_n "checking $ac_header usability... " >&6; }
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 $ac_includes_default
12656 #include <$ac_header>
12657 _ACEOF
12658 rm -f conftest.$ac_objext
12659 if { (ac_try="$ac_compile"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663 esac
12664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12665 $as_echo "$ac_try_echo") >&5
12666 (eval "$ac_compile") 2>conftest.er1
12667 ac_status=$?
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && {
12673 test -z "$ac_c_werror_flag" ||
12674 test ! -s conftest.err
12675 } && test -s conftest.$ac_objext; then
12676 ac_header_compiler=yes
12677 else
12678 $as_echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_header_compiler=no
12682 fi
12683
12684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12686 $as_echo "$ac_header_compiler" >&6; }
12687
12688 # Is the header present?
12689 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12690 $as_echo_n "checking $ac_header presence... " >&6; }
12691 cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h. */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 #include <$ac_header>
12698 _ACEOF
12699 if { (ac_try="$ac_cpp conftest.$ac_ext"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703 esac
12704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12705 $as_echo "$ac_try_echo") >&5
12706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null && {
12713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12714 test ! -s conftest.err
12715 }; then
12716 ac_header_preproc=yes
12717 else
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ac_header_preproc=no
12722 fi
12723
12724 rm -f conftest.err conftest.$ac_ext
12725 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12726 $as_echo "$ac_header_preproc" >&6; }
12727
12728 # So? What about this header?
12729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12730 yes:no: )
12731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12735 ac_header_preproc=yes
12736 ;;
12737 no:yes:* )
12738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12739 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12741 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12743 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12745 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12749 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12750 ( cat <<\_ASBOX
12751 ## ---------------------------------------------- ##
12752 ## Report this to mzqnrzba (at) 0pointer (dot) de ##
12753 ## ---------------------------------------------- ##
12754 _ASBOX
12755 ) | sed "s/^/$as_me: WARNING: /" >&2
12756 ;;
12757 esac
12758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12759 $as_echo_n "checking for $ac_header... " >&6; }
12760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12761 $as_echo_n "(cached) " >&6
12762 else
12763 eval "$as_ac_Header=\$ac_header_preproc"
12764 fi
12765 ac_res=`eval 'as_val=${'$as_ac_Header'}
12766 $as_echo "$as_val"'`
12767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12768 $as_echo "$ac_res" >&6; }
12769
12770 fi
12771 as_val=`eval 'as_val=${'$as_ac_Header'}
12772 $as_echo "$as_val"'`
12773 if test "x$as_val" = x""yes; then
12774 cat >>confdefs.h <<_ACEOF
12775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12776 _ACEOF
12777
12778 fi
12779
12780 done
12781
12782
12783
12784 for ac_func in fork vfork
12785 do
12786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12788 $as_echo_n "checking for $ac_func... " >&6; }
12789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12790 $as_echo_n "(cached) " >&6
12791 else
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12800 #define $ac_func innocuous_$ac_func
12801
12802 /* System header to define __stub macros and hopefully few prototypes,
12803 which can conflict with char $ac_func (); below.
12804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12805 <limits.h> exists even on freestanding compilers. */
12806
12807 #ifdef __STDC__
12808 # include <limits.h>
12809 #else
12810 # include <assert.h>
12811 #endif
12812
12813 #undef $ac_func
12814
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12818 #ifdef __cplusplus
12819 extern "C"
12820 #endif
12821 char $ac_func ();
12822 /* The GNU C library defines this for functions which it implements
12823 to always fail with ENOSYS. Some functions are actually named
12824 something starting with __ and the normal name is an alias. */
12825 #if defined __stub_$ac_func || defined __stub___$ac_func
12826 choke me
12827 #endif
12828
12829 int
12830 main ()
12831 {
12832 return $ac_func ();
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (ac_try="$ac_link"
12839 case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12842 esac
12843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844 $as_echo "$ac_try_echo") >&5
12845 (eval "$ac_link") 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest$ac_exeext && {
12855 test "$cross_compiling" = yes ||
12856 $as_test_x conftest$ac_exeext
12857 }; then
12858 eval "$as_ac_var=yes"
12859 else
12860 $as_echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 eval "$as_ac_var=no"
12864 fi
12865
12866 rm -rf conftest.dSYM
12867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 conftest$ac_exeext conftest.$ac_ext
12869 fi
12870 ac_res=`eval 'as_val=${'$as_ac_var'}
12871 $as_echo "$as_val"'`
12872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12873 $as_echo "$ac_res" >&6; }
12874 as_val=`eval 'as_val=${'$as_ac_var'}
12875 $as_echo "$as_val"'`
12876 if test "x$as_val" = x""yes; then
12877 cat >>confdefs.h <<_ACEOF
12878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12879 _ACEOF
12880
12881 fi
12882 done
12883
12884 if test "x$ac_cv_func_fork" = xyes; then
12885 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
12886 $as_echo_n "checking for working fork... " >&6; }
12887 if test "${ac_cv_func_fork_works+set}" = set; then
12888 $as_echo_n "(cached) " >&6
12889 else
12890 if test "$cross_compiling" = yes; then
12891 ac_cv_func_fork_works=cross
12892 else
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12900 int
12901 main ()
12902 {
12903
12904 /* By Ruediger Kuhlmann. */
12905 return fork () < 0;
12906
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 rm -f conftest$ac_exeext
12912 if { (ac_try="$ac_link"
12913 case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12918 $as_echo "$ac_try_echo") >&5
12919 (eval "$ac_link") 2>&5
12920 ac_status=$?
12921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926 esac
12927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12928 $as_echo "$ac_try_echo") >&5
12929 (eval "$ac_try") 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_func_fork_works=yes
12934 else
12935 $as_echo "$as_me: program exited with status $ac_status" >&5
12936 $as_echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 ( exit $ac_status )
12940 ac_cv_func_fork_works=no
12941 fi
12942 rm -rf conftest.dSYM
12943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12944 fi
12945
12946
12947 fi
12948 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12949 $as_echo "$ac_cv_func_fork_works" >&6; }
12950
12951 else
12952 ac_cv_func_fork_works=$ac_cv_func_fork
12953 fi
12954 if test "x$ac_cv_func_fork_works" = xcross; then
12955 case $host in
12956 *-*-amigaos* | *-*-msdosdjgpp*)
12957 # Override, as these systems have only a dummy fork() stub
12958 ac_cv_func_fork_works=no
12959 ;;
12960 *)
12961 ac_cv_func_fork_works=yes
12962 ;;
12963 esac
12964 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12965 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12966 fi
12967 ac_cv_func_vfork_works=$ac_cv_func_vfork
12968 if test "x$ac_cv_func_vfork" = xyes; then
12969 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
12970 $as_echo_n "checking for working vfork... " >&6; }
12971 if test "${ac_cv_func_vfork_works+set}" = set; then
12972 $as_echo_n "(cached) " >&6
12973 else
12974 if test "$cross_compiling" = yes; then
12975 ac_cv_func_vfork_works=cross
12976 else
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h. */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 /* Thanks to Paul Eggert for this test. */
12984 $ac_includes_default
12985 #include <sys/wait.h>
12986 #ifdef HAVE_VFORK_H
12987 # include <vfork.h>
12988 #endif
12989 /* On some sparc systems, changes by the child to local and incoming
12990 argument registers are propagated back to the parent. The compiler
12991 is told about this with #include <vfork.h>, but some compilers
12992 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12993 static variable whose address is put into a register that is
12994 clobbered by the vfork. */
12995 static void
12996 #ifdef __cplusplus
12997 sparc_address_test (int arg)
12998 # else
12999 sparc_address_test (arg) int arg;
13000 #endif
13001 {
13002 static pid_t child;
13003 if (!child) {
13004 child = vfork ();
13005 if (child < 0) {
13006 perror ("vfork");
13007 _exit(2);
13008 }
13009 if (!child) {
13010 arg = getpid();
13011 write(-1, "", 0);
13012 _exit (arg);
13013 }
13014 }
13015 }
13016
13017 int
13018 main ()
13019 {
13020 pid_t parent = getpid ();
13021 pid_t child;
13022
13023 sparc_address_test (0);
13024
13025 child = vfork ();
13026
13027 if (child == 0) {
13028 /* Here is another test for sparc vfork register problems. This
13029 test uses lots of local variables, at least as many local
13030 variables as main has allocated so far including compiler
13031 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13032 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13033 reuse the register of parent for one of the local variables,
13034 since it will think that parent can't possibly be used any more
13035 in this routine. Assigning to the local variable will thus
13036 munge parent in the parent process. */
13037 pid_t
13038 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13039 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13040 /* Convince the compiler that p..p7 are live; otherwise, it might
13041 use the same hardware register for all 8 local variables. */
13042 if (p != p1 || p != p2 || p != p3 || p != p4
13043 || p != p5 || p != p6 || p != p7)
13044 _exit(1);
13045
13046 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13047 from child file descriptors. If the child closes a descriptor
13048 before it execs or exits, this munges the parent's descriptor
13049 as well. Test for this by closing stdout in the child. */
13050 _exit(close(fileno(stdout)) != 0);
13051 } else {
13052 int status;
13053 struct stat st;
13054
13055 while (wait(&status) != child)
13056 ;
13057 return (
13058 /* Was there some problem with vforking? */
13059 child < 0
13060
13061 /* Did the child fail? (This shouldn't happen.) */
13062 || status
13063
13064 /* Did the vfork/compiler bug occur? */
13065 || parent != getpid()
13066
13067 /* Did the file descriptor bug occur? */
13068 || fstat(fileno(stdout), &st) != 0
13069 );
13070 }
13071 }
13072 _ACEOF
13073 rm -f conftest$ac_exeext
13074 if { (ac_try="$ac_link"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078 esac
13079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080 $as_echo "$ac_try_echo") >&5
13081 (eval "$ac_link") 2>&5
13082 ac_status=$?
13083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088 esac
13089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13090 $as_echo "$ac_try_echo") >&5
13091 (eval "$ac_try") 2>&5
13092 ac_status=$?
13093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_func_vfork_works=yes
13096 else
13097 $as_echo "$as_me: program exited with status $ac_status" >&5
13098 $as_echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ( exit $ac_status )
13102 ac_cv_func_vfork_works=no
13103 fi
13104 rm -rf conftest.dSYM
13105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13106 fi
13107
13108
13109 fi
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13111 $as_echo "$ac_cv_func_vfork_works" >&6; }
13112
13113 fi;
13114 if test "x$ac_cv_func_fork_works" = xcross; then
13115 ac_cv_func_vfork_works=$ac_cv_func_vfork
13116 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13117 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13118 fi
13119
13120 if test "x$ac_cv_func_vfork_works" = xyes; then
13121
13122 cat >>confdefs.h <<\_ACEOF
13123 #define HAVE_WORKING_VFORK 1
13124 _ACEOF
13125
13126 else
13127
13128 cat >>confdefs.h <<\_ACEOF
13129 #define vfork fork
13130 _ACEOF
13131
13132 fi
13133 if test "x$ac_cv_func_fork_works" = xyes; then
13134
13135 cat >>confdefs.h <<\_ACEOF
13136 #define HAVE_WORKING_FORK 1
13137 _ACEOF
13138
13139 fi
13140
13141
13142
13143 for ac_header in sys/select.h sys/socket.h
13144 do
13145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13148 $as_echo_n "checking for $ac_header... " >&6; }
13149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13150 $as_echo_n "(cached) " >&6
13151 fi
13152 ac_res=`eval 'as_val=${'$as_ac_Header'}
13153 $as_echo "$as_val"'`
13154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13155 $as_echo "$ac_res" >&6; }
13156 else
13157 # Is the header compilable?
13158 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13159 $as_echo_n "checking $ac_header usability... " >&6; }
13160 cat >conftest.$ac_ext <<_ACEOF
13161 /* confdefs.h. */
13162 _ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 $ac_includes_default
13167 #include <$ac_header>
13168 _ACEOF
13169 rm -f conftest.$ac_objext
13170 if { (ac_try="$ac_compile"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174 esac
13175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176 $as_echo "$ac_try_echo") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest.$ac_objext; then
13187 ac_header_compiler=yes
13188 else
13189 $as_echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_header_compiler=no
13193 fi
13194
13195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13197 $as_echo "$ac_header_compiler" >&6; }
13198
13199 # Is the header present?
13200 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13201 $as_echo_n "checking $ac_header presence... " >&6; }
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 #include <$ac_header>
13209 _ACEOF
13210 if { (ac_try="$ac_cpp conftest.$ac_ext"
13211 case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13214 esac
13215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13216 $as_echo "$ac_try_echo") >&5
13217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13218 ac_status=$?
13219 grep -v '^ *+' conftest.er1 >conftest.err
13220 rm -f conftest.er1
13221 cat conftest.err >&5
13222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } >/dev/null && {
13224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 }; then
13227 ac_header_preproc=yes
13228 else
13229 $as_echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ac_header_preproc=no
13233 fi
13234
13235 rm -f conftest.err conftest.$ac_ext
13236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13237 $as_echo "$ac_header_preproc" >&6; }
13238
13239 # So? What about this header?
13240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13241 yes:no: )
13242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13243 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13246 ac_header_preproc=yes
13247 ;;
13248 no:yes:* )
13249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13250 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13252 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13254 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13256 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13260 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13261 ( cat <<\_ASBOX
13262 ## ---------------------------------------------- ##
13263 ## Report this to mzqnrzba (at) 0pointer (dot) de ##
13264 ## ---------------------------------------------- ##
13265 _ASBOX
13266 ) | sed "s/^/$as_me: WARNING: /" >&2
13267 ;;
13268 esac
13269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13270 $as_echo_n "checking for $ac_header... " >&6; }
13271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13272 $as_echo_n "(cached) " >&6
13273 else
13274 eval "$as_ac_Header=\$ac_header_preproc"
13275 fi
13276 ac_res=`eval 'as_val=${'$as_ac_Header'}
13277 $as_echo "$as_val"'`
13278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13279 $as_echo "$ac_res" >&6; }
13280
13281 fi
13282 as_val=`eval 'as_val=${'$as_ac_Header'}
13283 $as_echo "$as_val"'`
13284 if test "x$as_val" = x""yes; then
13285 cat >>confdefs.h <<_ACEOF
13286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13287 _ACEOF
13288
13289 fi
13290
13291 done
13292
13293 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
13294 $as_echo_n "checking types of arguments for select... " >&6; }
13295 if test "${ac_cv_func_select_args+set}" = set; then
13296 $as_echo_n "(cached) " >&6
13297 else
13298 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13299 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13300 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 $ac_includes_default
13308 #ifdef HAVE_SYS_SELECT_H
13309 # include <sys/select.h>
13310 #endif
13311 #ifdef HAVE_SYS_SOCKET_H
13312 # include <sys/socket.h>
13313 #endif
13314
13315 int
13316 main ()
13317 {
13318 extern int select ($ac_arg1,
13319 $ac_arg234, $ac_arg234, $ac_arg234,
13320 $ac_arg5);
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 rm -f conftest.$ac_objext
13326 if { (ac_try="$ac_compile"
13327 case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330 esac
13331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13332 $as_echo "$ac_try_echo") >&5
13333 (eval "$ac_compile") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
13343 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13344 else
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13347
13348
13349 fi
13350
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 done
13353 done
13354 done
13355 # Provide a safe default value.
13356 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13357
13358 fi
13359 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13360 $as_echo "$ac_cv_func_select_args" >&6; }
13361 ac_save_IFS=$IFS; IFS=','
13362 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13363 IFS=$ac_save_IFS
13364 shift
13365
13366 cat >>confdefs.h <<_ACEOF
13367 #define SELECT_TYPE_ARG1 $1
13368 _ACEOF
13369
13370
13371 cat >>confdefs.h <<_ACEOF
13372 #define SELECT_TYPE_ARG234 ($2)
13373 _ACEOF
13374
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define SELECT_TYPE_ARG5 ($3)
13378 _ACEOF
13379
13380 rm -f conftest*
13381
13382
13383 for ac_func in vprintf
13384 do
13385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13386 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13387 $as_echo_n "checking for $ac_func... " >&6; }
13388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13389 $as_echo_n "(cached) " >&6
13390 else
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h. */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13399 #define $ac_func innocuous_$ac_func
13400
13401 /* System header to define __stub macros and hopefully few prototypes,
13402 which can conflict with char $ac_func (); below.
13403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13404 <limits.h> exists even on freestanding compilers. */
13405
13406 #ifdef __STDC__
13407 # include <limits.h>
13408 #else
13409 # include <assert.h>
13410 #endif
13411
13412 #undef $ac_func
13413
13414 /* Override any GCC internal prototype to avoid an error.
13415 Use char because int might match the return type of a GCC
13416 builtin and then its argument prototype would still apply. */
13417 #ifdef __cplusplus
13418 extern "C"
13419 #endif
13420 char $ac_func ();
13421 /* The GNU C library defines this for functions which it implements
13422 to always fail with ENOSYS. Some functions are actually named
13423 something starting with __ and the normal name is an alias. */
13424 #if defined __stub_$ac_func || defined __stub___$ac_func
13425 choke me
13426 #endif
13427
13428 int
13429 main ()
13430 {
13431 return $ac_func ();
13432 ;
13433 return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (ac_try="$ac_link"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13443 $as_echo "$ac_try_echo") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest$ac_exeext && {
13454 test "$cross_compiling" = yes ||
13455 $as_test_x conftest$ac_exeext
13456 }; then
13457 eval "$as_ac_var=yes"
13458 else
13459 $as_echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 eval "$as_ac_var=no"
13463 fi
13464
13465 rm -rf conftest.dSYM
13466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13467 conftest$ac_exeext conftest.$ac_ext
13468 fi
13469 ac_res=`eval 'as_val=${'$as_ac_var'}
13470 $as_echo "$as_val"'`
13471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13472 $as_echo "$ac_res" >&6; }
13473 as_val=`eval 'as_val=${'$as_ac_var'}
13474 $as_echo "$as_val"'`
13475 if test "x$as_val" = x""yes; then
13476 cat >>confdefs.h <<_ACEOF
13477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13478 _ACEOF
13479
13480 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
13481 $as_echo_n "checking for _doprnt... " >&6; }
13482 if test "${ac_cv_func__doprnt+set}" = set; then
13483 $as_echo_n "(cached) " >&6
13484 else
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13493 #define _doprnt innocuous__doprnt
13494
13495 /* System header to define __stub macros and hopefully few prototypes,
13496 which can conflict with char _doprnt (); below.
13497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13498 <limits.h> exists even on freestanding compilers. */
13499
13500 #ifdef __STDC__
13501 # include <limits.h>
13502 #else
13503 # include <assert.h>
13504 #endif
13505
13506 #undef _doprnt
13507
13508 /* Override any GCC internal prototype to avoid an error.
13509 Use char because int might match the return type of a GCC
13510 builtin and then its argument prototype would still apply. */
13511 #ifdef __cplusplus
13512 extern "C"
13513 #endif
13514 char _doprnt ();
13515 /* The GNU C library defines this for functions which it implements
13516 to always fail with ENOSYS. Some functions are actually named
13517 something starting with __ and the normal name is an alias. */
13518 #if defined __stub__doprnt || defined __stub____doprnt
13519 choke me
13520 #endif
13521
13522 int
13523 main ()
13524 {
13525 return _doprnt ();
13526 ;
13527 return 0;
13528 }
13529 _ACEOF
13530 rm -f conftest.$ac_objext conftest$ac_exeext
13531 if { (ac_try="$ac_link"
13532 case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535 esac
13536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13537 $as_echo "$ac_try_echo") >&5
13538 (eval "$ac_link") 2>conftest.er1
13539 ac_status=$?
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
13543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } && {
13545 test -z "$ac_c_werror_flag" ||
13546 test ! -s conftest.err
13547 } && test -s conftest$ac_exeext && {
13548 test "$cross_compiling" = yes ||
13549 $as_test_x conftest$ac_exeext
13550 }; then
13551 ac_cv_func__doprnt=yes
13552 else
13553 $as_echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_cv_func__doprnt=no
13557 fi
13558
13559 rm -rf conftest.dSYM
13560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13561 conftest$ac_exeext conftest.$ac_ext
13562 fi
13563 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13564 $as_echo "$ac_cv_func__doprnt" >&6; }
13565 if test "x$ac_cv_func__doprnt" = x""yes; then
13566
13567 cat >>confdefs.h <<\_ACEOF
13568 #define HAVE_DOPRNT 1
13569 _ACEOF
13570
13571 fi
13572
13573 fi
13574 done
13575
13576
13577
13578
13579
13580
13581
13582
13583 for ac_func in select strerror dup2 memset strrchr asprintf
13584 do
13585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13586 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13587 $as_echo_n "checking for $ac_func... " >&6; }
13588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13589 $as_echo_n "(cached) " >&6
13590 else
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13599 #define $ac_func innocuous_$ac_func
13600
13601 /* System header to define __stub macros and hopefully few prototypes,
13602 which can conflict with char $ac_func (); below.
13603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604 <limits.h> exists even on freestanding compilers. */
13605
13606 #ifdef __STDC__
13607 # include <limits.h>
13608 #else
13609 # include <assert.h>
13610 #endif
13611
13612 #undef $ac_func
13613
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 char $ac_func ();
13621 /* The GNU C library defines this for functions which it implements
13622 to always fail with ENOSYS. Some functions are actually named
13623 something starting with __ and the normal name is an alias. */
13624 #if defined __stub_$ac_func || defined __stub___$ac_func
13625 choke me
13626 #endif
13627
13628 int
13629 main ()
13630 {
13631 return $ac_func ();
13632 ;
13633 return 0;
13634 }
13635 _ACEOF
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (ac_try="$ac_link"
13638 case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13641 esac
13642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_link") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest$ac_exeext && {
13654 test "$cross_compiling" = yes ||
13655 $as_test_x conftest$ac_exeext
13656 }; then
13657 eval "$as_ac_var=yes"
13658 else
13659 $as_echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 eval "$as_ac_var=no"
13663 fi
13664
13665 rm -rf conftest.dSYM
13666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13667 conftest$ac_exeext conftest.$ac_ext
13668 fi
13669 ac_res=`eval 'as_val=${'$as_ac_var'}
13670 $as_echo "$as_val"'`
13671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13672 $as_echo "$ac_res" >&6; }
13673 as_val=`eval 'as_val=${'$as_ac_var'}
13674 $as_echo "$as_val"'`
13675 if test "x$as_val" = x""yes; then
13676 cat >>confdefs.h <<_ACEOF
13677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13678 _ACEOF
13679
13680 fi
13681 done
13682
13683 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
13684 $as_echo_n "checking for mode_t... " >&6; }
13685 if test "${ac_cv_type_mode_t+set}" = set; then
13686 $as_echo_n "(cached) " >&6
13687 else
13688 ac_cv_type_mode_t=no
13689 cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h. */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13696 int
13697 main ()
13698 {
13699 if (sizeof (mode_t))
13700 return 0;
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext
13706 if { (ac_try="$ac_compile"
13707 case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710 esac
13711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13712 $as_echo "$ac_try_echo") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13714 ac_status=$?
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
13718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest.$ac_objext; then
13723 cat >conftest.$ac_ext <<_ACEOF
13724 /* confdefs.h. */
13725 _ACEOF
13726 cat confdefs.h >>conftest.$ac_ext
13727 cat >>conftest.$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 $ac_includes_default
13730 int
13731 main ()
13732 {
13733 if (sizeof ((mode_t)))
13734 return 0;
13735 ;
13736 return 0;
13737 }
13738 _ACEOF
13739 rm -f conftest.$ac_objext
13740 if { (ac_try="$ac_compile"
13741 case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13744 esac
13745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13746 $as_echo "$ac_try_echo") >&5
13747 (eval "$ac_compile") 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest.$ac_objext; then
13757 :
13758 else
13759 $as_echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762 ac_cv_type_mode_t=yes
13763 fi
13764
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 else
13767 $as_echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770
13771 fi
13772
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 fi
13775 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13776 $as_echo "$ac_cv_type_mode_t" >&6; }
13777 if test "x$ac_cv_type_mode_t" = x""yes; then
13778 :
13779 else
13780
13781 cat >>confdefs.h <<_ACEOF
13782 #define mode_t int
13783 _ACEOF
13784
13785 fi
13786
13787 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
13788 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13789 if test "${ac_cv_func_setpgrp_void+set}" = set; then
13790 $as_echo_n "(cached) " >&6
13791 else
13792 if test "$cross_compiling" = yes; then
13793 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
13794 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
13795 { (exit 1); exit 1; }; }
13796 else
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 $ac_includes_default
13804 int
13805 main ()
13806 {
13807 /* If this system has a BSD-style setpgrp which takes arguments,
13808 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13809 exit successfully. */
13810 return setpgrp (1,1) != -1;
13811 ;
13812 return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest$ac_exeext
13816 if { (ac_try="$ac_link"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820 esac
13821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13822 $as_echo "$ac_try_echo") >&5
13823 (eval "$ac_link") 2>&5
13824 ac_status=$?
13825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830 esac
13831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13832 $as_echo "$ac_try_echo") >&5
13833 (eval "$ac_try") 2>&5
13834 ac_status=$?
13835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_func_setpgrp_void=no
13838 else
13839 $as_echo "$as_me: program exited with status $ac_status" >&5
13840 $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 ( exit $ac_status )
13844 ac_cv_func_setpgrp_void=yes
13845 fi
13846 rm -rf conftest.dSYM
13847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13848 fi
13849
13850
13851 fi
13852 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
13853 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13854 if test $ac_cv_func_setpgrp_void = yes; then
13855
13856 cat >>confdefs.h <<\_ACEOF
13857 #define SETPGRP_VOID 1
13858 _ACEOF
13859
13860 fi
13861
13862 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13863 $as_echo_n "checking return type of signal handlers... " >&6; }
13864 if test "${ac_cv_type_signal+set}" = set; then
13865 $as_echo_n "(cached) " >&6
13866 else
13867 cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h. */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 #include <sys/types.h>
13874 #include <signal.h>
13875
13876 int
13877 main ()
13878 {
13879 return *(signal (0, 0)) (0) == 1;
13880 ;
13881 return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889 esac
13890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13891 $as_echo "$ac_try_echo") >&5
13892 (eval "$ac_compile") 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest.$ac_objext; then
13902 ac_cv_type_signal=int
13903 else
13904 $as_echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_type_signal=void
13908 fi
13909
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 fi
13912 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13913 $as_echo "$ac_cv_type_signal" >&6; }
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define RETSIGTYPE $ac_cv_type_signal
13917 _ACEOF
13918
13919
13920 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
13921 $as_echo_n "checking for size_t... " >&6; }
13922 if test "${ac_cv_type_size_t+set}" = set; then
13923 $as_echo_n "(cached) " >&6
13924 else
13925 ac_cv_type_size_t=no
13926 cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h. */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 int
13934 main ()
13935 {
13936 if (sizeof (size_t))
13937 return 0;
13938 ;
13939 return 0;
13940 }
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947 esac
13948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13949 $as_echo "$ac_try_echo") >&5
13950 (eval "$ac_compile") 2>conftest.er1
13951 ac_status=$?
13952 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1
13954 cat conftest.err >&5
13955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && {
13957 test -z "$ac_c_werror_flag" ||
13958 test ! -s conftest.err
13959 } && test -s conftest.$ac_objext; then
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 $ac_includes_default
13967 int
13968 main ()
13969 {
13970 if (sizeof ((size_t)))
13971 return 0;
13972 ;
13973 return 0;
13974 }
13975 _ACEOF
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13981 esac
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984 (eval "$ac_compile") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
13994 :
13995 else
13996 $as_echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13998
13999 ac_cv_type_size_t=yes
14000 fi
14001
14002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14003 else
14004 $as_echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007
14008 fi
14009
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 fi
14012 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14013 $as_echo "$ac_cv_type_size_t" >&6; }
14014 if test "x$ac_cv_type_size_t" = x""yes; then
14015 :
14016 else
14017
14018 cat >>confdefs.h <<_ACEOF
14019 #define size_t unsigned int
14020 _ACEOF
14021
14022 fi
14023
14024
14025 # Check whether --enable-largefile was given.
14026 if test "${enable_largefile+set}" = set; then
14027 enableval=$enable_largefile;
14028 fi
14029
14030 if test "$enable_largefile" != no; then
14031
14032 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14033 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14034 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14035 $as_echo_n "(cached) " >&6
14036 else
14037 ac_cv_sys_largefile_CC=no
14038 if test "$GCC" != yes; then
14039 ac_save_CC=$CC
14040 while :; do
14041 # IRIX 6.2 and later do not support large files by default,
14042 # so use the C compiler's -n32 option if that helps.
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14049 #include <sys/types.h>
14050 /* Check that off_t can represent 2**63 - 1 correctly.
14051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14052 since some C++ compilers masquerading as C compilers
14053 incorrectly reject 9223372036854775807. */
14054 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14056 && LARGE_OFF_T % 2147483647 == 1)
14057 ? 1 : -1];
14058 int
14059 main ()
14060 {
14061
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14073 $as_echo "$ac_try_echo") >&5
14074 (eval "$ac_compile") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest.$ac_objext; then
14084 break
14085 else
14086 $as_echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089
14090 fi
14091
14092 rm -f core conftest.err conftest.$ac_objext
14093 CC="$CC -n32"
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14101 $as_echo "$ac_try_echo") >&5
14102 (eval "$ac_compile") 2>conftest.er1
14103 ac_status=$?
14104 grep -v '^ *+' conftest.er1 >conftest.err
14105 rm -f conftest.er1
14106 cat conftest.err >&5
14107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } && {
14109 test -z "$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 } && test -s conftest.$ac_objext; then
14112 ac_cv_sys_largefile_CC=' -n32'; break
14113 else
14114 $as_echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117
14118 fi
14119
14120 rm -f core conftest.err conftest.$ac_objext
14121 break
14122 done
14123 CC=$ac_save_CC
14124 rm -f conftest.$ac_ext
14125 fi
14126 fi
14127 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14128 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14129 if test "$ac_cv_sys_largefile_CC" != no; then
14130 CC=$CC$ac_cv_sys_largefile_CC
14131 fi
14132
14133 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14134 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14135 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14136 $as_echo_n "(cached) " >&6
14137 else
14138 while :; do
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <sys/types.h>
14146 /* Check that off_t can represent 2**63 - 1 correctly.
14147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14148 since some C++ compilers masquerading as C compilers
14149 incorrectly reject 9223372036854775807. */
14150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14152 && LARGE_OFF_T % 2147483647 == 1)
14153 ? 1 : -1];
14154 int
14155 main ()
14156 {
14157
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 rm -f conftest.$ac_objext
14163 if { (ac_try="$ac_compile"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14167 esac
14168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14169 $as_echo "$ac_try_echo") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_cv_sys_file_offset_bits=no; break
14181 else
14182 $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185
14186 fi
14187
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 #define _FILE_OFFSET_BITS 64
14196 #include <sys/types.h>
14197 /* Check that off_t can represent 2**63 - 1 correctly.
14198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14199 since some C++ compilers masquerading as C compilers
14200 incorrectly reject 9223372036854775807. */
14201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14203 && LARGE_OFF_T % 2147483647 == 1)
14204 ? 1 : -1];
14205 int
14206 main ()
14207 {
14208
14209 ;
14210 return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14218 esac
14219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14220 $as_echo "$ac_try_echo") >&5
14221 (eval "$ac_compile") 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } && {
14228 test -z "$ac_c_werror_flag" ||
14229 test ! -s conftest.err
14230 } && test -s conftest.$ac_objext; then
14231 ac_cv_sys_file_offset_bits=64; break
14232 else
14233 $as_echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236
14237 fi
14238
14239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240 ac_cv_sys_file_offset_bits=unknown
14241 break
14242 done
14243 fi
14244 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14245 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14246 case $ac_cv_sys_file_offset_bits in #(
14247 no | unknown) ;;
14248 *)
14249 cat >>confdefs.h <<_ACEOF
14250 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14251 _ACEOF
14252 ;;
14253 esac
14254 rm -rf conftest*
14255 if test $ac_cv_sys_file_offset_bits = unknown; then
14256 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14257 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14258 if test "${ac_cv_sys_large_files+set}" = set; then
14259 $as_echo_n "(cached) " >&6
14260 else
14261 while :; do
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <sys/types.h>
14269 /* Check that off_t can represent 2**63 - 1 correctly.
14270 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14271 since some C++ compilers masquerading as C compilers
14272 incorrectly reject 9223372036854775807. */
14273 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14274 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14275 && LARGE_OFF_T % 2147483647 == 1)
14276 ? 1 : -1];
14277 int
14278 main ()
14279 {
14280
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290 esac
14291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292 $as_echo "$ac_try_echo") >&5
14293 (eval "$ac_compile") 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14302 } && test -s conftest.$ac_objext; then
14303 ac_cv_sys_large_files=no; break
14304 else
14305 $as_echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308
14309 fi
14310
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312 cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h. */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14318 #define _LARGE_FILES 1
14319 #include <sys/types.h>
14320 /* Check that off_t can represent 2**63 - 1 correctly.
14321 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14322 since some C++ compilers masquerading as C compilers
14323 incorrectly reject 9223372036854775807. */
14324 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14325 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14326 && LARGE_OFF_T % 2147483647 == 1)
14327 ? 1 : -1];
14328 int
14329 main ()
14330 {
14331
14332 ;
14333 return 0;
14334 }
14335 _ACEOF
14336 rm -f conftest.$ac_objext
14337 if { (ac_try="$ac_compile"
14338 case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341 esac
14342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14343 $as_echo "$ac_try_echo") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14345 ac_status=$?
14346 grep -v '^ *+' conftest.er1 >conftest.err
14347 rm -f conftest.er1
14348 cat conftest.err >&5
14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && {
14351 test -z "$ac_c_werror_flag" ||
14352 test ! -s conftest.err
14353 } && test -s conftest.$ac_objext; then
14354 ac_cv_sys_large_files=1; break
14355 else
14356 $as_echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359
14360 fi
14361
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14363 ac_cv_sys_large_files=unknown
14364 break
14365 done
14366 fi
14367 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14368 $as_echo "$ac_cv_sys_large_files" >&6; }
14369 case $ac_cv_sys_large_files in #(
14370 no | unknown) ;;
14371 *)
14372 cat >>confdefs.h <<_ACEOF
14373 #define _LARGE_FILES $ac_cv_sys_large_files
14374 _ACEOF
14375 ;;
14376 esac
14377 rm -rf conftest*
14378 fi
14379 fi
14380
14381
14382
14383
14384
14385 case $host in
14386 *-freebsd*) ;;
14387 *)
14388 for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
14389
14390 { $as_echo "$as_me:$LINENO: checking if $CC supports $possible_flags flag" >&5
14391 $as_echo_n "checking if $CC supports $possible_flags flag... " >&6; }
14392 if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
14393 $as_echo_n "(cached) " >&6
14394 else
14395 ac_save_LDFLAGS="$LDFLAGS"
14396 LDFLAGS="$LDFLAGS $possible_flags"
14397 cat >conftest.$ac_ext <<_ACEOF
14398 int main() { return 1; }
14399 _ACEOF
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405 esac
14406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14407 $as_echo "$ac_try_echo") >&5
14408 (eval "$ac_link") 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && {
14415 test -z "$ac_c_werror_flag" ||
14416 test ! -s conftest.err
14417 } && test -s conftest$ac_exeext && {
14418 test "$cross_compiling" = yes ||
14419 $as_test_x conftest$ac_exeext
14420 }; then
14421 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'"
14422 else
14423 $as_echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`="
14427 fi
14428
14429 rm -rf conftest.dSYM
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431 conftest$ac_exeext conftest.$ac_ext
14432 LDFLAGS="$ac_save_LDFLAGS"
14433
14434 fi
14435 ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh\`'}
14436 $as_echo "$as_val"'`
14437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14438 $as_echo "$ac_res" >&6; }
14439
14440 if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then
14441 LDFLAGS_NOUNDEFINED="$possible_flags"
14442 fi
14443
14444
14445 break
14446 done
14447 ;;
14448 esac
14449
14450
14451
14452
14453
14454 # Check whether --enable-lynx was given.
14455 if test "${enable_lynx+set}" = set; then
14456 enableval=$enable_lynx;
14457 else
14458 enable_lynx=yes
14459 fi
14460
14461
14462 case "${enable_lynx}" in
14463 yes)
14464 # Extract the first word of "lynx", so it can be a program name with args.
14465 set dummy lynx; ac_word=$2
14466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if test "${ac_cv_prog_have_lynx+set}" = set; then
14469 $as_echo_n "(cached) " >&6
14470 else
14471 if test -n "$have_lynx"; then
14472 ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14476 do
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_have_lynx="yes"
14482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14484 fi
14485 done
14486 done
14487 IFS=$as_save_IFS
14488
14489 test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
14490 fi
14491 fi
14492 have_lynx=$ac_cv_prog_have_lynx
14493 if test -n "$have_lynx"; then
14494 { $as_echo "$as_me:$LINENO: result: $have_lynx" >&5
14495 $as_echo "$have_lynx" >&6; }
14496 else
14497 { $as_echo "$as_me:$LINENO: result: no" >&5
14498 $as_echo "no" >&6; }
14499 fi
14500
14501
14502
14503 if test x$have_lynx = xno ; then
14504 { $as_echo "$as_me:$LINENO: WARNING: *** lynx not found, plain text README will not be built ***" >&5
14505 $as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
14506 fi
14507 ;;
14508 no)
14509 have_lynx=no ;;
14510 *)
14511 { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
14512 $as_echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
14513 { (exit 1); exit 1; }; } ;;
14514 esac
14515
14516 if test "x$have_lynx" = xyes; then
14517 USE_LYNX_TRUE=
14518 USE_LYNX_FALSE='#'
14519 else
14520 USE_LYNX_TRUE='#'
14521 USE_LYNX_FALSE=
14522 fi
14523
14524
14525
14526 # Check whether --enable-examples was given.
14527 if test "${enable_examples+set}" = set; then
14528 enableval=$enable_examples;
14529 else
14530 enable_examples="yes"
14531 fi
14532
14533 if test "$enable_examples" = "yes"; then
14534 EXAMPLES_TRUE=
14535 EXAMPLES_FALSE='#'
14536 else
14537 EXAMPLES_TRUE='#'
14538 EXAMPLES_FALSE=
14539 fi
14540
14541
14542 ac_config_files="$ac_config_files libdaemon/Makefile Makefile doc/Makefile doc/README.html doc/doxygen.conf examples/Makefile pkgconfig/libdaemon.pc pkgconfig/libdaemon-uninstalled.pc"
14543
14544 cat >confcache <<\_ACEOF
14545 # This file is a shell script that caches the results of configure
14546 # tests run on this system so they can be shared between configure
14547 # scripts and configure runs, see configure's option --config-cache.
14548 # It is not useful on other systems. If it contains results you don't
14549 # want to keep, you may remove or edit it.
14550 #
14551 # config.status only pays attention to the cache file if you give it
14552 # the --recheck option to rerun configure.
14553 #
14554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14556 # following values.
14557
14558 _ACEOF
14559
14560 # The following way of writing the cache mishandles newlines in values,
14561 # but we know of no workaround that is simple, portable, and efficient.
14562 # So, we kill variables containing newlines.
14563 # Ultrix sh set writes to stderr and can't be redirected directly,
14564 # and sets the high bit in the cache file unless we assign to the vars.
14565 (
14566 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14567 eval ac_val=\$$ac_var
14568 case $ac_val in #(
14569 *${as_nl}*)
14570 case $ac_var in #(
14571 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14573 esac
14574 case $ac_var in #(
14575 _ | IFS | as_nl) ;; #(
14576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14577 *) $as_unset $ac_var ;;
14578 esac ;;
14579 esac
14580 done
14581
14582 (set) 2>&1 |
14583 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14584 *${as_nl}ac_space=\ *)
14585 # `set' does not quote correctly, so add quotes (double-quote
14586 # substitution turns \\\\ into \\, and sed turns \\ into \).
14587 sed -n \
14588 "s/'/'\\\\''/g;
14589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14590 ;; #(
14591 *)
14592 # `set' quotes correctly as required by POSIX, so do not add quotes.
14593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14594 ;;
14595 esac |
14596 sort
14597 ) |
14598 sed '
14599 /^ac_cv_env_/b end
14600 t clear
14601 :clear
14602 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14603 t end
14604 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14605 :end' >>confcache
14606 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14607 if test -w "$cache_file"; then
14608 test "x$cache_file" != "x/dev/null" &&
14609 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14610 $as_echo "$as_me: updating cache $cache_file" >&6;}
14611 cat confcache >$cache_file
14612 else
14613 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14614 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14615 fi
14616 fi
14617 rm -f confcache
14618
14619 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14620 # Let make expand exec_prefix.
14621 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14622
14623 DEFS=-DHAVE_CONFIG_H
14624
14625 ac_libobjs=
14626 ac_ltlibobjs=
14627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14628 # 1. Remove the extension, and $U if already installed.
14629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14632 # will be set to the directory where LIBOBJS objects are built.
14633 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14634 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14635 done
14636 LIBOBJS=$ac_libobjs
14637
14638 LTLIBOBJS=$ac_ltlibobjs
14639
14640
14641 if test -n "$EXEEXT"; then
14642 am__EXEEXT_TRUE=
14643 am__EXEEXT_FALSE='#'
14644 else
14645 am__EXEEXT_TRUE='#'
14646 am__EXEEXT_FALSE=
14647 fi
14648
14649 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14650 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14651 Usually this means the macro was only invoked conditionally." >&5
14652 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14653 Usually this means the macro was only invoked conditionally." >&2;}
14654 { (exit 1); exit 1; }; }
14655 fi
14656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14657 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14658 Usually this means the macro was only invoked conditionally." >&5
14659 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14660 Usually this means the macro was only invoked conditionally." >&2;}
14661 { (exit 1); exit 1; }; }
14662 fi
14663 if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
14664 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
14665 Usually this means the macro was only invoked conditionally." >&5
14666 $as_echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
14667 Usually this means the macro was only invoked conditionally." >&2;}
14668 { (exit 1); exit 1; }; }
14669 fi
14670 if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then
14671 { { $as_echo "$as_me:$LINENO: error: conditional \"EXAMPLES\" was never defined.
14672 Usually this means the macro was only invoked conditionally." >&5
14673 $as_echo "$as_me: error: conditional \"EXAMPLES\" was never defined.
14674 Usually this means the macro was only invoked conditionally." >&2;}
14675 { (exit 1); exit 1; }; }
14676 fi
14677
14678 : ${CONFIG_STATUS=./config.status}
14679 ac_write_fail=0
14680 ac_clean_files_save=$ac_clean_files
14681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14682 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14684 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14685 #! $SHELL
14686 # Generated by $as_me.
14687 # Run this file to recreate the current configuration.
14688 # Compiler output produced by configure, useful for debugging
14689 # configure, is in config.log if it exists.
14690
14691 debug=false
14692 ac_cs_recheck=false
14693 ac_cs_silent=false
14694 SHELL=\${CONFIG_SHELL-$SHELL}
14695 _ACEOF
14696
14697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14698 ## --------------------- ##
14699 ## M4sh Initialization. ##
14700 ## --------------------- ##
14701
14702 # Be more Bourne compatible
14703 DUALCASE=1; export DUALCASE # for MKS sh
14704 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14705 emulate sh
14706 NULLCMD=:
14707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14708 # is contrary to our usage. Disable this feature.
14709 alias -g '${1+"$@"}'='"$@"'
14710 setopt NO_GLOB_SUBST
14711 else
14712 case `(set -o) 2>/dev/null` in
14713 *posix*) set -o posix ;;
14714 esac
14715
14716 fi
14717
14718
14719
14720
14721 # PATH needs CR
14722 # Avoid depending upon Character Ranges.
14723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14726 as_cr_digits='0123456789'
14727 as_cr_alnum=$as_cr_Letters$as_cr_digits
14728
14729 as_nl='
14730 '
14731 export as_nl
14732 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14733 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14736 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14737 as_echo='printf %s\n'
14738 as_echo_n='printf %s'
14739 else
14740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14742 as_echo_n='/usr/ucb/echo -n'
14743 else
14744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14745 as_echo_n_body='eval
14746 arg=$1;
14747 case $arg in
14748 *"$as_nl"*)
14749 expr "X$arg" : "X\\(.*\\)$as_nl";
14750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14751 esac;
14752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14753 '
14754 export as_echo_n_body
14755 as_echo_n='sh -c $as_echo_n_body as_echo'
14756 fi
14757 export as_echo_body
14758 as_echo='sh -c $as_echo_body as_echo'
14759 fi
14760
14761 # The user is always right.
14762 if test "${PATH_SEPARATOR+set}" != set; then
14763 PATH_SEPARATOR=:
14764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14766 PATH_SEPARATOR=';'
14767 }
14768 fi
14769
14770 # Support unset when possible.
14771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14772 as_unset=unset
14773 else
14774 as_unset=false
14775 fi
14776
14777
14778 # IFS
14779 # We need space, tab and new line, in precisely that order. Quoting is
14780 # there to prevent editors from complaining about space-tab.
14781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14782 # splitting by setting IFS to empty value.)
14783 IFS=" "" $as_nl"
14784
14785 # Find who we are. Look in the path if we contain no directory separator.
14786 case $0 in
14787 *[\\/]* ) as_myself=$0 ;;
14788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14790 do
14791 IFS=$as_save_IFS
14792 test -z "$as_dir" && as_dir=.
14793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14794 done
14795 IFS=$as_save_IFS
14796
14797 ;;
14798 esac
14799 # We did not find ourselves, most probably we were run as `sh COMMAND'
14800 # in which case we are not to be found in the path.
14801 if test "x$as_myself" = x; then
14802 as_myself=$0
14803 fi
14804 if test ! -f "$as_myself"; then
14805 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14806 { (exit 1); exit 1; }
14807 fi
14808
14809 # Work around bugs in pre-3.0 UWIN ksh.
14810 for as_var in ENV MAIL MAILPATH
14811 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14812 done
14813 PS1='$ '
14814 PS2='> '
14815 PS4='+ '
14816
14817 # NLS nuisances.
14818 LC_ALL=C
14819 export LC_ALL
14820 LANGUAGE=C
14821 export LANGUAGE
14822
14823 # Required to use basename.
14824 if expr a : '\(a\)' >/dev/null 2>&1 &&
14825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14826 as_expr=expr
14827 else
14828 as_expr=false
14829 fi
14830
14831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14832 as_basename=basename
14833 else
14834 as_basename=false
14835 fi
14836
14837
14838 # Name of the executable.
14839 as_me=`$as_basename -- "$0" ||
14840 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14841 X"$0" : 'X\(//\)$' \| \
14842 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14843 $as_echo X/"$0" |
14844 sed '/^.*\/\([^/][^/]*\)\/*$/{
14845 s//\1/
14846 q
14847 }
14848 /^X\/\(\/\/\)$/{
14849 s//\1/
14850 q
14851 }
14852 /^X\/\(\/\).*/{
14853 s//\1/
14854 q
14855 }
14856 s/.*/./; q'`
14857
14858 # CDPATH.
14859 $as_unset CDPATH
14860
14861
14862
14863 as_lineno_1=$LINENO
14864 as_lineno_2=$LINENO
14865 test "x$as_lineno_1" != "x$as_lineno_2" &&
14866 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14867
14868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14869 # uniformly replaced by the line number. The first 'sed' inserts a
14870 # line-number line after each line using $LINENO; the second 'sed'
14871 # does the real work. The second script uses 'N' to pair each
14872 # line-number line with the line containing $LINENO, and appends
14873 # trailing '-' during substitution so that $LINENO is not a special
14874 # case at line end.
14875 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14876 # scripts with optimization help from Paolo Bonzini. Blame Lee
14877 # E. McMahon (1931-1989) for sed's syntax. :-)
14878 sed -n '
14879 p
14880 /[$]LINENO/=
14881 ' <$as_myself |
14882 sed '
14883 s/[$]LINENO.*/&-/
14884 t lineno
14885 b
14886 :lineno
14887 N
14888 :loop
14889 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14890 t loop
14891 s/-\n.*//
14892 ' >$as_me.lineno &&
14893 chmod +x "$as_me.lineno" ||
14894 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14895 { (exit 1); exit 1; }; }
14896
14897 # Don't try to exec as it changes $[0], causing all sort of problems
14898 # (the dirname of $[0] is not the place where we might find the
14899 # original and so on. Autoconf is especially sensitive to this).
14900 . "./$as_me.lineno"
14901 # Exit status is that of the last command.
14902 exit
14903 }
14904
14905
14906 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14907 as_dirname=dirname
14908 else
14909 as_dirname=false
14910 fi
14911
14912 ECHO_C= ECHO_N= ECHO_T=
14913 case `echo -n x` in
14914 -n*)
14915 case `echo 'x\c'` in
14916 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14917 *) ECHO_C='\c';;
14918 esac;;
14919 *)
14920 ECHO_N='-n';;
14921 esac
14922 if expr a : '\(a\)' >/dev/null 2>&1 &&
14923 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14924 as_expr=expr
14925 else
14926 as_expr=false
14927 fi
14928
14929 rm -f conf$$ conf$$.exe conf$$.file
14930 if test -d conf$$.dir; then
14931 rm -f conf$$.dir/conf$$.file
14932 else
14933 rm -f conf$$.dir
14934 mkdir conf$$.dir 2>/dev/null
14935 fi
14936 if (echo >conf$$.file) 2>/dev/null; then
14937 if ln -s conf$$.file conf$$ 2>/dev/null; then
14938 as_ln_s='ln -s'
14939 # ... but there are two gotchas:
14940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14942 # In both cases, we have to default to `cp -p'.
14943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14944 as_ln_s='cp -p'
14945 elif ln conf$$.file conf$$ 2>/dev/null; then
14946 as_ln_s=ln
14947 else
14948 as_ln_s='cp -p'
14949 fi
14950 else
14951 as_ln_s='cp -p'
14952 fi
14953 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14954 rmdir conf$$.dir 2>/dev/null
14955
14956 if mkdir -p . 2>/dev/null; then
14957 as_mkdir_p=:
14958 else
14959 test -d ./-p && rmdir ./-p
14960 as_mkdir_p=false
14961 fi
14962
14963 if test -x / >/dev/null 2>&1; then
14964 as_test_x='test -x'
14965 else
14966 if ls -dL / >/dev/null 2>&1; then
14967 as_ls_L_option=L
14968 else
14969 as_ls_L_option=
14970 fi
14971 as_test_x='
14972 eval sh -c '\''
14973 if test -d "$1"; then
14974 test -d "$1/.";
14975 else
14976 case $1 in
14977 -*)set "./$1";;
14978 esac;
14979 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14980 ???[sx]*):;;*)false;;esac;fi
14981 '\'' sh
14982 '
14983 fi
14984 as_executable_p=$as_test_x
14985
14986 # Sed expression to map a string onto a valid CPP name.
14987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14988
14989 # Sed expression to map a string onto a valid variable name.
14990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14991
14992
14993 exec 6>&1
14994
14995 # Save the log message, to keep $[0] and so on meaningful, and to
14996 # report actual input values of CONFIG_FILES etc. instead of their
14997 # values after options handling.
14998 ac_log="
14999 This file was extended by libdaemon $as_me 0.14, which was
15000 generated by GNU Autoconf 2.63. Invocation command line was
15001
15002 CONFIG_FILES = $CONFIG_FILES
15003 CONFIG_HEADERS = $CONFIG_HEADERS
15004 CONFIG_LINKS = $CONFIG_LINKS
15005 CONFIG_COMMANDS = $CONFIG_COMMANDS
15006 $ $0 $@
15007
15008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15009 "
15010
15011 _ACEOF
15012
15013 case $ac_config_files in *"
15014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15015 esac
15016
15017 case $ac_config_headers in *"
15018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15019 esac
15020
15021
15022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023 # Files that config.status was made for.
15024 config_files="$ac_config_files"
15025 config_headers="$ac_config_headers"
15026 config_commands="$ac_config_commands"
15027
15028 _ACEOF
15029
15030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15031 ac_cs_usage="\
15032 \`$as_me' instantiates files from templates according to the
15033 current configuration.
15034
15035 Usage: $0 [OPTION]... [FILE]...
15036
15037 -h, --help print this help, then exit
15038 -V, --version print version number and configuration settings, then exit
15039 -q, --quiet, --silent
15040 do not print progress messages
15041 -d, --debug don't remove temporary files
15042 --recheck update $as_me by reconfiguring in the same conditions
15043 --file=FILE[:TEMPLATE]
15044 instantiate the configuration file FILE
15045 --header=FILE[:TEMPLATE]
15046 instantiate the configuration header FILE
15047
15048 Configuration files:
15049 $config_files
15050
15051 Configuration headers:
15052 $config_headers
15053
15054 Configuration commands:
15055 $config_commands
15056
15057 Report bugs to <[email protected]>."
15058
15059 _ACEOF
15060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15061 ac_cs_version="\\
15062 libdaemon config.status 0.14
15063 configured by $0, generated by GNU Autoconf 2.63,
15064 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15065
15066 Copyright (C) 2008 Free Software Foundation, Inc.
15067 This config.status script is free software; the Free Software Foundation
15068 gives unlimited permission to copy, distribute and modify it."
15069
15070 ac_pwd='$ac_pwd'
15071 srcdir='$srcdir'
15072 INSTALL='$INSTALL'
15073 MKDIR_P='$MKDIR_P'
15074 AWK='$AWK'
15075 test -n "\$AWK" || AWK=awk
15076 _ACEOF
15077
15078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15079 # The default lists apply if the user does not specify any file.
15080 ac_need_defaults=:
15081 while test $# != 0
15082 do
15083 case $1 in
15084 --*=*)
15085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15086 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15087 ac_shift=:
15088 ;;
15089 *)
15090 ac_option=$1
15091 ac_optarg=$2
15092 ac_shift=shift
15093 ;;
15094 esac
15095
15096 case $ac_option in
15097 # Handling of the options.
15098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15099 ac_cs_recheck=: ;;
15100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15101 $as_echo "$ac_cs_version"; exit ;;
15102 --debug | --debu | --deb | --de | --d | -d )
15103 debug=: ;;
15104 --file | --fil | --fi | --f )
15105 $ac_shift
15106 case $ac_optarg in
15107 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15108 esac
15109 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
15110 ac_need_defaults=false;;
15111 --header | --heade | --head | --hea )
15112 $ac_shift
15113 case $ac_optarg in
15114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15115 esac
15116 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
15117 ac_need_defaults=false;;
15118 --he | --h)
15119 # Conflict between --help and --header
15120 { $as_echo "$as_me: error: ambiguous option: $1
15121 Try \`$0 --help' for more information." >&2
15122 { (exit 1); exit 1; }; };;
15123 --help | --hel | -h )
15124 $as_echo "$ac_cs_usage"; exit ;;
15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15127 ac_cs_silent=: ;;
15128
15129 # This is an error.
15130 -*) { $as_echo "$as_me: error: unrecognized option: $1
15131 Try \`$0 --help' for more information." >&2
15132 { (exit 1); exit 1; }; } ;;
15133
15134 *) ac_config_targets="$ac_config_targets $1"
15135 ac_need_defaults=false ;;
15136
15137 esac
15138 shift
15139 done
15140
15141 ac_configure_extra_args=
15142
15143 if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15146 fi
15147
15148 _ACEOF
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 if \$ac_cs_recheck; then
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 shift
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15156 exec "\$@"
15157 fi
15158
15159 _ACEOF
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 exec 5>>config.log
15162 {
15163 echo
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165 ## Running $as_me. ##
15166 _ASBOX
15167 $as_echo "$ac_log"
15168 } >&5
15169
15170 _ACEOF
15171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172 #
15173 # INIT-COMMANDS
15174 #
15175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15176
15177
15178 # The HP-UX ksh and POSIX shell print the target directory to stdout
15179 # if CDPATH is set.
15180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15181
15182 sed_quote_subst='$sed_quote_subst'
15183 double_quote_subst='$double_quote_subst'
15184 delay_variable_subst='$delay_variable_subst'
15185 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15186 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15187 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15188 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15189 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15190 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15191 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15192 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15193 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15194 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15195 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15196 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15197 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15198 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15199 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15200 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15201 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15202 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15203 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15204 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15205 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15206 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15207 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15208 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15209 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15210 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15211 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15212 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15213 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15214 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15215 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15216 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15217 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15218 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15219 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15220 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15221 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15222 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15223 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15224 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15225 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15226 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15227 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15228 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15229 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"`'
15230 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"`'
15231 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15232 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15233 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15234 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15235 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15236 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15237 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15238 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15239 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15240 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15241 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15242 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15243 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15244 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15245 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15246 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15247 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15248 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15249 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15250 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15251 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15252 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15253 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15254 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15255 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15256 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15257 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15258 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15259 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15260 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15261 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15262 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15263 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15264 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15265 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15266 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15267 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15268 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15269 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15270 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15271 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15272 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15273 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15274 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15275 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15276 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15277 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15278 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15279 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15280 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15281 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15282 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15283 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15284 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15285 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15286 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15287 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15288 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15289 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15290 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15291 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15292 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15293 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15294 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15295 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15296 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15297 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15298 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15299 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15300 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15301 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15302 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15303
15304 LTCC='$LTCC'
15305 LTCFLAGS='$LTCFLAGS'
15306 compiler='$compiler_DEFAULT'
15307
15308 # Quote evaled strings.
15309 for var in SED \
15310 GREP \
15311 EGREP \
15312 FGREP \
15313 LD \
15314 NM \
15315 LN_S \
15316 lt_SP2NL \
15317 lt_NL2SP \
15318 reload_flag \
15319 OBJDUMP \
15320 deplibs_check_method \
15321 file_magic_cmd \
15322 AR \
15323 AR_FLAGS \
15324 STRIP \
15325 RANLIB \
15326 CC \
15327 CFLAGS \
15328 compiler \
15329 lt_cv_sys_global_symbol_pipe \
15330 lt_cv_sys_global_symbol_to_cdecl \
15331 lt_cv_sys_global_symbol_to_c_name_address \
15332 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15333 SHELL \
15334 ECHO \
15335 lt_prog_compiler_no_builtin_flag \
15336 lt_prog_compiler_wl \
15337 lt_prog_compiler_pic \
15338 lt_prog_compiler_static \
15339 lt_cv_prog_compiler_c_o \
15340 need_locks \
15341 DSYMUTIL \
15342 NMEDIT \
15343 LIPO \
15344 OTOOL \
15345 OTOOL64 \
15346 shrext_cmds \
15347 export_dynamic_flag_spec \
15348 whole_archive_flag_spec \
15349 compiler_needs_object \
15350 with_gnu_ld \
15351 allow_undefined_flag \
15352 no_undefined_flag \
15353 hardcode_libdir_flag_spec \
15354 hardcode_libdir_flag_spec_ld \
15355 hardcode_libdir_separator \
15356 fix_srcfile_path \
15357 exclude_expsyms \
15358 include_expsyms \
15359 file_list_spec \
15360 variables_saved_for_relink \
15361 libname_spec \
15362 library_names_spec \
15363 soname_spec \
15364 finish_eval \
15365 old_striplib \
15366 striplib; do
15367 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15368 *[\\\\\\\`\\"\\\$]*)
15369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15370 ;;
15371 *)
15372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15373 ;;
15374 esac
15375 done
15376
15377 # Double-quote double-evaled strings.
15378 for var in reload_cmds \
15379 old_postinstall_cmds \
15380 old_postuninstall_cmds \
15381 old_archive_cmds \
15382 extract_expsyms_cmds \
15383 old_archive_from_new_cmds \
15384 old_archive_from_expsyms_cmds \
15385 archive_cmds \
15386 archive_expsym_cmds \
15387 module_cmds \
15388 module_expsym_cmds \
15389 export_symbols_cmds \
15390 prelink_cmds \
15391 postinstall_cmds \
15392 postuninstall_cmds \
15393 finish_cmds \
15394 sys_lib_search_path_spec \
15395 sys_lib_dlsearch_path_spec; do
15396 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15397 *[\\\\\\\`\\"\\\$]*)
15398 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15399 ;;
15400 *)
15401 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15402 ;;
15403 esac
15404 done
15405
15406 # Fix-up fallback echo if it was mangled by the above quoting rules.
15407 case \$lt_ECHO in
15408 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15409 ;;
15410 esac
15411
15412 ac_aux_dir='$ac_aux_dir'
15413 xsi_shell='$xsi_shell'
15414 lt_shell_append='$lt_shell_append'
15415
15416 # See if we are running on zsh, and set the options which allow our
15417 # commands through without removal of \ escapes INIT.
15418 if test -n "\${ZSH_VERSION+set}" ; then
15419 setopt NO_GLOB_SUBST
15420 fi
15421
15422
15423 PACKAGE='$PACKAGE'
15424 VERSION='$VERSION'
15425 TIMESTAMP='$TIMESTAMP'
15426 RM='$RM'
15427 ofile='$ofile'
15428
15429
15430
15431
15432 _ACEOF
15433
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435
15436 # Handling of arguments.
15437 for ac_config_target in $ac_config_targets
15438 do
15439 case $ac_config_target in
15440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15442 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15443 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
15444 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15445 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15446 "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
15447 "doc/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doc/doxygen.conf" ;;
15448 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15449 "pkgconfig/libdaemon.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon.pc" ;;
15450 "pkgconfig/libdaemon-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libdaemon-uninstalled.pc" ;;
15451
15452 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15453 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15454 { (exit 1); exit 1; }; };;
15455 esac
15456 done
15457
15458
15459 # If the user did not use the arguments to specify the items to instantiate,
15460 # then the envvar interface is used. Set only those that are not.
15461 # We use the long form for the default assignment because of an extremely
15462 # bizarre bug on SunOS 4.1.3.
15463 if $ac_need_defaults; then
15464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15467 fi
15468
15469 # Have a temporary directory for convenience. Make it in the build tree
15470 # simply because there is no reason against having it here, and in addition,
15471 # creating and moving files from /tmp can sometimes cause problems.
15472 # Hook for its removal unless debugging.
15473 # Note that there is a small window in which the directory will not be cleaned:
15474 # after its creation but before its name has been assigned to `$tmp'.
15475 $debug ||
15476 {
15477 tmp=
15478 trap 'exit_status=$?
15479 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15480 ' 0
15481 trap '{ (exit 1); exit 1; }' 1 2 13 15
15482 }
15483 # Create a (secure) tmp directory for tmp files.
15484
15485 {
15486 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15487 test -n "$tmp" && test -d "$tmp"
15488 } ||
15489 {
15490 tmp=./conf$$-$RANDOM
15491 (umask 077 && mkdir "$tmp")
15492 } ||
15493 {
15494 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15495 { (exit 1); exit 1; }
15496 }
15497
15498 # Set up the scripts for CONFIG_FILES section.
15499 # No need to generate them if there are no CONFIG_FILES.
15500 # This happens for instance with `./config.status config.h'.
15501 if test -n "$CONFIG_FILES"; then
15502
15503
15504 ac_cr=' '
15505 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15506 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15507 ac_cs_awk_cr='\\r'
15508 else
15509 ac_cs_awk_cr=$ac_cr
15510 fi
15511
15512 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15513 _ACEOF
15514
15515
15516 {
15517 echo "cat >conf$$subs.awk <<_ACEOF" &&
15518 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15519 echo "_ACEOF"
15520 } >conf$$subs.sh ||
15521 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15522 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15523 { (exit 1); exit 1; }; }
15524 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15525 ac_delim='%!_!# '
15526 for ac_last_try in false false false false false :; do
15527 . ./conf$$subs.sh ||
15528 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15529 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15530 { (exit 1); exit 1; }; }
15531
15532 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15533 if test $ac_delim_n = $ac_delim_num; then
15534 break
15535 elif $ac_last_try; then
15536 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15537 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15538 { (exit 1); exit 1; }; }
15539 else
15540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15541 fi
15542 done
15543 rm -f conf$$subs.sh
15544
15545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15547 _ACEOF
15548 sed -n '
15549 h
15550 s/^/S["/; s/!.*/"]=/
15551 p
15552 g
15553 s/^[^!]*!//
15554 :repl
15555 t repl
15556 s/'"$ac_delim"'$//
15557 t delim
15558 :nl
15559 h
15560 s/\(.\{148\}\).*/\1/
15561 t more1
15562 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15563 p
15564 n
15565 b repl
15566 :more1
15567 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15568 p
15569 g
15570 s/.\{148\}//
15571 t nl
15572 :delim
15573 h
15574 s/\(.\{148\}\).*/\1/
15575 t more2
15576 s/["\\]/\\&/g; s/^/"/; s/$/"/
15577 p
15578 b
15579 :more2
15580 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15581 p
15582 g
15583 s/.\{148\}//
15584 t delim
15585 ' <conf$$subs.awk | sed '
15586 /^[^""]/{
15587 N
15588 s/\n//
15589 }
15590 ' >>$CONFIG_STATUS || ac_write_fail=1
15591 rm -f conf$$subs.awk
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 _ACAWK
15594 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15595 for (key in S) S_is_set[key] = 1
15596 FS = ""
15597
15598 }
15599 {
15600 line = $ 0
15601 nfields = split(line, field, "@")
15602 substed = 0
15603 len = length(field[1])
15604 for (i = 2; i < nfields; i++) {
15605 key = field[i]
15606 keylen = length(key)
15607 if (S_is_set[key]) {
15608 value = S[key]
15609 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15610 len += length(value) + length(field[++i])
15611 substed = 1
15612 } else
15613 len += 1 + keylen
15614 }
15615
15616 print line
15617 }
15618
15619 _ACAWK
15620 _ACEOF
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15623 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15624 else
15625 cat
15626 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15627 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15628 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15629 { (exit 1); exit 1; }; }
15630 _ACEOF
15631
15632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15634 # trailing colons and then remove the whole line if VPATH becomes empty
15635 # (actually we leave an empty line to preserve line numbers).
15636 if test "x$srcdir" = x.; then
15637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15638 s/:*\$(srcdir):*/:/
15639 s/:*\${srcdir}:*/:/
15640 s/:*@srcdir@:*/:/
15641 s/^\([^=]*=[ ]*\):*/\1/
15642 s/:*$//
15643 s/^[^=]*=[ ]*$//
15644 }'
15645 fi
15646
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15648 fi # test -n "$CONFIG_FILES"
15649
15650 # Set up the scripts for CONFIG_HEADERS section.
15651 # No need to generate them if there are no CONFIG_HEADERS.
15652 # This happens for instance with `./config.status Makefile'.
15653 if test -n "$CONFIG_HEADERS"; then
15654 cat >"$tmp/defines.awk" <<\_ACAWK ||
15655 BEGIN {
15656 _ACEOF
15657
15658 # Transform confdefs.h into an awk script `defines.awk', embedded as
15659 # here-document in config.status, that substitutes the proper values into
15660 # config.h.in to produce config.h.
15661
15662 # Create a delimiter string that does not exist in confdefs.h, to ease
15663 # handling of long lines.
15664 ac_delim='%!_!# '
15665 for ac_last_try in false false :; do
15666 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15667 if test -z "$ac_t"; then
15668 break
15669 elif $ac_last_try; then
15670 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
15671 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
15672 { (exit 1); exit 1; }; }
15673 else
15674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15675 fi
15676 done
15677
15678 # For the awk script, D is an array of macro values keyed by name,
15679 # likewise P contains macro parameters if any. Preserve backslash
15680 # newline sequences.
15681
15682 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15683 sed -n '
15684 s/.\{148\}/&'"$ac_delim"'/g
15685 t rset
15686 :rset
15687 s/^[ ]*#[ ]*define[ ][ ]*/ /
15688 t def
15689 d
15690 :def
15691 s/\\$//
15692 t bsnl
15693 s/["\\]/\\&/g
15694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15695 D["\1"]=" \3"/p
15696 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15697 d
15698 :bsnl
15699 s/["\\]/\\&/g
15700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15701 D["\1"]=" \3\\\\\\n"\\/p
15702 t cont
15703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15704 t cont
15705 d
15706 :cont
15707 n
15708 s/.\{148\}/&'"$ac_delim"'/g
15709 t clear
15710 :clear
15711 s/\\$//
15712 t bsnlc
15713 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15714 d
15715 :bsnlc
15716 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15717 b cont
15718 ' <confdefs.h | sed '
15719 s/'"$ac_delim"'/"\\\
15720 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15721
15722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 for (key in D) D_is_set[key] = 1
15724 FS = ""
15725 }
15726 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15727 line = \$ 0
15728 split(line, arg, " ")
15729 if (arg[1] == "#") {
15730 defundef = arg[2]
15731 mac1 = arg[3]
15732 } else {
15733 defundef = substr(arg[1], 2)
15734 mac1 = arg[2]
15735 }
15736 split(mac1, mac2, "(") #)
15737 macro = mac2[1]
15738 prefix = substr(line, 1, index(line, defundef) - 1)
15739 if (D_is_set[macro]) {
15740 # Preserve the white space surrounding the "#".
15741 print prefix "define", macro P[macro] D[macro]
15742 next
15743 } else {
15744 # Replace #undef with comments. This is necessary, for example,
15745 # in the case of _POSIX_SOURCE, which is predefined and required
15746 # on some systems where configure will not decide to define it.
15747 if (defundef == "undef") {
15748 print "/*", prefix defundef, macro, "*/"
15749 next
15750 }
15751 }
15752 }
15753 { print }
15754 _ACAWK
15755 _ACEOF
15756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
15758 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
15759 { (exit 1); exit 1; }; }
15760 fi # test -n "$CONFIG_HEADERS"
15761
15762
15763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15764 shift
15765 for ac_tag
15766 do
15767 case $ac_tag in
15768 :[FHLC]) ac_mode=$ac_tag; continue;;
15769 esac
15770 case $ac_mode$ac_tag in
15771 :[FHL]*:*);;
15772 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15773 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15774 { (exit 1); exit 1; }; };;
15775 :[FH]-) ac_tag=-:-;;
15776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15777 esac
15778 ac_save_IFS=$IFS
15779 IFS=:
15780 set x $ac_tag
15781 IFS=$ac_save_IFS
15782 shift
15783 ac_file=$1
15784 shift
15785
15786 case $ac_mode in
15787 :L) ac_source=$1;;
15788 :[FH])
15789 ac_file_inputs=
15790 for ac_f
15791 do
15792 case $ac_f in
15793 -) ac_f="$tmp/stdin";;
15794 *) # Look for the file first in the build tree, then in the source tree
15795 # (if the path is not absolute). The absolute path cannot be DOS-style,
15796 # because $ac_f cannot contain `:'.
15797 test -f "$ac_f" ||
15798 case $ac_f in
15799 [\\/$]*) false;;
15800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15801 esac ||
15802 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15803 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15804 { (exit 1); exit 1; }; };;
15805 esac
15806 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15807 ac_file_inputs="$ac_file_inputs '$ac_f'"
15808 done
15809
15810 # Let's still pretend it is `configure' which instantiates (i.e., don't
15811 # use $as_me), people would be surprised to read:
15812 # /* config.h. Generated by config.status. */
15813 configure_input='Generated from '`
15814 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15815 `' by configure.'
15816 if test x"$ac_file" != x-; then
15817 configure_input="$ac_file. $configure_input"
15818 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15819 $as_echo "$as_me: creating $ac_file" >&6;}
15820 fi
15821 # Neutralize special characters interpreted by sed in replacement strings.
15822 case $configure_input in #(
15823 *\&* | *\|* | *\\* )
15824 ac_sed_conf_input=`$as_echo "$configure_input" |
15825 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15826 *) ac_sed_conf_input=$configure_input;;
15827 esac
15828
15829 case $ac_tag in
15830 *:-:* | *:-) cat >"$tmp/stdin" \
15831 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15832 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15833 { (exit 1); exit 1; }; } ;;
15834 esac
15835 ;;
15836 esac
15837
15838 ac_dir=`$as_dirname -- "$ac_file" ||
15839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$ac_file" : 'X\(//\)[^/]' \| \
15841 X"$ac_file" : 'X\(//\)$' \| \
15842 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X"$ac_file" |
15844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15845 s//\1/
15846 q
15847 }
15848 /^X\(\/\/\)[^/].*/{
15849 s//\1/
15850 q
15851 }
15852 /^X\(\/\/\)$/{
15853 s//\1/
15854 q
15855 }
15856 /^X\(\/\).*/{
15857 s//\1/
15858 q
15859 }
15860 s/.*/./; q'`
15861 { as_dir="$ac_dir"
15862 case $as_dir in #(
15863 -*) as_dir=./$as_dir;;
15864 esac
15865 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15866 as_dirs=
15867 while :; do
15868 case $as_dir in #(
15869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15870 *) as_qdir=$as_dir;;
15871 esac
15872 as_dirs="'$as_qdir' $as_dirs"
15873 as_dir=`$as_dirname -- "$as_dir" ||
15874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15875 X"$as_dir" : 'X\(//\)[^/]' \| \
15876 X"$as_dir" : 'X\(//\)$' \| \
15877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15878 $as_echo X"$as_dir" |
15879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\(\/\/\)[^/].*/{
15884 s//\1/
15885 q
15886 }
15887 /^X\(\/\/\)$/{
15888 s//\1/
15889 q
15890 }
15891 /^X\(\/\).*/{
15892 s//\1/
15893 q
15894 }
15895 s/.*/./; q'`
15896 test -d "$as_dir" && break
15897 done
15898 test -z "$as_dirs" || eval "mkdir $as_dirs"
15899 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15900 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15901 { (exit 1); exit 1; }; }; }
15902 ac_builddir=.
15903
15904 case "$ac_dir" in
15905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15906 *)
15907 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15908 # A ".." for each directory in $ac_dir_suffix.
15909 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15910 case $ac_top_builddir_sub in
15911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15913 esac ;;
15914 esac
15915 ac_abs_top_builddir=$ac_pwd
15916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15917 # for backward compatibility:
15918 ac_top_builddir=$ac_top_build_prefix
15919
15920 case $srcdir in
15921 .) # We are building in place.
15922 ac_srcdir=.
15923 ac_top_srcdir=$ac_top_builddir_sub
15924 ac_abs_top_srcdir=$ac_pwd ;;
15925 [\\/]* | ?:[\\/]* ) # Absolute name.
15926 ac_srcdir=$srcdir$ac_dir_suffix;
15927 ac_top_srcdir=$srcdir
15928 ac_abs_top_srcdir=$srcdir ;;
15929 *) # Relative name.
15930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15931 ac_top_srcdir=$ac_top_build_prefix$srcdir
15932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15933 esac
15934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15935
15936
15937 case $ac_mode in
15938 :F)
15939 #
15940 # CONFIG_FILE
15941 #
15942
15943 case $INSTALL in
15944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15946 esac
15947 ac_MKDIR_P=$MKDIR_P
15948 case $MKDIR_P in
15949 [\\/$]* | ?:[\\/]* ) ;;
15950 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15951 esac
15952 _ACEOF
15953
15954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15955 # If the template does not know about datarootdir, expand it.
15956 # FIXME: This hack should be removed a few years after 2.60.
15957 ac_datarootdir_hack=; ac_datarootdir_seen=
15958
15959 ac_sed_dataroot='
15960 /datarootdir/ {
15961 p
15962 q
15963 }
15964 /@datadir@/p
15965 /@docdir@/p
15966 /@infodir@/p
15967 /@localedir@/p
15968 /@mandir@/p
15969 '
15970 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15971 *datarootdir*) ac_datarootdir_seen=yes;;
15972 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15973 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15974 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15975 _ACEOF
15976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15977 ac_datarootdir_hack='
15978 s&@datadir@&$datadir&g
15979 s&@docdir@&$docdir&g
15980 s&@infodir@&$infodir&g
15981 s&@localedir@&$localedir&g
15982 s&@mandir@&$mandir&g
15983 s&\\\${datarootdir}&$datarootdir&g' ;;
15984 esac
15985 _ACEOF
15986
15987 # Neutralize VPATH when `$srcdir' = `.'.
15988 # Shell code in configure.ac might set extrasub.
15989 # FIXME: do we really want to maintain this feature?
15990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15991 ac_sed_extra="$ac_vpsub
15992 $extrasub
15993 _ACEOF
15994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15995 :t
15996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15997 s|@configure_input@|$ac_sed_conf_input|;t t
15998 s&@top_builddir@&$ac_top_builddir_sub&;t t
15999 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16000 s&@srcdir@&$ac_srcdir&;t t
16001 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16002 s&@top_srcdir@&$ac_top_srcdir&;t t
16003 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16004 s&@builddir@&$ac_builddir&;t t
16005 s&@abs_builddir@&$ac_abs_builddir&;t t
16006 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16007 s&@INSTALL@&$ac_INSTALL&;t t
16008 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16009 $ac_datarootdir_hack
16010 "
16011 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16012 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16013 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16014 { (exit 1); exit 1; }; }
16015
16016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16019 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16020 which seems to be undefined. Please make sure it is defined." >&5
16021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16022 which seems to be undefined. Please make sure it is defined." >&2;}
16023
16024 rm -f "$tmp/stdin"
16025 case $ac_file in
16026 -) cat "$tmp/out" && rm -f "$tmp/out";;
16027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16028 esac \
16029 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16030 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16031 { (exit 1); exit 1; }; }
16032 ;;
16033 :H)
16034 #
16035 # CONFIG_HEADER
16036 #
16037 if test x"$ac_file" != x-; then
16038 {
16039 $as_echo "/* $configure_input */" \
16040 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16041 } >"$tmp/config.h" \
16042 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16043 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16044 { (exit 1); exit 1; }; }
16045 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16046 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16047 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16048 else
16049 rm -f "$ac_file"
16050 mv "$tmp/config.h" "$ac_file" \
16051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16052 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16053 { (exit 1); exit 1; }; }
16054 fi
16055 else
16056 $as_echo "/* $configure_input */" \
16057 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16058 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16059 $as_echo "$as_me: error: could not create -" >&2;}
16060 { (exit 1); exit 1; }; }
16061 fi
16062 # Compute "$ac_file"'s index in $config_headers.
16063 _am_arg="$ac_file"
16064 _am_stamp_count=1
16065 for _am_header in $config_headers :; do
16066 case $_am_header in
16067 $_am_arg | $_am_arg:* )
16068 break ;;
16069 * )
16070 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16071 esac
16072 done
16073 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16074 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16075 X"$_am_arg" : 'X\(//\)[^/]' \| \
16076 X"$_am_arg" : 'X\(//\)$' \| \
16077 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16078 $as_echo X"$_am_arg" |
16079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16080 s//\1/
16081 q
16082 }
16083 /^X\(\/\/\)[^/].*/{
16084 s//\1/
16085 q
16086 }
16087 /^X\(\/\/\)$/{
16088 s//\1/
16089 q
16090 }
16091 /^X\(\/\).*/{
16092 s//\1/
16093 q
16094 }
16095 s/.*/./; q'`/stamp-h$_am_stamp_count
16096 ;;
16097
16098 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16099 $as_echo "$as_me: executing $ac_file commands" >&6;}
16100 ;;
16101 esac
16102
16103
16104 case $ac_file$ac_mode in
16105 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16106 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16107 # are listed without --file. Let's play safe and only enable the eval
16108 # if we detect the quoting.
16109 case $CONFIG_FILES in
16110 *\'*) eval set x "$CONFIG_FILES" ;;
16111 *) set x $CONFIG_FILES ;;
16112 esac
16113 shift
16114 for mf
16115 do
16116 # Strip MF so we end up with the name of the file.
16117 mf=`echo "$mf" | sed -e 's/:.*$//'`
16118 # Check whether this is an Automake generated Makefile or not.
16119 # We used to match only the files named `Makefile.in', but
16120 # some people rename them; so instead we look at the file content.
16121 # Grep'ing the first line is not enough: some people post-process
16122 # each Makefile.in and add a new line on top of each file to say so.
16123 # Grep'ing the whole file is not good either: AIX grep has a line
16124 # limit of 2048, but all sed's we know have understand at least 4000.
16125 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16126 dirpart=`$as_dirname -- "$mf" ||
16127 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16128 X"$mf" : 'X\(//\)[^/]' \| \
16129 X"$mf" : 'X\(//\)$' \| \
16130 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16131 $as_echo X"$mf" |
16132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16133 s//\1/
16134 q
16135 }
16136 /^X\(\/\/\)[^/].*/{
16137 s//\1/
16138 q
16139 }
16140 /^X\(\/\/\)$/{
16141 s//\1/
16142 q
16143 }
16144 /^X\(\/\).*/{
16145 s//\1/
16146 q
16147 }
16148 s/.*/./; q'`
16149 else
16150 continue
16151 fi
16152 # Extract the definition of DEPDIR, am__include, and am__quote
16153 # from the Makefile without running `make'.
16154 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16155 test -z "$DEPDIR" && continue
16156 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16157 test -z "am__include" && continue
16158 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16159 # When using ansi2knr, U may be empty or an underscore; expand it
16160 U=`sed -n 's/^U = //p' < "$mf"`
16161 # Find all dependency output files, they are included files with
16162 # $(DEPDIR) in their names. We invoke sed twice because it is the
16163 # simplest approach to changing $(DEPDIR) to its actual value in the
16164 # expansion.
16165 for file in `sed -n "
16166 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16167 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16168 # Make sure the directory exists.
16169 test -f "$dirpart/$file" && continue
16170 fdir=`$as_dirname -- "$file" ||
16171 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16172 X"$file" : 'X\(//\)[^/]' \| \
16173 X"$file" : 'X\(//\)$' \| \
16174 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16175 $as_echo X"$file" |
16176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16177 s//\1/
16178 q
16179 }
16180 /^X\(\/\/\)[^/].*/{
16181 s//\1/
16182 q
16183 }
16184 /^X\(\/\/\)$/{
16185 s//\1/
16186 q
16187 }
16188 /^X\(\/\).*/{
16189 s//\1/
16190 q
16191 }
16192 s/.*/./; q'`
16193 { as_dir=$dirpart/$fdir
16194 case $as_dir in #(
16195 -*) as_dir=./$as_dir;;
16196 esac
16197 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16198 as_dirs=
16199 while :; do
16200 case $as_dir in #(
16201 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16202 *) as_qdir=$as_dir;;
16203 esac
16204 as_dirs="'$as_qdir' $as_dirs"
16205 as_dir=`$as_dirname -- "$as_dir" ||
16206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16207 X"$as_dir" : 'X\(//\)[^/]' \| \
16208 X"$as_dir" : 'X\(//\)$' \| \
16209 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16210 $as_echo X"$as_dir" |
16211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\/\)[^/].*/{
16216 s//\1/
16217 q
16218 }
16219 /^X\(\/\/\)$/{
16220 s//\1/
16221 q
16222 }
16223 /^X\(\/\).*/{
16224 s//\1/
16225 q
16226 }
16227 s/.*/./; q'`
16228 test -d "$as_dir" && break
16229 done
16230 test -z "$as_dirs" || eval "mkdir $as_dirs"
16231 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16232 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16233 { (exit 1); exit 1; }; }; }
16234 # echo "creating $dirpart/$file"
16235 echo '# dummy' > "$dirpart/$file"
16236 done
16237 done
16238 }
16239 ;;
16240 "libtool":C)
16241
16242 # See if we are running on zsh, and set the options which allow our
16243 # commands through without removal of \ escapes.
16244 if test -n "${ZSH_VERSION+set}" ; then
16245 setopt NO_GLOB_SUBST
16246 fi
16247
16248 cfgfile="${ofile}T"
16249 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16250 $RM "$cfgfile"
16251
16252 cat <<_LT_EOF >> "$cfgfile"
16253 #! $SHELL
16254
16255 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16256 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16259 #
16260 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16261 # 2006, 2007, 2008 Free Software Foundation, Inc.
16262 # Written by Gordon Matzigkeit, 1996
16263 #
16264 # This file is part of GNU Libtool.
16265 #
16266 # GNU Libtool is free software; you can redistribute it and/or
16267 # modify it under the terms of the GNU General Public License as
16268 # published by the Free Software Foundation; either version 2 of
16269 # the License, or (at your option) any later version.
16270 #
16271 # As a special exception to the GNU General Public License,
16272 # if you distribute this file as part of a program or library that
16273 # is built using GNU Libtool, you may include this file under the
16274 # same distribution terms that you use for the rest of that program.
16275 #
16276 # GNU Libtool is distributed in the hope that it will be useful,
16277 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16279 # GNU General Public License for more details.
16280 #
16281 # You should have received a copy of the GNU General Public License
16282 # along with GNU Libtool; see the file COPYING. If not, a copy
16283 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16284 # obtained by writing to the Free Software Foundation, Inc.,
16285 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16286
16287
16288 # The names of the tagged configurations supported by this script.
16289 available_tags=""
16290
16291 # ### BEGIN LIBTOOL CONFIG
16292
16293 # Which release of libtool.m4 was used?
16294 macro_version=$macro_version
16295 macro_revision=$macro_revision
16296
16297 # Whether or not to build shared libraries.
16298 build_libtool_libs=$enable_shared
16299
16300 # Whether or not to build static libraries.
16301 build_old_libs=$enable_static
16302
16303 # What type of objects to build.
16304 pic_mode=$pic_mode
16305
16306 # Whether or not to optimize for fast installation.
16307 fast_install=$enable_fast_install
16308
16309 # The host system.
16310 host_alias=$host_alias
16311 host=$host
16312 host_os=$host_os
16313
16314 # The build system.
16315 build_alias=$build_alias
16316 build=$build
16317 build_os=$build_os
16318
16319 # A sed program that does not truncate output.
16320 SED=$lt_SED
16321
16322 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16323 Xsed="\$SED -e 1s/^X//"
16324
16325 # A grep program that handles long lines.
16326 GREP=$lt_GREP
16327
16328 # An ERE matcher.
16329 EGREP=$lt_EGREP
16330
16331 # A literal string matcher.
16332 FGREP=$lt_FGREP
16333
16334 # A BSD- or MS-compatible name lister.
16335 NM=$lt_NM
16336
16337 # Whether we need soft or hard links.
16338 LN_S=$lt_LN_S
16339
16340 # What is the maximum length of a command?
16341 max_cmd_len=$max_cmd_len
16342
16343 # Object file suffix (normally "o").
16344 objext=$ac_objext
16345
16346 # Executable file suffix (normally "").
16347 exeext=$exeext
16348
16349 # whether the shell understands "unset".
16350 lt_unset=$lt_unset
16351
16352 # turn spaces into newlines.
16353 SP2NL=$lt_lt_SP2NL
16354
16355 # turn newlines into spaces.
16356 NL2SP=$lt_lt_NL2SP
16357
16358 # How to create reloadable object files.
16359 reload_flag=$lt_reload_flag
16360 reload_cmds=$lt_reload_cmds
16361
16362 # An object symbol dumper.
16363 OBJDUMP=$lt_OBJDUMP
16364
16365 # Method to check whether dependent libraries are shared objects.
16366 deplibs_check_method=$lt_deplibs_check_method
16367
16368 # Command to use when deplibs_check_method == "file_magic".
16369 file_magic_cmd=$lt_file_magic_cmd
16370
16371 # The archiver.
16372 AR=$lt_AR
16373 AR_FLAGS=$lt_AR_FLAGS
16374
16375 # A symbol stripping program.
16376 STRIP=$lt_STRIP
16377
16378 # Commands used to install an old-style archive.
16379 RANLIB=$lt_RANLIB
16380 old_postinstall_cmds=$lt_old_postinstall_cmds
16381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16382
16383 # A C compiler.
16384 LTCC=$lt_CC
16385
16386 # LTCC compiler flags.
16387 LTCFLAGS=$lt_CFLAGS
16388
16389 # Take the output of nm and produce a listing of raw symbols and C names.
16390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16391
16392 # Transform the output of nm in a proper C declaration.
16393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16394
16395 # Transform the output of nm in a C name address pair.
16396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16397
16398 # Transform the output of nm in a C name address pair when lib prefix is needed.
16399 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16400
16401 # The name of the directory that contains temporary libtool files.
16402 objdir=$objdir
16403
16404 # Shell to use when invoking shell scripts.
16405 SHELL=$lt_SHELL
16406
16407 # An echo program that does not interpret backslashes.
16408 ECHO=$lt_ECHO
16409
16410 # Used to examine libraries when file_magic_cmd begins with "file".
16411 MAGIC_CMD=$MAGIC_CMD
16412
16413 # Must we lock files when doing compilation?
16414 need_locks=$lt_need_locks
16415
16416 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16417 DSYMUTIL=$lt_DSYMUTIL
16418
16419 # Tool to change global to local symbols on Mac OS X.
16420 NMEDIT=$lt_NMEDIT
16421
16422 # Tool to manipulate fat objects and archives on Mac OS X.
16423 LIPO=$lt_LIPO
16424
16425 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16426 OTOOL=$lt_OTOOL
16427
16428 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16429 OTOOL64=$lt_OTOOL64
16430
16431 # Old archive suffix (normally "a").
16432 libext=$libext
16433
16434 # Shared library suffix (normally ".so").
16435 shrext_cmds=$lt_shrext_cmds
16436
16437 # The commands to extract the exported symbol list from a shared archive.
16438 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16439
16440 # Variables whose values should be saved in libtool wrapper scripts and
16441 # restored at link time.
16442 variables_saved_for_relink=$lt_variables_saved_for_relink
16443
16444 # Do we need the "lib" prefix for modules?
16445 need_lib_prefix=$need_lib_prefix
16446
16447 # Do we need a version for libraries?
16448 need_version=$need_version
16449
16450 # Library versioning type.
16451 version_type=$version_type
16452
16453 # Shared library runtime path variable.
16454 runpath_var=$runpath_var
16455
16456 # Shared library path variable.
16457 shlibpath_var=$shlibpath_var
16458
16459 # Is shlibpath searched before the hard-coded library search path?
16460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16461
16462 # Format of library name prefix.
16463 libname_spec=$lt_libname_spec
16464
16465 # List of archive names. First name is the real one, the rest are links.
16466 # The last name is the one that the linker finds with -lNAME
16467 library_names_spec=$lt_library_names_spec
16468
16469 # The coded name of the library, if different from the real name.
16470 soname_spec=$lt_soname_spec
16471
16472 # Command to use after installation of a shared archive.
16473 postinstall_cmds=$lt_postinstall_cmds
16474
16475 # Command to use after uninstallation of a shared archive.
16476 postuninstall_cmds=$lt_postuninstall_cmds
16477
16478 # Commands used to finish a libtool library installation in a directory.
16479 finish_cmds=$lt_finish_cmds
16480
16481 # As "finish_cmds", except a single script fragment to be evaled but
16482 # not shown.
16483 finish_eval=$lt_finish_eval
16484
16485 # Whether we should hardcode library paths into libraries.
16486 hardcode_into_libs=$hardcode_into_libs
16487
16488 # Compile-time system search path for libraries.
16489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16490
16491 # Run-time system search path for libraries.
16492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16493
16494 # Whether dlopen is supported.
16495 dlopen_support=$enable_dlopen
16496
16497 # Whether dlopen of programs is supported.
16498 dlopen_self=$enable_dlopen_self
16499
16500 # Whether dlopen of statically linked programs is supported.
16501 dlopen_self_static=$enable_dlopen_self_static
16502
16503 # Commands to strip libraries.
16504 old_striplib=$lt_old_striplib
16505 striplib=$lt_striplib
16506
16507
16508 # The linker used to build libraries.
16509 LD=$lt_LD
16510
16511 # Commands used to build an old-style archive.
16512 old_archive_cmds=$lt_old_archive_cmds
16513
16514 # A language specific compiler.
16515 CC=$lt_compiler
16516
16517 # Is the compiler the GNU compiler?
16518 with_gcc=$GCC
16519
16520 # Compiler flag to turn off builtin functions.
16521 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16522
16523 # How to pass a linker flag through the compiler.
16524 wl=$lt_lt_prog_compiler_wl
16525
16526 # Additional compiler flags for building library objects.
16527 pic_flag=$lt_lt_prog_compiler_pic
16528
16529 # Compiler flag to prevent dynamic linking.
16530 link_static_flag=$lt_lt_prog_compiler_static
16531
16532 # Does compiler simultaneously support -c and -o options?
16533 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16534
16535 # Whether or not to add -lc for building shared libraries.
16536 build_libtool_need_lc=$archive_cmds_need_lc
16537
16538 # Whether or not to disallow shared libs when runtime libs are static.
16539 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16540
16541 # Compiler flag to allow reflexive dlopens.
16542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16543
16544 # Compiler flag to generate shared objects directly from archives.
16545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16546
16547 # Whether the compiler copes with passing no objects directly.
16548 compiler_needs_object=$lt_compiler_needs_object
16549
16550 # Create an old-style archive from a shared archive.
16551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16552
16553 # Create a temporary old-style archive to link instead of a shared archive.
16554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16555
16556 # Commands used to build a shared archive.
16557 archive_cmds=$lt_archive_cmds
16558 archive_expsym_cmds=$lt_archive_expsym_cmds
16559
16560 # Commands used to build a loadable module if different from building
16561 # a shared archive.
16562 module_cmds=$lt_module_cmds
16563 module_expsym_cmds=$lt_module_expsym_cmds
16564
16565 # Whether we are building with GNU ld or not.
16566 with_gnu_ld=$lt_with_gnu_ld
16567
16568 # Flag that allows shared libraries with undefined symbols to be built.
16569 allow_undefined_flag=$lt_allow_undefined_flag
16570
16571 # Flag that enforces no undefined symbols.
16572 no_undefined_flag=$lt_no_undefined_flag
16573
16574 # Flag to hardcode \$libdir into a binary during linking.
16575 # This must work even if \$libdir does not exist
16576 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16577
16578 # If ld is used when linking, flag to hardcode \$libdir into a binary
16579 # during linking. This must work even if \$libdir does not exist.
16580 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16581
16582 # Whether we need a single "-rpath" flag with a separated argument.
16583 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16584
16585 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16586 # DIR into the resulting binary.
16587 hardcode_direct=$hardcode_direct
16588
16589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16590 # DIR into the resulting binary and the resulting library dependency is
16591 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16592 # library is relocated.
16593 hardcode_direct_absolute=$hardcode_direct_absolute
16594
16595 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16596 # into the resulting binary.
16597 hardcode_minus_L=$hardcode_minus_L
16598
16599 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16600 # into the resulting binary.
16601 hardcode_shlibpath_var=$hardcode_shlibpath_var
16602
16603 # Set to "yes" if building a shared library automatically hardcodes DIR
16604 # into the library and all subsequent libraries and executables linked
16605 # against it.
16606 hardcode_automatic=$hardcode_automatic
16607
16608 # Set to yes if linker adds runtime paths of dependent libraries
16609 # to runtime path list.
16610 inherit_rpath=$inherit_rpath
16611
16612 # Whether libtool must link a program against all its dependency libraries.
16613 link_all_deplibs=$link_all_deplibs
16614
16615 # Fix the shell variable \$srcfile for the compiler.
16616 fix_srcfile_path=$lt_fix_srcfile_path
16617
16618 # Set to "yes" if exported symbols are required.
16619 always_export_symbols=$always_export_symbols
16620
16621 # The commands to list exported symbols.
16622 export_symbols_cmds=$lt_export_symbols_cmds
16623
16624 # Symbols that should not be listed in the preloaded symbols.
16625 exclude_expsyms=$lt_exclude_expsyms
16626
16627 # Symbols that must always be exported.
16628 include_expsyms=$lt_include_expsyms
16629
16630 # Commands necessary for linking programs (against libraries) with templates.
16631 prelink_cmds=$lt_prelink_cmds
16632
16633 # Specify filename containing input files.
16634 file_list_spec=$lt_file_list_spec
16635
16636 # How to hardcode a shared library path into an executable.
16637 hardcode_action=$hardcode_action
16638
16639 # ### END LIBTOOL CONFIG
16640
16641 _LT_EOF
16642
16643 case $host_os in
16644 aix3*)
16645 cat <<\_LT_EOF >> "$cfgfile"
16646 # AIX sometimes has problems with the GCC collect2 program. For some
16647 # reason, if we set the COLLECT_NAMES environment variable, the problems
16648 # vanish in a puff of smoke.
16649 if test "X${COLLECT_NAMES+set}" != Xset; then
16650 COLLECT_NAMES=
16651 export COLLECT_NAMES
16652 fi
16653 _LT_EOF
16654 ;;
16655 esac
16656
16657
16658 ltmain="$ac_aux_dir/ltmain.sh"
16659
16660
16661 # We use sed instead of cat because bash on DJGPP gets confused if
16662 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16663 # text mode, it properly converts lines to CR/LF. This bash problem
16664 # is reportedly fixed, but why not run on old versions too?
16665 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16666 || (rm -f "$cfgfile"; exit 1)
16667
16668 case $xsi_shell in
16669 yes)
16670 cat << \_LT_EOF >> "$cfgfile"
16671
16672 # func_dirname file append nondir_replacement
16673 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16674 # otherwise set result to NONDIR_REPLACEMENT.
16675 func_dirname ()
16676 {
16677 case ${1} in
16678 */*) func_dirname_result="${1%/*}${2}" ;;
16679 * ) func_dirname_result="${3}" ;;
16680 esac
16681 }
16682
16683 # func_basename file
16684 func_basename ()
16685 {
16686 func_basename_result="${1##*/}"
16687 }
16688
16689 # func_dirname_and_basename file append nondir_replacement
16690 # perform func_basename and func_dirname in a single function
16691 # call:
16692 # dirname: Compute the dirname of FILE. If nonempty,
16693 # add APPEND to the result, otherwise set result
16694 # to NONDIR_REPLACEMENT.
16695 # value returned in "$func_dirname_result"
16696 # basename: Compute filename of FILE.
16697 # value retuned in "$func_basename_result"
16698 # Implementation must be kept synchronized with func_dirname
16699 # and func_basename. For efficiency, we do not delegate to
16700 # those functions but instead duplicate the functionality here.
16701 func_dirname_and_basename ()
16702 {
16703 case ${1} in
16704 */*) func_dirname_result="${1%/*}${2}" ;;
16705 * ) func_dirname_result="${3}" ;;
16706 esac
16707 func_basename_result="${1##*/}"
16708 }
16709
16710 # func_stripname prefix suffix name
16711 # strip PREFIX and SUFFIX off of NAME.
16712 # PREFIX and SUFFIX must not contain globbing or regex special
16713 # characters, hashes, percent signs, but SUFFIX may contain a leading
16714 # dot (in which case that matches only a dot).
16715 func_stripname ()
16716 {
16717 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16718 # positional parameters, so assign one to ordinary parameter first.
16719 func_stripname_result=${3}
16720 func_stripname_result=${func_stripname_result#"${1}"}
16721 func_stripname_result=${func_stripname_result%"${2}"}
16722 }
16723
16724 # func_opt_split
16725 func_opt_split ()
16726 {
16727 func_opt_split_opt=${1%%=*}
16728 func_opt_split_arg=${1#*=}
16729 }
16730
16731 # func_lo2o object
16732 func_lo2o ()
16733 {
16734 case ${1} in
16735 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16736 *) func_lo2o_result=${1} ;;
16737 esac
16738 }
16739
16740 # func_xform libobj-or-source
16741 func_xform ()
16742 {
16743 func_xform_result=${1%.*}.lo
16744 }
16745
16746 # func_arith arithmetic-term...
16747 func_arith ()
16748 {
16749 func_arith_result=$(( $* ))
16750 }
16751
16752 # func_len string
16753 # STRING may not start with a hyphen.
16754 func_len ()
16755 {
16756 func_len_result=${#1}
16757 }
16758
16759 _LT_EOF
16760 ;;
16761 *) # Bourne compatible functions.
16762 cat << \_LT_EOF >> "$cfgfile"
16763
16764 # func_dirname file append nondir_replacement
16765 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16766 # otherwise set result to NONDIR_REPLACEMENT.
16767 func_dirname ()
16768 {
16769 # Extract subdirectory from the argument.
16770 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16771 if test "X$func_dirname_result" = "X${1}"; then
16772 func_dirname_result="${3}"
16773 else
16774 func_dirname_result="$func_dirname_result${2}"
16775 fi
16776 }
16777
16778 # func_basename file
16779 func_basename ()
16780 {
16781 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16782 }
16783
16784
16785 # func_stripname prefix suffix name
16786 # strip PREFIX and SUFFIX off of NAME.
16787 # PREFIX and SUFFIX must not contain globbing or regex special
16788 # characters, hashes, percent signs, but SUFFIX may contain a leading
16789 # dot (in which case that matches only a dot).
16790 # func_strip_suffix prefix name
16791 func_stripname ()
16792 {
16793 case ${2} in
16794 .*) func_stripname_result=`$ECHO "X${3}" \
16795 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16796 *) func_stripname_result=`$ECHO "X${3}" \
16797 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16798 esac
16799 }
16800
16801 # sed scripts:
16802 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16803 my_sed_long_arg='1s/^-[^=]*=//'
16804
16805 # func_opt_split
16806 func_opt_split ()
16807 {
16808 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16809 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16810 }
16811
16812 # func_lo2o object
16813 func_lo2o ()
16814 {
16815 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16816 }
16817
16818 # func_xform libobj-or-source
16819 func_xform ()
16820 {
16821 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16822 }
16823
16824 # func_arith arithmetic-term...
16825 func_arith ()
16826 {
16827 func_arith_result=`expr "$@"`
16828 }
16829
16830 # func_len string
16831 # STRING may not start with a hyphen.
16832 func_len ()
16833 {
16834 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16835 }
16836
16837 _LT_EOF
16838 esac
16839
16840 case $lt_shell_append in
16841 yes)
16842 cat << \_LT_EOF >> "$cfgfile"
16843
16844 # func_append var value
16845 # Append VALUE to the end of shell variable VAR.
16846 func_append ()
16847 {
16848 eval "$1+=\$2"
16849 }
16850 _LT_EOF
16851 ;;
16852 *)
16853 cat << \_LT_EOF >> "$cfgfile"
16854
16855 # func_append var value
16856 # Append VALUE to the end of shell variable VAR.
16857 func_append ()
16858 {
16859 eval "$1=\$$1\$2"
16860 }
16861
16862 _LT_EOF
16863 ;;
16864 esac
16865
16866
16867 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16868 || (rm -f "$cfgfile"; exit 1)
16869
16870 mv -f "$cfgfile" "$ofile" ||
16871 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16872 chmod +x "$ofile"
16873
16874 ;;
16875
16876 esac
16877 done # for ac_tag
16878
16879
16880 { (exit 0); exit 0; }
16881 _ACEOF
16882 chmod +x $CONFIG_STATUS
16883 ac_clean_files=$ac_clean_files_save
16884
16885 test $ac_write_fail = 0 ||
16886 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16887 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16888 { (exit 1); exit 1; }; }
16889
16890
16891 # configure is writing to config.log, and then calls config.status.
16892 # config.status does its own redirection, appending to config.log.
16893 # Unfortunately, on DOS this fails, as config.log is still kept open
16894 # by configure, so config.status won't be able to write to it; its
16895 # output is simply discarded. So we exec the FD to /dev/null,
16896 # effectively closing config.log, so it can be properly (re)opened and
16897 # appended to by config.status. When coming back to configure, we
16898 # need to make the FD available again.
16899 if test "$no_create" != yes; then
16900 ac_cs_success=:
16901 ac_config_status_args=
16902 test "$silent" = yes &&
16903 ac_config_status_args="$ac_config_status_args --quiet"
16904 exec 5>/dev/null
16905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16906 exec 5>>config.log
16907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16908 # would make configure fail if this is the last instruction.
16909 $ac_cs_success || { (exit 1); exit 1; }
16910 fi
16911 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16912 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16913 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16914 fi
16915