blob: 9e41b22949d45a6f345878768bb57fb32a3977b3 [file] [log] [blame]
Scott James Remnant65f683d2009-07-14 13:05:17 +01001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Scott James Remnantd91d8522009-07-16 18:21:14 +01003# Generated by GNU Autoconf 2.63 for upstart 0.6.1.
Scott James Remnant65f683d2009-07-14 13:05:17 +01004#
5# Report bugs to <upstart-devel@lists.ubuntu.com>.
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# Copyright © 2009 Canonical Ltd.
13## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
31fi
32
33
34
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44as_nl='
45'
46export as_nl
47# Printing a long string crashes Solaris 7 /usr/bin/printf.
48as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85# Support unset when possible.
86if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87 as_unset=unset
88else
89 as_unset=false
90fi
91
92
93# IFS
94# We need space, tab and new line, in precisely that order. Quoting is
95# there to prevent editors from complaining about space-tab.
96# (If _AS_PATH_WALK were called with IFS unset, it would disable word
97# splitting by setting IFS to empty value.)
98IFS=" "" $as_nl"
99
100# Find who we are. Look in the path if we contain no directory separator.
101case $0 in
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104for as_dir in $PATH
105do
106 IFS=$as_save_IFS
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109done
110IFS=$as_save_IFS
111
112 ;;
113esac
114# We did not find ourselves, most probably we were run as `sh COMMAND'
115# in which case we are not to be found in the path.
116if test "x$as_myself" = x; then
117 as_myself=$0
118fi
119if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
122fi
123
124# Work around bugs in pre-3.0 UWIN ksh.
125for as_var in ENV MAIL MAILPATH
126do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127done
128PS1='$ '
129PS2='> '
130PS4='+ '
131
132# NLS nuisances.
133LC_ALL=C
134export LC_ALL
135LANGUAGE=C
136export LANGUAGE
137
138# Required to use basename.
139if expr a : '\(a\)' >/dev/null 2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
141 as_expr=expr
142else
143 as_expr=false
144fi
145
146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147 as_basename=basename
148else
149 as_basename=false
150fi
151
152
153# Name of the executable.
154as_me=`$as_basename -- "$0" ||
155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158$as_echo X/"$0" |
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\/\)$/{
164 s//\1/
165 q
166 }
167 /^X\/\(\/\).*/{
168 s//\1/
169 q
170 }
171 s/.*/./; q'`
172
173# CDPATH.
174$as_unset CDPATH
175
176
177if test "x$CONFIG_SHELL" = x; then
178 if (eval ":") 2>/dev/null; then
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183
184 if test $as_have_required = yes && (eval ":
185(as_func_return () {
186 (exit \$1)
187}
188as_func_success () {
189 as_func_return 0
190}
191as_func_failure () {
192 as_func_return 1
193}
194as_func_ret_success () {
195 return 0
196}
197as_func_ret_failure () {
198 return 1
199}
200
201exitcode=0
202if as_func_success; then
203 :
204else
205 exitcode=1
206 echo as_func_success failed.
207fi
208
209if as_func_failure; then
210 exitcode=1
211 echo as_func_failure succeeded.
212fi
213
214if as_func_ret_success; then
215 :
216else
217 exitcode=1
218 echo as_func_ret_success failed.
219fi
220
221if as_func_ret_failure; then
222 exitcode=1
223 echo as_func_ret_failure succeeded.
224fi
225
226if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 :
228else
229 exitcode=1
230 echo positional parameters were not saved.
231fi
232
233test \$exitcode = 0) || { (exit 1); exit 1; }
234
235(
236 as_lineno_1=\$LINENO
237 as_lineno_2=\$LINENO
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240") 2> /dev/null; then
241 :
242else
243 as_candidate_shells=
244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246do
247 IFS=$as_save_IFS
248 test -z "$as_dir" && as_dir=.
249 case $as_dir in
250 /*)
251 for as_base in sh bash ksh sh5; do
252 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253 done;;
254 esac
255done
256IFS=$as_save_IFS
257
258
259 for as_shell in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279_ASEOF
280}; then
281 CONFIG_SHELL=$as_shell
282 as_have_required=yes
283 if { "$as_shell" 2> /dev/null <<\_ASEOF
284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 emulate sh
286 NULLCMD=:
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
290 setopt NO_GLOB_SUBST
291else
292 case `(set -o) 2>/dev/null` in
293 *posix*) set -o posix ;;
294esac
295
296fi
297
298
299:
300(as_func_return () {
301 (exit $1)
302}
303as_func_success () {
304 as_func_return 0
305}
306as_func_failure () {
307 as_func_return 1
308}
309as_func_ret_success () {
310 return 0
311}
312as_func_ret_failure () {
313 return 1
314}
315
316exitcode=0
317if as_func_success; then
318 :
319else
320 exitcode=1
321 echo as_func_success failed.
322fi
323
324if as_func_failure; then
325 exitcode=1
326 echo as_func_failure succeeded.
327fi
328
329if as_func_ret_success; then
330 :
331else
332 exitcode=1
333 echo as_func_ret_success failed.
334fi
335
336if as_func_ret_failure; then
337 exitcode=1
338 echo as_func_ret_failure succeeded.
339fi
340
341if ( set x; as_func_ret_success y && test x = "$1" ); then
342 :
343else
344 exitcode=1
345 echo positional parameters were not saved.
346fi
347
348test $exitcode = 0) || { (exit 1); exit 1; }
349
350(
351 as_lineno_1=$LINENO
352 as_lineno_2=$LINENO
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356_ASEOF
357}; then
358 break
359fi
360
361fi
362
363 done
364
365 if test "x$CONFIG_SHELL" != x; then
366 for as_var in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 done
369 export CONFIG_SHELL
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371fi
372
373
374 if test $as_have_required = no; then
375 echo This script requires a shell more modern than all the
376 echo shells that I found on your system. Please install a
377 echo modern shell, or manually run the script under such a
378 echo shell if you do have one.
379 { (exit 1); exit 1; }
380fi
381
382
383fi
384
385fi
386
387
388
389(eval "as_func_return () {
390 (exit \$1)
391}
392as_func_success () {
393 as_func_return 0
394}
395as_func_failure () {
396 as_func_return 1
397}
398as_func_ret_success () {
399 return 0
400}
401as_func_ret_failure () {
402 return 1
403}
404
405exitcode=0
406if as_func_success; then
407 :
408else
409 exitcode=1
410 echo as_func_success failed.
411fi
412
413if as_func_failure; then
414 exitcode=1
415 echo as_func_failure succeeded.
416fi
417
418if as_func_ret_success; then
419 :
420else
421 exitcode=1
422 echo as_func_ret_success failed.
423fi
424
425if as_func_ret_failure; then
426 exitcode=1
427 echo as_func_ret_failure succeeded.
428fi
429
430if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 :
432else
433 exitcode=1
434 echo positional parameters were not saved.
435fi
436
437test \$exitcode = 0") || {
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system,
440 echo including any error possibly output before this message.
441 echo This can help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
443}
444
445
446
447 as_lineno_1=$LINENO
448 as_lineno_2=$LINENO
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
458 # case at line end.
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
462 sed -n '
463 p
464 /[$]LINENO/=
465 ' <$as_myself |
466 sed '
467 s/[$]LINENO.*/&-/
468 t lineno
469 b
470 :lineno
471 N
472 :loop
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474 t loop
475 s/-\n.*//
476 ' >$as_me.lineno &&
477 chmod +x "$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
480
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
484 . "./$as_me.lineno"
485 # Exit status is that of the last command.
486 exit
487}
488
489
490if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491 as_dirname=dirname
492else
493 as_dirname=false
494fi
495
496ECHO_C= ECHO_N= ECHO_T=
497case `echo -n x` in
498-n*)
499 case `echo 'x\c'` in
500 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
501 *) ECHO_C='\c';;
502 esac;;
503*)
504 ECHO_N='-n';;
505esac
506if expr a : '\(a\)' >/dev/null 2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
508 as_expr=expr
509else
510 as_expr=false
511fi
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -p'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -p'
533 fi
534else
535 as_ln_s='cp -p'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p=:
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547if test -x / >/dev/null 2>&1; then
548 as_test_x='test -x'
549else
550 if ls -dL / >/dev/null 2>&1; then
551 as_ls_L_option=L
552 else
553 as_ls_L_option=
554 fi
555 as_test_x='
556 eval sh -c '\''
557 if test -d "$1"; then
558 test -d "$1/.";
559 else
560 case $1 in
561 -*)set "./$1";;
562 esac;
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
565 '\'' sh
566 '
567fi
568as_executable_p=$as_test_x
569
570# Sed expression to map a string onto a valid CPP name.
571as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573# Sed expression to map a string onto a valid variable name.
574as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578
579# Check that we are running under the correct shell.
580SHELL=${CONFIG_SHELL-/bin/sh}
581
582case X$lt_ECHO in
583X*--fallback-echo)
584 # Remove one level of quotation (which was required for Make).
585 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 ;;
587esac
588
589ECHO=${lt_ECHO-echo}
590if test "X$1" = X--no-reexec; then
591 # Discard the --no-reexec flag, and continue.
592 shift
593elif test "X$1" = X--fallback-echo; then
594 # Avoid inline document here, it may be left over
595 :
596elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
597 # Yippee, $ECHO works!
598 :
599else
600 # Restart under the correct shell.
601 exec $SHELL "$0" --no-reexec ${1+"$@"}
602fi
603
604if test "X$1" = X--fallback-echo; then
605 # used as fallback echo
606 shift
607 cat <<_LT_EOF
608$*
609_LT_EOF
610 exit 0
611fi
612
613# The HP-UX ksh and POSIX shell print the target directory to stdout
614# if CDPATH is set.
615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
616
617if test -z "$lt_ECHO"; then
618 if test "X${echo_test_string+set}" != Xset; then
619 # find a string as large as possible, as long as the shell can cope with it
620 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
621 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
622 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
623 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
624 then
625 break
626 fi
627 done
628 fi
629
630 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 :
634 else
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
638 #
639 # So, first we look for a working echo in the user's PATH.
640
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
643 IFS="$lt_save_ifs"
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 ECHO="$dir/echo"
649 break
650 fi
651 done
652 IFS="$lt_save_ifs"
653
654 if test "X$ECHO" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
660 ECHO='print -r'
661 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
667 export CONFIG_SHELL
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 else
670 # Try using printf.
671 ECHO='printf %s\n'
672 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 # Cool, printf works
676 :
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 export CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
684 export SHELL
685 ECHO="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 ECHO="$CONFIG_SHELL $0 --fallback-echo"
691 else
692 # maybe with a smaller string...
693 prev=:
694
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
697 then
698 break
699 fi
700 prev="$cmd"
701 done
702
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 else
708 # Oops. We lost completely, so just stick with echo.
709 ECHO=echo
710 fi
711 fi
712 fi
713 fi
714 fi
715fi
716
717# Copy echo and quote the copy suitably for passing to libtool from
718# the Makefile, instead of quoting the original, which is used later.
719lt_ECHO=$ECHO
720if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
722fi
723
724
725
726
727exec 7<&0 </dev/null 6>&1
728
729# Name of the host.
730# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
731# so uname gets run too.
732ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733
734#
735# Initializations.
736#
737ac_default_prefix=/usr/local
738ac_clean_files=
739ac_config_libobj_dir=.
740LIBOBJS=
741cross_compiling=no
742subdirs=
743MFLAGS=
744MAKEFLAGS=
745SHELL=${CONFIG_SHELL-/bin/sh}
746
747# Identity of this package.
748PACKAGE_NAME='upstart'
749PACKAGE_TARNAME='upstart'
Scott James Remnantd91d8522009-07-16 18:21:14 +0100750PACKAGE_VERSION='0.6.1'
751PACKAGE_STRING='upstart 0.6.1'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100752PACKAGE_BUGREPORT='upstart-devel@lists.ubuntu.com'
753
754ac_unique_file="init/main.c"
755# Factoring default headers for most tests.
756ac_includes_default="\
757#include <stdio.h>
758#ifdef HAVE_SYS_TYPES_H
759# include <sys/types.h>
760#endif
761#ifdef HAVE_SYS_STAT_H
762# include <sys/stat.h>
763#endif
764#ifdef STDC_HEADERS
765# include <stdlib.h>
766# include <stddef.h>
767#else
768# ifdef HAVE_STDLIB_H
769# include <stdlib.h>
770# endif
771#endif
772#ifdef HAVE_STRING_H
773# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774# include <memory.h>
775# endif
776# include <string.h>
777#endif
778#ifdef HAVE_STRINGS_H
779# include <strings.h>
780#endif
781#ifdef HAVE_INTTYPES_H
782# include <inttypes.h>
783#endif
784#ifdef HAVE_STDINT_H
785# include <stdint.h>
786#endif
787#ifdef HAVE_UNISTD_H
788# include <unistd.h>
789#endif"
790
791gt_needs=
792ac_subst_vars='LTLIBOBJS
793LIBOBJS
794HAVE_VERSION_SCRIPT_ARG_FALSE
795HAVE_VERSION_SCRIPT_ARG_TRUE
796VERSION_SCRIPT_ARG
797HAVE_DBUS_FALSE
798HAVE_DBUS_TRUE
799EXPAT_LIBS
800DBUS_LIBS
801DBUS_CFLAGS
802PKG_CONFIG
803INSTALL_NIH_FALSE
804INSTALL_NIH_TRUE
805POSUB
806LTLIBINTL
807LIBINTL
808INTLLIBS
809INTL_LIBTOOL_SUFFIX_PREFIX
810INTLOBJS
811GENCAT
812INSTOBJEXT
813DATADIRNAME
814CATOBJEXT
815USE_INCLUDED_LIBINTL
816BUILD_INCLUDED_LIBINTL
817WOE32DLL
818HAVE_WPRINTF
819HAVE_SNPRINTF
820HAVE_ASPRINTF
821HAVE_POSIX_PRINTF
822INTL_MACOSX_LIBS
823GLIBC21
824INTLBISON
825LTLIBICONV
826LIBICONV
827LTLIBMULTITHREAD
828LIBMULTITHREAD
829LTLIBTHREAD
830LIBTHREAD
831LTLIBPTH
832LIBPTH
833PRI_MACROS_BROKEN
834ALLOCA
835HAVE_VISIBILITY
836CFLAG_VISIBILITY
837GLIBC2
838MSGMERGE
839XGETTEXT_015
840XGETTEXT
841GMSGFMT_015
842MSGFMT_015
843GMSGFMT
844MSGFMT
845USE_NLS
846OTOOL64
847OTOOL
848LIPO
849NMEDIT
850DSYMUTIL
851lt_ECHO
852RANLIB
853AR
854OBJDUMP
855LN_S
856NM
857ac_ct_DUMPBIN
858DUMPBIN
859LD
860FGREP
861SED
862host_os
863host_vendor
864host_cpu
865host
866build_os
867build_vendor
868build_cpu
869build
870LIBTOOL
871am__fastdepCC_FALSE
872am__fastdepCC_TRUE
873CCDEPMODE
874AMDEPBACKSLASH
875AMDEP_FALSE
876AMDEP_TRUE
877am__quote
878am__include
879DEPDIR
880am__untar
881am__tar
882AMTAR
883am__leading_dot
884SET_MAKE
885AWK
886mkdir_p
887MKDIR_P
888INSTALL_STRIP_PROGRAM
889STRIP
890install_sh
891MAKEINFO
892AUTOHEADER
893AUTOMAKE
894AUTOCONF
895ACLOCAL
896VERSION
897PACKAGE
898CYGPATH_W
899am__isrc
900INSTALL_DATA
901INSTALL_SCRIPT
902INSTALL_PROGRAM
903EGREP
904GREP
905CPP
906OBJEXT
907EXEEXT
908ac_ct_CC
909CPPFLAGS
910LDFLAGS
911CFLAGS
912CC
913target_alias
914host_alias
915build_alias
916LIBS
917ECHO_T
918ECHO_N
919ECHO_C
920DEFS
921PACKAGE_COPYRIGHT
922mandir
923localedir
924libdir
925psdir
926pdfdir
927dvidir
928htmldir
929infodir
930docdir
931oldincludedir
932includedir
933localstatedir
934sharedstatedir
935sysconfdir
936datadir
937datarootdir
938libexecdir
939sbindir
940bindir
941program_transform_name
942prefix
943exec_prefix
944PACKAGE_BUGREPORT
945PACKAGE_STRING
946PACKAGE_VERSION
947PACKAGE_TARNAME
948PACKAGE_NAME
949PATH_SEPARATOR
950SHELL'
951ac_subst_files=''
952ac_user_opts='
953enable_option_checking
954enable_dependency_tracking
955enable_shared
956enable_static
957with_pic
958enable_fast_install
959with_gnu_ld
960enable_libtool_lock
961enable_nls
962enable_threads
963enable_rpath
964with_libpth_prefix
965with_libiconv_prefix
966with_included_gettext
967with_libintl_prefix
968enable_threading
969enable_compiler_warnings
970enable_compiler_optimisations
971enable_compiler_coverage
972enable_linker_optimisations
973'
974 ac_precious_vars='build_alias
975host_alias
976target_alias
977CC
978CFLAGS
979LDFLAGS
980LIBS
981CPPFLAGS
982CPP
983PKG_CONFIG
984DBUS_CFLAGS
985DBUS_LIBS'
986
987
988# Initialize some variables set by options.
989ac_init_help=
990ac_init_version=false
991ac_unrecognized_opts=
992ac_unrecognized_sep=
993# The variables have the same names as the options, with
994# dashes changed to underlines.
995cache_file=/dev/null
996exec_prefix=NONE
997no_create=
998no_recursion=
999prefix=NONE
1000program_prefix=NONE
1001program_suffix=NONE
1002program_transform_name=s,x,x,
1003silent=
1004site=
1005srcdir=
1006verbose=
1007x_includes=NONE
1008x_libraries=NONE
1009
1010# Installation directory options.
1011# These are left unexpanded so users can "make install exec_prefix=/foo"
1012# and all the variables that are supposed to be based on exec_prefix
1013# by default will actually change.
1014# Use braces instead of parens because sh, perl, etc. also accept them.
1015# (The list follows the same order as the GNU Coding Standards.)
1016bindir='${exec_prefix}/bin'
1017sbindir='${exec_prefix}/sbin'
1018libexecdir='${exec_prefix}/libexec'
1019datarootdir='${prefix}/share'
1020datadir='${datarootdir}'
1021sysconfdir='${prefix}/etc'
1022sharedstatedir='${prefix}/com'
1023localstatedir='${prefix}/var'
1024includedir='${prefix}/include'
1025oldincludedir='/usr/include'
1026docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027infodir='${datarootdir}/info'
1028htmldir='${docdir}'
1029dvidir='${docdir}'
1030pdfdir='${docdir}'
1031psdir='${docdir}'
1032libdir='${exec_prefix}/lib'
1033localedir='${datarootdir}/locale'
1034mandir='${datarootdir}/man'
1035
1036ac_prev=
1037ac_dashdash=
1038for ac_option
1039do
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1043 ac_prev=
1044 continue
1045 fi
1046
1047 case $ac_option in
1048 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 *) ac_optarg=yes ;;
1050 esac
1051
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054 case $ac_dashdash$ac_option in
1055 --)
1056 ac_dashdash=yes ;;
1057
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 ac_prev=bindir ;;
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1062
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1067
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1074
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1077
1078 -datadir | --datadir | --datadi | --datad)
1079 ac_prev=datadir ;;
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1082
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1089
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100"enable_$ac_useropt"
1101"*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1106
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1111
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1116
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"enable_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1133
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1153
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1158
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1164
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1181
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1188
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1205
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1209
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1213
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1217
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1231
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1238
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1245
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1262
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1267
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1272
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1276
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1282
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1303
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1321
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1327 { (exit 1); exit 1; }; }
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332"with_$ac_useropt"
1333"*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=\$ac_optarg ;;
1338
1339 -without-* | --without-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"with_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
1355
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1359
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365 x_includes=$ac_optarg ;;
1366
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372 x_libraries=$ac_optarg ;;
1373
1374 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1375Try \`$0 --help' for more information." >&2
1376 { (exit 1); exit 1; }; }
1377 ;;
1378
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1384 { (exit 1); exit 1; }; }
1385 eval $ac_envvar=\$ac_optarg
1386 export $ac_envvar ;;
1387
1388 *)
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394 ;;
1395
1396 esac
1397done
1398
1399if test -n "$ac_prev"; then
1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1401 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1402 { (exit 1); exit 1; }; }
1403fi
1404
1405if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
1408 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1409 { (exit 1); exit 1; }; } ;;
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 esac
1412fi
1413
1414# Check all directory arguments for consistency.
1415for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418 libdir localedir mandir
1419do
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1422 case $ac_val in
1423 */ )
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1426 esac
1427 # Be sure to have absolute directory names.
1428 case $ac_val in
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 esac
1432 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1433 { (exit 1); exit 1; }; }
1434done
1435
1436# There might be people who depend on the old broken behavior: `$host'
1437# used to hold the argument of --host etc.
1438# FIXME: To remove some day.
1439build=$build_alias
1440host=$host_alias
1441target=$target_alias
1442
1443# FIXME: To remove some day.
1444if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used." >&2
1449 elif test "x$build_alias" != "x$host_alias"; then
1450 cross_compiling=yes
1451 fi
1452fi
1453
1454ac_tool_prefix=
1455test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456
1457test "$silent" = yes && exec 6>/dev/null
1458
1459
1460ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461ac_ls_di=`ls -di .` &&
1462ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1464 { (exit 1); exit 1; }; }
1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1467 { (exit 1); exit 1; }; }
1468
1469
1470# Find the source files, if location was not specified.
1471if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479$as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1500 fi
1501else
1502 ac_srcdir_defaulted=no
1503fi
1504if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1506 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1507 { (exit 1); exit 1; }; }
1508fi
1509ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1510ac_abs_confdir=`(
1511 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1512 { (exit 1); exit 1; }; }
1513 pwd)`
1514# When building in place, set srcdir=.
1515if test "$ac_abs_confdir" = "$ac_pwd"; then
1516 srcdir=.
1517fi
1518# Remove unnecessary trailing slashes from srcdir.
1519# Double slashes in file names in object file debugging info
1520# mess up M-x gdb in Emacs.
1521case $srcdir in
1522*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523esac
1524for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529done
1530
1531#
1532# Report the --help message.
1533#
1534if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1537 cat <<_ACEOF
Scott James Remnantd91d8522009-07-16 18:21:14 +01001538\`configure' configures upstart 0.6.1 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001539
1540Usage: $0 [OPTION]... [VAR=VALUE]...
1541
1542To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543VAR=VALUE. See below for descriptions of some of the useful variables.
1544
1545Defaults for the options are specified in brackets.
1546
1547Configuration:
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1557
1558Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562 [PREFIX]
1563
1564By default, \`make install' will install all the files in
1565\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567for instance \`--prefix=\$HOME'.
1568
1569For better control, use the options below.
1570
1571Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1591_ACEOF
1592
1593 cat <<\_ACEOF
1594
1595Program names:
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1599
1600System types:
1601 --build=BUILD configure for building on BUILD [guessed]
1602 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1603_ACEOF
1604fi
1605
1606if test -n "$ac_init_help"; then
1607 case $ac_init_help in
Scott James Remnantd91d8522009-07-16 18:21:14 +01001608 short | recursive ) echo "Configuration of upstart 0.6.1:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001609 esac
1610 cat <<\_ACEOF
1611
1612Optional Features:
1613 --disable-option-checking ignore unrecognized --enable/--with options
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1616 --disable-dependency-tracking speeds up one-time build
1617 --enable-dependency-tracking do not reject slow dependency extractors
1618 --enable-shared[=PKGS] build shared libraries [default=yes]
1619 --enable-static[=PKGS] build static libraries [default=yes]
1620 --enable-fast-install[=PKGS]
1621 optimize for fast installation [default=yes]
1622 --disable-libtool-lock avoid locking (might break parallel builds)
1623 --disable-nls do not use Native Language Support
1624 --enable-threads={posix|solaris|pth|win32}
1625 specify multithreading API
1626 --disable-threads build without multithread safety
1627 --disable-rpath do not hardcode runtime library paths
1628 --enable-threading Enable support for multi-threading
1629 --enable-compiler-warnings
1630 Enable additional compiler warnings
1631 --disable-compiler-optimisations
1632 Disable compiler optimisations
1633 --enable-compiler-coverage
1634 Enable generation of coverage data
1635 --disable-linker-optimisations
1636 Disable linker optimisations
1637
1638Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-pic try to use only PIC/non-PIC objects [default=use
1642 both]
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1644 --with-gnu-ld assume the C compiler uses GNU ld default=no
1645 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1646 --without-libpth-prefix don't search for libpth in includedir and libdir
1647 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1648 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1649 --with-included-gettext use the GNU gettext library included here
1650 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1651 --without-libintl-prefix don't search for libintl in includedir and libdir
1652
1653Some influential environment variables:
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CPP C preprocessor
1662 PKG_CONFIG path to pkg-config utility
1663 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1664 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1665
1666Use these variables to override the choices made by `configure' or to help
1667it to find libraries and programs with nonstandard names/locations.
1668
1669Report bugs to <upstart-devel@lists.ubuntu.com>.
1670_ACEOF
1671ac_status=$?
1672fi
1673
1674if test "$ac_init_help" = "recursive"; then
1675 # If there are subdirs, report their specific --help.
1676 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1677 test -d "$ac_dir" ||
1678 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1679 continue
1680 ac_builddir=.
1681
1682case "$ac_dir" in
1683.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684*)
1685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1686 # A ".." for each directory in $ac_dir_suffix.
1687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1688 case $ac_top_builddir_sub in
1689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1691 esac ;;
1692esac
1693ac_abs_top_builddir=$ac_pwd
1694ac_abs_builddir=$ac_pwd$ac_dir_suffix
1695# for backward compatibility:
1696ac_top_builddir=$ac_top_build_prefix
1697
1698case $srcdir in
1699 .) # We are building in place.
1700 ac_srcdir=.
1701 ac_top_srcdir=$ac_top_builddir_sub
1702 ac_abs_top_srcdir=$ac_pwd ;;
1703 [\\/]* | ?:[\\/]* ) # Absolute name.
1704 ac_srcdir=$srcdir$ac_dir_suffix;
1705 ac_top_srcdir=$srcdir
1706 ac_abs_top_srcdir=$srcdir ;;
1707 *) # Relative name.
1708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1709 ac_top_srcdir=$ac_top_build_prefix$srcdir
1710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711esac
1712ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713
1714 cd "$ac_dir" || { ac_status=$?; continue; }
1715 # Check for guested configure.
1716 if test -f "$ac_srcdir/configure.gnu"; then
1717 echo &&
1718 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1719 elif test -f "$ac_srcdir/configure"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure" --help=recursive
1722 else
1723 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 fi || ac_status=$?
1725 cd "$ac_pwd" || { ac_status=$?; break; }
1726 done
1727fi
1728
1729test -n "$ac_init_help" && exit $ac_status
1730if $ac_init_version; then
1731 cat <<\_ACEOF
Scott James Remnantd91d8522009-07-16 18:21:14 +01001732upstart configure 0.6.1
Scott James Remnant65f683d2009-07-14 13:05:17 +01001733generated by GNU Autoconf 2.63
1734
1735Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17362002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1737This configure script is free software; the Free Software Foundation
1738gives unlimited permission to copy, distribute and modify it.
1739
1740Copyright © 2009 Canonical Ltd.
1741_ACEOF
1742 exit
1743fi
1744cat >config.log <<_ACEOF
1745This file contains any messages produced by compilers while
1746running configure, to aid debugging if configure makes a mistake.
1747
Scott James Remnantd91d8522009-07-16 18:21:14 +01001748It was created by upstart $as_me 0.6.1, which was
Scott James Remnant65f683d2009-07-14 13:05:17 +01001749generated by GNU Autoconf 2.63. Invocation command line was
1750
1751 $ $0 $@
1752
1753_ACEOF
1754exec 5>>config.log
1755{
1756cat <<_ASUNAME
1757## --------- ##
1758## Platform. ##
1759## --------- ##
1760
1761hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1762uname -m = `(uname -m) 2>/dev/null || echo unknown`
1763uname -r = `(uname -r) 2>/dev/null || echo unknown`
1764uname -s = `(uname -s) 2>/dev/null || echo unknown`
1765uname -v = `(uname -v) 2>/dev/null || echo unknown`
1766
1767/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1768/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1769
1770/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1771/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1772/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1773/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1774/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1775/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1776/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777
1778_ASUNAME
1779
1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781for as_dir in $PATH
1782do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 $as_echo "PATH: $as_dir"
1786done
1787IFS=$as_save_IFS
1788
1789} >&5
1790
1791cat >&5 <<_ACEOF
1792
1793
1794## ----------- ##
1795## Core tests. ##
1796## ----------- ##
1797
1798_ACEOF
1799
1800
1801# Keep a trace of the command line.
1802# Strip out --no-create and --no-recursion so they do not pile up.
1803# Strip out --silent because we don't want to record it for future runs.
1804# Also quote any args containing shell meta-characters.
1805# Make two passes to allow for proper duplicate-argument suppression.
1806ac_configure_args=
1807ac_configure_args0=
1808ac_configure_args1=
1809ac_must_keep_next=false
1810for ac_pass in 1 2
1811do
1812 for ac_arg
1813 do
1814 case $ac_arg in
1815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817 | -silent | --silent | --silen | --sile | --sil)
1818 continue ;;
1819 *\'*)
1820 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1821 esac
1822 case $ac_pass in
1823 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1824 2)
1825 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1826 if test $ac_must_keep_next = true; then
1827 ac_must_keep_next=false # Got value, back to normal.
1828 else
1829 case $ac_arg in
1830 *=* | --config-cache | -C | -disable-* | --disable-* \
1831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1833 | -with-* | --with-* | -without-* | --without-* | --x)
1834 case "$ac_configure_args0 " in
1835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1836 esac
1837 ;;
1838 -* ) ac_must_keep_next=true ;;
1839 esac
1840 fi
1841 ac_configure_args="$ac_configure_args '$ac_arg'"
1842 ;;
1843 esac
1844 done
1845done
1846$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1847$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1848
1849# When interrupted or exit'd, cleanup temporary files, and complete
1850# config.log. We remove comments because anyway the quotes in there
1851# would cause problems or look ugly.
1852# WARNING: Use '\'' to represent an apostrophe within the trap.
1853# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1854trap 'exit_status=$?
1855 # Save into config.log some information that might help in debugging.
1856 {
1857 echo
1858
1859 cat <<\_ASBOX
1860## ---------------- ##
1861## Cache variables. ##
1862## ---------------- ##
1863_ASBOX
1864 echo
1865 # The following way of writing the cache mishandles newlines in values,
1866(
1867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1868 eval ac_val=\$$ac_var
1869 case $ac_val in #(
1870 *${as_nl}*)
1871 case $ac_var in #(
1872 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1873$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1874 esac
1875 case $ac_var in #(
1876 _ | IFS | as_nl) ;; #(
1877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1878 *) $as_unset $ac_var ;;
1879 esac ;;
1880 esac
1881 done
1882 (set) 2>&1 |
1883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1884 *${as_nl}ac_space=\ *)
1885 sed -n \
1886 "s/'\''/'\''\\\\'\'''\''/g;
1887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1888 ;; #(
1889 *)
1890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 ;;
1892 esac |
1893 sort
1894)
1895 echo
1896
1897 cat <<\_ASBOX
1898## ----------------- ##
1899## Output variables. ##
1900## ----------------- ##
1901_ASBOX
1902 echo
1903 for ac_var in $ac_subst_vars
1904 do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in
1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908 esac
1909 $as_echo "$ac_var='\''$ac_val'\''"
1910 done | sort
1911 echo
1912
1913 if test -n "$ac_subst_files"; then
1914 cat <<\_ASBOX
1915## ------------------- ##
1916## File substitutions. ##
1917## ------------------- ##
1918_ASBOX
1919 echo
1920 for ac_var in $ac_subst_files
1921 do
1922 eval ac_val=\$$ac_var
1923 case $ac_val in
1924 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1925 esac
1926 $as_echo "$ac_var='\''$ac_val'\''"
1927 done | sort
1928 echo
1929 fi
1930
1931 if test -s confdefs.h; then
1932 cat <<\_ASBOX
1933## ----------- ##
1934## confdefs.h. ##
1935## ----------- ##
1936_ASBOX
1937 echo
1938 cat confdefs.h
1939 echo
1940 fi
1941 test "$ac_signal" != 0 &&
1942 $as_echo "$as_me: caught signal $ac_signal"
1943 $as_echo "$as_me: exit $exit_status"
1944 } >&5
1945 rm -f core *.core core.conftest.* &&
1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947 exit $exit_status
1948' 0
1949for ac_signal in 1 2 13 15; do
1950 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1951done
1952ac_signal=0
1953
1954# confdefs.h avoids OS command line length limits that DEFS can exceed.
1955rm -f -r conftest* confdefs.h
1956
1957# Predefined preprocessor variables.
1958
1959cat >>confdefs.h <<_ACEOF
1960#define PACKAGE_NAME "$PACKAGE_NAME"
1961_ACEOF
1962
1963
1964cat >>confdefs.h <<_ACEOF
1965#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1966_ACEOF
1967
1968
1969cat >>confdefs.h <<_ACEOF
1970#define PACKAGE_VERSION "$PACKAGE_VERSION"
1971_ACEOF
1972
1973
1974cat >>confdefs.h <<_ACEOF
1975#define PACKAGE_STRING "$PACKAGE_STRING"
1976_ACEOF
1977
1978
1979cat >>confdefs.h <<_ACEOF
1980#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1981_ACEOF
1982
1983
1984# Let the site file select an alternate cache file if it wants to.
1985# Prefer an explicitly selected file to automatically selected ones.
1986ac_site_file1=NONE
1987ac_site_file2=NONE
1988if test -n "$CONFIG_SITE"; then
1989 ac_site_file1=$CONFIG_SITE
1990elif test "x$prefix" != xNONE; then
1991 ac_site_file1=$prefix/share/config.site
1992 ac_site_file2=$prefix/etc/config.site
1993else
1994 ac_site_file1=$ac_default_prefix/share/config.site
1995 ac_site_file2=$ac_default_prefix/etc/config.site
1996fi
1997for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998do
1999 test "x$ac_site_file" = xNONE && continue
2000 if test -r "$ac_site_file"; then
2001 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2002$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2003 sed 's/^/| /' "$ac_site_file" >&5
2004 . "$ac_site_file"
2005 fi
2006done
2007
2008if test -r "$cache_file"; then
2009 # Some versions of bash will fail to source /dev/null (special
2010 # files actually), so we avoid doing that.
2011 if test -f "$cache_file"; then
2012 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2013$as_echo "$as_me: loading cache $cache_file" >&6;}
2014 case $cache_file in
2015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2016 *) . "./$cache_file";;
2017 esac
2018 fi
2019else
2020 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2021$as_echo "$as_me: creating cache $cache_file" >&6;}
2022 >$cache_file
2023fi
2024
2025gt_needs="$gt_needs "
2026# Check that the precious variables saved in the cache have kept the same
2027# value.
2028ac_cache_corrupted=false
2029for ac_var in $ac_precious_vars; do
2030 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2031 eval ac_new_set=\$ac_env_${ac_var}_set
2032 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2033 eval ac_new_val=\$ac_env_${ac_var}_value
2034 case $ac_old_set,$ac_new_set in
2035 set,)
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2037$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2038 ac_cache_corrupted=: ;;
2039 ,set)
2040 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2041$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2042 ac_cache_corrupted=: ;;
2043 ,);;
2044 *)
2045 if test "x$ac_old_val" != "x$ac_new_val"; then
2046 # differences in whitespace do not lead to failure.
2047 ac_old_val_w=`echo x $ac_old_val`
2048 ac_new_val_w=`echo x $ac_new_val`
2049 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2050 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2051$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2052 ac_cache_corrupted=:
2053 else
2054 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2055$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2056 eval $ac_var=\$ac_old_val
2057 fi
2058 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2059$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2060 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2061$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2062 fi;;
2063 esac
2064 # Pass precious variables to config.status.
2065 if test "$ac_new_set" = set; then
2066 case $ac_new_val in
2067 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 *) ac_arg=$ac_var=$ac_new_val ;;
2069 esac
2070 case " $ac_configure_args " in
2071 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2072 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2073 esac
2074 fi
2075done
2076if $ac_cache_corrupted; then
2077 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2079 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2080$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2081 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2082$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2083 { (exit 1); exit 1; }; }
2084fi
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110 PACKAGE_COPYRIGHT="Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21112002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2112This configure script is free software; the Free Software Foundation
2113gives unlimited permission to copy, distribute and modify it."
2114
2115
2116ac_ext=c
2117ac_cpp='$CPP $CPPFLAGS'
2118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121
2122
2123
2124
2125
2126
2127cat >>confdefs.h <<\_ACEOF
2128#define PACKAGE_COPYRIGHT "Copyright (C) 2009 Canonical Ltd."
2129_ACEOF
2130 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2131
2132
2133
2134
2135
2136ac_ext=c
2137ac_cpp='$CPP $CPPFLAGS'
2138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141if test -n "$ac_tool_prefix"; then
2142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2143set dummy ${ac_tool_prefix}gcc; ac_word=$2
2144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2145$as_echo_n "checking for $ac_word... " >&6; }
2146if test "${ac_cv_prog_CC+set}" = set; then
2147 $as_echo_n "(cached) " >&6
2148else
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2151else
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 break 2
2162 fi
2163done
2164done
2165IFS=$as_save_IFS
2166
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2172$as_echo "$CC" >&6; }
2173else
2174 { $as_echo "$as_me:$LINENO: result: no" >&5
2175$as_echo "no" >&6; }
2176fi
2177
2178
2179fi
2180if test -z "$ac_cv_prog_CC"; then
2181 ac_ct_CC=$CC
2182 # Extract the first word of "gcc", so it can be a program name with args.
2183set dummy gcc; ac_word=$2
2184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2185$as_echo_n "checking for $ac_word... " >&6; }
2186if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2187 $as_echo_n "(cached) " >&6
2188else
2189 if test -n "$ac_ct_CC"; then
2190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 ac_cv_prog_ac_ct_CC="gcc"
2200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
2204done
2205IFS=$as_save_IFS
2206
2207fi
2208fi
2209ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210if test -n "$ac_ct_CC"; then
2211 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212$as_echo "$ac_ct_CC" >&6; }
2213else
2214 { $as_echo "$as_me:$LINENO: result: no" >&5
2215$as_echo "no" >&6; }
2216fi
2217
2218 if test "x$ac_ct_CC" = x; then
2219 CC=""
2220 else
2221 case $cross_compiling:$ac_tool_warned in
2222yes:)
2223{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2225ac_tool_warned=yes ;;
2226esac
2227 CC=$ac_ct_CC
2228 fi
2229else
2230 CC="$ac_cv_prog_CC"
2231fi
2232
2233if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2236set dummy ${ac_tool_prefix}cc; ac_word=$2
2237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2238$as_echo_n "checking for $ac_word... " >&6; }
2239if test "${ac_cv_prog_CC+set}" = set; then
2240 $as_echo_n "(cached) " >&6
2241else
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC="$CC" # Let the user override the test.
2244else
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248 IFS=$as_save_IFS
2249 test -z "$as_dir" && as_dir=.
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252 ac_cv_prog_CC="${ac_tool_prefix}cc"
2253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 break 2
2255 fi
2256done
2257done
2258IFS=$as_save_IFS
2259
2260fi
2261fi
2262CC=$ac_cv_prog_CC
2263if test -n "$CC"; then
2264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2265$as_echo "$CC" >&6; }
2266else
2267 { $as_echo "$as_me:$LINENO: result: no" >&5
2268$as_echo "no" >&6; }
2269fi
2270
2271
2272 fi
2273fi
2274if test -z "$CC"; then
2275 # Extract the first word of "cc", so it can be a program name with args.
2276set dummy cc; ac_word=$2
2277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278$as_echo_n "checking for $ac_word... " >&6; }
2279if test "${ac_cv_prog_CC+set}" = set; then
2280 $as_echo_n "(cached) " >&6
2281else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284else
2285 ac_prog_rejected=no
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2294 ac_prog_rejected=yes
2295 continue
2296 fi
2297 ac_cv_prog_CC="cc"
2298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 break 2
2300 fi
2301done
2302done
2303IFS=$as_save_IFS
2304
2305if test $ac_prog_rejected = yes; then
2306 # We found a bogon in the path, so make sure we never use it.
2307 set dummy $ac_cv_prog_CC
2308 shift
2309 if test $# != 0; then
2310 # We chose a different compiler from the bogus one.
2311 # However, it has the same basename, so the bogon will be chosen
2312 # first if we set CC to just the basename; use the full file name.
2313 shift
2314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2315 fi
2316fi
2317fi
2318fi
2319CC=$ac_cv_prog_CC
2320if test -n "$CC"; then
2321 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2322$as_echo "$CC" >&6; }
2323else
2324 { $as_echo "$as_me:$LINENO: result: no" >&5
2325$as_echo "no" >&6; }
2326fi
2327
2328
2329fi
2330if test -z "$CC"; then
2331 if test -n "$ac_tool_prefix"; then
2332 for ac_prog in cl.exe
2333 do
2334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2336{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2337$as_echo_n "checking for $ac_word... " >&6; }
2338if test "${ac_cv_prog_CC+set}" = set; then
2339 $as_echo_n "(cached) " >&6
2340else
2341 if test -n "$CC"; then
2342 ac_cv_prog_CC="$CC" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361CC=$ac_cv_prog_CC
2362if test -n "$CC"; then
2363 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2364$as_echo "$CC" >&6; }
2365else
2366 { $as_echo "$as_me:$LINENO: result: no" >&5
2367$as_echo "no" >&6; }
2368fi
2369
2370
2371 test -n "$CC" && break
2372 done
2373fi
2374if test -z "$CC"; then
2375 ac_ct_CC=$CC
2376 for ac_prog in cl.exe
2377do
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379set dummy $ac_prog; ac_word=$2
2380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2381$as_echo_n "checking for $ac_word... " >&6; }
2382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383 $as_echo_n "(cached) " >&6
2384else
2385 if test -n "$ac_ct_CC"; then
2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387else
2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395 ac_cv_prog_ac_ct_CC="$ac_prog"
2396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 break 2
2398 fi
2399done
2400done
2401IFS=$as_save_IFS
2402
2403fi
2404fi
2405ac_ct_CC=$ac_cv_prog_ac_ct_CC
2406if test -n "$ac_ct_CC"; then
2407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2408$as_echo "$ac_ct_CC" >&6; }
2409else
2410 { $as_echo "$as_me:$LINENO: result: no" >&5
2411$as_echo "no" >&6; }
2412fi
2413
2414
2415 test -n "$ac_ct_CC" && break
2416done
2417
2418 if test "x$ac_ct_CC" = x; then
2419 CC=""
2420 else
2421 case $cross_compiling:$ac_tool_warned in
2422yes:)
2423{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2425ac_tool_warned=yes ;;
2426esac
2427 CC=$ac_ct_CC
2428 fi
2429fi
2430
2431fi
2432
2433
2434test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2437See \`config.log' for more details." >&5
2438$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2439See \`config.log' for more details." >&2;}
2440 { (exit 1); exit 1; }; }; }
2441
2442# Provide some information about the compiler.
2443$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2444set X $ac_compile
2445ac_compiler=$2
2446{ (ac_try="$ac_compiler --version >&5"
2447case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450esac
2451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2452$as_echo "$ac_try_echo") >&5
2453 (eval "$ac_compiler --version >&5") 2>&5
2454 ac_status=$?
2455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457{ (ac_try="$ac_compiler -v >&5"
2458case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461esac
2462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2463$as_echo "$ac_try_echo") >&5
2464 (eval "$ac_compiler -v >&5") 2>&5
2465 ac_status=$?
2466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2468{ (ac_try="$ac_compiler -V >&5"
2469case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472esac
2473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2474$as_echo "$ac_try_echo") >&5
2475 (eval "$ac_compiler -V >&5") 2>&5
2476 ac_status=$?
2477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }
2479
2480cat >conftest.$ac_ext <<_ACEOF
2481/* confdefs.h. */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h. */
2486
2487int
2488main ()
2489{
2490
2491 ;
2492 return 0;
2493}
2494_ACEOF
2495ac_clean_files_save=$ac_clean_files
2496ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2497# Try to create an executable without -o first, disregard a.out.
2498# It will help us diagnose broken compilers, and finding out an intuition
2499# of exeext.
2500{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2501$as_echo_n "checking for C compiler default output file name... " >&6; }
2502ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2503
2504# The possible output files:
2505ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2506
2507ac_rmfiles=
2508for ac_file in $ac_files
2509do
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2512 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2513 esac
2514done
2515rm -f $ac_rmfiles
2516
2517if { (ac_try="$ac_link_default"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2523$as_echo "$ac_try_echo") >&5
2524 (eval "$ac_link_default") 2>&5
2525 ac_status=$?
2526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2529# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2530# in a Makefile. We should not override ac_cv_exeext if it was cached,
2531# so that the user can short-circuit this test for compilers unknown to
2532# Autoconf.
2533for ac_file in $ac_files ''
2534do
2535 test -f "$ac_file" || continue
2536 case $ac_file in
2537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2538 ;;
2539 [ab].out )
2540 # We found the default executable, but exeext='' is most
2541 # certainly right.
2542 break;;
2543 *.* )
2544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2545 then :; else
2546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 fi
2548 # We set ac_cv_exeext here because the later test for it is not
2549 # safe: cross compilers may not add the suffix if given an `-o'
2550 # argument, so we may need to know it at that point already.
2551 # Even if this section looks crufty: it has the advantage of
2552 # actually working.
2553 break;;
2554 * )
2555 break;;
2556 esac
2557done
2558test "$ac_cv_exeext" = no && ac_cv_exeext=
2559
2560else
2561 ac_file=''
2562fi
2563
2564{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2565$as_echo "$ac_file" >&6; }
2566if test -z "$ac_file"; then
2567 $as_echo "$as_me: failed program was:" >&5
2568sed 's/^/| /' conftest.$ac_ext >&5
2569
2570{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2573See \`config.log' for more details." >&5
2574$as_echo "$as_me: error: C compiler cannot create executables
2575See \`config.log' for more details." >&2;}
2576 { (exit 77); exit 77; }; }; }
2577fi
2578
2579ac_exeext=$ac_cv_exeext
2580
2581# Check that the compiler produces executables we can run. If not, either
2582# the compiler is broken, or we cross compile.
2583{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2584$as_echo_n "checking whether the C compiler works... " >&6; }
2585# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2586# If not cross compiling, check that we can run a simple program.
2587if test "$cross_compiling" != yes; then
2588 if { ac_try='./$ac_file'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2592esac
2593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594$as_echo "$ac_try_echo") >&5
2595 (eval "$ac_try") 2>&5
2596 ac_status=$?
2597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; }; then
2599 cross_compiling=no
2600 else
2601 if test "$cross_compiling" = maybe; then
2602 cross_compiling=yes
2603 else
2604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2607If you meant to cross compile, use \`--host'.
2608See \`config.log' for more details." >&5
2609$as_echo "$as_me: error: cannot run C compiled programs.
2610If you meant to cross compile, use \`--host'.
2611See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }; }
2613 fi
2614 fi
2615fi
2616{ $as_echo "$as_me:$LINENO: result: yes" >&5
2617$as_echo "yes" >&6; }
2618
2619rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2620ac_clean_files=$ac_clean_files_save
2621# Check that the compiler produces executables we can run. If not, either
2622# the compiler is broken, or we cross compile.
2623{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2624$as_echo_n "checking whether we are cross compiling... " >&6; }
2625{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2626$as_echo "$cross_compiling" >&6; }
2627
2628{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2629$as_echo_n "checking for suffix of executables... " >&6; }
2630if { (ac_try="$ac_link"
2631case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634esac
2635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2636$as_echo "$ac_try_echo") >&5
2637 (eval "$ac_link") 2>&5
2638 ac_status=$?
2639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; then
2641 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2642# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2643# work properly (i.e., refer to `conftest.exe'), while it won't with
2644# `rm'.
2645for ac_file in conftest.exe conftest conftest.*; do
2646 test -f "$ac_file" || continue
2647 case $ac_file in
2648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2650 break;;
2651 * ) break;;
2652 esac
2653done
2654else
2655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658See \`config.log' for more details." >&5
2659$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }; }
2662fi
2663
2664rm -f conftest$ac_cv_exeext
2665{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666$as_echo "$ac_cv_exeext" >&6; }
2667
2668rm -f conftest.$ac_ext
2669EXEEXT=$ac_cv_exeext
2670ac_exeext=$EXEEXT
2671{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672$as_echo_n "checking for suffix of object files... " >&6; }
2673if test "${ac_cv_objext+set}" = set; then
2674 $as_echo_n "(cached) " >&6
2675else
2676 cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h. */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h. */
2682
2683int
2684main ()
2685{
2686
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.o conftest.obj
2692if { (ac_try="$ac_compile"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698$as_echo "$ac_try_echo") >&5
2699 (eval "$ac_compile") 2>&5
2700 ac_status=$?
2701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; then
2703 for ac_file in conftest.o conftest.obj conftest.*; do
2704 test -f "$ac_file" || continue;
2705 case $ac_file in
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708 break;;
2709 esac
2710done
2711else
2712 $as_echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2718See \`config.log' for more details." >&5
2719$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2720See \`config.log' for more details." >&2;}
2721 { (exit 1); exit 1; }; }; }
2722fi
2723
2724rm -f conftest.$ac_cv_objext conftest.$ac_ext
2725fi
2726{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2727$as_echo "$ac_cv_objext" >&6; }
2728OBJEXT=$ac_cv_objext
2729ac_objext=$OBJEXT
2730{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2731$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2732if test "${ac_cv_c_compiler_gnu+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2734else
2735 cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h. */
2741
2742int
2743main ()
2744{
2745#ifndef __GNUC__
2746 choke me
2747#endif
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (ac_try="$ac_compile"
2755case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
2759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2760$as_echo "$ac_try_echo") >&5
2761 (eval "$ac_compile") 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } && {
2768 test -z "$ac_c_werror_flag" ||
2769 test ! -s conftest.err
2770 } && test -s conftest.$ac_objext; then
2771 ac_compiler_gnu=yes
2772else
2773 $as_echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 ac_compiler_gnu=no
2777fi
2778
2779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780ac_cv_c_compiler_gnu=$ac_compiler_gnu
2781
2782fi
2783{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2784$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2785if test $ac_compiler_gnu = yes; then
2786 GCC=yes
2787else
2788 GCC=
2789fi
2790ac_test_CFLAGS=${CFLAGS+set}
2791ac_save_CFLAGS=$CFLAGS
2792{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2793$as_echo_n "checking whether $CC accepts -g... " >&6; }
2794if test "${ac_cv_prog_cc_g+set}" = set; then
2795 $as_echo_n "(cached) " >&6
2796else
2797 ac_save_c_werror_flag=$ac_c_werror_flag
2798 ac_c_werror_flag=yes
2799 ac_cv_prog_cc_g=no
2800 CFLAGS="-g"
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807
2808int
2809main ()
2810{
2811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext
2817if { (ac_try="$ac_compile"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2823$as_echo "$ac_try_echo") >&5
2824 (eval "$ac_compile") 2>conftest.er1
2825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } && {
2831 test -z "$ac_c_werror_flag" ||
2832 test ! -s conftest.err
2833 } && test -s conftest.$ac_objext; then
2834 ac_cv_prog_cc_g=yes
2835else
2836 $as_echo "$as_me: failed program was:" >&5
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839 CFLAGS=""
2840 cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h. */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h. */
2846
2847int
2848main ()
2849{
2850
2851 ;
2852 return 0;
2853}
2854_ACEOF
2855rm -f conftest.$ac_objext
2856if { (ac_try="$ac_compile"
2857case "(($ac_try" in
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2860esac
2861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2862$as_echo "$ac_try_echo") >&5
2863 (eval "$ac_compile") 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } && {
2870 test -z "$ac_c_werror_flag" ||
2871 test ! -s conftest.err
2872 } && test -s conftest.$ac_objext; then
2873 :
2874else
2875 $as_echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 ac_c_werror_flag=$ac_save_c_werror_flag
2879 CFLAGS="-g"
2880 cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h. */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
2886
2887int
2888main ()
2889{
2890
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895rm -f conftest.$ac_objext
2896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902$as_echo "$ac_try_echo") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2904 ac_status=$?
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2913 ac_cv_prog_cc_g=yes
2914else
2915 $as_echo "$as_me: failed program was:" >&5
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918
2919fi
2920
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922fi
2923
2924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925fi
2926
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 ac_c_werror_flag=$ac_save_c_werror_flag
2929fi
2930{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2931$as_echo "$ac_cv_prog_cc_g" >&6; }
2932if test "$ac_test_CFLAGS" = set; then
2933 CFLAGS=$ac_save_CFLAGS
2934elif test $ac_cv_prog_cc_g = yes; then
2935 if test "$GCC" = yes; then
2936 CFLAGS="-g -O2"
2937 else
2938 CFLAGS="-g"
2939 fi
2940else
2941 if test "$GCC" = yes; then
2942 CFLAGS="-O2"
2943 else
2944 CFLAGS=
2945 fi
2946fi
2947{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2948$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2949if test "${ac_cv_prog_cc_c89+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2951else
2952 ac_cv_prog_cc_c89=no
2953ac_save_CC=$CC
2954cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h. */
2960#include <stdarg.h>
2961#include <stdio.h>
2962#include <sys/types.h>
2963#include <sys/stat.h>
2964/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2965struct buf { int x; };
2966FILE * (*rcsopen) (struct buf *, struct stat *, int);
2967static char *e (p, i)
2968 char **p;
2969 int i;
2970{
2971 return p[i];
2972}
2973static char *f (char * (*g) (char **, int), char **p, ...)
2974{
2975 char *s;
2976 va_list v;
2977 va_start (v,p);
2978 s = g (p, va_arg (v,int));
2979 va_end (v);
2980 return s;
2981}
2982
2983/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2984 function prototypes and stuff, but not '\xHH' hex character constants.
2985 These don't provoke an error unfortunately, instead are silently treated
2986 as 'x'. The following induces an error, until -std is added to get
2987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2988 array size at least. It's necessary to write '\x00'==0 to get something
2989 that's true only with -std. */
2990int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2991
2992/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2993 inside strings and character constants. */
2994#define FOO(x) 'x'
2995int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2996
2997int test (int i, double x);
2998struct s1 {int (*f) (int a);};
2999struct s2 {int (*f) (double a);};
3000int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3001int argc;
3002char **argv;
3003int
3004main ()
3005{
3006return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3013do
3014 CC="$ac_save_CC $ac_arg"
3015 rm -f conftest.$ac_objext
3016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022$as_echo "$ac_try_echo") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3024 ac_status=$?
3025 grep -v '^ *+' conftest.er1 >conftest.err
3026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.$ac_objext; then
3033 ac_cv_prog_cc_c89=$ac_arg
3034else
3035 $as_echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038
3039fi
3040
3041rm -f core conftest.err conftest.$ac_objext
3042 test "x$ac_cv_prog_cc_c89" != "xno" && break
3043done
3044rm -f conftest.$ac_ext
3045CC=$ac_save_CC
3046
3047fi
3048# AC_CACHE_VAL
3049case "x$ac_cv_prog_cc_c89" in
3050 x)
3051 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3052$as_echo "none needed" >&6; } ;;
3053 xno)
3054 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3055$as_echo "unsupported" >&6; } ;;
3056 *)
3057 CC="$CC $ac_cv_prog_cc_c89"
3058 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3059$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3060esac
3061
3062
3063ac_ext=c
3064ac_cpp='$CPP $CPPFLAGS'
3065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068
3069
3070ac_ext=c
3071ac_cpp='$CPP $CPPFLAGS'
3072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3076$as_echo_n "checking how to run the C preprocessor... " >&6; }
3077# On Suns, sometimes $CPP names a directory.
3078if test -n "$CPP" && test -d "$CPP"; then
3079 CPP=
3080fi
3081if test -z "$CPP"; then
3082 if test "${ac_cv_prog_CPP+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084else
3085 # Double quotes because CPP needs to be expanded
3086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3087 do
3088 ac_preproc_ok=false
3089for ac_c_preproc_warn_flag in '' yes
3090do
3091 # Use a header file that comes with gcc, so configuring glibc
3092 # with a fresh cross-compiler works.
3093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3094 # <limits.h> exists even on freestanding compilers.
3095 # On the NeXT, cc -E runs the code through the compiler's parser,
3096 # not just through cpp. "Syntax error" is here to catch this case.
3097 cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h. */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h. */
3103#ifdef __STDC__
3104# include <limits.h>
3105#else
3106# include <assert.h>
3107#endif
3108 Syntax error
3109_ACEOF
3110if { (ac_try="$ac_cpp conftest.$ac_ext"
3111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3116$as_echo "$ac_try_echo") >&5
3117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } >/dev/null && {
3124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3125 test ! -s conftest.err
3126 }; then
3127 :
3128else
3129 $as_echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 # Broken: fails on valid input.
3133continue
3134fi
3135
3136rm -f conftest.err conftest.$ac_ext
3137
3138 # OK, works on sane cases. Now check whether nonexistent headers
3139 # can be detected and how.
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146#include <ac_nonexistent.h>
3147_ACEOF
3148if { (ac_try="$ac_cpp conftest.$ac_ext"
3149case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154$as_echo "$ac_try_echo") >&5
3155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null && {
3162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 }; then
3165 # Broken: success on invalid input.
3166continue
3167else
3168 $as_echo "$as_me: failed program was:" >&5
3169sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 # Passes both tests.
3172ac_preproc_ok=:
3173break
3174fi
3175
3176rm -f conftest.err conftest.$ac_ext
3177
3178done
3179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3180rm -f conftest.err conftest.$ac_ext
3181if $ac_preproc_ok; then
3182 break
3183fi
3184
3185 done
3186 ac_cv_prog_CPP=$CPP
3187
3188fi
3189 CPP=$ac_cv_prog_CPP
3190else
3191 ac_cv_prog_CPP=$CPP
3192fi
3193{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3194$as_echo "$CPP" >&6; }
3195ac_preproc_ok=false
3196for ac_c_preproc_warn_flag in '' yes
3197do
3198 # Use a header file that comes with gcc, so configuring glibc
3199 # with a fresh cross-compiler works.
3200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3201 # <limits.h> exists even on freestanding compilers.
3202 # On the NeXT, cc -E runs the code through the compiler's parser,
3203 # not just through cpp. "Syntax error" is here to catch this case.
3204 cat >conftest.$ac_ext <<_ACEOF
3205/* confdefs.h. */
3206_ACEOF
3207cat confdefs.h >>conftest.$ac_ext
3208cat >>conftest.$ac_ext <<_ACEOF
3209/* end confdefs.h. */
3210#ifdef __STDC__
3211# include <limits.h>
3212#else
3213# include <assert.h>
3214#endif
3215 Syntax error
3216_ACEOF
3217if { (ac_try="$ac_cpp conftest.$ac_ext"
3218case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3223$as_echo "$ac_try_echo") >&5
3224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } >/dev/null && {
3231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 }; then
3234 :
3235else
3236 $as_echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239 # Broken: fails on valid input.
3240continue
3241fi
3242
3243rm -f conftest.err conftest.$ac_ext
3244
3245 # OK, works on sane cases. Now check whether nonexistent headers
3246 # can be detected and how.
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253#include <ac_nonexistent.h>
3254_ACEOF
3255if { (ac_try="$ac_cpp conftest.$ac_ext"
3256case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259esac
3260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3261$as_echo "$ac_try_echo") >&5
3262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 }; then
3272 # Broken: success on invalid input.
3273continue
3274else
3275 $as_echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Passes both tests.
3279ac_preproc_ok=:
3280break
3281fi
3282
3283rm -f conftest.err conftest.$ac_ext
3284
3285done
3286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287rm -f conftest.err conftest.$ac_ext
3288if $ac_preproc_ok; then
3289 :
3290else
3291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3294See \`config.log' for more details." >&5
3295$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3296See \`config.log' for more details." >&2;}
3297 { (exit 1); exit 1; }; }; }
3298fi
3299
3300ac_ext=c
3301ac_cpp='$CPP $CPPFLAGS'
3302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305
3306
3307{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3308$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3309if test "${ac_cv_path_GREP+set}" = set; then
3310 $as_echo_n "(cached) " >&6
3311else
3312 if test -z "$GREP"; then
3313 ac_path_GREP_found=false
3314 # Loop through the user's path and test for each of PROGNAME-LIST
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3317do
3318 IFS=$as_save_IFS
3319 test -z "$as_dir" && as_dir=.
3320 for ac_prog in grep ggrep; do
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3323 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3324# Check for GNU ac_path_GREP and select it if it is found.
3325 # Check for GNU $ac_path_GREP
3326case `"$ac_path_GREP" --version 2>&1` in
3327*GNU*)
3328 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3329*)
3330 ac_count=0
3331 $as_echo_n 0123456789 >"conftest.in"
3332 while :
3333 do
3334 cat "conftest.in" "conftest.in" >"conftest.tmp"
3335 mv "conftest.tmp" "conftest.in"
3336 cp "conftest.in" "conftest.nl"
3337 $as_echo 'GREP' >> "conftest.nl"
3338 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3340 ac_count=`expr $ac_count + 1`
3341 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3342 # Best one so far, save it but keep looking for a better one
3343 ac_cv_path_GREP="$ac_path_GREP"
3344 ac_path_GREP_max=$ac_count
3345 fi
3346 # 10*(2^10) chars as input seems more than enough
3347 test $ac_count -gt 10 && break
3348 done
3349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3350esac
3351
3352 $ac_path_GREP_found && break 3
3353 done
3354 done
3355done
3356IFS=$as_save_IFS
3357 if test -z "$ac_cv_path_GREP"; then
3358 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3359$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3360 { (exit 1); exit 1; }; }
3361 fi
3362else
3363 ac_cv_path_GREP=$GREP
3364fi
3365
3366fi
3367{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3368$as_echo "$ac_cv_path_GREP" >&6; }
3369 GREP="$ac_cv_path_GREP"
3370
3371
3372{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3373$as_echo_n "checking for egrep... " >&6; }
3374if test "${ac_cv_path_EGREP+set}" = set; then
3375 $as_echo_n "(cached) " >&6
3376else
3377 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3378 then ac_cv_path_EGREP="$GREP -E"
3379 else
3380 if test -z "$EGREP"; then
3381 ac_path_EGREP_found=false
3382 # Loop through the user's path and test for each of PROGNAME-LIST
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3385do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_prog in egrep; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3392# Check for GNU ac_path_EGREP and select it if it is found.
3393 # Check for GNU $ac_path_EGREP
3394case `"$ac_path_EGREP" --version 2>&1` in
3395*GNU*)
3396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3397*)
3398 ac_count=0
3399 $as_echo_n 0123456789 >"conftest.in"
3400 while :
3401 do
3402 cat "conftest.in" "conftest.in" >"conftest.tmp"
3403 mv "conftest.tmp" "conftest.in"
3404 cp "conftest.in" "conftest.nl"
3405 $as_echo 'EGREP' >> "conftest.nl"
3406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3408 ac_count=`expr $ac_count + 1`
3409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3410 # Best one so far, save it but keep looking for a better one
3411 ac_cv_path_EGREP="$ac_path_EGREP"
3412 ac_path_EGREP_max=$ac_count
3413 fi
3414 # 10*(2^10) chars as input seems more than enough
3415 test $ac_count -gt 10 && break
3416 done
3417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3418esac
3419
3420 $ac_path_EGREP_found && break 3
3421 done
3422 done
3423done
3424IFS=$as_save_IFS
3425 if test -z "$ac_cv_path_EGREP"; then
3426 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3427$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3428 { (exit 1); exit 1; }; }
3429 fi
3430else
3431 ac_cv_path_EGREP=$EGREP
3432fi
3433
3434 fi
3435fi
3436{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3437$as_echo "$ac_cv_path_EGREP" >&6; }
3438 EGREP="$ac_cv_path_EGREP"
3439
3440
3441{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3442$as_echo_n "checking for ANSI C header files... " >&6; }
3443if test "${ac_cv_header_stdc+set}" = set; then
3444 $as_echo_n "(cached) " >&6
3445else
3446 cat >conftest.$ac_ext <<_ACEOF
3447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
3452#include <stdlib.h>
3453#include <stdarg.h>
3454#include <string.h>
3455#include <float.h>
3456
3457int
3458main ()
3459{
3460
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465rm -f conftest.$ac_objext
3466if { (ac_try="$ac_compile"
3467case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3472$as_echo "$ac_try_echo") >&5
3473 (eval "$ac_compile") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } && {
3480 test -z "$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 } && test -s conftest.$ac_objext; then
3483 ac_cv_header_stdc=yes
3484else
3485 $as_echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 ac_cv_header_stdc=no
3489fi
3490
3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492
3493if test $ac_cv_header_stdc = yes; then
3494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3495 cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501#include <string.h>
3502
3503_ACEOF
3504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3505 $EGREP "memchr" >/dev/null 2>&1; then
3506 :
3507else
3508 ac_cv_header_stdc=no
3509fi
3510rm -f conftest*
3511
3512fi
3513
3514if test $ac_cv_header_stdc = yes; then
3515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3516 cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h. */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h. */
3522#include <stdlib.h>
3523
3524_ACEOF
3525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 $EGREP "free" >/dev/null 2>&1; then
3527 :
3528else
3529 ac_cv_header_stdc=no
3530fi
3531rm -f conftest*
3532
3533fi
3534
3535if test $ac_cv_header_stdc = yes; then
3536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3537 if test "$cross_compiling" = yes; then
3538 :
3539else
3540 cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h. */
3546#include <ctype.h>
3547#include <stdlib.h>
3548#if ((' ' & 0x0FF) == 0x020)
3549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3551#else
3552# define ISLOWER(c) \
3553 (('a' <= (c) && (c) <= 'i') \
3554 || ('j' <= (c) && (c) <= 'r') \
3555 || ('s' <= (c) && (c) <= 'z'))
3556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3557#endif
3558
3559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3560int
3561main ()
3562{
3563 int i;
3564 for (i = 0; i < 256; i++)
3565 if (XOR (islower (i), ISLOWER (i))
3566 || toupper (i) != TOUPPER (i))
3567 return 2;
3568 return 0;
3569}
3570_ACEOF
3571rm -f conftest$ac_exeext
3572if { (ac_try="$ac_link"
3573case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3578$as_echo "$ac_try_echo") >&5
3579 (eval "$ac_link") 2>&5
3580 ac_status=$?
3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3583 { (case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3588$as_echo "$ac_try_echo") >&5
3589 (eval "$ac_try") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3593 :
3594else
3595 $as_echo "$as_me: program exited with status $ac_status" >&5
3596$as_echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599( exit $ac_status )
3600ac_cv_header_stdc=no
3601fi
3602rm -rf conftest.dSYM
3603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3604fi
3605
3606
3607fi
3608fi
3609{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3610$as_echo "$ac_cv_header_stdc" >&6; }
3611if test $ac_cv_header_stdc = yes; then
3612
3613cat >>confdefs.h <<\_ACEOF
3614#define STDC_HEADERS 1
3615_ACEOF
3616
3617fi
3618
3619# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3630 inttypes.h stdint.h unistd.h
3631do
3632as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3633{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3634$as_echo_n "checking for $ac_header... " >&6; }
3635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3636 $as_echo_n "(cached) " >&6
3637else
3638 cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
3644$ac_includes_default
3645
3646#include <$ac_header>
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (ac_try="$ac_compile"
3650case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653esac
3654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655$as_echo "$ac_try_echo") >&5
3656 (eval "$ac_compile") 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest.$ac_objext; then
3666 eval "$as_ac_Header=yes"
3667else
3668 $as_echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671 eval "$as_ac_Header=no"
3672fi
3673
3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675fi
3676ac_res=`eval 'as_val=${'$as_ac_Header'}
3677 $as_echo "$as_val"'`
3678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3679$as_echo "$ac_res" >&6; }
3680as_val=`eval 'as_val=${'$as_ac_Header'}
3681 $as_echo "$as_val"'`
3682 if test "x$as_val" = x""yes; then
3683 cat >>confdefs.h <<_ACEOF
3684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3685_ACEOF
3686
3687fi
3688
3689done
3690
3691
3692
3693 if test "${ac_cv_header_minix_config_h+set}" = set; then
3694 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3695$as_echo_n "checking for minix/config.h... " >&6; }
3696if test "${ac_cv_header_minix_config_h+set}" = set; then
3697 $as_echo_n "(cached) " >&6
3698fi
3699{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3700$as_echo "$ac_cv_header_minix_config_h" >&6; }
3701else
3702 # Is the header compilable?
3703{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3704$as_echo_n "checking minix/config.h usability... " >&6; }
3705cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711$ac_includes_default
3712#include <minix/config.h>
3713_ACEOF
3714rm -f conftest.$ac_objext
3715if { (ac_try="$ac_compile"
3716case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721$as_echo "$ac_try_echo") >&5
3722 (eval "$ac_compile") 2>conftest.er1
3723 ac_status=$?
3724 grep -v '^ *+' conftest.er1 >conftest.err
3725 rm -f conftest.er1
3726 cat conftest.err >&5
3727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && {
3729 test -z "$ac_c_werror_flag" ||
3730 test ! -s conftest.err
3731 } && test -s conftest.$ac_objext; then
3732 ac_header_compiler=yes
3733else
3734 $as_echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 ac_header_compiler=no
3738fi
3739
3740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3742$as_echo "$ac_header_compiler" >&6; }
3743
3744# Is the header present?
3745{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3746$as_echo_n "checking minix/config.h presence... " >&6; }
3747cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h. */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h. */
3753#include <minix/config.h>
3754_ACEOF
3755if { (ac_try="$ac_cpp conftest.$ac_ext"
3756case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761$as_echo "$ac_try_echo") >&5
3762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null && {
3769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 }; then
3772 ac_header_preproc=yes
3773else
3774 $as_echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 ac_header_preproc=no
3778fi
3779
3780rm -f conftest.err conftest.$ac_ext
3781{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3782$as_echo "$ac_header_preproc" >&6; }
3783
3784# So? What about this header?
3785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3786 yes:no: )
3787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3788$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3790$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3791 ac_header_preproc=yes
3792 ;;
3793 no:yes:* )
3794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3795$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3797$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3799$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3800 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3801$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3802 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3803$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3804 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3805$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3806 ( cat <<\_ASBOX
3807## --------------------------------------------- ##
3808## Report this to upstart-devel@lists.ubuntu.com ##
3809## --------------------------------------------- ##
3810_ASBOX
3811 ) | sed "s/^/$as_me: WARNING: /" >&2
3812 ;;
3813esac
3814{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3815$as_echo_n "checking for minix/config.h... " >&6; }
3816if test "${ac_cv_header_minix_config_h+set}" = set; then
3817 $as_echo_n "(cached) " >&6
3818else
3819 ac_cv_header_minix_config_h=$ac_header_preproc
3820fi
3821{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3822$as_echo "$ac_cv_header_minix_config_h" >&6; }
3823
3824fi
3825if test "x$ac_cv_header_minix_config_h" = x""yes; then
3826 MINIX=yes
3827else
3828 MINIX=
3829fi
3830
3831
3832 if test "$MINIX" = yes; then
3833
3834cat >>confdefs.h <<\_ACEOF
3835#define _POSIX_SOURCE 1
3836_ACEOF
3837
3838
3839cat >>confdefs.h <<\_ACEOF
3840#define _POSIX_1_SOURCE 2
3841_ACEOF
3842
3843
3844cat >>confdefs.h <<\_ACEOF
3845#define _MINIX 1
3846_ACEOF
3847
3848 fi
3849
3850
3851
3852 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3853$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3854if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3855 $as_echo_n "(cached) " >&6
3856else
3857 cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h. */
3863
3864# define __EXTENSIONS__ 1
3865 $ac_includes_default
3866int
3867main ()
3868{
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874rm -f conftest.$ac_objext
3875if { (ac_try="$ac_compile"
3876case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3881$as_echo "$ac_try_echo") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3883 ac_status=$?
3884 grep -v '^ *+' conftest.er1 >conftest.err
3885 rm -f conftest.er1
3886 cat conftest.err >&5
3887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
3892 ac_cv_safe_to_define___extensions__=yes
3893else
3894 $as_echo "$as_me: failed program was:" >&5
3895sed 's/^/| /' conftest.$ac_ext >&5
3896
3897 ac_cv_safe_to_define___extensions__=no
3898fi
3899
3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901fi
3902{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3903$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3904 test $ac_cv_safe_to_define___extensions__ = yes &&
3905 cat >>confdefs.h <<\_ACEOF
3906#define __EXTENSIONS__ 1
3907_ACEOF
3908
3909 cat >>confdefs.h <<\_ACEOF
3910#define _ALL_SOURCE 1
3911_ACEOF
3912
3913 cat >>confdefs.h <<\_ACEOF
3914#define _GNU_SOURCE 1
3915_ACEOF
3916
3917 cat >>confdefs.h <<\_ACEOF
3918#define _POSIX_PTHREAD_SEMANTICS 1
3919_ACEOF
3920
3921 cat >>confdefs.h <<\_ACEOF
3922#define _TANDEM_SOURCE 1
3923_ACEOF
3924
3925
3926
3927am__api_version='1.10'
3928
3929ac_aux_dir=
3930for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3931 if test -f "$ac_dir/install-sh"; then
3932 ac_aux_dir=$ac_dir
3933 ac_install_sh="$ac_aux_dir/install-sh -c"
3934 break
3935 elif test -f "$ac_dir/install.sh"; then
3936 ac_aux_dir=$ac_dir
3937 ac_install_sh="$ac_aux_dir/install.sh -c"
3938 break
3939 elif test -f "$ac_dir/shtool"; then
3940 ac_aux_dir=$ac_dir
3941 ac_install_sh="$ac_aux_dir/shtool install -c"
3942 break
3943 fi
3944done
3945if test -z "$ac_aux_dir"; then
3946 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3947$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3948 { (exit 1); exit 1; }; }
3949fi
3950
3951# These three variables are undocumented and unsupported,
3952# and are intended to be withdrawn in a future Autoconf release.
3953# They can cause serious problems if a builder's source tree is in a directory
3954# whose full name contains unusual characters.
3955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3958
3959
3960# Find a good install program. We prefer a C program (faster),
3961# so one script is as good as another. But avoid the broken or
3962# incompatible versions:
3963# SysV /etc/install, /usr/sbin/install
3964# SunOS /usr/etc/install
3965# IRIX /sbin/install
3966# AIX /bin/install
3967# AmigaOS /C/install, which installs bootblocks on floppy discs
3968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971# OS/2's system install, which has a completely different semantic
3972# ./install, which can be erroneously created by make from ./install.sh.
3973# Reject install programs that cannot install multiple files.
3974{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3975$as_echo_n "checking for a BSD-compatible install... " >&6; }
3976if test -z "$INSTALL"; then
3977if test "${ac_cv_path_install+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3979else
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 # Account for people who put trailing slashes in PATH elements.
3986case $as_dir/ in
3987 ./ | .// | /cC/* | \
3988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3990 /usr/ucb/* ) ;;
3991 *)
3992 # OSF1 and SCO ODT 3.0 have their own names for install.
3993 # Don't use installbsd from OSF since it installs stuff as root
3994 # by default.
3995 for ac_prog in ginstall scoinst install; do
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3998 if test $ac_prog = install &&
3999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4000 # AIX install. It has an incompatible calling convention.
4001 :
4002 elif test $ac_prog = install &&
4003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4004 # program-specific install script used by HP pwplus--don't use.
4005 :
4006 else
4007 rm -rf conftest.one conftest.two conftest.dir
4008 echo one > conftest.one
4009 echo two > conftest.two
4010 mkdir conftest.dir
4011 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4012 test -s conftest.one && test -s conftest.two &&
4013 test -s conftest.dir/conftest.one &&
4014 test -s conftest.dir/conftest.two
4015 then
4016 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4017 break 3
4018 fi
4019 fi
4020 fi
4021 done
4022 done
4023 ;;
4024esac
4025
4026done
4027IFS=$as_save_IFS
4028
4029rm -rf conftest.one conftest.two conftest.dir
4030
4031fi
4032 if test "${ac_cv_path_install+set}" = set; then
4033 INSTALL=$ac_cv_path_install
4034 else
4035 # As a last resort, use the slow shell script. Don't cache a
4036 # value for INSTALL within a source directory, because that will
4037 # break other packages using the cache if that directory is
4038 # removed, or if the value is a relative name.
4039 INSTALL=$ac_install_sh
4040 fi
4041fi
4042{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4043$as_echo "$INSTALL" >&6; }
4044
4045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4046# It thinks the first close brace ends the variable substitution.
4047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4048
4049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4050
4051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4052
4053{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4054$as_echo_n "checking whether build environment is sane... " >&6; }
4055# Just in case
4056sleep 1
4057echo timestamp > conftest.file
4058# Do `set' in a subshell so we don't clobber the current shell's
4059# arguments. Must try -L first in case configure is actually a
4060# symlink; some systems play weird games with the mod time of symlinks
4061# (eg FreeBSD returns the mod time of the symlink's containing
4062# directory).
4063if (
4064 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4065 if test "$*" = "X"; then
4066 # -L didn't work.
4067 set X `ls -t $srcdir/configure conftest.file`
4068 fi
4069 rm -f conftest.file
4070 if test "$*" != "X $srcdir/configure conftest.file" \
4071 && test "$*" != "X conftest.file $srcdir/configure"; then
4072
4073 # If neither matched, then we have a broken ls. This can happen
4074 # if, for instance, CONFIG_SHELL is bash and it inherits a
4075 # broken ls alias from the environment. This has actually
4076 # happened. Such a system could not be considered "sane".
4077 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
4078alias in your environment" >&5
4079$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
4080alias in your environment" >&2;}
4081 { (exit 1); exit 1; }; }
4082 fi
4083
4084 test "$2" = conftest.file
4085 )
4086then
4087 # Ok.
4088 :
4089else
4090 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4091Check your system clock" >&5
4092$as_echo "$as_me: error: newly created file is older than distributed files!
4093Check your system clock" >&2;}
4094 { (exit 1); exit 1; }; }
4095fi
4096{ $as_echo "$as_me:$LINENO: result: yes" >&5
4097$as_echo "yes" >&6; }
4098test "$program_prefix" != NONE &&
4099 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4100# Use a double $ so make ignores it.
4101test "$program_suffix" != NONE &&
4102 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4103# Double any \ or $.
4104# By default was `s,x,x', remove it if useless.
4105ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4106program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4107
4108# expand $ac_aux_dir to an absolute path
4109am_aux_dir=`cd $ac_aux_dir && pwd`
4110
4111test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4112# Use eval to expand $SHELL
4113if eval "$MISSING --run true"; then
4114 am_missing_run="$MISSING --run "
4115else
4116 am_missing_run=
4117 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4118$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4119fi
4120
4121{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4122$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4123if test -z "$MKDIR_P"; then
4124 if test "${ac_cv_path_mkdir+set}" = set; then
4125 $as_echo_n "(cached) " >&6
4126else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_prog in mkdir gmkdir; do
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4135 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4136 'mkdir (GNU coreutils) '* | \
4137 'mkdir (coreutils) '* | \
4138 'mkdir (fileutils) '4.1*)
4139 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4140 break 3;;
4141 esac
4142 done
4143 done
4144done
4145IFS=$as_save_IFS
4146
4147fi
4148
4149 if test "${ac_cv_path_mkdir+set}" = set; then
4150 MKDIR_P="$ac_cv_path_mkdir -p"
4151 else
4152 # As a last resort, use the slow shell script. Don't cache a
4153 # value for MKDIR_P within a source directory, because that will
4154 # break other packages using the cache if that directory is
4155 # removed, or if the value is a relative name.
4156 test -d ./--version && rmdir ./--version
4157 MKDIR_P="$ac_install_sh -d"
4158 fi
4159fi
4160{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4161$as_echo "$MKDIR_P" >&6; }
4162
4163mkdir_p="$MKDIR_P"
4164case $mkdir_p in
4165 [\\/$]* | ?:[\\/]*) ;;
4166 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4167esac
4168
4169for ac_prog in gawk mawk nawk awk
4170do
4171 # Extract the first word of "$ac_prog", so it can be a program name with args.
4172set dummy $ac_prog; ac_word=$2
4173{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4174$as_echo_n "checking for $ac_word... " >&6; }
4175if test "${ac_cv_prog_AWK+set}" = set; then
4176 $as_echo_n "(cached) " >&6
4177else
4178 if test -n "$AWK"; then
4179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_AWK="$ac_prog"
4189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192done
4193done
4194IFS=$as_save_IFS
4195
4196fi
4197fi
4198AWK=$ac_cv_prog_AWK
4199if test -n "$AWK"; then
4200 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4201$as_echo "$AWK" >&6; }
4202else
4203 { $as_echo "$as_me:$LINENO: result: no" >&5
4204$as_echo "no" >&6; }
4205fi
4206
4207
4208 test -n "$AWK" && break
4209done
4210
4211{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4212$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4213set x ${MAKE-make}
4214ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4215if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4216 $as_echo_n "(cached) " >&6
4217else
4218 cat >conftest.make <<\_ACEOF
4219SHELL = /bin/sh
4220all:
4221 @echo '@@@%%%=$(MAKE)=@@@%%%'
4222_ACEOF
4223# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4224case `${MAKE-make} -f conftest.make 2>/dev/null` in
4225 *@@@%%%=?*=@@@%%%*)
4226 eval ac_cv_prog_make_${ac_make}_set=yes;;
4227 *)
4228 eval ac_cv_prog_make_${ac_make}_set=no;;
4229esac
4230rm -f conftest.make
4231fi
4232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4233 { $as_echo "$as_me:$LINENO: result: yes" >&5
4234$as_echo "yes" >&6; }
4235 SET_MAKE=
4236else
4237 { $as_echo "$as_me:$LINENO: result: no" >&5
4238$as_echo "no" >&6; }
4239 SET_MAKE="MAKE=${MAKE-make}"
4240fi
4241
4242rm -rf .tst 2>/dev/null
4243mkdir .tst 2>/dev/null
4244if test -d .tst; then
4245 am__leading_dot=.
4246else
4247 am__leading_dot=_
4248fi
4249rmdir .tst 2>/dev/null
4250
4251DEPDIR="${am__leading_dot}deps"
4252
4253ac_config_commands="$ac_config_commands depfiles"
4254
4255
4256am_make=${MAKE-make}
4257cat > confinc << 'END'
4258am__doit:
4259 @echo done
4260.PHONY: am__doit
4261END
4262# If we don't find an include directive, just comment out the code.
4263{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4264$as_echo_n "checking for style of include used by $am_make... " >&6; }
4265am__include="#"
4266am__quote=
4267_am_result=none
4268# First try GNU make style include.
4269echo "include confinc" > confmf
4270# We grep out `Entering directory' and `Leaving directory'
4271# messages which can occur if `w' ends up in MAKEFLAGS.
4272# In particular we don't look at `^make:' because GNU make might
4273# be invoked under some other name (usually "gmake"), in which
4274# case it prints its new name instead of `make'.
4275if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4276 am__include=include
4277 am__quote=
4278 _am_result=GNU
4279fi
4280# Now try BSD make style include.
4281if test "$am__include" = "#"; then
4282 echo '.include "confinc"' > confmf
4283 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4284 am__include=.include
4285 am__quote="\""
4286 _am_result=BSD
4287 fi
4288fi
4289
4290
4291{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4292$as_echo "$_am_result" >&6; }
4293rm -f confinc confmf
4294
4295# Check whether --enable-dependency-tracking was given.
4296if test "${enable_dependency_tracking+set}" = set; then
4297 enableval=$enable_dependency_tracking;
4298fi
4299
4300if test "x$enable_dependency_tracking" != xno; then
4301 am_depcomp="$ac_aux_dir/depcomp"
4302 AMDEPBACKSLASH='\'
4303fi
4304 if test "x$enable_dependency_tracking" != xno; then
4305 AMDEP_TRUE=
4306 AMDEP_FALSE='#'
4307else
4308 AMDEP_TRUE='#'
4309 AMDEP_FALSE=
4310fi
4311
4312
4313if test "`cd $srcdir && pwd`" != "`pwd`"; then
4314 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4315 # is not polluted with repeated "-I."
4316 am__isrc=' -I$(srcdir)'
4317 # test to see if srcdir already configured
4318 if test -f $srcdir/config.status; then
4319 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4320$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4321 { (exit 1); exit 1; }; }
4322 fi
4323fi
4324
4325# test whether we have cygpath
4326if test -z "$CYGPATH_W"; then
4327 if (cygpath --version) >/dev/null 2>/dev/null; then
4328 CYGPATH_W='cygpath -w'
4329 else
4330 CYGPATH_W=echo
4331 fi
4332fi
4333
4334
4335# Define the identity of the package.
4336 PACKAGE='upstart'
Scott James Remnantd91d8522009-07-16 18:21:14 +01004337 VERSION='0.6.1'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004338
4339
4340cat >>confdefs.h <<_ACEOF
4341#define PACKAGE "$PACKAGE"
4342_ACEOF
4343
4344
4345cat >>confdefs.h <<_ACEOF
4346#define VERSION "$VERSION"
4347_ACEOF
4348
4349# Some tools Automake needs.
4350
4351ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4352
4353
4354AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4355
4356
4357AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4358
4359
4360AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4361
4362
4363MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4364
4365install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4366
4367# Installed binaries are usually stripped using `strip' when the user
4368# run `make install-strip'. However `strip' might not be the right
4369# tool to use in cross-compilation environments, therefore Automake
4370# will honor the `STRIP' environment variable to overrule this program.
4371if test "$cross_compiling" != no; then
4372 if test -n "$ac_tool_prefix"; then
4373 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4374set dummy ${ac_tool_prefix}strip; ac_word=$2
4375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4376$as_echo_n "checking for $ac_word... " >&6; }
4377if test "${ac_cv_prog_STRIP+set}" = set; then
4378 $as_echo_n "(cached) " >&6
4379else
4380 if test -n "$STRIP"; then
4381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394done
4395done
4396IFS=$as_save_IFS
4397
4398fi
4399fi
4400STRIP=$ac_cv_prog_STRIP
4401if test -n "$STRIP"; then
4402 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4403$as_echo "$STRIP" >&6; }
4404else
4405 { $as_echo "$as_me:$LINENO: result: no" >&5
4406$as_echo "no" >&6; }
4407fi
4408
4409
4410fi
4411if test -z "$ac_cv_prog_STRIP"; then
4412 ac_ct_STRIP=$STRIP
4413 # Extract the first word of "strip", so it can be a program name with args.
4414set dummy strip; ac_word=$2
4415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4416$as_echo_n "checking for $ac_word... " >&6; }
4417if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4419else
4420 if test -n "$ac_ct_STRIP"; then
4421 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430 ac_cv_prog_ac_ct_STRIP="strip"
4431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435done
4436IFS=$as_save_IFS
4437
4438fi
4439fi
4440ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4441if test -n "$ac_ct_STRIP"; then
4442 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4443$as_echo "$ac_ct_STRIP" >&6; }
4444else
4445 { $as_echo "$as_me:$LINENO: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449 if test "x$ac_ct_STRIP" = x; then
4450 STRIP=":"
4451 else
4452 case $cross_compiling:$ac_tool_warned in
4453yes:)
4454{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456ac_tool_warned=yes ;;
4457esac
4458 STRIP=$ac_ct_STRIP
4459 fi
4460else
4461 STRIP="$ac_cv_prog_STRIP"
4462fi
4463
4464fi
4465INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4466
4467# We need awk for the "check" target. The system "awk" is bad on
4468# some platforms.
4469# Always define AMTAR for backward compatibility.
4470
4471AMTAR=${AMTAR-"${am_missing_run}tar"}
4472
4473am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4474
4475
4476
4477
4478depcc="$CC" am_compiler_list=
4479
4480{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4481$as_echo_n "checking dependency style of $depcc... " >&6; }
4482if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4483 $as_echo_n "(cached) " >&6
4484else
4485 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4486 # We make a subdir and do the tests there. Otherwise we can end up
4487 # making bogus files that we don't know about and never remove. For
4488 # instance it was reported that on HP-UX the gcc test will end up
4489 # making a dummy file named `D' -- because `-MD' means `put the output
4490 # in D'.
4491 mkdir conftest.dir
4492 # Copy depcomp to subdir because otherwise we won't find it if we're
4493 # using a relative directory.
4494 cp "$am_depcomp" conftest.dir
4495 cd conftest.dir
4496 # We will build objects and dependencies in a subdirectory because
4497 # it helps to detect inapplicable dependency modes. For instance
4498 # both Tru64's cc and ICC support -MD to output dependencies as a
4499 # side effect of compilation, but ICC will put the dependencies in
4500 # the current directory while Tru64 will put them in the object
4501 # directory.
4502 mkdir sub
4503
4504 am_cv_CC_dependencies_compiler_type=none
4505 if test "$am_compiler_list" = ""; then
4506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4507 fi
4508 for depmode in $am_compiler_list; do
4509 # Setup a source with many dependencies, because some compilers
4510 # like to wrap large dependency lists on column 80 (with \), and
4511 # we should not choose a depcomp mode which is confused by this.
4512 #
4513 # We need to recreate these files for each test, as the compiler may
4514 # overwrite some of them when testing with obscure command lines.
4515 # This happens at least with the AIX C compiler.
4516 : > sub/conftest.c
4517 for i in 1 2 3 4 5 6; do
4518 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4519 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4520 # Solaris 8's {/usr,}/bin/sh.
4521 touch sub/conftst$i.h
4522 done
4523 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4524
4525 case $depmode in
4526 nosideeffect)
4527 # after this tag, mechanisms are not by side-effect, so they'll
4528 # only be used when explicitly requested
4529 if test "x$enable_dependency_tracking" = xyes; then
4530 continue
4531 else
4532 break
4533 fi
4534 ;;
4535 none) break ;;
4536 esac
4537 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4538 # mode. It turns out that the SunPro C++ compiler does not properly
4539 # handle `-M -o', and we need to detect this.
4540 if depmode=$depmode \
4541 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4543 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4544 >/dev/null 2>conftest.err &&
4545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4549 # icc doesn't choke on unknown options, it will just issue warnings
4550 # or remarks (even with -Werror). So we grep stderr for any message
4551 # that says an option was ignored or not supported.
4552 # When given -MP, icc 7.0 and 7.1 complain thusly:
4553 # icc: Command line warning: ignoring option '-M'; no argument required
4554 # The diagnosis changed in icc 8.0:
4555 # icc: Command line remark: option '-MP' not supported
4556 if (grep 'ignoring option' conftest.err ||
4557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4558 am_cv_CC_dependencies_compiler_type=$depmode
4559 break
4560 fi
4561 fi
4562 done
4563
4564 cd ..
4565 rm -rf conftest.dir
4566else
4567 am_cv_CC_dependencies_compiler_type=none
4568fi
4569
4570fi
4571{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4572$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4573CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4574
4575 if
4576 test "x$enable_dependency_tracking" != xno \
4577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4578 am__fastdepCC_TRUE=
4579 am__fastdepCC_FALSE='#'
4580else
4581 am__fastdepCC_TRUE='#'
4582 am__fastdepCC_FALSE=
4583fi
4584
4585
4586
4587
4588
4589case `pwd` in
4590 *\ * | *\ *)
4591 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4592$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4593esac
4594
4595
4596
4597macro_version='2.2.6'
4598macro_revision='1.3012'
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612ltmain="$ac_aux_dir/ltmain.sh"
4613
4614# Make sure we can run config.sub.
4615$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4616 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4617$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4618 { (exit 1); exit 1; }; }
4619
4620{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4621$as_echo_n "checking build system type... " >&6; }
4622if test "${ac_cv_build+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4624else
4625 ac_build_alias=$build_alias
4626test "x$ac_build_alias" = x &&
4627 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4628test "x$ac_build_alias" = x &&
4629 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4630$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4631 { (exit 1); exit 1; }; }
4632ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4633 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4634$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4635 { (exit 1); exit 1; }; }
4636
4637fi
4638{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4639$as_echo "$ac_cv_build" >&6; }
4640case $ac_cv_build in
4641*-*-*) ;;
4642*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4643$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4644 { (exit 1); exit 1; }; };;
4645esac
4646build=$ac_cv_build
4647ac_save_IFS=$IFS; IFS='-'
4648set x $ac_cv_build
4649shift
4650build_cpu=$1
4651build_vendor=$2
4652shift; shift
4653# Remember, the first character of IFS is used to create $*,
4654# except with old shells:
4655build_os=$*
4656IFS=$ac_save_IFS
4657case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4658
4659
4660{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4661$as_echo_n "checking host system type... " >&6; }
4662if test "${ac_cv_host+set}" = set; then
4663 $as_echo_n "(cached) " >&6
4664else
4665 if test "x$host_alias" = x; then
4666 ac_cv_host=$ac_cv_build
4667else
4668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4669 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4670$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4671 { (exit 1); exit 1; }; }
4672fi
4673
4674fi
4675{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4676$as_echo "$ac_cv_host" >&6; }
4677case $ac_cv_host in
4678*-*-*) ;;
4679*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4680$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4681 { (exit 1); exit 1; }; };;
4682esac
4683host=$ac_cv_host
4684ac_save_IFS=$IFS; IFS='-'
4685set x $ac_cv_host
4686shift
4687host_cpu=$1
4688host_vendor=$2
4689shift; shift
4690# Remember, the first character of IFS is used to create $*,
4691# except with old shells:
4692host_os=$*
4693IFS=$ac_save_IFS
4694case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4695
4696
4697{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4698$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4699if test "${ac_cv_path_SED+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4701else
4702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4703 for ac_i in 1 2 3 4 5 6 7; do
4704 ac_script="$ac_script$as_nl$ac_script"
4705 done
4706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4707 $as_unset ac_script || ac_script=
4708 if test -z "$SED"; then
4709 ac_path_SED_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_prog in sed gsed; do
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4719 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4720# Check for GNU ac_path_SED and select it if it is found.
4721 # Check for GNU $ac_path_SED
4722case `"$ac_path_SED" --version 2>&1` in
4723*GNU*)
4724 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4725*)
4726 ac_count=0
4727 $as_echo_n 0123456789 >"conftest.in"
4728 while :
4729 do
4730 cat "conftest.in" "conftest.in" >"conftest.tmp"
4731 mv "conftest.tmp" "conftest.in"
4732 cp "conftest.in" "conftest.nl"
4733 $as_echo '' >> "conftest.nl"
4734 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736 ac_count=`expr $ac_count + 1`
4737 if test $ac_count -gt ${ac_path_SED_max-0}; then
4738 # Best one so far, save it but keep looking for a better one
4739 ac_cv_path_SED="$ac_path_SED"
4740 ac_path_SED_max=$ac_count
4741 fi
4742 # 10*(2^10) chars as input seems more than enough
4743 test $ac_count -gt 10 && break
4744 done
4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746esac
4747
4748 $ac_path_SED_found && break 3
4749 done
4750 done
4751done
4752IFS=$as_save_IFS
4753 if test -z "$ac_cv_path_SED"; then
4754 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4755$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4756 { (exit 1); exit 1; }; }
4757 fi
4758else
4759 ac_cv_path_SED=$SED
4760fi
4761
4762fi
4763{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4764$as_echo "$ac_cv_path_SED" >&6; }
4765 SED="$ac_cv_path_SED"
4766 rm -f conftest.sed
4767
4768test -z "$SED" && SED=sed
4769Xsed="$SED -e 1s/^X//"
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4782$as_echo_n "checking for fgrep... " >&6; }
4783if test "${ac_cv_path_FGREP+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4785else
4786 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4787 then ac_cv_path_FGREP="$GREP -F"
4788 else
4789 if test -z "$FGREP"; then
4790 ac_path_FGREP_found=false
4791 # Loop through the user's path and test for each of PROGNAME-LIST
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_prog in fgrep; do
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4800 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4801# Check for GNU ac_path_FGREP and select it if it is found.
4802 # Check for GNU $ac_path_FGREP
4803case `"$ac_path_FGREP" --version 2>&1` in
4804*GNU*)
4805 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4806*)
4807 ac_count=0
4808 $as_echo_n 0123456789 >"conftest.in"
4809 while :
4810 do
4811 cat "conftest.in" "conftest.in" >"conftest.tmp"
4812 mv "conftest.tmp" "conftest.in"
4813 cp "conftest.in" "conftest.nl"
4814 $as_echo 'FGREP' >> "conftest.nl"
4815 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4817 ac_count=`expr $ac_count + 1`
4818 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4819 # Best one so far, save it but keep looking for a better one
4820 ac_cv_path_FGREP="$ac_path_FGREP"
4821 ac_path_FGREP_max=$ac_count
4822 fi
4823 # 10*(2^10) chars as input seems more than enough
4824 test $ac_count -gt 10 && break
4825 done
4826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4827esac
4828
4829 $ac_path_FGREP_found && break 3
4830 done
4831 done
4832done
4833IFS=$as_save_IFS
4834 if test -z "$ac_cv_path_FGREP"; then
4835 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4836$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4837 { (exit 1); exit 1; }; }
4838 fi
4839else
4840 ac_cv_path_FGREP=$FGREP
4841fi
4842
4843 fi
4844fi
4845{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4846$as_echo "$ac_cv_path_FGREP" >&6; }
4847 FGREP="$ac_cv_path_FGREP"
4848
4849
4850test -z "$GREP" && GREP=grep
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870# Check whether --with-gnu-ld was given.
4871if test "${with_gnu_ld+set}" = set; then
4872 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4873else
4874 with_gnu_ld=no
4875fi
4876
4877ac_prog=ld
4878if test "$GCC" = yes; then
4879 # Check if gcc -print-prog-name=ld gives a path.
4880 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4881$as_echo_n "checking for ld used by $CC... " >&6; }
4882 case $host in
4883 *-*-mingw*)
4884 # gcc leaves a trailing carriage return which upsets mingw
4885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4886 *)
4887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4888 esac
4889 case $ac_prog in
4890 # Accept absolute paths.
4891 [\\/]* | ?:[\\/]*)
4892 re_direlt='/[^/][^/]*/\.\./'
4893 # Canonicalize the pathname of ld
4894 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4895 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4896 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4897 done
4898 test -z "$LD" && LD="$ac_prog"
4899 ;;
4900 "")
4901 # If it fails, then pretend we aren't using GCC.
4902 ac_prog=ld
4903 ;;
4904 *)
4905 # If it is relative, then search for the first ld in PATH.
4906 with_gnu_ld=unknown
4907 ;;
4908 esac
4909elif test "$with_gnu_ld" = yes; then
4910 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4911$as_echo_n "checking for GNU ld... " >&6; }
4912else
4913 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4914$as_echo_n "checking for non-GNU ld... " >&6; }
4915fi
4916if test "${lt_cv_path_LD+set}" = set; then
4917 $as_echo_n "(cached) " >&6
4918else
4919 if test -z "$LD"; then
4920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4921 for ac_dir in $PATH; do
4922 IFS="$lt_save_ifs"
4923 test -z "$ac_dir" && ac_dir=.
4924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4925 lt_cv_path_LD="$ac_dir/$ac_prog"
4926 # Check to see if the program is GNU ld. I'd rather use --version,
4927 # but apparently some variants of GNU ld only accept -v.
4928 # Break only if it was the GNU/non-GNU ld that we prefer.
4929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4930 *GNU* | *'with BFD'*)
4931 test "$with_gnu_ld" != no && break
4932 ;;
4933 *)
4934 test "$with_gnu_ld" != yes && break
4935 ;;
4936 esac
4937 fi
4938 done
4939 IFS="$lt_save_ifs"
4940else
4941 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4942fi
4943fi
4944
4945LD="$lt_cv_path_LD"
4946if test -n "$LD"; then
4947 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4948$as_echo "$LD" >&6; }
4949else
4950 { $as_echo "$as_me:$LINENO: result: no" >&5
4951$as_echo "no" >&6; }
4952fi
4953test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4954$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4955 { (exit 1); exit 1; }; }
4956{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4957$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4958if test "${lt_cv_prog_gnu_ld+set}" = set; then
4959 $as_echo_n "(cached) " >&6
4960else
4961 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4962case `$LD -v 2>&1 </dev/null` in
4963*GNU* | *'with BFD'*)
4964 lt_cv_prog_gnu_ld=yes
4965 ;;
4966*)
4967 lt_cv_prog_gnu_ld=no
4968 ;;
4969esac
4970fi
4971{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4972$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4973with_gnu_ld=$lt_cv_prog_gnu_ld
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4984$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4985if test "${lt_cv_path_NM+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -n "$NM"; then
4989 # Let the user override the test.
4990 lt_cv_path_NM="$NM"
4991else
4992 lt_nm_to_check="${ac_tool_prefix}nm"
4993 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4994 lt_nm_to_check="$lt_nm_to_check nm"
4995 fi
4996 for lt_tmp_nm in $lt_nm_to_check; do
4997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4998 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4999 IFS="$lt_save_ifs"
5000 test -z "$ac_dir" && ac_dir=.
5001 tmp_nm="$ac_dir/$lt_tmp_nm"
5002 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5003 # Check to see if the nm accepts a BSD-compat flag.
5004 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5005 # nm: unknown option "B" ignored
5006 # Tru64's nm complains that /dev/null is an invalid object file
5007 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5008 */dev/null* | *'Invalid file or object type'*)
5009 lt_cv_path_NM="$tmp_nm -B"
5010 break
5011 ;;
5012 *)
5013 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5014 */dev/null*)
5015 lt_cv_path_NM="$tmp_nm -p"
5016 break
5017 ;;
5018 *)
5019 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5020 continue # so that we can try to find one that supports BSD flags
5021 ;;
5022 esac
5023 ;;
5024 esac
5025 fi
5026 done
5027 IFS="$lt_save_ifs"
5028 done
5029 : ${lt_cv_path_NM=no}
5030fi
5031fi
5032{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5033$as_echo "$lt_cv_path_NM" >&6; }
5034if test "$lt_cv_path_NM" != "no"; then
5035 NM="$lt_cv_path_NM"
5036else
5037 # Didn't find any BSD compatible name lister, look for dumpbin.
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5040 do
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5047else
5048 if test -n "$DUMPBIN"; then
5049 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062done
5063done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068DUMPBIN=$ac_cv_prog_DUMPBIN
5069if test -n "$DUMPBIN"; then
5070 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5071$as_echo "$DUMPBIN" >&6; }
5072else
5073 { $as_echo "$as_me:$LINENO: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076
5077
5078 test -n "$DUMPBIN" && break
5079 done
5080fi
5081if test -z "$DUMPBIN"; then
5082 ac_ct_DUMPBIN=$DUMPBIN
5083 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5084do
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086set dummy $ac_prog; ac_word=$2
5087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5088$as_echo_n "checking for $ac_word... " >&6; }
5089if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5090 $as_echo_n "(cached) " >&6
5091else
5092 if test -n "$ac_ct_DUMPBIN"; then
5093 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5094else
5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096for as_dir in $PATH
5097do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106done
5107done
5108IFS=$as_save_IFS
5109
5110fi
5111fi
5112ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5113if test -n "$ac_ct_DUMPBIN"; then
5114 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5115$as_echo "$ac_ct_DUMPBIN" >&6; }
5116else
5117 { $as_echo "$as_me:$LINENO: result: no" >&5
5118$as_echo "no" >&6; }
5119fi
5120
5121
5122 test -n "$ac_ct_DUMPBIN" && break
5123done
5124
5125 if test "x$ac_ct_DUMPBIN" = x; then
5126 DUMPBIN=":"
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129yes:)
5130{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132ac_tool_warned=yes ;;
5133esac
5134 DUMPBIN=$ac_ct_DUMPBIN
5135 fi
5136fi
5137
5138
5139 if test "$DUMPBIN" != ":"; then
5140 NM="$DUMPBIN"
5141 fi
5142fi
5143test -z "$NM" && NM=nm
5144
5145
5146
5147
5148
5149
5150{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5151$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5152if test "${lt_cv_nm_interface+set}" = set; then
5153 $as_echo_n "(cached) " >&6
5154else
5155 lt_cv_nm_interface="BSD nm"
5156 echo "int some_variable = 0;" > conftest.$ac_ext
5157 (eval echo "\"\$as_me:5157: $ac_compile\"" >&5)
5158 (eval "$ac_compile" 2>conftest.err)
5159 cat conftest.err >&5
5160 (eval echo "\"\$as_me:5160: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5161 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5162 cat conftest.err >&5
5163 (eval echo "\"\$as_me:5163: output\"" >&5)
5164 cat conftest.out >&5
5165 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5166 lt_cv_nm_interface="MS dumpbin"
5167 fi
5168 rm -f conftest*
5169fi
5170{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5171$as_echo "$lt_cv_nm_interface" >&6; }
5172
5173{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5174$as_echo_n "checking whether ln -s works... " >&6; }
5175LN_S=$as_ln_s
5176if test "$LN_S" = "ln -s"; then
5177 { $as_echo "$as_me:$LINENO: result: yes" >&5
5178$as_echo "yes" >&6; }
5179else
5180 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5181$as_echo "no, using $LN_S" >&6; }
5182fi
5183
5184# find the maximum length of command line arguments
5185{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5186$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5187if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5188 $as_echo_n "(cached) " >&6
5189else
5190 i=0
5191 teststring="ABCD"
5192
5193 case $build_os in
5194 msdosdjgpp*)
5195 # On DJGPP, this test can blow up pretty badly due to problems in libc
5196 # (any single argument exceeding 2000 bytes causes a buffer overrun
5197 # during glob expansion). Even if it were fixed, the result of this
5198 # check would be larger than it should be.
5199 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5200 ;;
5201
5202 gnu*)
5203 # Under GNU Hurd, this test is not required because there is
5204 # no limit to the length of command line arguments.
5205 # Libtool will interpret -1 as no limit whatsoever
5206 lt_cv_sys_max_cmd_len=-1;
5207 ;;
5208
5209 cygwin* | mingw* | cegcc*)
5210 # On Win9x/ME, this test blows up -- it succeeds, but takes
5211 # about 5 minutes as the teststring grows exponentially.
5212 # Worse, since 9x/ME are not pre-emptively multitasking,
5213 # you end up with a "frozen" computer, even though with patience
5214 # the test eventually succeeds (with a max line length of 256k).
5215 # Instead, let's just punt: use the minimum linelength reported by
5216 # all of the supported platforms: 8192 (on NT/2K/XP).
5217 lt_cv_sys_max_cmd_len=8192;
5218 ;;
5219
5220 amigaos*)
5221 # On AmigaOS with pdksh, this test takes hours, literally.
5222 # So we just punt and use a minimum line length of 8192.
5223 lt_cv_sys_max_cmd_len=8192;
5224 ;;
5225
5226 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5227 # This has been around since 386BSD, at least. Likely further.
5228 if test -x /sbin/sysctl; then
5229 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5230 elif test -x /usr/sbin/sysctl; then
5231 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5232 else
5233 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5234 fi
5235 # And add a safety zone
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5238 ;;
5239
5240 interix*)
5241 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5242 lt_cv_sys_max_cmd_len=196608
5243 ;;
5244
5245 osf*)
5246 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5247 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5248 # nice to cause kernel panics so lets avoid the loop below.
5249 # First set a reasonable default.
5250 lt_cv_sys_max_cmd_len=16384
5251 #
5252 if test -x /sbin/sysconfig; then
5253 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5254 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5255 esac
5256 fi
5257 ;;
5258 sco3.2v5*)
5259 lt_cv_sys_max_cmd_len=102400
5260 ;;
5261 sysv5* | sco5v6* | sysv4.2uw2*)
5262 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5263 if test -n "$kargmax"; then
5264 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5265 else
5266 lt_cv_sys_max_cmd_len=32768
5267 fi
5268 ;;
5269 *)
5270 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5271 if test -n "$lt_cv_sys_max_cmd_len"; then
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5274 else
5275 # Make teststring a little bigger before we do anything with it.
5276 # a 1K string should be a reasonable start.
5277 for i in 1 2 3 4 5 6 7 8 ; do
5278 teststring=$teststring$teststring
5279 done
5280 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5281 # If test is not a shell built-in, we'll probably end up computing a
5282 # maximum length that is only half of the actual maximum length, but
5283 # we can't tell.
5284 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5285 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5286 test $i != 17 # 1/2 MB should be enough
5287 do
5288 i=`expr $i + 1`
5289 teststring=$teststring$teststring
5290 done
5291 # Only check the string length outside the loop.
5292 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5293 teststring=
5294 # Add a significant safety factor because C++ compilers can tack on
5295 # massive amounts of additional arguments before passing them to the
5296 # linker. It appears as though 1/2 is a usable value.
5297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5298 fi
5299 ;;
5300 esac
5301
5302fi
5303
5304if test -n $lt_cv_sys_max_cmd_len ; then
5305 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5306$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5307else
5308 { $as_echo "$as_me:$LINENO: result: none" >&5
5309$as_echo "none" >&6; }
5310fi
5311max_cmd_len=$lt_cv_sys_max_cmd_len
5312
5313
5314
5315
5316
5317
5318: ${CP="cp -f"}
5319: ${MV="mv -f"}
5320: ${RM="rm -f"}
5321
5322{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5323$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5324# Try some XSI features
5325xsi_shell=no
5326( _lt_dummy="a/b/c"
5327 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5328 = c,a/b,, \
5329 && eval 'test $(( 1 + 1 )) -eq 2 \
5330 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5331 && xsi_shell=yes
5332{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5333$as_echo "$xsi_shell" >&6; }
5334
5335
5336{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5337$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5338lt_shell_append=no
5339( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5340 >/dev/null 2>&1 \
5341 && lt_shell_append=yes
5342{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5343$as_echo "$lt_shell_append" >&6; }
5344
5345
5346if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5347 lt_unset=unset
5348else
5349 lt_unset=false
5350fi
5351
5352
5353
5354
5355
5356# test EBCDIC or ASCII
5357case `echo X|tr X '\101'` in
5358 A) # ASCII based system
5359 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5360 lt_SP2NL='tr \040 \012'
5361 lt_NL2SP='tr \015\012 \040\040'
5362 ;;
5363 *) # EBCDIC based system
5364 lt_SP2NL='tr \100 \n'
5365 lt_NL2SP='tr \r\n \100\100'
5366 ;;
5367esac
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5378$as_echo_n "checking for $LD option to reload object files... " >&6; }
5379if test "${lt_cv_ld_reload_flag+set}" = set; then
5380 $as_echo_n "(cached) " >&6
5381else
5382 lt_cv_ld_reload_flag='-r'
5383fi
5384{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5385$as_echo "$lt_cv_ld_reload_flag" >&6; }
5386reload_flag=$lt_cv_ld_reload_flag
5387case $reload_flag in
5388"" | " "*) ;;
5389*) reload_flag=" $reload_flag" ;;
5390esac
5391reload_cmds='$LD$reload_flag -o $output$reload_objs'
5392case $host_os in
5393 darwin*)
5394 if test "$GCC" = yes; then
5395 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5396 else
5397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398 fi
5399 ;;
5400esac
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}objdump; ac_word=$2
5413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5416 $as_echo_n "(cached) " >&6
5417else
5418 if test -n "$OBJDUMP"; then
5419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432done
5433done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438OBJDUMP=$ac_cv_prog_OBJDUMP
5439if test -n "$OBJDUMP"; then
5440 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5441$as_echo "$OBJDUMP" >&6; }
5442else
5443 { $as_echo "$as_me:$LINENO: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_prog_OBJDUMP"; then
5450 ac_ct_OBJDUMP=$OBJDUMP
5451 # Extract the first word of "objdump", so it can be a program name with args.
5452set dummy objdump; ac_word=$2
5453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457else
5458 if test -n "$ac_ct_OBJDUMP"; then
5459 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472done
5473done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5479if test -n "$ac_ct_OBJDUMP"; then
5480 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5481$as_echo "$ac_ct_OBJDUMP" >&6; }
5482else
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487 if test "x$ac_ct_OBJDUMP" = x; then
5488 OBJDUMP="false"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496 OBJDUMP=$ac_ct_OBJDUMP
5497 fi
5498else
5499 OBJDUMP="$ac_cv_prog_OBJDUMP"
5500fi
5501
5502test -z "$OBJDUMP" && OBJDUMP=objdump
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5513$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5514if test "${lt_cv_deplibs_check_method+set}" = set; then
5515 $as_echo_n "(cached) " >&6
5516else
5517 lt_cv_file_magic_cmd='$MAGIC_CMD'
5518lt_cv_file_magic_test_file=
5519lt_cv_deplibs_check_method='unknown'
5520# Need to set the preceding variable on all platforms that support
5521# interlibrary dependencies.
5522# 'none' -- dependencies not supported.
5523# `unknown' -- same as none, but documents that we really don't know.
5524# 'pass_all' -- all dependencies passed with no checks.
5525# 'test_compile' -- check by making test program.
5526# 'file_magic [[regex]]' -- check by looking for files in library path
5527# which responds to the $file_magic_cmd with a given extended regex.
5528# If you have `file' or equivalent on your system and you're not sure
5529# whether `pass_all' will *always* work, you probably want this one.
5530
5531case $host_os in
5532aix[4-9]*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535
5536beos*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540bsdi[45]*)
5541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5542 lt_cv_file_magic_cmd='/usr/bin/file -L'
5543 lt_cv_file_magic_test_file=/shlib/libc.so
5544 ;;
5545
5546cygwin*)
5547 # func_win32_libid is a shell function defined in ltmain.sh
5548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549 lt_cv_file_magic_cmd='func_win32_libid'
5550 ;;
5551
5552mingw* | pw32*)
5553 # Base MSYS/MinGW do not provide the 'file' command needed by
5554 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5555 # unless we find 'file', for example because we are cross-compiling.
5556 if ( file / ) >/dev/null 2>&1; then
5557 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5558 lt_cv_file_magic_cmd='func_win32_libid'
5559 else
5560 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5561 lt_cv_file_magic_cmd='$OBJDUMP -f'
5562 fi
5563 ;;
5564
5565cegcc)
5566 # use the weaker test based on 'objdump'. See mingw*.
5567 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5568 lt_cv_file_magic_cmd='$OBJDUMP -f'
5569 ;;
5570
5571darwin* | rhapsody*)
5572 lt_cv_deplibs_check_method=pass_all
5573 ;;
5574
5575freebsd* | dragonfly*)
5576 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5577 case $host_cpu in
5578 i*86 )
5579 # Not sure whether the presence of OpenBSD here was a mistake.
5580 # Let's accept both of them until this is cleared up.
5581 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582 lt_cv_file_magic_cmd=/usr/bin/file
5583 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584 ;;
5585 esac
5586 else
5587 lt_cv_deplibs_check_method=pass_all
5588 fi
5589 ;;
5590
5591gnu*)
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595hpux10.20* | hpux11*)
5596 lt_cv_file_magic_cmd=/usr/bin/file
5597 case $host_cpu in
5598 ia64*)
5599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5600 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5601 ;;
5602 hppa*64*)
5603 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]'
5604 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5605 ;;
5606 *)
5607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5608 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5609 ;;
5610 esac
5611 ;;
5612
5613interix[3-9]*)
5614 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5616 ;;
5617
5618irix5* | irix6* | nonstopux*)
5619 case $LD in
5620 *-32|*"-32 ") libmagic=32-bit;;
5621 *-n32|*"-n32 ") libmagic=N32;;
5622 *-64|*"-64 ") libmagic=64-bit;;
5623 *) libmagic=never-match;;
5624 esac
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628# This must be Linux ELF.
5629linux* | k*bsd*-gnu)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
5632
5633netbsd* | netbsdelf*-gnu)
5634 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636 else
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5638 fi
5639 ;;
5640
5641newos6*)
5642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5645 ;;
5646
5647*nto* | *qnx*)
5648 lt_cv_deplibs_check_method=pass_all
5649 ;;
5650
5651openbsd*)
5652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5654 else
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5656 fi
5657 ;;
5658
5659osf3* | osf4* | osf5*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662
5663rdos*)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666
5667solaris*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674
5675sysv4 | sysv4.3*)
5676 case $host_vendor in
5677 motorola)
5678 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]'
5679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5680 ;;
5681 ncr)
5682 lt_cv_deplibs_check_method=pass_all
5683 ;;
5684 sequent)
5685 lt_cv_file_magic_cmd='/bin/file'
5686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5687 ;;
5688 sni)
5689 lt_cv_file_magic_cmd='/bin/file'
5690 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5691 lt_cv_file_magic_test_file=/lib/libc.so
5692 ;;
5693 siemens)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
5696 pc)
5697 lt_cv_deplibs_check_method=pass_all
5698 ;;
5699 esac
5700 ;;
5701
5702tpf*)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705esac
5706
5707fi
5708{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5709$as_echo "$lt_cv_deplibs_check_method" >&6; }
5710file_magic_cmd=$lt_cv_file_magic_cmd
5711deplibs_check_method=$lt_cv_deplibs_check_method
5712test -z "$deplibs_check_method" && deplibs_check_method=unknown
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5727set dummy ${ac_tool_prefix}ar; ac_word=$2
5728{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5729$as_echo_n "checking for $ac_word... " >&6; }
5730if test "${ac_cv_prog_AR+set}" = set; then
5731 $as_echo_n "(cached) " >&6
5732else
5733 if test -n "$AR"; then
5734 ac_cv_prog_AR="$AR" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_AR="${ac_tool_prefix}ar"
5744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5746 fi
5747done
5748done
5749IFS=$as_save_IFS
5750
5751fi
5752fi
5753AR=$ac_cv_prog_AR
5754if test -n "$AR"; then
5755 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5756$as_echo "$AR" >&6; }
5757else
5758 { $as_echo "$as_me:$LINENO: result: no" >&5
5759$as_echo "no" >&6; }
5760fi
5761
5762
5763fi
5764if test -z "$ac_cv_prog_AR"; then
5765 ac_ct_AR=$AR
5766 # Extract the first word of "ar", so it can be a program name with args.
5767set dummy ar; ac_word=$2
5768{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5771 $as_echo_n "(cached) " >&6
5772else
5773 if test -n "$ac_ct_AR"; then
5774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_ac_ct_AR="ar"
5784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793ac_ct_AR=$ac_cv_prog_ac_ct_AR
5794if test -n "$ac_ct_AR"; then
5795 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5796$as_echo "$ac_ct_AR" >&6; }
5797else
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802 if test "x$ac_ct_AR" = x; then
5803 AR="false"
5804 else
5805 case $cross_compiling:$ac_tool_warned in
5806yes:)
5807{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809ac_tool_warned=yes ;;
5810esac
5811 AR=$ac_ct_AR
5812 fi
5813else
5814 AR="$ac_cv_prog_AR"
5815fi
5816
5817test -z "$AR" && AR=ar
5818test -z "$AR_FLAGS" && AR_FLAGS=cru
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830if test -n "$ac_tool_prefix"; then
5831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5832set dummy ${ac_tool_prefix}strip; ac_word=$2
5833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
5835if test "${ac_cv_prog_STRIP+set}" = set; then
5836 $as_echo_n "(cached) " >&6
5837else
5838 if test -n "$STRIP"; then
5839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5849 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
5858STRIP=$ac_cv_prog_STRIP
5859if test -n "$STRIP"; then
5860 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5861$as_echo "$STRIP" >&6; }
5862else
5863 { $as_echo "$as_me:$LINENO: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
5867
5868fi
5869if test -z "$ac_cv_prog_STRIP"; then
5870 ac_ct_STRIP=$STRIP
5871 # Extract the first word of "strip", so it can be a program name with args.
5872set dummy strip; ac_word=$2
5873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5874$as_echo_n "checking for $ac_word... " >&6; }
5875if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5877else
5878 if test -n "$ac_ct_STRIP"; then
5879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_ac_ct_STRIP="strip"
5889 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893done
5894IFS=$as_save_IFS
5895
5896fi
5897fi
5898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5899if test -n "$ac_ct_STRIP"; then
5900 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5901$as_echo "$ac_ct_STRIP" >&6; }
5902else
5903 { $as_echo "$as_me:$LINENO: result: no" >&5
5904$as_echo "no" >&6; }
5905fi
5906
5907 if test "x$ac_ct_STRIP" = x; then
5908 STRIP=":"
5909 else
5910 case $cross_compiling:$ac_tool_warned in
5911yes:)
5912{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5914ac_tool_warned=yes ;;
5915esac
5916 STRIP=$ac_ct_STRIP
5917 fi
5918else
5919 STRIP="$ac_cv_prog_STRIP"
5920fi
5921
5922test -z "$STRIP" && STRIP=:
5923
5924
5925
5926
5927
5928
5929if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5931set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5933$as_echo_n "checking for $ac_word... " >&6; }
5934if test "${ac_cv_prog_RANLIB+set}" = set; then
5935 $as_echo_n "(cached) " >&6
5936else
5937 if test -n "$RANLIB"; then
5938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951done
5952done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957RANLIB=$ac_cv_prog_RANLIB
5958if test -n "$RANLIB"; then
5959 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5960$as_echo "$RANLIB" >&6; }
5961else
5962 { $as_echo "$as_me:$LINENO: result: no" >&5
5963$as_echo "no" >&6; }
5964fi
5965
5966
5967fi
5968if test -z "$ac_cv_prog_RANLIB"; then
5969 ac_ct_RANLIB=$RANLIB
5970 # Extract the first word of "ranlib", so it can be a program name with args.
5971set dummy ranlib; ac_word=$2
5972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$ac_ct_RANLIB"; then
5978 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5987 ac_cv_prog_ac_ct_RANLIB="ranlib"
5988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5998if test -n "$ac_ct_RANLIB"; then
5999 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6000$as_echo "$ac_ct_RANLIB" >&6; }
6001else
6002 { $as_echo "$as_me:$LINENO: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006 if test "x$ac_ct_RANLIB" = x; then
6007 RANLIB=":"
6008 else
6009 case $cross_compiling:$ac_tool_warned in
6010yes:)
6011{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015 RANLIB=$ac_ct_RANLIB
6016 fi
6017else
6018 RANLIB="$ac_cv_prog_RANLIB"
6019fi
6020
6021test -z "$RANLIB" && RANLIB=:
6022
6023
6024
6025
6026
6027
6028# Determine commands to create old-style static archives.
6029old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6030old_postinstall_cmds='chmod 644 $oldlib'
6031old_postuninstall_cmds=
6032
6033if test -n "$RANLIB"; then
6034 case $host_os in
6035 openbsd*)
6036 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6037 ;;
6038 *)
6039 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6040 ;;
6041 esac
6042 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6043fi
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078# If no C compiler was specified, use CC.
6079LTCC=${LTCC-"$CC"}
6080
6081# If no C compiler flags were specified, use CFLAGS.
6082LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6083
6084# Allow CC to be a program name with arguments.
6085compiler=$CC
6086
6087
6088# Check for command to grab the raw symbol name followed by C symbol from nm.
6089{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6090$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6091if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6092 $as_echo_n "(cached) " >&6
6093else
6094
6095# These are sane defaults that work on at least a few old systems.
6096# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6097
6098# Character class describing NM global symbol codes.
6099symcode='[BCDEGRST]'
6100
6101# Regexp to match symbols that can be accessed directly from C.
6102sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6103
6104# Define system-specific variables.
6105case $host_os in
6106aix*)
6107 symcode='[BCDT]'
6108 ;;
6109cygwin* | mingw* | pw32* | cegcc*)
6110 symcode='[ABCDGISTW]'
6111 ;;
6112hpux*)
6113 if test "$host_cpu" = ia64; then
6114 symcode='[ABCDEGRST]'
6115 fi
6116 ;;
6117irix* | nonstopux*)
6118 symcode='[BCDEGRST]'
6119 ;;
6120osf*)
6121 symcode='[BCDEGQRST]'
6122 ;;
6123solaris*)
6124 symcode='[BDRT]'
6125 ;;
6126sco3.2v5*)
6127 symcode='[DT]'
6128 ;;
6129sysv4.2uw2*)
6130 symcode='[DT]'
6131 ;;
6132sysv5* | sco5v6* | unixware* | OpenUNIX*)
6133 symcode='[ABDT]'
6134 ;;
6135sysv4)
6136 symcode='[DFNSTU]'
6137 ;;
6138esac
6139
6140# If we're using GNU nm, then use its standard symbol codes.
6141case `$NM -V 2>&1` in
6142*GNU* | *'with BFD'*)
6143 symcode='[ABCDGIRSTW]' ;;
6144esac
6145
6146# Transform an extracted symbol line into a proper C declaration.
6147# Some systems (esp. on ia64) link data and code symbols differently,
6148# so use this general approach.
6149lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6150
6151# Transform an extracted symbol line into symbol name and symbol address
6152lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6153lt_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'"
6154
6155# Handle CRLF in mingw tool chain
6156opt_cr=
6157case $build_os in
6158mingw*)
6159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6160 ;;
6161esac
6162
6163# Try without a prefix underscore, then with it.
6164for ac_symprfx in "" "_"; do
6165
6166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6167 symxfrm="\\1 $ac_symprfx\\2 \\2"
6168
6169 # Write the raw and C identifiers.
6170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6171 # Fake it for dumpbin and say T for any non-static function
6172 # and D for any global variable.
6173 # Also find C++ and __fastcall symbols from MSVC++,
6174 # which start with @ or ?.
6175 lt_cv_sys_global_symbol_pipe="$AWK '"\
6176" {last_section=section; section=\$ 3};"\
6177" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6178" \$ 0!~/External *\|/{next};"\
6179" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6180" {if(hide[section]) next};"\
6181" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6182" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6183" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6184" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6185" ' prfx=^$ac_symprfx"
6186 else
6187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6188 fi
6189
6190 # Check to see that the pipe works correctly.
6191 pipe_works=no
6192
6193 rm -f conftest*
6194 cat > conftest.$ac_ext <<_LT_EOF
6195#ifdef __cplusplus
6196extern "C" {
6197#endif
6198char nm_test_var;
6199void nm_test_func(void);
6200void nm_test_func(void){}
6201#ifdef __cplusplus
6202}
6203#endif
6204int main(){nm_test_var='a';nm_test_func();return(0);}
6205_LT_EOF
6206
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6209 ac_status=$?
6210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; then
6212 # Now try to grab the symbols.
6213 nlist=conftest.nm
6214 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6215 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6216 ac_status=$?
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && test -s "$nlist"; then
6219 # Try sorting and uniquifying the output.
6220 if sort "$nlist" | uniq > "$nlist"T; then
6221 mv -f "$nlist"T "$nlist"
6222 else
6223 rm -f "$nlist"T
6224 fi
6225
6226 # Make sure that we snagged all the symbols we need.
6227 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6228 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6229 cat <<_LT_EOF > conftest.$ac_ext
6230#ifdef __cplusplus
6231extern "C" {
6232#endif
6233
6234_LT_EOF
6235 # Now generate the symbol file.
6236 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6237
6238 cat <<_LT_EOF >> conftest.$ac_ext
6239
6240/* The mapping between symbol names and symbols. */
6241const struct {
6242 const char *name;
6243 void *address;
6244}
6245lt__PROGRAM__LTX_preloaded_symbols[] =
6246{
6247 { "@PROGRAM@", (void *) 0 },
6248_LT_EOF
6249 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6250 cat <<\_LT_EOF >> conftest.$ac_ext
6251 {0, (void *) 0}
6252};
6253
6254/* This works around a problem in FreeBSD linker */
6255#ifdef FREEBSD_WORKAROUND
6256static const void *lt_preloaded_setup() {
6257 return lt__PROGRAM__LTX_preloaded_symbols;
6258}
6259#endif
6260
6261#ifdef __cplusplus
6262}
6263#endif
6264_LT_EOF
6265 # Now try linking the two files.
6266 mv conftest.$ac_objext conftstm.$ac_objext
6267 lt_save_LIBS="$LIBS"
6268 lt_save_CFLAGS="$CFLAGS"
6269 LIBS="conftstm.$ac_objext"
6270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>&5
6273 ac_status=$?
6274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6276 pipe_works=yes
6277 fi
6278 LIBS="$lt_save_LIBS"
6279 CFLAGS="$lt_save_CFLAGS"
6280 else
6281 echo "cannot find nm_test_func in $nlist" >&5
6282 fi
6283 else
6284 echo "cannot find nm_test_var in $nlist" >&5
6285 fi
6286 else
6287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6288 fi
6289 else
6290 echo "$progname: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 fi
6293 rm -rf conftest* conftst*
6294
6295 # Do not use the global_symbol_pipe unless it works.
6296 if test "$pipe_works" = yes; then
6297 break
6298 else
6299 lt_cv_sys_global_symbol_pipe=
6300 fi
6301done
6302
6303fi
6304
6305if test -z "$lt_cv_sys_global_symbol_pipe"; then
6306 lt_cv_sys_global_symbol_to_cdecl=
6307fi
6308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6309 { $as_echo "$as_me:$LINENO: result: failed" >&5
6310$as_echo "failed" >&6; }
6311else
6312 { $as_echo "$as_me:$LINENO: result: ok" >&5
6313$as_echo "ok" >&6; }
6314fi
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337# Check whether --enable-libtool-lock was given.
6338if test "${enable_libtool_lock+set}" = set; then
6339 enableval=$enable_libtool_lock;
6340fi
6341
6342test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6343
6344# Some flags need to be propagated to the compiler or linker for good
6345# libtool support.
6346case $host in
6347ia64-*-hpux*)
6348 # Find out which ABI we are using.
6349 echo 'int i;' > conftest.$ac_ext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6351 (eval $ac_compile) 2>&5
6352 ac_status=$?
6353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; then
6355 case `/usr/bin/file conftest.$ac_objext` in
6356 *ELF-32*)
6357 HPUX_IA64_MODE="32"
6358 ;;
6359 *ELF-64*)
6360 HPUX_IA64_MODE="64"
6361 ;;
6362 esac
6363 fi
6364 rm -rf conftest*
6365 ;;
6366*-*-irix6*)
6367 # Find out which ABI we are using.
6368 echo '#line 6368 "configure"' > conftest.$ac_ext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6370 (eval $ac_compile) 2>&5
6371 ac_status=$?
6372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; then
6374 if test "$lt_cv_prog_gnu_ld" = yes; then
6375 case `/usr/bin/file conftest.$ac_objext` in
6376 *32-bit*)
6377 LD="${LD-ld} -melf32bsmip"
6378 ;;
6379 *N32*)
6380 LD="${LD-ld} -melf32bmipn32"
6381 ;;
6382 *64-bit*)
6383 LD="${LD-ld} -melf64bmip"
6384 ;;
6385 esac
6386 else
6387 case `/usr/bin/file conftest.$ac_objext` in
6388 *32-bit*)
6389 LD="${LD-ld} -32"
6390 ;;
6391 *N32*)
6392 LD="${LD-ld} -n32"
6393 ;;
6394 *64-bit*)
6395 LD="${LD-ld} -64"
6396 ;;
6397 esac
6398 fi
6399 fi
6400 rm -rf conftest*
6401 ;;
6402
6403x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6404s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6405 # Find out which ABI we are using.
6406 echo 'int i;' > conftest.$ac_ext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; then
6412 case `/usr/bin/file conftest.o` in
6413 *32-bit*)
6414 case $host in
6415 x86_64-*kfreebsd*-gnu)
6416 LD="${LD-ld} -m elf_i386_fbsd"
6417 ;;
6418 x86_64-*linux*)
6419 LD="${LD-ld} -m elf_i386"
6420 ;;
6421 ppc64-*linux*|powerpc64-*linux*)
6422 LD="${LD-ld} -m elf32ppclinux"
6423 ;;
6424 s390x-*linux*)
6425 LD="${LD-ld} -m elf_s390"
6426 ;;
6427 sparc64-*linux*)
6428 LD="${LD-ld} -m elf32_sparc"
6429 ;;
6430 esac
6431 ;;
6432 *64-bit*)
6433 case $host in
6434 x86_64-*kfreebsd*-gnu)
6435 LD="${LD-ld} -m elf_x86_64_fbsd"
6436 ;;
6437 x86_64-*linux*)
6438 LD="${LD-ld} -m elf_x86_64"
6439 ;;
6440 ppc*-*linux*|powerpc*-*linux*)
6441 LD="${LD-ld} -m elf64ppc"
6442 ;;
6443 s390*-*linux*|s390*-*tpf*)
6444 LD="${LD-ld} -m elf64_s390"
6445 ;;
6446 sparc*-*linux*)
6447 LD="${LD-ld} -m elf64_sparc"
6448 ;;
6449 esac
6450 ;;
6451 esac
6452 fi
6453 rm -rf conftest*
6454 ;;
6455
6456*-*-sco3.2v5*)
6457 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6458 SAVE_CFLAGS="$CFLAGS"
6459 CFLAGS="$CFLAGS -belf"
6460 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6461$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6462if test "${lt_cv_cc_needs_belf+set}" = set; then
6463 $as_echo_n "(cached) " >&6
6464else
6465 ac_ext=c
6466ac_cpp='$CPP $CPPFLAGS'
6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471 cat >conftest.$ac_ext <<_ACEOF
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477
6478int
6479main ()
6480{
6481
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486rm -f conftest.$ac_objext conftest$ac_exeext
6487if { (ac_try="$ac_link"
6488case "(($ac_try" in
6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490 *) ac_try_echo=$ac_try;;
6491esac
6492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6493$as_echo "$ac_try_echo") >&5
6494 (eval "$ac_link") 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } && {
6501 test -z "$ac_c_werror_flag" ||
6502 test ! -s conftest.err
6503 } && test -s conftest$ac_exeext && {
6504 test "$cross_compiling" = yes ||
6505 $as_test_x conftest$ac_exeext
6506 }; then
6507 lt_cv_cc_needs_belf=yes
6508else
6509 $as_echo "$as_me: failed program was:" >&5
6510sed 's/^/| /' conftest.$ac_ext >&5
6511
6512 lt_cv_cc_needs_belf=no
6513fi
6514
6515rm -rf conftest.dSYM
6516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6517 conftest$ac_exeext conftest.$ac_ext
6518 ac_ext=c
6519ac_cpp='$CPP $CPPFLAGS'
6520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522ac_compiler_gnu=$ac_cv_c_compiler_gnu
6523
6524fi
6525{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6526$as_echo "$lt_cv_cc_needs_belf" >&6; }
6527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6529 CFLAGS="$SAVE_CFLAGS"
6530 fi
6531 ;;
6532sparc*-*solaris*)
6533 # Find out which ABI we are using.
6534 echo 'int i;' > conftest.$ac_ext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; then
6540 case `/usr/bin/file conftest.o` in
6541 *64-bit*)
6542 case $lt_cv_prog_gnu_ld in
6543 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6544 *)
6545 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6546 LD="${LD-ld} -64"
6547 fi
6548 ;;
6549 esac
6550 ;;
6551 esac
6552 fi
6553 rm -rf conftest*
6554 ;;
6555esac
6556
6557need_locks="$enable_libtool_lock"
6558
6559
6560 case $host_os in
6561 rhapsody* | darwin*)
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6564set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6569else
6570 if test -n "$DSYMUTIL"; then
6571 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584done
6585done
6586IFS=$as_save_IFS
6587
6588fi
6589fi
6590DSYMUTIL=$ac_cv_prog_DSYMUTIL
6591if test -n "$DSYMUTIL"; then
6592 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6593$as_echo "$DSYMUTIL" >&6; }
6594else
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598
6599
6600fi
6601if test -z "$ac_cv_prog_DSYMUTIL"; then
6602 ac_ct_DSYMUTIL=$DSYMUTIL
6603 # Extract the first word of "dsymutil", so it can be a program name with args.
6604set dummy dsymutil; ac_word=$2
6605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -n "$ac_ct_DSYMUTIL"; then
6611 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625done
6626IFS=$as_save_IFS
6627
6628fi
6629fi
6630ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6631if test -n "$ac_ct_DSYMUTIL"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6633$as_echo "$ac_ct_DSYMUTIL" >&6; }
6634else
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636$as_echo "no" >&6; }
6637fi
6638
6639 if test "x$ac_ct_DSYMUTIL" = x; then
6640 DSYMUTIL=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643yes:)
6644{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646ac_tool_warned=yes ;;
6647esac
6648 DSYMUTIL=$ac_ct_DSYMUTIL
6649 fi
6650else
6651 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6652fi
6653
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6656set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6657{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if test "${ac_cv_prog_NMEDIT+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6661else
6662 if test -n "$NMEDIT"; then
6663 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677done
6678IFS=$as_save_IFS
6679
6680fi
6681fi
6682NMEDIT=$ac_cv_prog_NMEDIT
6683if test -n "$NMEDIT"; then
6684 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6685$as_echo "$NMEDIT" >&6; }
6686else
6687 { $as_echo "$as_me:$LINENO: result: no" >&5
6688$as_echo "no" >&6; }
6689fi
6690
6691
6692fi
6693if test -z "$ac_cv_prog_NMEDIT"; then
6694 ac_ct_NMEDIT=$NMEDIT
6695 # Extract the first word of "nmedit", so it can be a program name with args.
6696set dummy nmedit; ac_word=$2
6697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6700 $as_echo_n "(cached) " >&6
6701else
6702 if test -n "$ac_ct_NMEDIT"; then
6703 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6723if test -n "$ac_ct_NMEDIT"; then
6724 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6725$as_echo "$ac_ct_NMEDIT" >&6; }
6726else
6727 { $as_echo "$as_me:$LINENO: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731 if test "x$ac_ct_NMEDIT" = x; then
6732 NMEDIT=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735yes:)
6736{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738ac_tool_warned=yes ;;
6739esac
6740 NMEDIT=$ac_ct_NMEDIT
6741 fi
6742else
6743 NMEDIT="$ac_cv_prog_NMEDIT"
6744fi
6745
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6748set dummy ${ac_tool_prefix}lipo; ac_word=$2
6749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if test "${ac_cv_prog_LIPO+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6753else
6754 if test -n "$LIPO"; then
6755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774LIPO=$ac_cv_prog_LIPO
6775if test -n "$LIPO"; then
6776 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6777$as_echo "$LIPO" >&6; }
6778else
6779 { $as_echo "$as_me:$LINENO: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784fi
6785if test -z "$ac_cv_prog_LIPO"; then
6786 ac_ct_LIPO=$LIPO
6787 # Extract the first word of "lipo", so it can be a program name with args.
6788set dummy lipo; ac_word=$2
6789{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6792 $as_echo_n "(cached) " >&6
6793else
6794 if test -n "$ac_ct_LIPO"; then
6795 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_LIPO="lipo"
6805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6815if test -n "$ac_ct_LIPO"; then
6816 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6817$as_echo "$ac_ct_LIPO" >&6; }
6818else
6819 { $as_echo "$as_me:$LINENO: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823 if test "x$ac_ct_LIPO" = x; then
6824 LIPO=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827yes:)
6828{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830ac_tool_warned=yes ;;
6831esac
6832 LIPO=$ac_ct_LIPO
6833 fi
6834else
6835 LIPO="$ac_cv_prog_LIPO"
6836fi
6837
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6840set dummy ${ac_tool_prefix}otool; ac_word=$2
6841{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if test "${ac_cv_prog_OTOOL+set}" = set; then
6844 $as_echo_n "(cached) " >&6
6845else
6846 if test -n "$OTOOL"; then
6847 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866OTOOL=$ac_cv_prog_OTOOL
6867if test -n "$OTOOL"; then
6868 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6869$as_echo "$OTOOL" >&6; }
6870else
6871 { $as_echo "$as_me:$LINENO: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875
6876fi
6877if test -z "$ac_cv_prog_OTOOL"; then
6878 ac_ct_OTOOL=$OTOOL
6879 # Extract the first word of "otool", so it can be a program name with args.
6880set dummy otool; ac_word=$2
6881{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6884 $as_echo_n "(cached) " >&6
6885else
6886 if test -n "$ac_ct_OTOOL"; then
6887 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_ac_ct_OTOOL="otool"
6897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6907if test -n "$ac_ct_OTOOL"; then
6908 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6909$as_echo "$ac_ct_OTOOL" >&6; }
6910else
6911 { $as_echo "$as_me:$LINENO: result: no" >&5
6912$as_echo "no" >&6; }
6913fi
6914
6915 if test "x$ac_ct_OTOOL" = x; then
6916 OTOOL=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924 OTOOL=$ac_ct_OTOOL
6925 fi
6926else
6927 OTOOL="$ac_cv_prog_OTOOL"
6928fi
6929
6930 if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6932set dummy ${ac_tool_prefix}otool64; ac_word=$2
6933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if test "${ac_cv_prog_OTOOL64+set}" = set; then
6936 $as_echo_n "(cached) " >&6
6937else
6938 if test -n "$OTOOL64"; then
6939 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6951 fi
6952done
6953done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958OTOOL64=$ac_cv_prog_OTOOL64
6959if test -n "$OTOOL64"; then
6960 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6961$as_echo "$OTOOL64" >&6; }
6962else
6963 { $as_echo "$as_me:$LINENO: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967
6968fi
6969if test -z "$ac_cv_prog_OTOOL64"; then
6970 ac_ct_OTOOL64=$OTOOL64
6971 # Extract the first word of "otool64", so it can be a program name with args.
6972set dummy otool64; ac_word=$2
6973{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
6975if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6976 $as_echo_n "(cached) " >&6
6977else
6978 if test -n "$ac_ct_OTOOL64"; then
6979 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_ac_ct_OTOOL64="otool64"
6989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992done
6993done
6994IFS=$as_save_IFS
6995
6996fi
6997fi
6998ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6999if test -n "$ac_ct_OTOOL64"; then
7000 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7001$as_echo "$ac_ct_OTOOL64" >&6; }
7002else
7003 { $as_echo "$as_me:$LINENO: result: no" >&5
7004$as_echo "no" >&6; }
7005fi
7006
7007 if test "x$ac_ct_OTOOL64" = x; then
7008 OTOOL64=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011yes:)
7012{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014ac_tool_warned=yes ;;
7015esac
7016 OTOOL64=$ac_ct_OTOOL64
7017 fi
7018else
7019 OTOOL64="$ac_cv_prog_OTOOL64"
7020fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7049$as_echo_n "checking for -single_module linker flag... " >&6; }
7050if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7051 $as_echo_n "(cached) " >&6
7052else
7053 lt_cv_apple_cc_single_mod=no
7054 if test -z "${LT_MULTI_MODULE}"; then
7055 # By default we will add the -single_module flag. You can override
7056 # by either setting the environment variable LT_MULTI_MODULE
7057 # non-empty at configure time, or by adding -multi_module to the
7058 # link flags.
7059 rm -rf libconftest.dylib*
7060 echo "int foo(void){return 1;}" > conftest.c
7061 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062-dynamiclib -Wl,-single_module conftest.c" >&5
7063 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7064 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7065 _lt_result=$?
7066 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7067 lt_cv_apple_cc_single_mod=yes
7068 else
7069 cat conftest.err >&5
7070 fi
7071 rm -rf libconftest.dylib*
7072 rm -f conftest.*
7073 fi
7074fi
7075{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7076$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7077 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7078$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7079if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081else
7082 lt_cv_ld_exported_symbols_list=no
7083 save_LDFLAGS=$LDFLAGS
7084 echo "_main" > conftest.sym
7085 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7086 cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h. */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h. */
7092
7093int
7094main ()
7095{
7096
7097 ;
7098 return 0;
7099}
7100_ACEOF
7101rm -f conftest.$ac_objext conftest$ac_exeext
7102if { (ac_try="$ac_link"
7103case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106esac
7107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7108$as_echo "$ac_try_echo") >&5
7109 (eval "$ac_link") 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest$ac_exeext && {
7119 test "$cross_compiling" = yes ||
7120 $as_test_x conftest$ac_exeext
7121 }; then
7122 lt_cv_ld_exported_symbols_list=yes
7123else
7124 $as_echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127 lt_cv_ld_exported_symbols_list=no
7128fi
7129
7130rm -rf conftest.dSYM
7131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7132 conftest$ac_exeext conftest.$ac_ext
7133 LDFLAGS="$save_LDFLAGS"
7134
7135fi
7136{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7137$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7138 case $host_os in
7139 rhapsody* | darwin1.[012])
7140 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7141 darwin1.*)
7142 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7143 darwin*) # darwin 5.x on
7144 # if running on 10.5 or later, the deployment target defaults
7145 # to the OS version, if on x86, and 10.4, the deployment
7146 # target defaults to 10.4. Don't you love it?
7147 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7148 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7149 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7150 10.[012]*)
7151 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7152 10.*)
7153 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7154 esac
7155 ;;
7156 esac
7157 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7158 _lt_dar_single_mod='$single_module'
7159 fi
7160 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7161 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7162 else
7163 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7164 fi
7165 if test "$DSYMUTIL" != ":"; then
7166 _lt_dsymutil='~$DSYMUTIL $lib || :'
7167 else
7168 _lt_dsymutil=
7169 fi
7170 ;;
7171 esac
7172
7173
7174for ac_header in dlfcn.h
7175do
7176as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7177{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7178$as_echo_n "checking for $ac_header... " >&6; }
7179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7180 $as_echo_n "(cached) " >&6
7181else
7182 cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h. */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h. */
7188$ac_includes_default
7189
7190#include <$ac_header>
7191_ACEOF
7192rm -f conftest.$ac_objext
7193if { (ac_try="$ac_compile"
7194case "(($ac_try" in
7195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196 *) ac_try_echo=$ac_try;;
7197esac
7198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199$as_echo "$ac_try_echo") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 eval "$as_ac_Header=yes"
7211else
7212 $as_echo "$as_me: failed program was:" >&5
7213sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 eval "$as_ac_Header=no"
7216fi
7217
7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219fi
7220ac_res=`eval 'as_val=${'$as_ac_Header'}
7221 $as_echo "$as_val"'`
7222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7223$as_echo "$ac_res" >&6; }
7224as_val=`eval 'as_val=${'$as_ac_Header'}
7225 $as_echo "$as_val"'`
7226 if test "x$as_val" = x""yes; then
7227 cat >>confdefs.h <<_ACEOF
7228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7229_ACEOF
7230
7231fi
7232
7233done
7234
7235
7236
7237# Set options
7238
7239
7240
7241 enable_dlopen=no
7242
7243
7244 enable_win32_dll=no
7245
7246
7247 # Check whether --enable-shared was given.
7248if test "${enable_shared+set}" = set; then
7249 enableval=$enable_shared; p=${PACKAGE-default}
7250 case $enableval in
7251 yes) enable_shared=yes ;;
7252 no) enable_shared=no ;;
7253 *)
7254 enable_shared=no
7255 # Look at the argument we got. We use all the common list separators.
7256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7257 for pkg in $enableval; do
7258 IFS="$lt_save_ifs"
7259 if test "X$pkg" = "X$p"; then
7260 enable_shared=yes
7261 fi
7262 done
7263 IFS="$lt_save_ifs"
7264 ;;
7265 esac
7266else
7267 enable_shared=yes
7268fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 # Check whether --enable-static was given.
7279if test "${enable_static+set}" = set; then
7280 enableval=$enable_static; p=${PACKAGE-default}
7281 case $enableval in
7282 yes) enable_static=yes ;;
7283 no) enable_static=no ;;
7284 *)
7285 enable_static=no
7286 # Look at the argument we got. We use all the common list separators.
7287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7288 for pkg in $enableval; do
7289 IFS="$lt_save_ifs"
7290 if test "X$pkg" = "X$p"; then
7291 enable_static=yes
7292 fi
7293 done
7294 IFS="$lt_save_ifs"
7295 ;;
7296 esac
7297else
7298 enable_static=yes
7299fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310# Check whether --with-pic was given.
7311if test "${with_pic+set}" = set; then
7312 withval=$with_pic; pic_mode="$withval"
7313else
7314 pic_mode=default
7315fi
7316
7317
7318test -z "$pic_mode" && pic_mode=default
7319
7320
7321
7322
7323
7324
7325
7326 # Check whether --enable-fast-install was given.
7327if test "${enable_fast_install+set}" = set; then
7328 enableval=$enable_fast_install; p=${PACKAGE-default}
7329 case $enableval in
7330 yes) enable_fast_install=yes ;;
7331 no) enable_fast_install=no ;;
7332 *)
7333 enable_fast_install=no
7334 # Look at the argument we got. We use all the common list separators.
7335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7336 for pkg in $enableval; do
7337 IFS="$lt_save_ifs"
7338 if test "X$pkg" = "X$p"; then
7339 enable_fast_install=yes
7340 fi
7341 done
7342 IFS="$lt_save_ifs"
7343 ;;
7344 esac
7345else
7346 enable_fast_install=yes
7347fi
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359# This can be used to rebuild libtool when needed
7360LIBTOOL_DEPS="$ltmain"
7361
7362# Always use our own libtool.
7363LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389test -z "$LN_S" && LN_S="ln -s"
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404if test -n "${ZSH_VERSION+set}" ; then
7405 setopt NO_GLOB_SUBST
7406fi
7407
7408{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7409$as_echo_n "checking for objdir... " >&6; }
7410if test "${lt_cv_objdir+set}" = set; then
7411 $as_echo_n "(cached) " >&6
7412else
7413 rm -f .libs 2>/dev/null
7414mkdir .libs 2>/dev/null
7415if test -d .libs; then
7416 lt_cv_objdir=.libs
7417else
7418 # MS-DOS does not allow filenames that begin with a dot.
7419 lt_cv_objdir=_libs
7420fi
7421rmdir .libs 2>/dev/null
7422fi
7423{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7424$as_echo "$lt_cv_objdir" >&6; }
7425objdir=$lt_cv_objdir
7426
7427
7428
7429
7430
7431cat >>confdefs.h <<_ACEOF
7432#define LT_OBJDIR "$lt_cv_objdir/"
7433_ACEOF
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451case $host_os in
7452aix3*)
7453 # AIX sometimes has problems with the GCC collect2 program. For some
7454 # reason, if we set the COLLECT_NAMES environment variable, the problems
7455 # vanish in a puff of smoke.
7456 if test "X${COLLECT_NAMES+set}" != Xset; then
7457 COLLECT_NAMES=
7458 export COLLECT_NAMES
7459 fi
7460 ;;
7461esac
7462
7463# Sed substitution that helps us do robust quoting. It backslashifies
7464# metacharacters that are still active within double-quoted strings.
7465sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7466
7467# Same as above, but do not quote variable references.
7468double_quote_subst='s/\(["`\\]\)/\\\1/g'
7469
7470# Sed substitution to delay expansion of an escaped shell variable in a
7471# double_quote_subst'ed string.
7472delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7473
7474# Sed substitution to delay expansion of an escaped single quote.
7475delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7476
7477# Sed substitution to avoid accidental globbing in evaled expressions
7478no_glob_subst='s/\*/\\\*/g'
7479
7480# Global variables:
7481ofile=libtool
7482can_build_shared=yes
7483
7484# All known linkers require a `.a' archive for static linking (except MSVC,
7485# which needs '.lib').
7486libext=a
7487
7488with_gnu_ld="$lt_cv_prog_gnu_ld"
7489
7490old_CC="$CC"
7491old_CFLAGS="$CFLAGS"
7492
7493# Set sane defaults for various variables
7494test -z "$CC" && CC=cc
7495test -z "$LTCC" && LTCC=$CC
7496test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7497test -z "$LD" && LD=ld
7498test -z "$ac_objext" && ac_objext=o
7499
7500for cc_temp in $compiler""; do
7501 case $cc_temp in
7502 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7503 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7504 \-*) ;;
7505 *) break;;
7506 esac
7507done
7508cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7509
7510
7511# Only perform the check for file, if the check method requires it
7512test -z "$MAGIC_CMD" && MAGIC_CMD=file
7513case $deplibs_check_method in
7514file_magic*)
7515 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7516 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7517$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7518if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7520else
7521 case $MAGIC_CMD in
7522[\\/*] | ?:[\\/]*)
7523 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7524 ;;
7525*)
7526 lt_save_MAGIC_CMD="$MAGIC_CMD"
7527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7528 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7529 for ac_dir in $ac_dummy; do
7530 IFS="$lt_save_ifs"
7531 test -z "$ac_dir" && ac_dir=.
7532 if test -f $ac_dir/${ac_tool_prefix}file; then
7533 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7534 if test -n "$file_magic_test_file"; then
7535 case $deplibs_check_method in
7536 "file_magic "*)
7537 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7539 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7540 $EGREP "$file_magic_regex" > /dev/null; then
7541 :
7542 else
7543 cat <<_LT_EOF 1>&2
7544
7545*** Warning: the command libtool uses to detect shared libraries,
7546*** $file_magic_cmd, produces output that libtool cannot recognize.
7547*** The result is that libtool may fail to recognize shared libraries
7548*** as such. This will affect the creation of libtool libraries that
7549*** depend on shared libraries, but programs linked with such libtool
7550*** libraries will work regardless of this problem. Nevertheless, you
7551*** may want to report the problem to your system manager and/or to
7552*** bug-libtool@gnu.org
7553
7554_LT_EOF
7555 fi ;;
7556 esac
7557 fi
7558 break
7559 fi
7560 done
7561 IFS="$lt_save_ifs"
7562 MAGIC_CMD="$lt_save_MAGIC_CMD"
7563 ;;
7564esac
7565fi
7566
7567MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568if test -n "$MAGIC_CMD"; then
7569 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7570$as_echo "$MAGIC_CMD" >&6; }
7571else
7572 { $as_echo "$as_me:$LINENO: result: no" >&5
7573$as_echo "no" >&6; }
7574fi
7575
7576
7577
7578
7579
7580if test -z "$lt_cv_path_MAGIC_CMD"; then
7581 if test -n "$ac_tool_prefix"; then
7582 { $as_echo "$as_me:$LINENO: checking for file" >&5
7583$as_echo_n "checking for file... " >&6; }
7584if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7586else
7587 case $MAGIC_CMD in
7588[\\/*] | ?:[\\/]*)
7589 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7590 ;;
7591*)
7592 lt_save_MAGIC_CMD="$MAGIC_CMD"
7593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7594 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7595 for ac_dir in $ac_dummy; do
7596 IFS="$lt_save_ifs"
7597 test -z "$ac_dir" && ac_dir=.
7598 if test -f $ac_dir/file; then
7599 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7600 if test -n "$file_magic_test_file"; then
7601 case $deplibs_check_method in
7602 "file_magic "*)
7603 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7606 $EGREP "$file_magic_regex" > /dev/null; then
7607 :
7608 else
7609 cat <<_LT_EOF 1>&2
7610
7611*** Warning: the command libtool uses to detect shared libraries,
7612*** $file_magic_cmd, produces output that libtool cannot recognize.
7613*** The result is that libtool may fail to recognize shared libraries
7614*** as such. This will affect the creation of libtool libraries that
7615*** depend on shared libraries, but programs linked with such libtool
7616*** libraries will work regardless of this problem. Nevertheless, you
7617*** may want to report the problem to your system manager and/or to
7618*** bug-libtool@gnu.org
7619
7620_LT_EOF
7621 fi ;;
7622 esac
7623 fi
7624 break
7625 fi
7626 done
7627 IFS="$lt_save_ifs"
7628 MAGIC_CMD="$lt_save_MAGIC_CMD"
7629 ;;
7630esac
7631fi
7632
7633MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634if test -n "$MAGIC_CMD"; then
7635 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7636$as_echo "$MAGIC_CMD" >&6; }
7637else
7638 { $as_echo "$as_me:$LINENO: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
7642
7643 else
7644 MAGIC_CMD=:
7645 fi
7646fi
7647
7648 fi
7649 ;;
7650esac
7651
7652# Use C for the default configuration in the libtool script
7653
7654lt_save_CC="$CC"
7655ac_ext=c
7656ac_cpp='$CPP $CPPFLAGS'
7657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7659ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660
7661
7662# Source file extension for C test sources.
7663ac_ext=c
7664
7665# Object file extension for compiled C test sources.
7666objext=o
7667objext=$objext
7668
7669# Code to be used in simple compile tests
7670lt_simple_compile_test_code="int some_variable = 0;"
7671
7672# Code to be used in simple link tests
7673lt_simple_link_test_code='int main(){return(0);}'
7674
7675
7676
7677
7678
7679
7680
7681# If no C compiler was specified, use CC.
7682LTCC=${LTCC-"$CC"}
7683
7684# If no C compiler flags were specified, use CFLAGS.
7685LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7686
7687# Allow CC to be a program name with arguments.
7688compiler=$CC
7689
7690# Save the default compiler, since it gets overwritten when the other
7691# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7692compiler_DEFAULT=$CC
7693
7694# save warnings/boilerplate of simple test code
7695ac_outfile=conftest.$ac_objext
7696echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7698_lt_compiler_boilerplate=`cat conftest.err`
7699$RM conftest*
7700
7701ac_outfile=conftest.$ac_objext
7702echo "$lt_simple_link_test_code" >conftest.$ac_ext
7703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704_lt_linker_boilerplate=`cat conftest.err`
7705$RM -r conftest*
7706
7707
7708## CAVEAT EMPTOR:
7709## There is no encapsulation within the following macros, do not change
7710## the running order or otherwise move them around unless you know exactly
7711## what you are doing...
7712if test -n "$compiler"; then
7713
7714lt_prog_compiler_no_builtin_flag=
7715
7716if test "$GCC" = yes; then
7717 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7718
7719 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7721if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722 $as_echo_n "(cached) " >&6
7723else
7724 lt_cv_prog_compiler_rtti_exceptions=no
7725 ac_outfile=conftest.$ac_objext
7726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727 lt_compiler_flag="-fno-rtti -fno-exceptions"
7728 # Insert the option either (1) after the last *FLAGS variable, or
7729 # (2) before a word containing "conftest.", or (3) at the end.
7730 # Note that $ac_compile itself does not contain backslashes and begins
7731 # with a dollar sign (not a hyphen), so the echo should work correctly.
7732 # The option is referenced via a variable to avoid confusing sed.
7733 lt_compile=`echo "$ac_compile" | $SED \
7734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736 -e 's:$: $lt_compiler_flag:'`
7737 (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738 (eval "$lt_compile" 2>conftest.err)
7739 ac_status=$?
7740 cat conftest.err >&5
7741 echo "$as_me:7741: \$? = $ac_status" >&5
7742 if (exit $ac_status) && test -s "$ac_outfile"; then
7743 # The compiler can only warn and ignore the option if not recognized
7744 # So say no if there are warnings other than the usual output.
7745 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748 lt_cv_prog_compiler_rtti_exceptions=yes
7749 fi
7750 fi
7751 $RM conftest*
7752
7753fi
7754{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7755$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7756
7757if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7758 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7759else
7760 :
7761fi
7762
7763fi
7764
7765
7766
7767
7768
7769
7770 lt_prog_compiler_wl=
7771lt_prog_compiler_pic=
7772lt_prog_compiler_static=
7773
7774{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7775$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7776
7777 if test "$GCC" = yes; then
7778 lt_prog_compiler_wl='-Wl,'
7779 lt_prog_compiler_static='-static'
7780
7781 case $host_os in
7782 aix*)
7783 # All AIX code is PIC.
7784 if test "$host_cpu" = ia64; then
7785 # AIX 5 now supports IA64 processor
7786 lt_prog_compiler_static='-Bstatic'
7787 fi
7788 ;;
7789
7790 amigaos*)
7791 case $host_cpu in
7792 powerpc)
7793 # see comment about AmigaOS4 .so support
7794 lt_prog_compiler_pic='-fPIC'
7795 ;;
7796 m68k)
7797 # FIXME: we need at least 68020 code to build shared libraries, but
7798 # adding the `-m68020' flag to GCC prevents building anything better,
7799 # like `-m68040'.
7800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7801 ;;
7802 esac
7803 ;;
7804
7805 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7806 # PIC is the default for these OSes.
7807 ;;
7808
7809 mingw* | cygwin* | pw32* | os2* | cegcc*)
7810 # This hack is so that the source file can tell whether it is being
7811 # built for inclusion in a dll (and should export symbols for example).
7812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7813 # (--disable-auto-import) libraries
7814 lt_prog_compiler_pic='-DDLL_EXPORT'
7815 ;;
7816
7817 darwin* | rhapsody*)
7818 # PIC is the default on this platform
7819 # Common symbols not allowed in MH_DYLIB files
7820 lt_prog_compiler_pic='-fno-common'
7821 ;;
7822
7823 hpux*)
7824 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7825 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7826 # sets the default TLS model and affects inlining.
7827 case $host_cpu in
7828 hppa*64*)
7829 # +Z the default
7830 ;;
7831 *)
7832 lt_prog_compiler_pic='-fPIC'
7833 ;;
7834 esac
7835 ;;
7836
7837 interix[3-9]*)
7838 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7839 # Instead, we relocate shared libraries at runtime.
7840 ;;
7841
7842 msdosdjgpp*)
7843 # Just because we use GCC doesn't mean we suddenly get shared libraries
7844 # on systems that don't support them.
7845 lt_prog_compiler_can_build_shared=no
7846 enable_shared=no
7847 ;;
7848
7849 *nto* | *qnx*)
7850 # QNX uses GNU C++, but need to define -shared option too, otherwise
7851 # it will coredump.
7852 lt_prog_compiler_pic='-fPIC -shared'
7853 ;;
7854
7855 sysv4*MP*)
7856 if test -d /usr/nec; then
7857 lt_prog_compiler_pic=-Kconform_pic
7858 fi
7859 ;;
7860
7861 *)
7862 lt_prog_compiler_pic='-fPIC'
7863 ;;
7864 esac
7865 else
7866 # PORTME Check for flag to pass linker flags through the system compiler.
7867 case $host_os in
7868 aix*)
7869 lt_prog_compiler_wl='-Wl,'
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 now supports IA64 processor
7872 lt_prog_compiler_static='-Bstatic'
7873 else
7874 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7875 fi
7876 ;;
7877
7878 mingw* | cygwin* | pw32* | os2* | cegcc*)
7879 # This hack is so that the source file can tell whether it is being
7880 # built for inclusion in a dll (and should export symbols for example).
7881 lt_prog_compiler_pic='-DDLL_EXPORT'
7882 ;;
7883
7884 hpux9* | hpux10* | hpux11*)
7885 lt_prog_compiler_wl='-Wl,'
7886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7887 # not for PA HP-UX.
7888 case $host_cpu in
7889 hppa*64*|ia64*)
7890 # +Z the default
7891 ;;
7892 *)
7893 lt_prog_compiler_pic='+Z'
7894 ;;
7895 esac
7896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7897 lt_prog_compiler_static='${wl}-a ${wl}archive'
7898 ;;
7899
7900 irix5* | irix6* | nonstopux*)
7901 lt_prog_compiler_wl='-Wl,'
7902 # PIC (with -KPIC) is the default.
7903 lt_prog_compiler_static='-non_shared'
7904 ;;
7905
7906 linux* | k*bsd*-gnu)
7907 case $cc_basename in
7908 # old Intel for x86_64 which still supported -KPIC.
7909 ecc*)
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-static'
7913 ;;
7914 # icc used to be incompatible with GCC.
7915 # ICC 10 doesn't accept -KPIC any more.
7916 icc* | ifort*)
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-fPIC'
7919 lt_prog_compiler_static='-static'
7920 ;;
7921 # Lahey Fortran 8.1.
7922 lf95*)
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='--shared'
7925 lt_prog_compiler_static='--static'
7926 ;;
7927 pgcc* | pgf77* | pgf90* | pgf95*)
7928 # Portland Group compilers (*not* the Pentium gcc compiler,
7929 # which looks to be a dead project)
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_pic='-fpic'
7932 lt_prog_compiler_static='-Bstatic'
7933 ;;
7934 ccc*)
7935 lt_prog_compiler_wl='-Wl,'
7936 # All Alpha code is PIC.
7937 lt_prog_compiler_static='-non_shared'
7938 ;;
7939 xl*)
7940 # IBM XL C 8.0/Fortran 10.1 on PPC
7941 lt_prog_compiler_wl='-Wl,'
7942 lt_prog_compiler_pic='-qpic'
7943 lt_prog_compiler_static='-qstaticlink'
7944 ;;
7945 *)
7946 case `$CC -V 2>&1 | sed 5q` in
7947 *Sun\ C*)
7948 # Sun C 5.9
7949 lt_prog_compiler_pic='-KPIC'
7950 lt_prog_compiler_static='-Bstatic'
7951 lt_prog_compiler_wl='-Wl,'
7952 ;;
7953 *Sun\ F*)
7954 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl=''
7958 ;;
7959 esac
7960 ;;
7961 esac
7962 ;;
7963
7964 newsos6)
7965 lt_prog_compiler_pic='-KPIC'
7966 lt_prog_compiler_static='-Bstatic'
7967 ;;
7968
7969 *nto* | *qnx*)
7970 # QNX uses GNU C++, but need to define -shared option too, otherwise
7971 # it will coredump.
7972 lt_prog_compiler_pic='-fPIC -shared'
7973 ;;
7974
7975 osf3* | osf4* | osf5*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # All OSF/1 code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7979 ;;
7980
7981 rdos*)
7982 lt_prog_compiler_static='-non_shared'
7983 ;;
7984
7985 solaris*)
7986 lt_prog_compiler_pic='-KPIC'
7987 lt_prog_compiler_static='-Bstatic'
7988 case $cc_basename in
7989 f77* | f90* | f95*)
7990 lt_prog_compiler_wl='-Qoption ld ';;
7991 *)
7992 lt_prog_compiler_wl='-Wl,';;
7993 esac
7994 ;;
7995
7996 sunos4*)
7997 lt_prog_compiler_wl='-Qoption ld '
7998 lt_prog_compiler_pic='-PIC'
7999 lt_prog_compiler_static='-Bstatic'
8000 ;;
8001
8002 sysv4 | sysv4.2uw2* | sysv4.3*)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='-KPIC'
8005 lt_prog_compiler_static='-Bstatic'
8006 ;;
8007
8008 sysv4*MP*)
8009 if test -d /usr/nec ;then
8010 lt_prog_compiler_pic='-Kconform_pic'
8011 lt_prog_compiler_static='-Bstatic'
8012 fi
8013 ;;
8014
8015 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='-KPIC'
8018 lt_prog_compiler_static='-Bstatic'
8019 ;;
8020
8021 unicos*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_can_build_shared=no
8024 ;;
8025
8026 uts4*)
8027 lt_prog_compiler_pic='-pic'
8028 lt_prog_compiler_static='-Bstatic'
8029 ;;
8030
8031 *)
8032 lt_prog_compiler_can_build_shared=no
8033 ;;
8034 esac
8035 fi
8036
8037case $host_os in
8038 # For platforms which do not support PIC, -DPIC is meaningless:
8039 *djgpp*)
8040 lt_prog_compiler_pic=
8041 ;;
8042 *)
8043 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8044 ;;
8045esac
8046{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8047$as_echo "$lt_prog_compiler_pic" >&6; }
8048
8049
8050
8051
8052
8053
8054#
8055# Check to make sure the PIC flag actually works.
8056#
8057if test -n "$lt_prog_compiler_pic"; then
8058 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8059$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8060if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8061 $as_echo_n "(cached) " >&6
8062else
8063 lt_cv_prog_compiler_pic_works=no
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8066 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8067 # Insert the option either (1) after the last *FLAGS variable, or
8068 # (2) before a word containing "conftest.", or (3) at the end.
8069 # Note that $ac_compile itself does not contain backslashes and begins
8070 # with a dollar sign (not a hyphen), so the echo should work correctly.
8071 # The option is referenced via a variable to avoid confusing sed.
8072 lt_compile=`echo "$ac_compile" | $SED \
8073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8075 -e 's:$: $lt_compiler_flag:'`
8076 (eval echo "\"\$as_me:8076: $lt_compile\"" >&5)
8077 (eval "$lt_compile" 2>conftest.err)
8078 ac_status=$?
8079 cat conftest.err >&5
8080 echo "$as_me:8080: \$? = $ac_status" >&5
8081 if (exit $ac_status) && test -s "$ac_outfile"; then
8082 # The compiler can only warn and ignore the option if not recognized
8083 # So say no if there are warnings other than the usual output.
8084 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8087 lt_cv_prog_compiler_pic_works=yes
8088 fi
8089 fi
8090 $RM conftest*
8091
8092fi
8093{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8094$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8095
8096if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8097 case $lt_prog_compiler_pic in
8098 "" | " "*) ;;
8099 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8100 esac
8101else
8102 lt_prog_compiler_pic=
8103 lt_prog_compiler_can_build_shared=no
8104fi
8105
8106fi
8107
8108
8109
8110
8111
8112
8113#
8114# Check to make sure the static flag actually works.
8115#
8116wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8117{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8118$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8119if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8120 $as_echo_n "(cached) " >&6
8121else
8122 lt_cv_prog_compiler_static_works=no
8123 save_LDFLAGS="$LDFLAGS"
8124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8127 # The linker can only warn and ignore the option if not recognized
8128 # So say no if there are warnings
8129 if test -s conftest.err; then
8130 # Append any errors to the config.log.
8131 cat conftest.err 1>&5
8132 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134 if diff conftest.exp conftest.er2 >/dev/null; then
8135 lt_cv_prog_compiler_static_works=yes
8136 fi
8137 else
8138 lt_cv_prog_compiler_static_works=yes
8139 fi
8140 fi
8141 $RM -r conftest*
8142 LDFLAGS="$save_LDFLAGS"
8143
8144fi
8145{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8146$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8147
8148if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8149 :
8150else
8151 lt_prog_compiler_static=
8152fi
8153
8154
8155
8156
8157
8158
8159
8160 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8161$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8162if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8164else
8165 lt_cv_prog_compiler_c_o=no
8166 $RM -r conftest 2>/dev/null
8167 mkdir conftest
8168 cd conftest
8169 mkdir out
8170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8171
8172 lt_compiler_flag="-o out/conftest2.$ac_objext"
8173 # Insert the option either (1) after the last *FLAGS variable, or
8174 # (2) before a word containing "conftest.", or (3) at the end.
8175 # Note that $ac_compile itself does not contain backslashes and begins
8176 # with a dollar sign (not a hyphen), so the echo should work correctly.
8177 lt_compile=`echo "$ac_compile" | $SED \
8178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180 -e 's:$: $lt_compiler_flag:'`
8181 (eval echo "\"\$as_me:8181: $lt_compile\"" >&5)
8182 (eval "$lt_compile" 2>out/conftest.err)
8183 ac_status=$?
8184 cat out/conftest.err >&5
8185 echo "$as_me:8185: \$? = $ac_status" >&5
8186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8187 then
8188 # The compiler can only warn and ignore the option if not recognized
8189 # So say no if there are warnings
8190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8193 lt_cv_prog_compiler_c_o=yes
8194 fi
8195 fi
8196 chmod u+w . 2>&5
8197 $RM conftest*
8198 # SGI C++ compiler will create directory out/ii_files/ for
8199 # template instantiation
8200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8201 $RM out/* && rmdir out
8202 cd ..
8203 $RM -r conftest
8204 $RM conftest*
8205
8206fi
8207{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8208$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8209
8210
8211
8212
8213
8214
8215 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8216$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8217if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8218 $as_echo_n "(cached) " >&6
8219else
8220 lt_cv_prog_compiler_c_o=no
8221 $RM -r conftest 2>/dev/null
8222 mkdir conftest
8223 cd conftest
8224 mkdir out
8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226
8227 lt_compiler_flag="-o out/conftest2.$ac_objext"
8228 # Insert the option either (1) after the last *FLAGS variable, or
8229 # (2) before a word containing "conftest.", or (3) at the end.
8230 # Note that $ac_compile itself does not contain backslashes and begins
8231 # with a dollar sign (not a hyphen), so the echo should work correctly.
8232 lt_compile=`echo "$ac_compile" | $SED \
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235 -e 's:$: $lt_compiler_flag:'`
8236 (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
8237 (eval "$lt_compile" 2>out/conftest.err)
8238 ac_status=$?
8239 cat out/conftest.err >&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8242 then
8243 # The compiler can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8246 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8247 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8248 lt_cv_prog_compiler_c_o=yes
8249 fi
8250 fi
8251 chmod u+w . 2>&5
8252 $RM conftest*
8253 # SGI C++ compiler will create directory out/ii_files/ for
8254 # template instantiation
8255 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8256 $RM out/* && rmdir out
8257 cd ..
8258 $RM -r conftest
8259 $RM conftest*
8260
8261fi
8262{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8263$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8264
8265
8266
8267
8268hard_links="nottested"
8269if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8270 # do not overwrite the value of need_locks provided by the user
8271 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8272$as_echo_n "checking if we can lock with hard links... " >&6; }
8273 hard_links=yes
8274 $RM conftest*
8275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8276 touch conftest.a
8277 ln conftest.a conftest.b 2>&5 || hard_links=no
8278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8279 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8280$as_echo "$hard_links" >&6; }
8281 if test "$hard_links" = no; then
8282 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8283$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8284 need_locks=warn
8285 fi
8286else
8287 need_locks=no
8288fi
8289
8290
8291
8292
8293
8294
8295 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8296$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8297
8298 runpath_var=
8299 allow_undefined_flag=
8300 always_export_symbols=no
8301 archive_cmds=
8302 archive_expsym_cmds=
8303 compiler_needs_object=no
8304 enable_shared_with_static_runtimes=no
8305 export_dynamic_flag_spec=
8306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8307 hardcode_automatic=no
8308 hardcode_direct=no
8309 hardcode_direct_absolute=no
8310 hardcode_libdir_flag_spec=
8311 hardcode_libdir_flag_spec_ld=
8312 hardcode_libdir_separator=
8313 hardcode_minus_L=no
8314 hardcode_shlibpath_var=unsupported
8315 inherit_rpath=no
8316 link_all_deplibs=unknown
8317 module_cmds=
8318 module_expsym_cmds=
8319 old_archive_from_new_cmds=
8320 old_archive_from_expsyms_cmds=
8321 thread_safe_flag_spec=
8322 whole_archive_flag_spec=
8323 # include_expsyms should be a list of space-separated symbols to be *always*
8324 # included in the symbol list
8325 include_expsyms=
8326 # exclude_expsyms can be an extended regexp of symbols to exclude
8327 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8328 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8329 # as well as any symbol that contains `d'.
8330 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8331 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8332 # platforms (ab)use it in PIC code, but their linkers get confused if
8333 # the symbol is explicitly referenced. Since portable code cannot
8334 # rely on this symbol name, it's probably fine to never include it in
8335 # preloaded symbol tables.
8336 # Exclude shared library initialization/finalization symbols.
8337 extract_expsyms_cmds=
8338
8339 case $host_os in
8340 cygwin* | mingw* | pw32* | cegcc*)
8341 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8342 # When not using gcc, we currently assume that we are using
8343 # Microsoft Visual C++.
8344 if test "$GCC" != yes; then
8345 with_gnu_ld=no
8346 fi
8347 ;;
8348 interix*)
8349 # we just hope/assume this is gcc and not c89 (= MSVC++)
8350 with_gnu_ld=yes
8351 ;;
8352 openbsd*)
8353 with_gnu_ld=no
8354 ;;
8355 esac
8356
8357 ld_shlibs=yes
8358 if test "$with_gnu_ld" = yes; then
8359 # If archive_cmds runs LD, not CC, wlarc should be empty
8360 wlarc='${wl}'
8361
8362 # Set some defaults for GNU ld with shared library support. These
8363 # are reset later if shared libraries are not supported. Putting them
8364 # here allows them to be overridden if necessary.
8365 runpath_var=LD_RUN_PATH
8366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8367 export_dynamic_flag_spec='${wl}--export-dynamic'
8368 # ancient GNU ld didn't support --whole-archive et. al.
8369 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8370 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8371 else
8372 whole_archive_flag_spec=
8373 fi
8374 supports_anon_versioning=no
8375 case `$LD -v 2>&1` in
8376 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8377 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8378 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8379 *\ 2.11.*) ;; # other 2.11 versions
8380 *) supports_anon_versioning=yes ;;
8381 esac
8382
8383 # See if GNU ld supports shared libraries.
8384 case $host_os in
8385 aix[3-9]*)
8386 # On AIX/PPC, the GNU linker is very broken
8387 if test "$host_cpu" != ia64; then
8388 ld_shlibs=no
8389 cat <<_LT_EOF 1>&2
8390
8391*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8392*** to be unable to reliably create shared libraries on AIX.
8393*** Therefore, libtool is disabling shared libraries support. If you
8394*** really care for shared libraries, you may want to modify your PATH
8395*** so that a non-GNU linker is found, and then restart.
8396
8397_LT_EOF
8398 fi
8399 ;;
8400
8401 amigaos*)
8402 case $host_cpu in
8403 powerpc)
8404 # see comment about AmigaOS4 .so support
8405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8406 archive_expsym_cmds=''
8407 ;;
8408 m68k)
8409 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)'
8410 hardcode_libdir_flag_spec='-L$libdir'
8411 hardcode_minus_L=yes
8412 ;;
8413 esac
8414 ;;
8415
8416 beos*)
8417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8418 allow_undefined_flag=unsupported
8419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8420 # support --undefined. This deserves some investigation. FIXME
8421 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 else
8423 ld_shlibs=no
8424 fi
8425 ;;
8426
8427 cygwin* | mingw* | pw32* | cegcc*)
8428 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8429 # as there is no search path for DLLs.
8430 hardcode_libdir_flag_spec='-L$libdir'
8431 allow_undefined_flag=unsupported
8432 always_export_symbols=no
8433 enable_shared_with_static_runtimes=yes
8434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8435
8436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8438 # If the export-symbols file already is a .def file (1st line
8439 # is EXPORTS), use it as is; otherwise, prepend...
8440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8441 cp $export_symbols $output_objdir/$soname.def;
8442 else
8443 echo EXPORTS > $output_objdir/$soname.def;
8444 cat $export_symbols >> $output_objdir/$soname.def;
8445 fi~
8446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8447 else
8448 ld_shlibs=no
8449 fi
8450 ;;
8451
8452 interix[3-9]*)
8453 hardcode_direct=no
8454 hardcode_shlibpath_var=no
8455 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8456 export_dynamic_flag_spec='${wl}-E'
8457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8458 # Instead, shared libraries are loaded at an image base (0x10000000 by
8459 # default) and relocated if they conflict, which is a slow very memory
8460 # consuming and fragmenting process. To avoid this, we pick a random,
8461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8462 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8464 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'
8465 ;;
8466
8467 gnu* | linux* | tpf* | k*bsd*-gnu)
8468 tmp_diet=no
8469 if test "$host_os" = linux-dietlibc; then
8470 case $cc_basename in
8471 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8472 esac
8473 fi
8474 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8475 && test "$tmp_diet" = no
8476 then
8477 tmp_addflag=
8478 tmp_sharedflag='-shared'
8479 case $cc_basename,$host_cpu in
8480 pgcc*) # Portland Group C compiler
8481 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'
8482 tmp_addflag=' $pic_flag'
8483 ;;
8484 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8485 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'
8486 tmp_addflag=' $pic_flag -Mnomain' ;;
8487 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8488 tmp_addflag=' -i_dynamic' ;;
8489 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8490 tmp_addflag=' -i_dynamic -nofor_main' ;;
8491 ifc* | ifort*) # Intel Fortran compiler
8492 tmp_addflag=' -nofor_main' ;;
8493 lf95*) # Lahey Fortran 8.1
8494 whole_archive_flag_spec=
8495 tmp_sharedflag='--shared' ;;
8496 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8497 tmp_sharedflag='-qmkshrobj'
8498 tmp_addflag= ;;
8499 esac
8500 case `$CC -V 2>&1 | sed 5q` in
8501 *Sun\ C*) # Sun C 5.9
8502 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'
8503 compiler_needs_object=yes
8504 tmp_sharedflag='-G' ;;
8505 *Sun\ F*) # Sun Fortran 8.3
8506 tmp_sharedflag='-G' ;;
8507 esac
8508 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509
8510 if test "x$supports_anon_versioning" = xyes; then
8511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8513 echo "local: *; };" >> $output_objdir/$libname.ver~
8514 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8515 fi
8516
8517 case $cc_basename in
8518 xlf*)
8519 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8520 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8521 hardcode_libdir_flag_spec=
8522 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8523 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8524 if test "x$supports_anon_versioning" = xyes; then
8525 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8527 echo "local: *; };" >> $output_objdir/$libname.ver~
8528 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8529 fi
8530 ;;
8531 esac
8532 else
8533 ld_shlibs=no
8534 fi
8535 ;;
8536
8537 netbsd* | netbsdelf*-gnu)
8538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8540 wlarc=
8541 else
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8544 fi
8545 ;;
8546
8547 solaris*)
8548 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8549 ld_shlibs=no
8550 cat <<_LT_EOF 1>&2
8551
8552*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8553*** create shared libraries on Solaris systems. Therefore, libtool
8554*** is disabling shared libraries support. We urge you to upgrade GNU
8555*** binutils to release 2.9.1 or newer. Another option is to modify
8556*** your PATH or compiler configuration so that the native linker is
8557*** used, and then restart.
8558
8559_LT_EOF
8560 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8563 else
8564 ld_shlibs=no
8565 fi
8566 ;;
8567
8568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8569 case `$LD -v 2>&1` in
8570 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8571 ld_shlibs=no
8572 cat <<_LT_EOF 1>&2
8573
8574*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8575*** reliably create shared libraries on SCO systems. Therefore, libtool
8576*** is disabling shared libraries support. We urge you to upgrade GNU
8577*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8578*** your PATH or compiler configuration so that the native linker is
8579*** used, and then restart.
8580
8581_LT_EOF
8582 ;;
8583 *)
8584 # For security reasons, it is highly recommended that you always
8585 # use absolute paths for naming shared libraries, and exclude the
8586 # DT_RUNPATH tag from executables and libraries. But doing so
8587 # requires that you compile everything twice, which is a pain.
8588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8592 else
8593 ld_shlibs=no
8594 fi
8595 ;;
8596 esac
8597 ;;
8598
8599 sunos4*)
8600 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8601 wlarc=
8602 hardcode_direct=yes
8603 hardcode_shlibpath_var=no
8604 ;;
8605
8606 *)
8607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8610 else
8611 ld_shlibs=no
8612 fi
8613 ;;
8614 esac
8615
8616 if test "$ld_shlibs" = no; then
8617 runpath_var=
8618 hardcode_libdir_flag_spec=
8619 export_dynamic_flag_spec=
8620 whole_archive_flag_spec=
8621 fi
8622 else
8623 # PORTME fill in a description of your system's linker (not GNU ld)
8624 case $host_os in
8625 aix3*)
8626 allow_undefined_flag=unsupported
8627 always_export_symbols=yes
8628 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'
8629 # Note: this linker hardcodes the directories in LIBPATH if there
8630 # are no directories specified by -L.
8631 hardcode_minus_L=yes
8632 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8633 # Neither direct hardcoding nor static linking is supported with a
8634 # broken collect2.
8635 hardcode_direct=unsupported
8636 fi
8637 ;;
8638
8639 aix[4-9]*)
8640 if test "$host_cpu" = ia64; then
8641 # On IA64, the linker does run time linking by default, so we don't
8642 # have to do anything special.
8643 aix_use_runtimelinking=no
8644 exp_sym_flag='-Bexport'
8645 no_entry_flag=""
8646 else
8647 # If we're using GNU nm, then we don't want the "-C" option.
8648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8649 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8650 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'
8651 else
8652 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'
8653 fi
8654 aix_use_runtimelinking=no
8655
8656 # Test if we are trying to use run time linking or normal
8657 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8658 # need to do runtime linking.
8659 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8660 for ld_flag in $LDFLAGS; do
8661 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8662 aix_use_runtimelinking=yes
8663 break
8664 fi
8665 done
8666 ;;
8667 esac
8668
8669 exp_sym_flag='-bexport'
8670 no_entry_flag='-bnoentry'
8671 fi
8672
8673 # When large executables or shared objects are built, AIX ld can
8674 # have problems creating the table of contents. If linking a library
8675 # or program results in "error TOC overflow" add -mminimal-toc to
8676 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8677 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8678
8679 archive_cmds=''
8680 hardcode_direct=yes
8681 hardcode_direct_absolute=yes
8682 hardcode_libdir_separator=':'
8683 link_all_deplibs=yes
8684 file_list_spec='${wl}-f,'
8685
8686 if test "$GCC" = yes; then
8687 case $host_os in aix4.[012]|aix4.[012].*)
8688 # We only want to do this on AIX 4.2 and lower, the check
8689 # below for broken collect2 doesn't work under 4.3+
8690 collect2name=`${CC} -print-prog-name=collect2`
8691 if test -f "$collect2name" &&
8692 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8693 then
8694 # We have reworked collect2
8695 :
8696 else
8697 # We have old collect2
8698 hardcode_direct=unsupported
8699 # It fails to find uninstalled libraries when the uninstalled
8700 # path is not listed in the libpath. Setting hardcode_minus_L
8701 # to unsupported forces relinking
8702 hardcode_minus_L=yes
8703 hardcode_libdir_flag_spec='-L$libdir'
8704 hardcode_libdir_separator=
8705 fi
8706 ;;
8707 esac
8708 shared_flag='-shared'
8709 if test "$aix_use_runtimelinking" = yes; then
8710 shared_flag="$shared_flag "'${wl}-G'
8711 fi
8712 link_all_deplibs=no
8713 else
8714 # not using gcc
8715 if test "$host_cpu" = ia64; then
8716 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8717 # chokes on -Wl,-G. The following line is correct:
8718 shared_flag='-G'
8719 else
8720 if test "$aix_use_runtimelinking" = yes; then
8721 shared_flag='${wl}-G'
8722 else
8723 shared_flag='${wl}-bM:SRE'
8724 fi
8725 fi
8726 fi
8727
8728 export_dynamic_flag_spec='${wl}-bexpall'
8729 # It seems that -bexpall does not export symbols beginning with
8730 # underscore (_), so it is better to generate a list of symbols to export.
8731 always_export_symbols=yes
8732 if test "$aix_use_runtimelinking" = yes; then
8733 # Warning - without using the other runtime loading flags (-brtl),
8734 # -berok will link without error, but may produce a broken library.
8735 allow_undefined_flag='-berok'
8736 # Determine the default libpath from the value encoded in an
8737 # empty executable.
8738 cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h. */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h. */
8744
8745int
8746main ()
8747{
8748
8749 ;
8750 return 0;
8751}
8752_ACEOF
8753rm -f conftest.$ac_objext conftest$ac_exeext
8754if { (ac_try="$ac_link"
8755case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758esac
8759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760$as_echo "$ac_try_echo") >&5
8761 (eval "$ac_link") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest$ac_exeext && {
8771 test "$cross_compiling" = yes ||
8772 $as_test_x conftest$ac_exeext
8773 }; then
8774
8775lt_aix_libpath_sed='
8776 /Import File Strings/,/^$/ {
8777 /^0/ {
8778 s/^0 *\(.*\)$/\1/
8779 p
8780 }
8781 }'
8782aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8783# Check for a 64-bit object if we didn't find anything.
8784if test -z "$aix_libpath"; then
8785 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8786fi
8787else
8788 $as_echo "$as_me: failed program was:" >&5
8789sed 's/^/| /' conftest.$ac_ext >&5
8790
8791
8792fi
8793
8794rm -rf conftest.dSYM
8795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8796 conftest$ac_exeext conftest.$ac_ext
8797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8798
8799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8800 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"
8801 else
8802 if test "$host_cpu" = ia64; then
8803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8804 allow_undefined_flag="-z nodefs"
8805 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"
8806 else
8807 # Determine the default libpath from the value encoded in an
8808 # empty executable.
8809 cat >conftest.$ac_ext <<_ACEOF
8810/* confdefs.h. */
8811_ACEOF
8812cat confdefs.h >>conftest.$ac_ext
8813cat >>conftest.$ac_ext <<_ACEOF
8814/* end confdefs.h. */
8815
8816int
8817main ()
8818{
8819
8820 ;
8821 return 0;
8822}
8823_ACEOF
8824rm -f conftest.$ac_objext conftest$ac_exeext
8825if { (ac_try="$ac_link"
8826case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829esac
8830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8831$as_echo "$ac_try_echo") >&5
8832 (eval "$ac_link") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest$ac_exeext && {
8842 test "$cross_compiling" = yes ||
8843 $as_test_x conftest$ac_exeext
8844 }; then
8845
8846lt_aix_libpath_sed='
8847 /Import File Strings/,/^$/ {
8848 /^0/ {
8849 s/^0 *\(.*\)$/\1/
8850 p
8851 }
8852 }'
8853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8854# Check for a 64-bit object if we didn't find anything.
8855if test -z "$aix_libpath"; then
8856 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8857fi
8858else
8859 $as_echo "$as_me: failed program was:" >&5
8860sed 's/^/| /' conftest.$ac_ext >&5
8861
8862
8863fi
8864
8865rm -rf conftest.dSYM
8866rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8867 conftest$ac_exeext conftest.$ac_ext
8868if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8869
8870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8871 # Warning - without using the other run time loading flags,
8872 # -berok will link without error, but may produce a broken library.
8873 no_undefined_flag=' ${wl}-bernotok'
8874 allow_undefined_flag=' ${wl}-berok'
8875 # Exported symbols can be pulled into shared objects from archives
8876 whole_archive_flag_spec='$convenience'
8877 archive_cmds_need_lc=yes
8878 # This is similar to how AIX traditionally builds its shared libraries.
8879 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'
8880 fi
8881 fi
8882 ;;
8883
8884 amigaos*)
8885 case $host_cpu in
8886 powerpc)
8887 # see comment about AmigaOS4 .so support
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 archive_expsym_cmds=''
8890 ;;
8891 m68k)
8892 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)'
8893 hardcode_libdir_flag_spec='-L$libdir'
8894 hardcode_minus_L=yes
8895 ;;
8896 esac
8897 ;;
8898
8899 bsdi[45]*)
8900 export_dynamic_flag_spec=-rdynamic
8901 ;;
8902
8903 cygwin* | mingw* | pw32* | cegcc*)
8904 # When not using gcc, we currently assume that we are using
8905 # Microsoft Visual C++.
8906 # hardcode_libdir_flag_spec is actually meaningless, as there is
8907 # no search path for DLLs.
8908 hardcode_libdir_flag_spec=' '
8909 allow_undefined_flag=unsupported
8910 # Tell ltmain to make .lib files, not .a files.
8911 libext=lib
8912 # Tell ltmain to make .dll files, not .so files.
8913 shrext_cmds=".dll"
8914 # FIXME: Setting linknames here is a bad hack.
8915 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8916 # The linker will automatically build a .lib file if we build a DLL.
8917 old_archive_from_new_cmds='true'
8918 # FIXME: Should let the user specify the lib program.
8919 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8920 fix_srcfile_path='`cygpath -w "$srcfile"`'
8921 enable_shared_with_static_runtimes=yes
8922 ;;
8923
8924 darwin* | rhapsody*)
8925
8926
8927 archive_cmds_need_lc=no
8928 hardcode_direct=no
8929 hardcode_automatic=yes
8930 hardcode_shlibpath_var=unsupported
8931 whole_archive_flag_spec=''
8932 link_all_deplibs=yes
8933 allow_undefined_flag="$_lt_dar_allow_undefined"
8934 case $cc_basename in
8935 ifort*) _lt_dar_can_shared=yes ;;
8936 *) _lt_dar_can_shared=$GCC ;;
8937 esac
8938 if test "$_lt_dar_can_shared" = "yes"; then
8939 output_verbose_link_cmd=echo
8940 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8941 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8942 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}"
8943 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}"
8944
8945 else
8946 ld_shlibs=no
8947 fi
8948
8949 ;;
8950
8951 dgux*)
8952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_shlibpath_var=no
8955 ;;
8956
8957 freebsd1*)
8958 ld_shlibs=no
8959 ;;
8960
8961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8962 # support. Future versions do this automatically, but an explicit c++rt0.o
8963 # does not break anything, and helps significantly (at the cost of a little
8964 # extra space).
8965 freebsd2.2*)
8966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8967 hardcode_libdir_flag_spec='-R$libdir'
8968 hardcode_direct=yes
8969 hardcode_shlibpath_var=no
8970 ;;
8971
8972 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8973 freebsd2*)
8974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8975 hardcode_direct=yes
8976 hardcode_minus_L=yes
8977 hardcode_shlibpath_var=no
8978 ;;
8979
8980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8981 freebsd* | dragonfly*)
8982 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8983 hardcode_libdir_flag_spec='-R$libdir'
8984 hardcode_direct=yes
8985 hardcode_shlibpath_var=no
8986 ;;
8987
8988 hpux9*)
8989 if test "$GCC" = yes; then
8990 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'
8991 else
8992 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'
8993 fi
8994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8995 hardcode_libdir_separator=:
8996 hardcode_direct=yes
8997
8998 # hardcode_minus_L: Not really in the search PATH,
8999 # but as the default location of the library.
9000 hardcode_minus_L=yes
9001 export_dynamic_flag_spec='${wl}-E'
9002 ;;
9003
9004 hpux10*)
9005 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9006 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9007 else
9008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9009 fi
9010 if test "$with_gnu_ld" = no; then
9011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9012 hardcode_libdir_flag_spec_ld='+b $libdir'
9013 hardcode_libdir_separator=:
9014 hardcode_direct=yes
9015 hardcode_direct_absolute=yes
9016 export_dynamic_flag_spec='${wl}-E'
9017 # hardcode_minus_L: Not really in the search PATH,
9018 # but as the default location of the library.
9019 hardcode_minus_L=yes
9020 fi
9021 ;;
9022
9023 hpux11*)
9024 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9025 case $host_cpu in
9026 hppa*64*)
9027 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 ;;
9029 ia64*)
9030 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9031 ;;
9032 *)
9033 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9034 ;;
9035 esac
9036 else
9037 case $host_cpu in
9038 hppa*64*)
9039 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040 ;;
9041 ia64*)
9042 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9043 ;;
9044 *)
9045 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9046 ;;
9047 esac
9048 fi
9049 if test "$with_gnu_ld" = no; then
9050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9051 hardcode_libdir_separator=:
9052
9053 case $host_cpu in
9054 hppa*64*|ia64*)
9055 hardcode_direct=no
9056 hardcode_shlibpath_var=no
9057 ;;
9058 *)
9059 hardcode_direct=yes
9060 hardcode_direct_absolute=yes
9061 export_dynamic_flag_spec='${wl}-E'
9062
9063 # hardcode_minus_L: Not really in the search PATH,
9064 # but as the default location of the library.
9065 hardcode_minus_L=yes
9066 ;;
9067 esac
9068 fi
9069 ;;
9070
9071 irix5* | irix6* | nonstopux*)
9072 if test "$GCC" = yes; then
9073 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'
9074 # Try to use the -exported_symbol ld option, if it does not
9075 # work, assume that -exports_file does not work either and
9076 # implicitly export all symbols.
9077 save_LDFLAGS="$LDFLAGS"
9078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9079 cat >conftest.$ac_ext <<_ACEOF
9080int foo(void) {}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (ac_try="$ac_link"
9084case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9089$as_echo "$ac_try_echo") >&5
9090 (eval "$ac_link") 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } && {
9097 test -z "$ac_c_werror_flag" ||
9098 test ! -s conftest.err
9099 } && test -s conftest$ac_exeext && {
9100 test "$cross_compiling" = yes ||
9101 $as_test_x conftest$ac_exeext
9102 }; then
9103 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'
9104
9105else
9106 $as_echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109
9110fi
9111
9112rm -rf conftest.dSYM
9113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9114 conftest$ac_exeext conftest.$ac_ext
9115 LDFLAGS="$save_LDFLAGS"
9116 else
9117 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'
9118 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'
9119 fi
9120 archive_cmds_need_lc='no'
9121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9122 hardcode_libdir_separator=:
9123 inherit_rpath=yes
9124 link_all_deplibs=yes
9125 ;;
9126
9127 netbsd* | netbsdelf*-gnu)
9128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9130 else
9131 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9132 fi
9133 hardcode_libdir_flag_spec='-R$libdir'
9134 hardcode_direct=yes
9135 hardcode_shlibpath_var=no
9136 ;;
9137
9138 newsos6)
9139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_direct=yes
9141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9142 hardcode_libdir_separator=:
9143 hardcode_shlibpath_var=no
9144 ;;
9145
9146 *nto* | *qnx*)
9147 ;;
9148
9149 openbsd*)
9150 if test -f /usr/libexec/ld.so; then
9151 hardcode_direct=yes
9152 hardcode_shlibpath_var=no
9153 hardcode_direct_absolute=yes
9154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9155 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9156 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9158 export_dynamic_flag_spec='${wl}-E'
9159 else
9160 case $host_os in
9161 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_libdir_flag_spec='-R$libdir'
9164 ;;
9165 *)
9166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9168 ;;
9169 esac
9170 fi
9171 else
9172 ld_shlibs=no
9173 fi
9174 ;;
9175
9176 os2*)
9177 hardcode_libdir_flag_spec='-L$libdir'
9178 hardcode_minus_L=yes
9179 allow_undefined_flag=unsupported
9180 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'
9181 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9182 ;;
9183
9184 osf3*)
9185 if test "$GCC" = yes; then
9186 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9187 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'
9188 else
9189 allow_undefined_flag=' -expect_unresolved \*'
9190 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'
9191 fi
9192 archive_cmds_need_lc='no'
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 hardcode_libdir_separator=:
9195 ;;
9196
9197 osf4* | osf5*) # as osf3* with the addition of -msym flag
9198 if test "$GCC" = yes; then
9199 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9200 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'
9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202 else
9203 allow_undefined_flag=' -expect_unresolved \*'
9204 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'
9205 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~
9206 $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'
9207
9208 # Both c and cxx compiler support -rpath directly
9209 hardcode_libdir_flag_spec='-rpath $libdir'
9210 fi
9211 archive_cmds_need_lc='no'
9212 hardcode_libdir_separator=:
9213 ;;
9214
9215 solaris*)
9216 no_undefined_flag=' -z defs'
9217 if test "$GCC" = yes; then
9218 wlarc='${wl}'
9219 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9221 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9222 else
9223 case `$CC -V 2>&1` in
9224 *"Compilers 5.0"*)
9225 wlarc=''
9226 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9228 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9229 ;;
9230 *)
9231 wlarc='${wl}'
9232 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9233 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9234 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9235 ;;
9236 esac
9237 fi
9238 hardcode_libdir_flag_spec='-R$libdir'
9239 hardcode_shlibpath_var=no
9240 case $host_os in
9241 solaris2.[0-5] | solaris2.[0-5].*) ;;
9242 *)
9243 # The compiler driver will combine and reorder linker options,
9244 # but understands `-z linker_flag'. GCC discards it without `$wl',
9245 # but is careful enough not to reorder.
9246 # Supported since Solaris 2.6 (maybe 2.5.1?)
9247 if test "$GCC" = yes; then
9248 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9249 else
9250 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9251 fi
9252 ;;
9253 esac
9254 link_all_deplibs=yes
9255 ;;
9256
9257 sunos4*)
9258 if test "x$host_vendor" = xsequent; then
9259 # Use $CC to link under sequent, because it throws in some extra .o
9260 # files that make .init and .fini sections work.
9261 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9262 else
9263 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9264 fi
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_direct=yes
9267 hardcode_minus_L=yes
9268 hardcode_shlibpath_var=no
9269 ;;
9270
9271 sysv4)
9272 case $host_vendor in
9273 sni)
9274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9275 hardcode_direct=yes # is this really true???
9276 ;;
9277 siemens)
9278 ## LD is ld it makes a PLAMLIB
9279 ## CC just makes a GrossModule.
9280 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9281 reload_cmds='$CC -r -o $output$reload_objs'
9282 hardcode_direct=no
9283 ;;
9284 motorola)
9285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9287 ;;
9288 esac
9289 runpath_var='LD_RUN_PATH'
9290 hardcode_shlibpath_var=no
9291 ;;
9292
9293 sysv4.3*)
9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_shlibpath_var=no
9296 export_dynamic_flag_spec='-Bexport'
9297 ;;
9298
9299 sysv4*MP*)
9300 if test -d /usr/nec; then
9301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302 hardcode_shlibpath_var=no
9303 runpath_var=LD_RUN_PATH
9304 hardcode_runpath_var=yes
9305 ld_shlibs=yes
9306 fi
9307 ;;
9308
9309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9310 no_undefined_flag='${wl}-z,text'
9311 archive_cmds_need_lc=no
9312 hardcode_shlibpath_var=no
9313 runpath_var='LD_RUN_PATH'
9314
9315 if test "$GCC" = yes; then
9316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9318 else
9319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9321 fi
9322 ;;
9323
9324 sysv5* | sco3.2v5* | sco5v6*)
9325 # Note: We can NOT use -z defs as we might desire, because we do not
9326 # link with -lc, and that would cause any symbols used from libc to
9327 # always be unresolved, which means just about no library would
9328 # ever link correctly. If we're not using GNU ld we use -z text
9329 # though, which does catch some bad symbols but isn't as heavy-handed
9330 # as -z defs.
9331 no_undefined_flag='${wl}-z,text'
9332 allow_undefined_flag='${wl}-z,nodefs'
9333 archive_cmds_need_lc=no
9334 hardcode_shlibpath_var=no
9335 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9336 hardcode_libdir_separator=':'
9337 link_all_deplibs=yes
9338 export_dynamic_flag_spec='${wl}-Bexport'
9339 runpath_var='LD_RUN_PATH'
9340
9341 if test "$GCC" = yes; then
9342 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9344 else
9345 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347 fi
9348 ;;
9349
9350 uts4*)
9351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_libdir_flag_spec='-L$libdir'
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 *)
9357 ld_shlibs=no
9358 ;;
9359 esac
9360
9361 if test x$host_vendor = xsni; then
9362 case $host in
9363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9364 export_dynamic_flag_spec='${wl}-Blargedynsym'
9365 ;;
9366 esac
9367 fi
9368 fi
9369
9370{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9371$as_echo "$ld_shlibs" >&6; }
9372test "$ld_shlibs" = no && can_build_shared=no
9373
9374with_gnu_ld=$with_gnu_ld
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390#
9391# Do we need to explicitly link libc?
9392#
9393case "x$archive_cmds_need_lc" in
9394x|xyes)
9395 # Assume -lc should be added
9396 archive_cmds_need_lc=yes
9397
9398 if test "$enable_shared" = yes && test "$GCC" = yes; then
9399 case $archive_cmds in
9400 *'~'*)
9401 # FIXME: we may have to deal with multi-command sequences.
9402 ;;
9403 '$CC '*)
9404 # Test whether the compiler implicitly links with -lc since on some
9405 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9406 # to ld, don't add -lc before -lgcc.
9407 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9408$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9409 $RM conftest*
9410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9414 ac_status=$?
9415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } 2>conftest.err; then
9417 soname=conftest
9418 lib=conftest
9419 libobjs=conftest.$ac_objext
9420 deplibs=
9421 wl=$lt_prog_compiler_wl
9422 pic_flag=$lt_prog_compiler_pic
9423 compiler_flags=-v
9424 linker_flags=-v
9425 verstring=
9426 output_objdir=.
9427 libname=conftest
9428 lt_save_allow_undefined_flag=$allow_undefined_flag
9429 allow_undefined_flag=
9430 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9431 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9432 ac_status=$?
9433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }
9435 then
9436 archive_cmds_need_lc=no
9437 else
9438 archive_cmds_need_lc=yes
9439 fi
9440 allow_undefined_flag=$lt_save_allow_undefined_flag
9441 else
9442 cat conftest.err 1>&5
9443 fi
9444 $RM conftest*
9445 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9446$as_echo "$archive_cmds_need_lc" >&6; }
9447 ;;
9448 esac
9449 fi
9450 ;;
9451esac
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9610$as_echo_n "checking dynamic linker characteristics... " >&6; }
9611
9612if test "$GCC" = yes; then
9613 case $host_os in
9614 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9615 *) lt_awk_arg="/^libraries:/" ;;
9616 esac
9617 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9618 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9619 # if the path contains ";" then we assume it to be the separator
9620 # otherwise default to the standard path separator (i.e. ":") - it is
9621 # assumed that no part of a normal pathname contains ";" but that should
9622 # okay in the real world where ";" in dirpaths is itself problematic.
9623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9624 else
9625 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9626 fi
9627 # Ok, now we have the path, separated by spaces, we can step through it
9628 # and add multilib dir if necessary.
9629 lt_tmp_lt_search_path_spec=
9630 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9631 for lt_sys_path in $lt_search_path_spec; do
9632 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9633 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9634 else
9635 test -d "$lt_sys_path" && \
9636 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9637 fi
9638 done
9639 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9640BEGIN {RS=" "; FS="/|\n";} {
9641 lt_foo="";
9642 lt_count=0;
9643 for (lt_i = NF; lt_i > 0; lt_i--) {
9644 if ($lt_i != "" && $lt_i != ".") {
9645 if ($lt_i == "..") {
9646 lt_count++;
9647 } else {
9648 if (lt_count == 0) {
9649 lt_foo="/" $lt_i lt_foo;
9650 } else {
9651 lt_count--;
9652 }
9653 }
9654 }
9655 }
9656 if (lt_foo != "") { lt_freq[lt_foo]++; }
9657 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9658}'`
9659 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9660else
9661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9662fi
9663library_names_spec=
9664libname_spec='lib$name'
9665soname_spec=
9666shrext_cmds=".so"
9667postinstall_cmds=
9668postuninstall_cmds=
9669finish_cmds=
9670finish_eval=
9671shlibpath_var=
9672shlibpath_overrides_runpath=unknown
9673version_type=none
9674dynamic_linker="$host_os ld.so"
9675sys_lib_dlsearch_path_spec="/lib /usr/lib"
9676need_lib_prefix=unknown
9677hardcode_into_libs=no
9678
9679# when you set need_version to no, make sure it does not cause -set_version
9680# flags to be left without arguments
9681need_version=unknown
9682
9683case $host_os in
9684aix3*)
9685 version_type=linux
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9687 shlibpath_var=LIBPATH
9688
9689 # AIX 3 has no versioning support, so we append a major version to the name.
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 ;;
9692
9693aix[4-9]*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 hardcode_into_libs=yes
9698 if test "$host_cpu" = ia64; then
9699 # AIX 5 supports IA64
9700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 else
9703 # With GCC up to 2.95.x, collect2 would create an import file
9704 # for dependence libraries. The import file would start with
9705 # the line `#! .'. This would cause the generated library to
9706 # depend on `.', always an invalid library. This was fixed in
9707 # development snapshots of GCC prior to 3.0.
9708 case $host_os in
9709 aix4 | aix4.[01] | aix4.[01].*)
9710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9711 echo ' yes '
9712 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9713 :
9714 else
9715 can_build_shared=no
9716 fi
9717 ;;
9718 esac
9719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9720 # soname into executable. Probably we can add versioning support to
9721 # collect2, so additional links can be useful in future.
9722 if test "$aix_use_runtimelinking" = yes; then
9723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9724 # instead of lib<name>.a to let people know that these are not
9725 # typical AIX shared libraries.
9726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 else
9728 # We preserve .a as extension for shared libraries through AIX4.2
9729 # and later when we are not doing run time linking.
9730 library_names_spec='${libname}${release}.a $libname.a'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 fi
9733 shlibpath_var=LIBPATH
9734 fi
9735 ;;
9736
9737amigaos*)
9738 case $host_cpu in
9739 powerpc)
9740 # Since July 2007 AmigaOS4 officially supports .so libraries.
9741 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 ;;
9744 m68k)
9745 library_names_spec='$libname.ixlibrary $libname.a'
9746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9747 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'
9748 ;;
9749 esac
9750 ;;
9751
9752beos*)
9753 library_names_spec='${libname}${shared_ext}'
9754 dynamic_linker="$host_os ld.so"
9755 shlibpath_var=LIBRARY_PATH
9756 ;;
9757
9758bsdi[45]*)
9759 version_type=linux
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9767 # the default ld.so.conf also contains /usr/contrib/lib and
9768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9769 # libtool to hard-code these into programs
9770 ;;
9771
9772cygwin* | mingw* | pw32* | cegcc*)
9773 version_type=windows
9774 shrext_cmds=".dll"
9775 need_version=no
9776 need_lib_prefix=no
9777
9778 case $GCC,$host_os in
9779 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9780 library_names_spec='$libname.dll.a'
9781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9782 postinstall_cmds='base_file=`basename \${file}`~
9783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9784 dldir=$destdir/`dirname \$dlpath`~
9785 test -d \$dldir || mkdir -p \$dldir~
9786 $install_prog $dir/$dlname \$dldir/$dlname~
9787 chmod a+x \$dldir/$dlname~
9788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9790 fi'
9791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9792 dlpath=$dir/\$dldll~
9793 $RM \$dlpath'
9794 shlibpath_overrides_runpath=yes
9795
9796 case $host_os in
9797 cygwin*)
9798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9799 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9800 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9801 ;;
9802 mingw* | cegcc*)
9803 # MinGW DLLs use traditional 'lib' prefix
9804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9805 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9806 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9807 # It is most probably a Windows format PATH printed by
9808 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9809 # path with ; separators, and with drive letters. We can handle the
9810 # drive letters (cygwin fileutils understands them), so leave them,
9811 # especially as we might pass files found there to a mingw objdump,
9812 # which wouldn't understand a cygwinified path. Ahh.
9813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9814 else
9815 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9816 fi
9817 ;;
9818 pw32*)
9819 # pw32 DLLs use 'pw' prefix rather than 'lib'
9820 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9821 ;;
9822 esac
9823 ;;
9824
9825 *)
9826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9827 ;;
9828 esac
9829 dynamic_linker='Win32 ld.exe'
9830 # FIXME: first we should search . and the directory the executable is in
9831 shlibpath_var=PATH
9832 ;;
9833
9834darwin* | rhapsody*)
9835 dynamic_linker="$host_os dyld"
9836 version_type=darwin
9837 need_lib_prefix=no
9838 need_version=no
9839 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9840 soname_spec='${libname}${release}${major}$shared_ext'
9841 shlibpath_overrides_runpath=yes
9842 shlibpath_var=DYLD_LIBRARY_PATH
9843 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9844
9845 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9847 ;;
9848
9849dgux*)
9850 version_type=linux
9851 need_lib_prefix=no
9852 need_version=no
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 ;;
9857
9858freebsd1*)
9859 dynamic_linker=no
9860 ;;
9861
9862freebsd* | dragonfly*)
9863 # DragonFly does not have aout. When/if they implement a new
9864 # versioning mechanism, adjust this.
9865 if test -x /usr/bin/objformat; then
9866 objformat=`/usr/bin/objformat`
9867 else
9868 case $host_os in
9869 freebsd[123]*) objformat=aout ;;
9870 *) objformat=elf ;;
9871 esac
9872 fi
9873 version_type=freebsd-$objformat
9874 case $version_type in
9875 freebsd-elf*)
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877 need_version=no
9878 need_lib_prefix=no
9879 ;;
9880 freebsd-*)
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9882 need_version=yes
9883 ;;
9884 esac
9885 shlibpath_var=LD_LIBRARY_PATH
9886 case $host_os in
9887 freebsd2*)
9888 shlibpath_overrides_runpath=yes
9889 ;;
9890 freebsd3.[01]* | freebsdelf3.[01]*)
9891 shlibpath_overrides_runpath=yes
9892 hardcode_into_libs=yes
9893 ;;
9894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9898 ;;
9899 *) # from 4.6 on, and DragonFly
9900 shlibpath_overrides_runpath=yes
9901 hardcode_into_libs=yes
9902 ;;
9903 esac
9904 ;;
9905
9906gnu*)
9907 version_type=linux
9908 need_lib_prefix=no
9909 need_version=no
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 hardcode_into_libs=yes
9914 ;;
9915
9916hpux9* | hpux10* | hpux11*)
9917 # Give a soname corresponding to the major version so that dld.sl refuses to
9918 # link against other versions.
9919 version_type=sunos
9920 need_lib_prefix=no
9921 need_version=no
9922 case $host_cpu in
9923 ia64*)
9924 shrext_cmds='.so'
9925 hardcode_into_libs=yes
9926 dynamic_linker="$host_os dld.so"
9927 shlibpath_var=LD_LIBRARY_PATH
9928 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 if test "X$HPUX_IA64_MODE" = X32; then
9932 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9933 else
9934 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9935 fi
9936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9937 ;;
9938 hppa*64*)
9939 shrext_cmds='.sl'
9940 hardcode_into_libs=yes
9941 dynamic_linker="$host_os dld.sl"
9942 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9948 ;;
9949 *)
9950 shrext_cmds='.sl'
9951 dynamic_linker="$host_os dld.sl"
9952 shlibpath_var=SHLIB_PATH
9953 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 ;;
9957 esac
9958 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9959 postinstall_cmds='chmod 555 $lib'
9960 ;;
9961
9962interix[3-9]*)
9963 version_type=linux
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9969 shlibpath_var=LD_LIBRARY_PATH
9970 shlibpath_overrides_runpath=no
9971 hardcode_into_libs=yes
9972 ;;
9973
9974irix5* | irix6* | nonstopux*)
9975 case $host_os in
9976 nonstopux*) version_type=nonstopux ;;
9977 *)
9978 if test "$lt_cv_prog_gnu_ld" = yes; then
9979 version_type=linux
9980 else
9981 version_type=irix
9982 fi ;;
9983 esac
9984 need_lib_prefix=no
9985 need_version=no
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9988 case $host_os in
9989 irix5* | nonstopux*)
9990 libsuff= shlibsuff=
9991 ;;
9992 *)
9993 case $LD in # libtool.m4 will add one of these switches to LD
9994 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9995 libsuff= shlibsuff= libmagic=32-bit;;
9996 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9997 libsuff=32 shlibsuff=N32 libmagic=N32;;
9998 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9999 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10000 *) libsuff= shlibsuff= libmagic=never-match;;
10001 esac
10002 ;;
10003 esac
10004 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10005 shlibpath_overrides_runpath=no
10006 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10007 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10008 hardcode_into_libs=yes
10009 ;;
10010
10011# No shared lib support for Linux oldld, aout, or coff.
10012linux*oldld* | linux*aout* | linux*coff*)
10013 dynamic_linker=no
10014 ;;
10015
10016# This must be Linux ELF.
10017linux* | k*bsd*-gnu)
10018 version_type=linux
10019 need_lib_prefix=no
10020 need_version=no
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 soname_spec='${libname}${release}${shared_ext}$major'
10023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 shlibpath_overrides_runpath=no
10026 # Some binutils ld are patched to set DT_RUNPATH
10027 save_LDFLAGS=$LDFLAGS
10028 save_libdir=$libdir
10029 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10030 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10031 cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
10037
10038int
10039main ()
10040{
10041
10042 ;
10043 return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext conftest$ac_exeext
10047if { (ac_try="$ac_link"
10048case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051esac
10052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10053$as_echo "$ac_try_echo") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest$ac_exeext && {
10064 test "$cross_compiling" = yes ||
10065 $as_test_x conftest$ac_exeext
10066 }; then
10067 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10068 shlibpath_overrides_runpath=yes
10069fi
10070
10071else
10072 $as_echo "$as_me: failed program was:" >&5
10073sed 's/^/| /' conftest.$ac_ext >&5
10074
10075
10076fi
10077
10078rm -rf conftest.dSYM
10079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080 conftest$ac_exeext conftest.$ac_ext
10081 LDFLAGS=$save_LDFLAGS
10082 libdir=$save_libdir
10083
10084 # This implies no fast_install, which is unacceptable.
10085 # Some rework will be needed to allow for fast_install
10086 # before this can be enabled.
10087 hardcode_into_libs=yes
10088
10089 # Append ld.so.conf contents to the search path
10090 if test -f /etc/ld.so.conf; then
10091 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' ' '`
10092 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10093 fi
10094
10095 # We used to test for /lib/ld.so.1 and disable shared libraries on
10096 # powerpc, because MkLinux only supported shared libraries with the
10097 # GNU dynamic linker. Since this was broken with cross compilers,
10098 # most powerpc-linux boxes support dynamic linking these days and
10099 # people can always --disable-shared, the test was removed, and we
10100 # assume the GNU/Linux dynamic linker is in use.
10101 dynamic_linker='GNU/Linux ld.so'
10102 ;;
10103
10104netbsdelf*-gnu)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=no
10112 hardcode_into_libs=yes
10113 dynamic_linker='NetBSD ld.elf_so'
10114 ;;
10115
10116netbsd*)
10117 version_type=sunos
10118 need_lib_prefix=no
10119 need_version=no
10120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10123 dynamic_linker='NetBSD (a.out) ld.so'
10124 else
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 dynamic_linker='NetBSD ld.elf_so'
10128 fi
10129 shlibpath_var=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath=yes
10131 hardcode_into_libs=yes
10132 ;;
10133
10134newsos6)
10135 version_type=linux
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=yes
10139 ;;
10140
10141*nto* | *qnx*)
10142 version_type=qnx
10143 need_lib_prefix=no
10144 need_version=no
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=no
10149 hardcode_into_libs=yes
10150 dynamic_linker='ldqnx.so'
10151 ;;
10152
10153openbsd*)
10154 version_type=sunos
10155 sys_lib_dlsearch_path_spec="/usr/lib"
10156 need_lib_prefix=no
10157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10158 case $host_os in
10159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10160 *) need_version=no ;;
10161 esac
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10166 case $host_os in
10167 openbsd2.[89] | openbsd2.[89].*)
10168 shlibpath_overrides_runpath=no
10169 ;;
10170 *)
10171 shlibpath_overrides_runpath=yes
10172 ;;
10173 esac
10174 else
10175 shlibpath_overrides_runpath=yes
10176 fi
10177 ;;
10178
10179os2*)
10180 libname_spec='$name'
10181 shrext_cmds=".dll"
10182 need_lib_prefix=no
10183 library_names_spec='$libname${shared_ext} $libname.a'
10184 dynamic_linker='OS/2 ld.exe'
10185 shlibpath_var=LIBPATH
10186 ;;
10187
10188osf3* | osf4* | osf5*)
10189 version_type=osf
10190 need_lib_prefix=no
10191 need_version=no
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10197 ;;
10198
10199rdos*)
10200 dynamic_linker=no
10201 ;;
10202
10203solaris*)
10204 version_type=linux
10205 need_lib_prefix=no
10206 need_version=no
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10211 hardcode_into_libs=yes
10212 # ldd complains unless libraries are executable
10213 postinstall_cmds='chmod +x $lib'
10214 ;;
10215
10216sunos4*)
10217 version_type=sunos
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=yes
10222 if test "$with_gnu_ld" = yes; then
10223 need_lib_prefix=no
10224 fi
10225 need_version=yes
10226 ;;
10227
10228sysv4 | sysv4.3*)
10229 version_type=linux
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10231 soname_spec='${libname}${release}${shared_ext}$major'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 case $host_vendor in
10234 sni)
10235 shlibpath_overrides_runpath=no
10236 need_lib_prefix=no
10237 runpath_var=LD_RUN_PATH
10238 ;;
10239 siemens)
10240 need_lib_prefix=no
10241 ;;
10242 motorola)
10243 need_lib_prefix=no
10244 need_version=no
10245 shlibpath_overrides_runpath=no
10246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10247 ;;
10248 esac
10249 ;;
10250
10251sysv4*MP*)
10252 if test -d /usr/nec ;then
10253 version_type=linux
10254 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10255 soname_spec='$libname${shared_ext}.$major'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 fi
10258 ;;
10259
10260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10261 version_type=freebsd-elf
10262 need_lib_prefix=no
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=yes
10268 hardcode_into_libs=yes
10269 if test "$with_gnu_ld" = yes; then
10270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10271 else
10272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10273 case $host_os in
10274 sco3.2v5*)
10275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10276 ;;
10277 esac
10278 fi
10279 sys_lib_dlsearch_path_spec='/usr/lib'
10280 ;;
10281
10282tpf*)
10283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=no
10290 hardcode_into_libs=yes
10291 ;;
10292
10293uts4*)
10294 version_type=linux
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 ;;
10299
10300*)
10301 dynamic_linker=no
10302 ;;
10303esac
10304{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10305$as_echo "$dynamic_linker" >&6; }
10306test "$dynamic_linker" = no && can_build_shared=no
10307
10308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10309if test "$GCC" = yes; then
10310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10311fi
10312
10313if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10314 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10315fi
10316if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10317 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10318fi
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10407$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10408hardcode_action=
10409if test -n "$hardcode_libdir_flag_spec" ||
10410 test -n "$runpath_var" ||
10411 test "X$hardcode_automatic" = "Xyes" ; then
10412
10413 # We can hardcode non-existent directories.
10414 if test "$hardcode_direct" != no &&
10415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10416 # have to relink, otherwise we might link with an installed library
10417 # when we should be linking with a yet-to-be-installed one
10418 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10419 test "$hardcode_minus_L" != no; then
10420 # Linking always hardcodes the temporary library directory.
10421 hardcode_action=relink
10422 else
10423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10424 hardcode_action=immediate
10425 fi
10426else
10427 # We cannot hardcode anything, or else we can only hardcode existing
10428 # directories.
10429 hardcode_action=unsupported
10430fi
10431{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10432$as_echo "$hardcode_action" >&6; }
10433
10434if test "$hardcode_action" = relink ||
10435 test "$inherit_rpath" = yes; then
10436 # Fast installation is not supported
10437 enable_fast_install=no
10438elif test "$shlibpath_overrides_runpath" = yes ||
10439 test "$enable_shared" = no; then
10440 # Fast installation is not necessary
10441 enable_fast_install=needless
10442fi
10443
10444
10445
10446
10447
10448
10449 if test "x$enable_dlopen" != xyes; then
10450 enable_dlopen=unknown
10451 enable_dlopen_self=unknown
10452 enable_dlopen_self_static=unknown
10453else
10454 lt_cv_dlopen=no
10455 lt_cv_dlopen_libs=
10456
10457 case $host_os in
10458 beos*)
10459 lt_cv_dlopen="load_add_on"
10460 lt_cv_dlopen_libs=
10461 lt_cv_dlopen_self=yes
10462 ;;
10463
10464 mingw* | pw32* | cegcc*)
10465 lt_cv_dlopen="LoadLibrary"
10466 lt_cv_dlopen_libs=
10467 ;;
10468
10469 cygwin*)
10470 lt_cv_dlopen="dlopen"
10471 lt_cv_dlopen_libs=
10472 ;;
10473
10474 darwin*)
10475 # if libdl is installed we need to link against it
10476 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10477$as_echo_n "checking for dlopen in -ldl... " >&6; }
10478if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10479 $as_echo_n "(cached) " >&6
10480else
10481 ac_check_lib_save_LIBS=$LIBS
10482LIBS="-ldl $LIBS"
10483cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
10489
10490/* Override any GCC internal prototype to avoid an error.
10491 Use char because int might match the return type of a GCC
10492 builtin and then its argument prototype would still apply. */
10493#ifdef __cplusplus
10494extern "C"
10495#endif
10496char dlopen ();
10497int
10498main ()
10499{
10500return dlopen ();
10501 ;
10502 return 0;
10503}
10504_ACEOF
10505rm -f conftest.$ac_objext conftest$ac_exeext
10506if { (ac_try="$ac_link"
10507case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510esac
10511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10512$as_echo "$ac_try_echo") >&5
10513 (eval "$ac_link") 2>conftest.er1
10514 ac_status=$?
10515 grep -v '^ *+' conftest.er1 >conftest.err
10516 rm -f conftest.er1
10517 cat conftest.err >&5
10518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && {
10520 test -z "$ac_c_werror_flag" ||
10521 test ! -s conftest.err
10522 } && test -s conftest$ac_exeext && {
10523 test "$cross_compiling" = yes ||
10524 $as_test_x conftest$ac_exeext
10525 }; then
10526 ac_cv_lib_dl_dlopen=yes
10527else
10528 $as_echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531 ac_cv_lib_dl_dlopen=no
10532fi
10533
10534rm -rf conftest.dSYM
10535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10536 conftest$ac_exeext conftest.$ac_ext
10537LIBS=$ac_check_lib_save_LIBS
10538fi
10539{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10540$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10541if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10542 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10543else
10544
10545 lt_cv_dlopen="dyld"
10546 lt_cv_dlopen_libs=
10547 lt_cv_dlopen_self=yes
10548
10549fi
10550
10551 ;;
10552
10553 *)
10554 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10555$as_echo_n "checking for shl_load... " >&6; }
10556if test "${ac_cv_func_shl_load+set}" = set; then
10557 $as_echo_n "(cached) " >&6
10558else
10559 cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
10565/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10567#define shl_load innocuous_shl_load
10568
10569/* System header to define __stub macros and hopefully few prototypes,
10570 which can conflict with char shl_load (); below.
10571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10572 <limits.h> exists even on freestanding compilers. */
10573
10574#ifdef __STDC__
10575# include <limits.h>
10576#else
10577# include <assert.h>
10578#endif
10579
10580#undef shl_load
10581
10582/* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585#ifdef __cplusplus
10586extern "C"
10587#endif
10588char shl_load ();
10589/* The GNU C library defines this for functions which it implements
10590 to always fail with ENOSYS. Some functions are actually named
10591 something starting with __ and the normal name is an alias. */
10592#if defined __stub_shl_load || defined __stub___shl_load
10593choke me
10594#endif
10595
10596int
10597main ()
10598{
10599return shl_load ();
10600 ;
10601 return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (ac_try="$ac_link"
10606case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10611$as_echo "$ac_try_echo") >&5
10612 (eval "$ac_link") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest$ac_exeext && {
10622 test "$cross_compiling" = yes ||
10623 $as_test_x conftest$ac_exeext
10624 }; then
10625 ac_cv_func_shl_load=yes
10626else
10627 $as_echo "$as_me: failed program was:" >&5
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630 ac_cv_func_shl_load=no
10631fi
10632
10633rm -rf conftest.dSYM
10634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10635 conftest$ac_exeext conftest.$ac_ext
10636fi
10637{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10638$as_echo "$ac_cv_func_shl_load" >&6; }
10639if test "x$ac_cv_func_shl_load" = x""yes; then
10640 lt_cv_dlopen="shl_load"
10641else
10642 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10643$as_echo_n "checking for shl_load in -ldld... " >&6; }
10644if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10645 $as_echo_n "(cached) " >&6
10646else
10647 ac_check_lib_save_LIBS=$LIBS
10648LIBS="-ldld $LIBS"
10649cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
10655
10656/* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659#ifdef __cplusplus
10660extern "C"
10661#endif
10662char shl_load ();
10663int
10664main ()
10665{
10666return shl_load ();
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671rm -f conftest.$ac_objext conftest$ac_exeext
10672if { (ac_try="$ac_link"
10673case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
10677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10678$as_echo "$ac_try_echo") >&5
10679 (eval "$ac_link") 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest$ac_exeext && {
10689 test "$cross_compiling" = yes ||
10690 $as_test_x conftest$ac_exeext
10691 }; then
10692 ac_cv_lib_dld_shl_load=yes
10693else
10694 $as_echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 ac_cv_lib_dld_shl_load=no
10698fi
10699
10700rm -rf conftest.dSYM
10701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10703LIBS=$ac_check_lib_save_LIBS
10704fi
10705{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10706$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10707if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10708 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10709else
10710 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10711$as_echo_n "checking for dlopen... " >&6; }
10712if test "${ac_cv_func_dlopen+set}" = set; then
10713 $as_echo_n "(cached) " >&6
10714else
10715 cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h. */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h. */
10721/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723#define dlopen innocuous_dlopen
10724
10725/* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char dlopen (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10729
10730#ifdef __STDC__
10731# include <limits.h>
10732#else
10733# include <assert.h>
10734#endif
10735
10736#undef dlopen
10737
10738/* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741#ifdef __cplusplus
10742extern "C"
10743#endif
10744char dlopen ();
10745/* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748#if defined __stub_dlopen || defined __stub___dlopen
10749choke me
10750#endif
10751
10752int
10753main ()
10754{
10755return dlopen ();
10756 ;
10757 return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext conftest$ac_exeext
10761if { (ac_try="$ac_link"
10762case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765esac
10766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767$as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext && {
10778 test "$cross_compiling" = yes ||
10779 $as_test_x conftest$ac_exeext
10780 }; then
10781 ac_cv_func_dlopen=yes
10782else
10783 $as_echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 ac_cv_func_dlopen=no
10787fi
10788
10789rm -rf conftest.dSYM
10790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10792fi
10793{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10794$as_echo "$ac_cv_func_dlopen" >&6; }
10795if test "x$ac_cv_func_dlopen" = x""yes; then
10796 lt_cv_dlopen="dlopen"
10797else
10798 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10799$as_echo_n "checking for dlopen in -ldl... " >&6; }
10800if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10802else
10803 ac_check_lib_save_LIBS=$LIBS
10804LIBS="-ldl $LIBS"
10805cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
10811
10812/* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10815#ifdef __cplusplus
10816extern "C"
10817#endif
10818char dlopen ();
10819int
10820main ()
10821{
10822return dlopen ();
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext conftest$ac_exeext
10828if { (ac_try="$ac_link"
10829case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832esac
10833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10834$as_echo "$ac_try_echo") >&5
10835 (eval "$ac_link") 2>conftest.er1
10836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest$ac_exeext && {
10845 test "$cross_compiling" = yes ||
10846 $as_test_x conftest$ac_exeext
10847 }; then
10848 ac_cv_lib_dl_dlopen=yes
10849else
10850 $as_echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 ac_cv_lib_dl_dlopen=no
10854fi
10855
10856rm -rf conftest.dSYM
10857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859LIBS=$ac_check_lib_save_LIBS
10860fi
10861{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10862$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10863if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10865else
10866 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10867$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10868if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10869 $as_echo_n "(cached) " >&6
10870else
10871 ac_check_lib_save_LIBS=$LIBS
10872LIBS="-lsvld $LIBS"
10873cat >conftest.$ac_ext <<_ACEOF
10874/* confdefs.h. */
10875_ACEOF
10876cat confdefs.h >>conftest.$ac_ext
10877cat >>conftest.$ac_ext <<_ACEOF
10878/* end confdefs.h. */
10879
10880/* Override any GCC internal prototype to avoid an error.
10881 Use char because int might match the return type of a GCC
10882 builtin and then its argument prototype would still apply. */
10883#ifdef __cplusplus
10884extern "C"
10885#endif
10886char dlopen ();
10887int
10888main ()
10889{
10890return dlopen ();
10891 ;
10892 return 0;
10893}
10894_ACEOF
10895rm -f conftest.$ac_objext conftest$ac_exeext
10896if { (ac_try="$ac_link"
10897case "(($ac_try" in
10898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899 *) ac_try_echo=$ac_try;;
10900esac
10901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10902$as_echo "$ac_try_echo") >&5
10903 (eval "$ac_link") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest$ac_exeext && {
10913 test "$cross_compiling" = yes ||
10914 $as_test_x conftest$ac_exeext
10915 }; then
10916 ac_cv_lib_svld_dlopen=yes
10917else
10918 $as_echo "$as_me: failed program was:" >&5
10919sed 's/^/| /' conftest.$ac_ext >&5
10920
10921 ac_cv_lib_svld_dlopen=no
10922fi
10923
10924rm -rf conftest.dSYM
10925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 conftest$ac_exeext conftest.$ac_ext
10927LIBS=$ac_check_lib_save_LIBS
10928fi
10929{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10930$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10931if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10933else
10934 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10935$as_echo_n "checking for dld_link in -ldld... " >&6; }
10936if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10937 $as_echo_n "(cached) " >&6
10938else
10939 ac_check_lib_save_LIBS=$LIBS
10940LIBS="-ldld $LIBS"
10941cat >conftest.$ac_ext <<_ACEOF
10942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char dld_link ();
10955int
10956main ()
10957{
10958return dld_link ();
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963rm -f conftest.$ac_objext conftest$ac_exeext
10964if { (ac_try="$ac_link"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
10969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970$as_echo "$ac_try_echo") >&5
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest$ac_exeext && {
10981 test "$cross_compiling" = yes ||
10982 $as_test_x conftest$ac_exeext
10983 }; then
10984 ac_cv_lib_dld_dld_link=yes
10985else
10986 $as_echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 ac_cv_lib_dld_dld_link=no
10990fi
10991
10992rm -rf conftest.dSYM
10993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10994 conftest$ac_exeext conftest.$ac_ext
10995LIBS=$ac_check_lib_save_LIBS
10996fi
10997{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10998$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10999if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11001fi
11002
11003
11004fi
11005
11006
11007fi
11008
11009
11010fi
11011
11012
11013fi
11014
11015
11016fi
11017
11018 ;;
11019 esac
11020
11021 if test "x$lt_cv_dlopen" != xno; then
11022 enable_dlopen=yes
11023 else
11024 enable_dlopen=no
11025 fi
11026
11027 case $lt_cv_dlopen in
11028 dlopen)
11029 save_CPPFLAGS="$CPPFLAGS"
11030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11031
11032 save_LDFLAGS="$LDFLAGS"
11033 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11034
11035 save_LIBS="$LIBS"
11036 LIBS="$lt_cv_dlopen_libs $LIBS"
11037
11038 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11039$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11040if test "${lt_cv_dlopen_self+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11042else
11043 if test "$cross_compiling" = yes; then :
11044 lt_cv_dlopen_self=cross
11045else
11046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11047 lt_status=$lt_dlunknown
11048 cat > conftest.$ac_ext <<_LT_EOF
11049#line 11049 "configure"
11050#include "confdefs.h"
11051
11052#if HAVE_DLFCN_H
11053#include <dlfcn.h>
11054#endif
11055
11056#include <stdio.h>
11057
11058#ifdef RTLD_GLOBAL
11059# define LT_DLGLOBAL RTLD_GLOBAL
11060#else
11061# ifdef DL_GLOBAL
11062# define LT_DLGLOBAL DL_GLOBAL
11063# else
11064# define LT_DLGLOBAL 0
11065# endif
11066#endif
11067
11068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069 find out it does not work in some platform. */
11070#ifndef LT_DLLAZY_OR_NOW
11071# ifdef RTLD_LAZY
11072# define LT_DLLAZY_OR_NOW RTLD_LAZY
11073# else
11074# ifdef DL_LAZY
11075# define LT_DLLAZY_OR_NOW DL_LAZY
11076# else
11077# ifdef RTLD_NOW
11078# define LT_DLLAZY_OR_NOW RTLD_NOW
11079# else
11080# ifdef DL_NOW
11081# define LT_DLLAZY_OR_NOW DL_NOW
11082# else
11083# define LT_DLLAZY_OR_NOW 0
11084# endif
11085# endif
11086# endif
11087# endif
11088#endif
11089
11090void fnord() { int i=42;}
11091int main ()
11092{
11093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11094 int status = $lt_dlunknown;
11095
11096 if (self)
11097 {
11098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11099 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11100 /* dlclose (self); */
11101 }
11102 else
11103 puts (dlerror ());
11104
11105 return status;
11106}
11107_LT_EOF
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11110 ac_status=$?
11111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11113 (./conftest; exit; ) >&5 2>/dev/null
11114 lt_status=$?
11115 case x$lt_status in
11116 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11117 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11118 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11119 esac
11120 else :
11121 # compilation failed
11122 lt_cv_dlopen_self=no
11123 fi
11124fi
11125rm -fr conftest*
11126
11127
11128fi
11129{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11130$as_echo "$lt_cv_dlopen_self" >&6; }
11131
11132 if test "x$lt_cv_dlopen_self" = xyes; then
11133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11134 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11135$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11136if test "${lt_cv_dlopen_self_static+set}" = set; then
11137 $as_echo_n "(cached) " >&6
11138else
11139 if test "$cross_compiling" = yes; then :
11140 lt_cv_dlopen_self_static=cross
11141else
11142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11143 lt_status=$lt_dlunknown
11144 cat > conftest.$ac_ext <<_LT_EOF
11145#line 11145 "configure"
11146#include "confdefs.h"
11147
11148#if HAVE_DLFCN_H
11149#include <dlfcn.h>
11150#endif
11151
11152#include <stdio.h>
11153
11154#ifdef RTLD_GLOBAL
11155# define LT_DLGLOBAL RTLD_GLOBAL
11156#else
11157# ifdef DL_GLOBAL
11158# define LT_DLGLOBAL DL_GLOBAL
11159# else
11160# define LT_DLGLOBAL 0
11161# endif
11162#endif
11163
11164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11165 find out it does not work in some platform. */
11166#ifndef LT_DLLAZY_OR_NOW
11167# ifdef RTLD_LAZY
11168# define LT_DLLAZY_OR_NOW RTLD_LAZY
11169# else
11170# ifdef DL_LAZY
11171# define LT_DLLAZY_OR_NOW DL_LAZY
11172# else
11173# ifdef RTLD_NOW
11174# define LT_DLLAZY_OR_NOW RTLD_NOW
11175# else
11176# ifdef DL_NOW
11177# define LT_DLLAZY_OR_NOW DL_NOW
11178# else
11179# define LT_DLLAZY_OR_NOW 0
11180# endif
11181# endif
11182# endif
11183# endif
11184#endif
11185
11186void fnord() { int i=42;}
11187int main ()
11188{
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11191
11192 if (self)
11193 {
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196 /* dlclose (self); */
11197 }
11198 else
11199 puts (dlerror ());
11200
11201 return status;
11202}
11203_LT_EOF
11204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11205 (eval $ac_link) 2>&5
11206 ac_status=$?
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11209 (./conftest; exit; ) >&5 2>/dev/null
11210 lt_status=$?
11211 case x$lt_status in
11212 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11213 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11214 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11215 esac
11216 else :
11217 # compilation failed
11218 lt_cv_dlopen_self_static=no
11219 fi
11220fi
11221rm -fr conftest*
11222
11223
11224fi
11225{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11226$as_echo "$lt_cv_dlopen_self_static" >&6; }
11227 fi
11228
11229 CPPFLAGS="$save_CPPFLAGS"
11230 LDFLAGS="$save_LDFLAGS"
11231 LIBS="$save_LIBS"
11232 ;;
11233 esac
11234
11235 case $lt_cv_dlopen_self in
11236 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11237 *) enable_dlopen_self=unknown ;;
11238 esac
11239
11240 case $lt_cv_dlopen_self_static in
11241 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11242 *) enable_dlopen_self_static=unknown ;;
11243 esac
11244fi
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262striplib=
11263old_striplib=
11264{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11265$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11266if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11268 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11269 { $as_echo "$as_me:$LINENO: result: yes" >&5
11270$as_echo "yes" >&6; }
11271else
11272# FIXME - insert some real tests, host_os isn't really good enough
11273 case $host_os in
11274 darwin*)
11275 if test -n "$STRIP" ; then
11276 striplib="$STRIP -x"
11277 old_striplib="$STRIP -S"
11278 { $as_echo "$as_me:$LINENO: result: yes" >&5
11279$as_echo "yes" >&6; }
11280 else
11281 { $as_echo "$as_me:$LINENO: result: no" >&5
11282$as_echo "no" >&6; }
11283 fi
11284 ;;
11285 *)
11286 { $as_echo "$as_me:$LINENO: result: no" >&5
11287$as_echo "no" >&6; }
11288 ;;
11289 esac
11290fi
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303 # Report which library types will actually be built
11304 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11305$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11306 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11307$as_echo "$can_build_shared" >&6; }
11308
11309 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11310$as_echo_n "checking whether to build shared libraries... " >&6; }
11311 test "$can_build_shared" = "no" && enable_shared=no
11312
11313 # On AIX, shared libraries and static libraries use the same namespace, and
11314 # are all built from PIC.
11315 case $host_os in
11316 aix3*)
11317 test "$enable_shared" = yes && enable_static=no
11318 if test -n "$RANLIB"; then
11319 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11320 postinstall_cmds='$RANLIB $lib'
11321 fi
11322 ;;
11323
11324 aix[4-9]*)
11325 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11326 test "$enable_shared" = yes && enable_static=no
11327 fi
11328 ;;
11329 esac
11330 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11331$as_echo "$enable_shared" >&6; }
11332
11333 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11334$as_echo_n "checking whether to build static libraries... " >&6; }
11335 # Make sure either enable_shared or enable_static is yes.
11336 test "$enable_shared" = yes || enable_static=yes
11337 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11338$as_echo "$enable_static" >&6; }
11339
11340
11341
11342
11343fi
11344ac_ext=c
11345ac_cpp='$CPP $CPPFLAGS'
11346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11348ac_compiler_gnu=$ac_cv_c_compiler_gnu
11349
11350CC="$lt_save_CC"
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364 ac_config_commands="$ac_config_commands libtool"
11365
11366
11367
11368
11369# Only expand once:
11370
11371
11372
11373
11374
11375 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11376$as_echo_n "checking whether NLS is requested... " >&6; }
11377 # Check whether --enable-nls was given.
11378if test "${enable_nls+set}" = set; then
11379 enableval=$enable_nls; USE_NLS=$enableval
11380else
11381 USE_NLS=yes
11382fi
11383
11384 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11385$as_echo "$USE_NLS" >&6; }
11386
11387
11388
11389
11390
11391
11392# Prepare PATH_SEPARATOR.
11393# The user is always right.
11394if test "${PATH_SEPARATOR+set}" != set; then
11395 echo "#! /bin/sh" >conf$$.sh
11396 echo "exit 0" >>conf$$.sh
11397 chmod +x conf$$.sh
11398 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11399 PATH_SEPARATOR=';'
11400 else
11401 PATH_SEPARATOR=:
11402 fi
11403 rm -f conf$$.sh
11404fi
11405
11406# Find out how to test for executable files. Don't use a zero-byte file,
11407# as systems may use methods other than mode bits to determine executability.
11408cat >conf$$.file <<_ASEOF
11409#! /bin/sh
11410exit 0
11411_ASEOF
11412chmod +x conf$$.file
11413if test -x conf$$.file >/dev/null 2>&1; then
11414 ac_executable_p="test -x"
11415else
11416 ac_executable_p="test -f"
11417fi
11418rm -f conf$$.file
11419
11420# Extract the first word of "msgfmt", so it can be a program name with args.
11421set dummy msgfmt; ac_word=$2
11422{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if test "${ac_cv_path_MSGFMT+set}" = set; then
11425 $as_echo_n "(cached) " >&6
11426else
11427 case "$MSGFMT" in
11428 [\\/]* | ?:[\\/]*)
11429 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11430 ;;
11431 *)
11432 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11433 for ac_dir in $PATH; do
11434 IFS="$ac_save_IFS"
11435 test -z "$ac_dir" && ac_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11438 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11439 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11440 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11441 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11442 break 2
11443 fi
11444 fi
11445 done
11446 done
11447 IFS="$ac_save_IFS"
11448 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11449 ;;
11450esac
11451fi
11452MSGFMT="$ac_cv_path_MSGFMT"
11453if test "$MSGFMT" != ":"; then
11454 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
11455$as_echo "$MSGFMT" >&6; }
11456else
11457 { $as_echo "$as_me:$LINENO: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
11460
11461 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11462set dummy gmsgfmt; ac_word=$2
11463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11464$as_echo_n "checking for $ac_word... " >&6; }
11465if test "${ac_cv_path_GMSGFMT+set}" = set; then
11466 $as_echo_n "(cached) " >&6
11467else
11468 case $GMSGFMT in
11469 [\\/]* | ?:[\\/]*)
11470 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11471 ;;
11472 *)
11473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $PATH
11475do
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11480 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11483 fi
11484done
11485done
11486IFS=$as_save_IFS
11487
11488 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11489 ;;
11490esac
11491fi
11492GMSGFMT=$ac_cv_path_GMSGFMT
11493if test -n "$GMSGFMT"; then
11494 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11495$as_echo "$GMSGFMT" >&6; }
11496else
11497 { $as_echo "$as_me:$LINENO: result: no" >&5
11498$as_echo "no" >&6; }
11499fi
11500
11501
11502
11503 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11504 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
11505 *) MSGFMT_015=$MSGFMT ;;
11506 esac
11507
11508 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11509 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
11510 *) GMSGFMT_015=$GMSGFMT ;;
11511 esac
11512
11513
11514
11515# Prepare PATH_SEPARATOR.
11516# The user is always right.
11517if test "${PATH_SEPARATOR+set}" != set; then
11518 echo "#! /bin/sh" >conf$$.sh
11519 echo "exit 0" >>conf$$.sh
11520 chmod +x conf$$.sh
11521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11522 PATH_SEPARATOR=';'
11523 else
11524 PATH_SEPARATOR=:
11525 fi
11526 rm -f conf$$.sh
11527fi
11528
11529# Find out how to test for executable files. Don't use a zero-byte file,
11530# as systems may use methods other than mode bits to determine executability.
11531cat >conf$$.file <<_ASEOF
11532#! /bin/sh
11533exit 0
11534_ASEOF
11535chmod +x conf$$.file
11536if test -x conf$$.file >/dev/null 2>&1; then
11537 ac_executable_p="test -x"
11538else
11539 ac_executable_p="test -f"
11540fi
11541rm -f conf$$.file
11542
11543# Extract the first word of "xgettext", so it can be a program name with args.
11544set dummy xgettext; ac_word=$2
11545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11546$as_echo_n "checking for $ac_word... " >&6; }
11547if test "${ac_cv_path_XGETTEXT+set}" = set; then
11548 $as_echo_n "(cached) " >&6
11549else
11550 case "$XGETTEXT" in
11551 [\\/]* | ?:[\\/]*)
11552 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11553 ;;
11554 *)
11555 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11556 for ac_dir in $PATH; do
11557 IFS="$ac_save_IFS"
11558 test -z "$ac_dir" && ac_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11561 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11562 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11563 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11564 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11565 break 2
11566 fi
11567 fi
11568 done
11569 done
11570 IFS="$ac_save_IFS"
11571 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11572 ;;
11573esac
11574fi
11575XGETTEXT="$ac_cv_path_XGETTEXT"
11576if test "$XGETTEXT" != ":"; then
11577 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11578$as_echo "$XGETTEXT" >&6; }
11579else
11580 { $as_echo "$as_me:$LINENO: result: no" >&5
11581$as_echo "no" >&6; }
11582fi
11583
11584 rm -f messages.po
11585
11586 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11587 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11588 *) XGETTEXT_015=$XGETTEXT ;;
11589 esac
11590
11591
11592
11593# Prepare PATH_SEPARATOR.
11594# The user is always right.
11595if test "${PATH_SEPARATOR+set}" != set; then
11596 echo "#! /bin/sh" >conf$$.sh
11597 echo "exit 0" >>conf$$.sh
11598 chmod +x conf$$.sh
11599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11600 PATH_SEPARATOR=';'
11601 else
11602 PATH_SEPARATOR=:
11603 fi
11604 rm -f conf$$.sh
11605fi
11606
11607# Find out how to test for executable files. Don't use a zero-byte file,
11608# as systems may use methods other than mode bits to determine executability.
11609cat >conf$$.file <<_ASEOF
11610#! /bin/sh
11611exit 0
11612_ASEOF
11613chmod +x conf$$.file
11614if test -x conf$$.file >/dev/null 2>&1; then
11615 ac_executable_p="test -x"
11616else
11617 ac_executable_p="test -f"
11618fi
11619rm -f conf$$.file
11620
11621# Extract the first word of "msgmerge", so it can be a program name with args.
11622set dummy msgmerge; ac_word=$2
11623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_path_MSGMERGE+set}" = set; then
11626 $as_echo_n "(cached) " >&6
11627else
11628 case "$MSGMERGE" in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11631 ;;
11632 *)
11633 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11634 for ac_dir in $PATH; do
11635 IFS="$ac_save_IFS"
11636 test -z "$ac_dir" && ac_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11639 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11640 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11641 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11642 break 2
11643 fi
11644 fi
11645 done
11646 done
11647 IFS="$ac_save_IFS"
11648 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11649 ;;
11650esac
11651fi
11652MSGMERGE="$ac_cv_path_MSGMERGE"
11653if test "$MSGMERGE" != ":"; then
11654 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11655$as_echo "$MSGMERGE" >&6; }
11656else
11657 { $as_echo "$as_me:$LINENO: result: no" >&5
11658$as_echo "no" >&6; }
11659fi
11660
11661
11662 test -n "$localedir" || localedir='${datadir}/locale'
11663
11664
11665 ac_config_commands="$ac_config_commands po-directories"
11666
11667
11668
11669 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
11670$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
11671if test "${ac_cv_gnu_library_2+set}" = set; then
11672 $as_echo_n "(cached) " >&6
11673else
11674 cat >conftest.$ac_ext <<_ACEOF
11675/* confdefs.h. */
11676_ACEOF
11677cat confdefs.h >>conftest.$ac_ext
11678cat >>conftest.$ac_ext <<_ACEOF
11679/* end confdefs.h. */
11680
11681#include <features.h>
11682#ifdef __GNU_LIBRARY__
11683 #if (__GLIBC__ >= 2)
11684 Lucky GNU user
11685 #endif
11686#endif
11687
11688_ACEOF
11689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11690 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11691 ac_cv_gnu_library_2=yes
11692else
11693 ac_cv_gnu_library_2=no
11694fi
11695rm -f conftest*
11696
11697
11698
11699fi
11700{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
11701$as_echo "$ac_cv_gnu_library_2" >&6; }
11702
11703 GLIBC2="$ac_cv_gnu_library_2"
11704
11705
11706if test -n "$ac_tool_prefix"; then
11707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11708set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
11711if test "${ac_cv_prog_RANLIB+set}" = set; then
11712 $as_echo_n "(cached) " >&6
11713else
11714 if test -n "$RANLIB"; then
11715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11716else
11717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718for as_dir in $PATH
11719do
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 break 2
11727 fi
11728done
11729done
11730IFS=$as_save_IFS
11731
11732fi
11733fi
11734RANLIB=$ac_cv_prog_RANLIB
11735if test -n "$RANLIB"; then
11736 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
11737$as_echo "$RANLIB" >&6; }
11738else
11739 { $as_echo "$as_me:$LINENO: result: no" >&5
11740$as_echo "no" >&6; }
11741fi
11742
11743
11744fi
11745if test -z "$ac_cv_prog_RANLIB"; then
11746 ac_ct_RANLIB=$RANLIB
11747 # Extract the first word of "ranlib", so it can be a program name with args.
11748set dummy ranlib; ac_word=$2
11749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11750$as_echo_n "checking for $ac_word... " >&6; }
11751if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11752 $as_echo_n "(cached) " >&6
11753else
11754 if test -n "$ac_ct_RANLIB"; then
11755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11756else
11757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764 ac_cv_prog_ac_ct_RANLIB="ranlib"
11765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 break 2
11767 fi
11768done
11769done
11770IFS=$as_save_IFS
11771
11772fi
11773fi
11774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11775if test -n "$ac_ct_RANLIB"; then
11776 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11777$as_echo "$ac_ct_RANLIB" >&6; }
11778else
11779 { $as_echo "$as_me:$LINENO: result: no" >&5
11780$as_echo "no" >&6; }
11781fi
11782
11783 if test "x$ac_ct_RANLIB" = x; then
11784 RANLIB=":"
11785 else
11786 case $cross_compiling:$ac_tool_warned in
11787yes:)
11788{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11790ac_tool_warned=yes ;;
11791esac
11792 RANLIB=$ac_ct_RANLIB
11793 fi
11794else
11795 RANLIB="$ac_cv_prog_RANLIB"
11796fi
11797
11798
11799
11800 CFLAG_VISIBILITY=
11801 HAVE_VISIBILITY=0
11802 if test -n "$GCC"; then
11803 { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
11804$as_echo_n "checking for simple visibility declarations... " >&6; }
11805 if test "${gl_cv_cc_visibility+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11807else
11808
11809 gl_save_CFLAGS="$CFLAGS"
11810 CFLAGS="$CFLAGS -fvisibility=hidden"
11811 cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11818 extern __attribute__((__visibility__("default"))) int exportedvar;
11819 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11820 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11821int
11822main ()
11823{
11824
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829rm -f conftest.$ac_objext
11830if { (ac_try="$ac_compile"
11831case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836$as_echo "$ac_try_echo") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest.$ac_objext; then
11847 gl_cv_cc_visibility=yes
11848else
11849 $as_echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 gl_cv_cc_visibility=no
11853fi
11854
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 CFLAGS="$gl_save_CFLAGS"
11857fi
11858
11859 { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
11860$as_echo "$gl_cv_cc_visibility" >&6; }
11861 if test $gl_cv_cc_visibility = yes; then
11862 CFLAG_VISIBILITY="-fvisibility=hidden"
11863 HAVE_VISIBILITY=1
11864 fi
11865 fi
11866
11867
11868
11869cat >>confdefs.h <<_ACEOF
11870#define HAVE_VISIBILITY $HAVE_VISIBILITY
11871_ACEOF
11872
11873
11874{ $as_echo "$as_me:$LINENO: checking for inline" >&5
11875$as_echo_n "checking for inline... " >&6; }
11876if test "${ac_cv_c_inline+set}" = set; then
11877 $as_echo_n "(cached) " >&6
11878else
11879 ac_cv_c_inline=no
11880for ac_kw in inline __inline__ __inline; do
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887#ifndef __cplusplus
11888typedef int foo_t;
11889static $ac_kw foo_t static_foo () {return 0; }
11890$ac_kw foo_t foo () {return 0; }
11891#endif
11892
11893_ACEOF
11894rm -f conftest.$ac_objext
11895if { (ac_try="$ac_compile"
11896case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899esac
11900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901$as_echo "$ac_try_echo") >&5
11902 (eval "$ac_compile") 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && {
11909 test -z "$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11911 } && test -s conftest.$ac_objext; then
11912 ac_cv_c_inline=$ac_kw
11913else
11914 $as_echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917
11918fi
11919
11920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 test "$ac_cv_c_inline" != no && break
11922done
11923
11924fi
11925{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11926$as_echo "$ac_cv_c_inline" >&6; }
11927
11928
11929case $ac_cv_c_inline in
11930 inline | yes) ;;
11931 *)
11932 case $ac_cv_c_inline in
11933 no) ac_val=;;
11934 *) ac_val=$ac_cv_c_inline;;
11935 esac
11936 cat >>confdefs.h <<_ACEOF
11937#ifndef __cplusplus
11938#define inline $ac_val
11939#endif
11940_ACEOF
11941 ;;
11942esac
11943
11944{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11945$as_echo_n "checking for size_t... " >&6; }
11946if test "${ac_cv_type_size_t+set}" = set; then
11947 $as_echo_n "(cached) " >&6
11948else
11949 ac_cv_type_size_t=no
11950cat >conftest.$ac_ext <<_ACEOF
11951/* confdefs.h. */
11952_ACEOF
11953cat confdefs.h >>conftest.$ac_ext
11954cat >>conftest.$ac_ext <<_ACEOF
11955/* end confdefs.h. */
11956$ac_includes_default
11957int
11958main ()
11959{
11960if (sizeof (size_t))
11961 return 0;
11962 ;
11963 return 0;
11964}
11965_ACEOF
11966rm -f conftest.$ac_objext
11967if { (ac_try="$ac_compile"
11968case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971esac
11972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973$as_echo "$ac_try_echo") >&5
11974 (eval "$ac_compile") 2>conftest.er1
11975 ac_status=$?
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
11979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && {
11981 test -z "$ac_c_werror_flag" ||
11982 test ! -s conftest.err
11983 } && test -s conftest.$ac_objext; then
11984 cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
11990$ac_includes_default
11991int
11992main ()
11993{
11994if (sizeof ((size_t)))
11995 return 0;
11996 ;
11997 return 0;
11998}
11999_ACEOF
12000rm -f conftest.$ac_objext
12001if { (ac_try="$ac_compile"
12002case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12007$as_echo "$ac_try_echo") >&5
12008 (eval "$ac_compile") 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest.$ac_objext; then
12018 :
12019else
12020 $as_echo "$as_me: failed program was:" >&5
12021sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_type_size_t=yes
12024fi
12025
12026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027else
12028 $as_echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031
12032fi
12033
12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035fi
12036{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12037$as_echo "$ac_cv_type_size_t" >&6; }
12038if test "x$ac_cv_type_size_t" = x""yes; then
12039 :
12040else
12041
12042cat >>confdefs.h <<_ACEOF
12043#define size_t unsigned int
12044_ACEOF
12045
12046fi
12047
12048
12049 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
12050$as_echo_n "checking for stdint.h... " >&6; }
12051if test "${gl_cv_header_stdint_h+set}" = set; then
12052 $as_echo_n "(cached) " >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060#include <sys/types.h>
12061#include <stdint.h>
12062int
12063main ()
12064{
12065uintmax_t i = (uintmax_t) -1; return !i;
12066 ;
12067 return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (ac_try="$ac_compile"
12072case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075esac
12076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077$as_echo "$ac_try_echo") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 gl_cv_header_stdint_h=yes
12089else
12090 $as_echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 gl_cv_header_stdint_h=no
12094fi
12095
12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097fi
12098{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
12099$as_echo "$gl_cv_header_stdint_h" >&6; }
12100 if test $gl_cv_header_stdint_h = yes; then
12101
12102cat >>confdefs.h <<_ACEOF
12103#define HAVE_STDINT_H_WITH_UINTMAX 1
12104_ACEOF
12105
12106 fi
12107
12108# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12109# for constant arguments. Useless!
12110{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
12111$as_echo_n "checking for working alloca.h... " >&6; }
12112if test "${ac_cv_working_alloca_h+set}" = set; then
12113 $as_echo_n "(cached) " >&6
12114else
12115 cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121#include <alloca.h>
12122int
12123main ()
12124{
12125char *p = (char *) alloca (2 * sizeof (int));
12126 if (p) return 0;
12127 ;
12128 return 0;
12129}
12130_ACEOF
12131rm -f conftest.$ac_objext conftest$ac_exeext
12132if { (ac_try="$ac_link"
12133case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12138$as_echo "$ac_try_echo") >&5
12139 (eval "$ac_link") 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } && {
12146 test -z "$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 } && test -s conftest$ac_exeext && {
12149 test "$cross_compiling" = yes ||
12150 $as_test_x conftest$ac_exeext
12151 }; then
12152 ac_cv_working_alloca_h=yes
12153else
12154 $as_echo "$as_me: failed program was:" >&5
12155sed 's/^/| /' conftest.$ac_ext >&5
12156
12157 ac_cv_working_alloca_h=no
12158fi
12159
12160rm -rf conftest.dSYM
12161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12162 conftest$ac_exeext conftest.$ac_ext
12163fi
12164{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12165$as_echo "$ac_cv_working_alloca_h" >&6; }
12166if test $ac_cv_working_alloca_h = yes; then
12167
12168cat >>confdefs.h <<\_ACEOF
12169#define HAVE_ALLOCA_H 1
12170_ACEOF
12171
12172fi
12173
12174{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
12175$as_echo_n "checking for alloca... " >&6; }
12176if test "${ac_cv_func_alloca_works+set}" = set; then
12177 $as_echo_n "(cached) " >&6
12178else
12179 cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185#ifdef __GNUC__
12186# define alloca __builtin_alloca
12187#else
12188# ifdef _MSC_VER
12189# include <malloc.h>
12190# define alloca _alloca
12191# else
12192# ifdef HAVE_ALLOCA_H
12193# include <alloca.h>
12194# else
12195# ifdef _AIX
12196 #pragma alloca
12197# else
12198# ifndef alloca /* predefined by HP cc +Olibcalls */
12199char *alloca ();
12200# endif
12201# endif
12202# endif
12203# endif
12204#endif
12205
12206int
12207main ()
12208{
12209char *p = (char *) alloca (1);
12210 if (p) return 0;
12211 ;
12212 return 0;
12213}
12214_ACEOF
12215rm -f conftest.$ac_objext conftest$ac_exeext
12216if { (ac_try="$ac_link"
12217case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220esac
12221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12222$as_echo "$ac_try_echo") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext && {
12233 test "$cross_compiling" = yes ||
12234 $as_test_x conftest$ac_exeext
12235 }; then
12236 ac_cv_func_alloca_works=yes
12237else
12238 $as_echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 ac_cv_func_alloca_works=no
12242fi
12243
12244rm -rf conftest.dSYM
12245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12246 conftest$ac_exeext conftest.$ac_ext
12247fi
12248{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12249$as_echo "$ac_cv_func_alloca_works" >&6; }
12250
12251if test $ac_cv_func_alloca_works = yes; then
12252
12253cat >>confdefs.h <<\_ACEOF
12254#define HAVE_ALLOCA 1
12255_ACEOF
12256
12257else
12258 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12259# that cause trouble. Some versions do not even contain alloca or
12260# contain a buggy version. If you still want to use their alloca,
12261# use ar to extract alloca.o from them instead of compiling alloca.c.
12262
12263ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12264
12265cat >>confdefs.h <<\_ACEOF
12266#define C_ALLOCA 1
12267_ACEOF
12268
12269
12270{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12271$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12272if test "${ac_cv_os_cray+set}" = set; then
12273 $as_echo_n "(cached) " >&6
12274else
12275 cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281#if defined CRAY && ! defined CRAY2
12282webecray
12283#else
12284wenotbecray
12285#endif
12286
12287_ACEOF
12288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12289 $EGREP "webecray" >/dev/null 2>&1; then
12290 ac_cv_os_cray=yes
12291else
12292 ac_cv_os_cray=no
12293fi
12294rm -f conftest*
12295
12296fi
12297{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12298$as_echo "$ac_cv_os_cray" >&6; }
12299if test $ac_cv_os_cray = yes; then
12300 for ac_func in _getb67 GETB67 getb67; do
12301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12303$as_echo_n "checking for $ac_func... " >&6; }
12304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12305 $as_echo_n "(cached) " >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315#define $ac_func innocuous_$ac_func
12316
12317/* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12321
12322#ifdef __STDC__
12323# include <limits.h>
12324#else
12325# include <assert.h>
12326#endif
12327
12328#undef $ac_func
12329
12330/* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333#ifdef __cplusplus
12334extern "C"
12335#endif
12336char $ac_func ();
12337/* The GNU C library defines this for functions which it implements
12338 to always fail with ENOSYS. Some functions are actually named
12339 something starting with __ and the normal name is an alias. */
12340#if defined __stub_$ac_func || defined __stub___$ac_func
12341choke me
12342#endif
12343
12344int
12345main ()
12346{
12347return $ac_func ();
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (ac_try="$ac_link"
12354case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12359$as_echo "$ac_try_echo") >&5
12360 (eval "$ac_link") 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest$ac_exeext && {
12370 test "$cross_compiling" = yes ||
12371 $as_test_x conftest$ac_exeext
12372 }; then
12373 eval "$as_ac_var=yes"
12374else
12375 $as_echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 eval "$as_ac_var=no"
12379fi
12380
12381rm -rf conftest.dSYM
12382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12383 conftest$ac_exeext conftest.$ac_ext
12384fi
12385ac_res=`eval 'as_val=${'$as_ac_var'}
12386 $as_echo "$as_val"'`
12387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12388$as_echo "$ac_res" >&6; }
12389as_val=`eval 'as_val=${'$as_ac_var'}
12390 $as_echo "$as_val"'`
12391 if test "x$as_val" = x""yes; then
12392
12393cat >>confdefs.h <<_ACEOF
12394#define CRAY_STACKSEG_END $ac_func
12395_ACEOF
12396
12397 break
12398fi
12399
12400 done
12401fi
12402
12403{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12404$as_echo_n "checking stack direction for C alloca... " >&6; }
12405if test "${ac_cv_c_stack_direction+set}" = set; then
12406 $as_echo_n "(cached) " >&6
12407else
12408 if test "$cross_compiling" = yes; then
12409 ac_cv_c_stack_direction=0
12410else
12411 cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417$ac_includes_default
12418int
12419find_stack_direction ()
12420{
12421 static char *addr = 0;
12422 auto char dummy;
12423 if (addr == 0)
12424 {
12425 addr = &dummy;
12426 return find_stack_direction ();
12427 }
12428 else
12429 return (&dummy > addr) ? 1 : -1;
12430}
12431
12432int
12433main ()
12434{
12435 return find_stack_direction () < 0;
12436}
12437_ACEOF
12438rm -f conftest$ac_exeext
12439if { (ac_try="$ac_link"
12440case "(($ac_try" in
12441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12442 *) ac_try_echo=$ac_try;;
12443esac
12444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12445$as_echo "$ac_try_echo") >&5
12446 (eval "$ac_link") 2>&5
12447 ac_status=$?
12448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12450 { (case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453esac
12454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455$as_echo "$ac_try_echo") >&5
12456 (eval "$ac_try") 2>&5
12457 ac_status=$?
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_cv_c_stack_direction=1
12461else
12462 $as_echo "$as_me: program exited with status $ac_status" >&5
12463$as_echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466( exit $ac_status )
12467ac_cv_c_stack_direction=-1
12468fi
12469rm -rf conftest.dSYM
12470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12471fi
12472
12473
12474fi
12475{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12476$as_echo "$ac_cv_c_stack_direction" >&6; }
12477
12478cat >>confdefs.h <<_ACEOF
12479#define STACK_DIRECTION $ac_cv_c_stack_direction
12480_ACEOF
12481
12482
12483fi
12484
12485
12486
12487for ac_header in stdlib.h unistd.h
12488do
12489as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12492$as_echo_n "checking for $ac_header... " >&6; }
12493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12494 $as_echo_n "(cached) " >&6
12495fi
12496ac_res=`eval 'as_val=${'$as_ac_Header'}
12497 $as_echo "$as_val"'`
12498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12499$as_echo "$ac_res" >&6; }
12500else
12501 # Is the header compilable?
12502{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12503$as_echo_n "checking $ac_header usability... " >&6; }
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510$ac_includes_default
12511#include <$ac_header>
12512_ACEOF
12513rm -f conftest.$ac_objext
12514if { (ac_try="$ac_compile"
12515case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518esac
12519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12520$as_echo "$ac_try_echo") >&5
12521 (eval "$ac_compile") 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } && {
12528 test -z "$ac_c_werror_flag" ||
12529 test ! -s conftest.err
12530 } && test -s conftest.$ac_objext; then
12531 ac_header_compiler=yes
12532else
12533 $as_echo "$as_me: failed program was:" >&5
12534sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_header_compiler=no
12537fi
12538
12539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12541$as_echo "$ac_header_compiler" >&6; }
12542
12543# Is the header present?
12544{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12545$as_echo_n "checking $ac_header presence... " >&6; }
12546cat >conftest.$ac_ext <<_ACEOF
12547/* confdefs.h. */
12548_ACEOF
12549cat confdefs.h >>conftest.$ac_ext
12550cat >>conftest.$ac_ext <<_ACEOF
12551/* end confdefs.h. */
12552#include <$ac_header>
12553_ACEOF
12554if { (ac_try="$ac_cpp conftest.$ac_ext"
12555case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558esac
12559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12560$as_echo "$ac_try_echo") >&5
12561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } >/dev/null && {
12568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 }; then
12571 ac_header_preproc=yes
12572else
12573 $as_echo "$as_me: failed program was:" >&5
12574sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 ac_header_preproc=no
12577fi
12578
12579rm -f conftest.err conftest.$ac_ext
12580{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12581$as_echo "$ac_header_preproc" >&6; }
12582
12583# So? What about this header?
12584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12585 yes:no: )
12586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12587$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12589$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12590 ac_header_preproc=yes
12591 ;;
12592 no:yes:* )
12593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12594$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12596$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12598$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12600$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12602$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12604$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12605 ( cat <<\_ASBOX
12606## --------------------------------------------- ##
12607## Report this to upstart-devel@lists.ubuntu.com ##
12608## --------------------------------------------- ##
12609_ASBOX
12610 ) | sed "s/^/$as_me: WARNING: /" >&2
12611 ;;
12612esac
12613{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12614$as_echo_n "checking for $ac_header... " >&6; }
12615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12616 $as_echo_n "(cached) " >&6
12617else
12618 eval "$as_ac_Header=\$ac_header_preproc"
12619fi
12620ac_res=`eval 'as_val=${'$as_ac_Header'}
12621 $as_echo "$as_val"'`
12622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12623$as_echo "$ac_res" >&6; }
12624
12625fi
12626as_val=`eval 'as_val=${'$as_ac_Header'}
12627 $as_echo "$as_val"'`
12628 if test "x$as_val" = x""yes; then
12629 cat >>confdefs.h <<_ACEOF
12630#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12631_ACEOF
12632
12633fi
12634
12635done
12636
12637
12638for ac_func in getpagesize
12639do
12640as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12641{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12642$as_echo_n "checking for $ac_func... " >&6; }
12643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12644 $as_echo_n "(cached) " >&6
12645else
12646 cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12654#define $ac_func innocuous_$ac_func
12655
12656/* System header to define __stub macros and hopefully few prototypes,
12657 which can conflict with char $ac_func (); below.
12658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12659 <limits.h> exists even on freestanding compilers. */
12660
12661#ifdef __STDC__
12662# include <limits.h>
12663#else
12664# include <assert.h>
12665#endif
12666
12667#undef $ac_func
12668
12669/* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12672#ifdef __cplusplus
12673extern "C"
12674#endif
12675char $ac_func ();
12676/* The GNU C library defines this for functions which it implements
12677 to always fail with ENOSYS. Some functions are actually named
12678 something starting with __ and the normal name is an alias. */
12679#if defined __stub_$ac_func || defined __stub___$ac_func
12680choke me
12681#endif
12682
12683int
12684main ()
12685{
12686return $ac_func ();
12687 ;
12688 return 0;
12689}
12690_ACEOF
12691rm -f conftest.$ac_objext conftest$ac_exeext
12692if { (ac_try="$ac_link"
12693case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696esac
12697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12698$as_echo "$ac_try_echo") >&5
12699 (eval "$ac_link") 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest$ac_exeext && {
12709 test "$cross_compiling" = yes ||
12710 $as_test_x conftest$ac_exeext
12711 }; then
12712 eval "$as_ac_var=yes"
12713else
12714 $as_echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 eval "$as_ac_var=no"
12718fi
12719
12720rm -rf conftest.dSYM
12721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12722 conftest$ac_exeext conftest.$ac_ext
12723fi
12724ac_res=`eval 'as_val=${'$as_ac_var'}
12725 $as_echo "$as_val"'`
12726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12727$as_echo "$ac_res" >&6; }
12728as_val=`eval 'as_val=${'$as_ac_var'}
12729 $as_echo "$as_val"'`
12730 if test "x$as_val" = x""yes; then
12731 cat >>confdefs.h <<_ACEOF
12732#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12733_ACEOF
12734
12735fi
12736done
12737
12738{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
12739$as_echo_n "checking for working mmap... " >&6; }
12740if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12741 $as_echo_n "(cached) " >&6
12742else
12743 if test "$cross_compiling" = yes; then
12744 ac_cv_func_mmap_fixed_mapped=no
12745else
12746 cat >conftest.$ac_ext <<_ACEOF
12747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
12752$ac_includes_default
12753/* malloc might have been renamed as rpl_malloc. */
12754#undef malloc
12755
12756/* Thanks to Mike Haertel and Jim Avera for this test.
12757 Here is a matrix of mmap possibilities:
12758 mmap private not fixed
12759 mmap private fixed at somewhere currently unmapped
12760 mmap private fixed at somewhere already mapped
12761 mmap shared not fixed
12762 mmap shared fixed at somewhere currently unmapped
12763 mmap shared fixed at somewhere already mapped
12764 For private mappings, we should verify that changes cannot be read()
12765 back from the file, nor mmap's back from the file at a different
12766 address. (There have been systems where private was not correctly
12767 implemented like the infamous i386 svr4.0, and systems where the
12768 VM page cache was not coherent with the file system buffer cache
12769 like early versions of FreeBSD and possibly contemporary NetBSD.)
12770 For shared mappings, we should conversely verify that changes get
12771 propagated back to all the places they're supposed to be.
12772
12773 Grep wants private fixed already mapped.
12774 The main things grep needs to know about mmap are:
12775 * does it exist and is it safe to write into the mmap'd area
12776 * how to use it (BSD variants) */
12777
12778#include <fcntl.h>
12779#include <sys/mman.h>
12780
12781#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12782char *malloc ();
12783#endif
12784
12785/* This mess was copied from the GNU getpagesize.h. */
12786#ifndef HAVE_GETPAGESIZE
12787/* Assume that all systems that can run configure have sys/param.h. */
12788# ifndef HAVE_SYS_PARAM_H
12789# define HAVE_SYS_PARAM_H 1
12790# endif
12791
12792# ifdef _SC_PAGESIZE
12793# define getpagesize() sysconf(_SC_PAGESIZE)
12794# else /* no _SC_PAGESIZE */
12795# ifdef HAVE_SYS_PARAM_H
12796# include <sys/param.h>
12797# ifdef EXEC_PAGESIZE
12798# define getpagesize() EXEC_PAGESIZE
12799# else /* no EXEC_PAGESIZE */
12800# ifdef NBPG
12801# define getpagesize() NBPG * CLSIZE
12802# ifndef CLSIZE
12803# define CLSIZE 1
12804# endif /* no CLSIZE */
12805# else /* no NBPG */
12806# ifdef NBPC
12807# define getpagesize() NBPC
12808# else /* no NBPC */
12809# ifdef PAGESIZE
12810# define getpagesize() PAGESIZE
12811# endif /* PAGESIZE */
12812# endif /* no NBPC */
12813# endif /* no NBPG */
12814# endif /* no EXEC_PAGESIZE */
12815# else /* no HAVE_SYS_PARAM_H */
12816# define getpagesize() 8192 /* punt totally */
12817# endif /* no HAVE_SYS_PARAM_H */
12818# endif /* no _SC_PAGESIZE */
12819
12820#endif /* no HAVE_GETPAGESIZE */
12821
12822int
12823main ()
12824{
12825 char *data, *data2, *data3;
12826 int i, pagesize;
12827 int fd;
12828
12829 pagesize = getpagesize ();
12830
12831 /* First, make a file with some known garbage in it. */
12832 data = (char *) malloc (pagesize);
12833 if (!data)
12834 return 1;
12835 for (i = 0; i < pagesize; ++i)
12836 *(data + i) = rand ();
12837 umask (0);
12838 fd = creat ("conftest.mmap", 0600);
12839 if (fd < 0)
12840 return 1;
12841 if (write (fd, data, pagesize) != pagesize)
12842 return 1;
12843 close (fd);
12844
12845 /* Next, try to mmap the file at a fixed address which already has
12846 something else allocated at it. If we can, also make sure that
12847 we see the same garbage. */
12848 fd = open ("conftest.mmap", O_RDWR);
12849 if (fd < 0)
12850 return 1;
12851 data2 = (char *) malloc (2 * pagesize);
12852 if (!data2)
12853 return 1;
12854 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12857 return 1;
12858 for (i = 0; i < pagesize; ++i)
12859 if (*(data + i) != *(data2 + i))
12860 return 1;
12861
12862 /* Finally, make sure that changes to the mapped area do not
12863 percolate back to the file as seen by read(). (This is a bug on
12864 some variants of i386 svr4.0.) */
12865 for (i = 0; i < pagesize; ++i)
12866 *(data2 + i) = *(data2 + i) + 1;
12867 data3 = (char *) malloc (pagesize);
12868 if (!data3)
12869 return 1;
12870 if (read (fd, data3, pagesize) != pagesize)
12871 return 1;
12872 for (i = 0; i < pagesize; ++i)
12873 if (*(data + i) != *(data3 + i))
12874 return 1;
12875 close (fd);
12876 return 0;
12877}
12878_ACEOF
12879rm -f conftest$ac_exeext
12880if { (ac_try="$ac_link"
12881case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12886$as_echo "$ac_try_echo") >&5
12887 (eval "$ac_link") 2>&5
12888 ac_status=$?
12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12894esac
12895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12896$as_echo "$ac_try_echo") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_func_mmap_fixed_mapped=yes
12902else
12903 $as_echo "$as_me: program exited with status $ac_status" >&5
12904$as_echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
12906
12907( exit $ac_status )
12908ac_cv_func_mmap_fixed_mapped=no
12909fi
12910rm -rf conftest.dSYM
12911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12912fi
12913
12914
12915fi
12916{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12917$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12918if test $ac_cv_func_mmap_fixed_mapped = yes; then
12919
12920cat >>confdefs.h <<\_ACEOF
12921#define HAVE_MMAP 1
12922_ACEOF
12923
12924fi
12925rm -f conftest.mmap
12926
12927
12928
12929 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
12930$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12931if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
12932 $as_echo_n "(cached) " >&6
12933else
12934
12935 if test "$cross_compiling" = yes; then
12936
12937 # Guess based on the CPU.
12938 case "$host_cpu" in
12939 alpha* | i3456786 | m68k | s390*)
12940 gt_cv_int_divbyzero_sigfpe="guessing yes";;
12941 *)
12942 gt_cv_int_divbyzero_sigfpe="guessing no";;
12943 esac
12944
12945else
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952
12953#include <stdlib.h>
12954#include <signal.h>
12955
12956static void
12957#ifdef __cplusplus
12958sigfpe_handler (int sig)
12959#else
12960sigfpe_handler (sig) int sig;
12961#endif
12962{
12963 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12964 exit (sig != SIGFPE);
12965}
12966
12967int x = 1;
12968int y = 0;
12969int z;
12970int nan;
12971
12972int main ()
12973{
12974 signal (SIGFPE, sigfpe_handler);
12975/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12976#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12977 signal (SIGTRAP, sigfpe_handler);
12978#endif
12979/* Linux/SPARC yields signal SIGILL. */
12980#if defined (__sparc__) && defined (__linux__)
12981 signal (SIGILL, sigfpe_handler);
12982#endif
12983
12984 z = x / y;
12985 nan = y / y;
12986 exit (1);
12987}
12988
12989_ACEOF
12990rm -f conftest$ac_exeext
12991if { (ac_try="$ac_link"
12992case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12995esac
12996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12997$as_echo "$ac_try_echo") >&5
12998 (eval "$ac_link") 2>&5
12999 ac_status=$?
13000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13002 { (case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005esac
13006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007$as_echo "$ac_try_echo") >&5
13008 (eval "$ac_try") 2>&5
13009 ac_status=$?
13010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 gt_cv_int_divbyzero_sigfpe=yes
13013else
13014 $as_echo "$as_me: program exited with status $ac_status" >&5
13015$as_echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018( exit $ac_status )
13019gt_cv_int_divbyzero_sigfpe=no
13020fi
13021rm -rf conftest.dSYM
13022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13023fi
13024
13025
13026
13027fi
13028{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
13029$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13030 case "$gt_cv_int_divbyzero_sigfpe" in
13031 *yes) value=1;;
13032 *) value=0;;
13033 esac
13034
13035cat >>confdefs.h <<_ACEOF
13036#define INTDIV0_RAISES_SIGFPE $value
13037_ACEOF
13038
13039
13040
13041 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
13042$as_echo_n "checking for inttypes.h... " >&6; }
13043if test "${gl_cv_header_inttypes_h+set}" = set; then
13044 $as_echo_n "(cached) " >&6
13045else
13046 cat >conftest.$ac_ext <<_ACEOF
13047/* confdefs.h. */
13048_ACEOF
13049cat confdefs.h >>conftest.$ac_ext
13050cat >>conftest.$ac_ext <<_ACEOF
13051/* end confdefs.h. */
13052#include <sys/types.h>
13053#include <inttypes.h>
13054int
13055main ()
13056{
13057uintmax_t i = (uintmax_t) -1; return !i;
13058 ;
13059 return 0;
13060}
13061_ACEOF
13062rm -f conftest.$ac_objext
13063if { (ac_try="$ac_compile"
13064case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13069$as_echo "$ac_try_echo") >&5
13070 (eval "$ac_compile") 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } && {
13077 test -z "$ac_c_werror_flag" ||
13078 test ! -s conftest.err
13079 } && test -s conftest.$ac_objext; then
13080 gl_cv_header_inttypes_h=yes
13081else
13082 $as_echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 gl_cv_header_inttypes_h=no
13086fi
13087
13088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089fi
13090{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
13091$as_echo "$gl_cv_header_inttypes_h" >&6; }
13092 if test $gl_cv_header_inttypes_h = yes; then
13093
13094cat >>confdefs.h <<_ACEOF
13095#define HAVE_INTTYPES_H_WITH_UINTMAX 1
13096_ACEOF
13097
13098 fi
13099
13100
13101 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
13102$as_echo_n "checking for unsigned long long int... " >&6; }
13103if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13105else
13106 cat >conftest.$ac_ext <<_ACEOF
13107/* confdefs.h. */
13108_ACEOF
13109cat confdefs.h >>conftest.$ac_ext
13110cat >>conftest.$ac_ext <<_ACEOF
13111/* end confdefs.h. */
13112unsigned long long int ull = 18446744073709551615ULL;
13113 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
13114 ? 1 : -1)];
13115 int i = 63;
13116int
13117main ()
13118{
13119unsigned long long int ullmax = 18446744073709551615ull;
13120 return (ull << 63 | ull >> 63 | ull << i | ull >> i
13121 | ullmax / ull | ullmax % ull);
13122 ;
13123 return 0;
13124}
13125_ACEOF
13126rm -f conftest.$ac_objext conftest$ac_exeext
13127if { (ac_try="$ac_link"
13128case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133$as_echo "$ac_try_echo") >&5
13134 (eval "$ac_link") 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && {
13141 test -z "$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13143 } && test -s conftest$ac_exeext && {
13144 test "$cross_compiling" = yes ||
13145 $as_test_x conftest$ac_exeext
13146 }; then
13147 ac_cv_type_unsigned_long_long_int=yes
13148else
13149 $as_echo "$as_me: failed program was:" >&5
13150sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 ac_cv_type_unsigned_long_long_int=no
13153fi
13154
13155rm -rf conftest.dSYM
13156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13157 conftest$ac_exeext conftest.$ac_ext
13158fi
13159{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
13160$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
13161 if test $ac_cv_type_unsigned_long_long_int = yes; then
13162
13163cat >>confdefs.h <<\_ACEOF
13164#define HAVE_UNSIGNED_LONG_LONG_INT 1
13165_ACEOF
13166
13167 fi
13168
13169
13170
13171 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
13172 if test $ac_cv_type_unsigned_long_long = yes; then
13173
13174cat >>confdefs.h <<\_ACEOF
13175#define HAVE_UNSIGNED_LONG_LONG 1
13176_ACEOF
13177
13178 fi
13179
13180
13181
13182
13183 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
13184
13185 test $ac_cv_type_unsigned_long_long = yes \
13186 && ac_type='unsigned long long' \
13187 || ac_type='unsigned long'
13188
13189cat >>confdefs.h <<_ACEOF
13190#define uintmax_t $ac_type
13191_ACEOF
13192
13193 else
13194
13195cat >>confdefs.h <<\_ACEOF
13196#define HAVE_UINTMAX_T 1
13197_ACEOF
13198
13199 fi
13200
13201
13202
13203for ac_header in inttypes.h
13204do
13205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13208$as_echo_n "checking for $ac_header... " >&6; }
13209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13210 $as_echo_n "(cached) " >&6
13211fi
13212ac_res=`eval 'as_val=${'$as_ac_Header'}
13213 $as_echo "$as_val"'`
13214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13215$as_echo "$ac_res" >&6; }
13216else
13217 # Is the header compilable?
13218{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13219$as_echo_n "checking $ac_header usability... " >&6; }
13220cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226$ac_includes_default
13227#include <$ac_header>
13228_ACEOF
13229rm -f conftest.$ac_objext
13230if { (ac_try="$ac_compile"
13231case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234esac
13235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236$as_echo "$ac_try_echo") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 ac_header_compiler=yes
13248else
13249 $as_echo "$as_me: failed program was:" >&5
13250sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 ac_header_compiler=no
13253fi
13254
13255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13257$as_echo "$ac_header_compiler" >&6; }
13258
13259# Is the header present?
13260{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13261$as_echo_n "checking $ac_header presence... " >&6; }
13262cat >conftest.$ac_ext <<_ACEOF
13263/* confdefs.h. */
13264_ACEOF
13265cat confdefs.h >>conftest.$ac_ext
13266cat >>conftest.$ac_ext <<_ACEOF
13267/* end confdefs.h. */
13268#include <$ac_header>
13269_ACEOF
13270if { (ac_try="$ac_cpp conftest.$ac_ext"
13271case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274esac
13275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13276$as_echo "$ac_try_echo") >&5
13277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev/null && {
13284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 }; then
13287 ac_header_preproc=yes
13288else
13289 $as_echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 ac_header_preproc=no
13293fi
13294
13295rm -f conftest.err conftest.$ac_ext
13296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13297$as_echo "$ac_header_preproc" >&6; }
13298
13299# So? What about this header?
13300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13301 yes:no: )
13302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13303$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13305$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13306 ac_header_preproc=yes
13307 ;;
13308 no:yes:* )
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13310$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13312$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13314$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13316$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13318$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13320$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13321 ( cat <<\_ASBOX
13322## --------------------------------------------- ##
13323## Report this to upstart-devel@lists.ubuntu.com ##
13324## --------------------------------------------- ##
13325_ASBOX
13326 ) | sed "s/^/$as_me: WARNING: /" >&2
13327 ;;
13328esac
13329{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13330$as_echo_n "checking for $ac_header... " >&6; }
13331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13332 $as_echo_n "(cached) " >&6
13333else
13334 eval "$as_ac_Header=\$ac_header_preproc"
13335fi
13336ac_res=`eval 'as_val=${'$as_ac_Header'}
13337 $as_echo "$as_val"'`
13338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13339$as_echo "$ac_res" >&6; }
13340
13341fi
13342as_val=`eval 'as_val=${'$as_ac_Header'}
13343 $as_echo "$as_val"'`
13344 if test "x$as_val" = x""yes; then
13345 cat >>confdefs.h <<_ACEOF
13346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13347_ACEOF
13348
13349fi
13350
13351done
13352
13353 if test $ac_cv_header_inttypes_h = yes; then
13354 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
13355$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13356if test "${gt_cv_inttypes_pri_broken+set}" = set; then
13357 $as_echo_n "(cached) " >&6
13358else
13359
13360 cat >conftest.$ac_ext <<_ACEOF
13361/* confdefs.h. */
13362_ACEOF
13363cat confdefs.h >>conftest.$ac_ext
13364cat >>conftest.$ac_ext <<_ACEOF
13365/* end confdefs.h. */
13366#include <inttypes.h>
13367#ifdef PRId32
13368char *p = PRId32;
13369#endif
13370
13371int
13372main ()
13373{
13374
13375 ;
13376 return 0;
13377}
13378_ACEOF
13379rm -f conftest.$ac_objext
13380if { (ac_try="$ac_compile"
13381case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386$as_echo "$ac_try_echo") >&5
13387 (eval "$ac_compile") 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest.$ac_objext; then
13397 gt_cv_inttypes_pri_broken=no
13398else
13399 $as_echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 gt_cv_inttypes_pri_broken=yes
13403fi
13404
13405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406
13407fi
13408{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
13409$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13410 fi
13411 if test "$gt_cv_inttypes_pri_broken" = yes; then
13412
13413cat >>confdefs.h <<_ACEOF
13414#define PRI_MACROS_BROKEN 1
13415_ACEOF
13416
13417 PRI_MACROS_BROKEN=1
13418 else
13419 PRI_MACROS_BROKEN=0
13420 fi
13421
13422
13423
13424
13425
13426 # Check whether --enable-threads was given.
13427if test "${enable_threads+set}" = set; then
13428 enableval=$enable_threads; gl_use_threads=$enableval
13429else
13430 case "$host_os" in
13431 osf*) gl_use_threads=no ;;
13432 *) gl_use_threads=yes ;;
13433 esac
13434
13435fi
13436
13437 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13438 # For using <pthread.h>:
13439 case "$host_os" in
13440 osf*)
13441 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
13442 # groks <pthread.h>. cc also understands the flag -pthread, but
13443 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
13444 # 2. putting a flag into CPPFLAGS that has an effect on the linker
13445 # causes the AC_TRY_LINK test below to succeed unexpectedly,
13446 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
13447 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
13448 ;;
13449 esac
13450 # Some systems optimize for single-threaded programs by default, and
13451 # need special flags to disable these optimizations. For example, the
13452 # definition of 'errno' in <errno.h>.
13453 case "$host_os" in
13454 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
13455 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
13456 esac
13457 fi
13458
13459
13460
13461
13462
13463 if test "X$prefix" = "XNONE"; then
13464 acl_final_prefix="$ac_default_prefix"
13465 else
13466 acl_final_prefix="$prefix"
13467 fi
13468 if test "X$exec_prefix" = "XNONE"; then
13469 acl_final_exec_prefix='${prefix}'
13470 else
13471 acl_final_exec_prefix="$exec_prefix"
13472 fi
13473 acl_save_prefix="$prefix"
13474 prefix="$acl_final_prefix"
13475 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13476 prefix="$acl_save_prefix"
13477
13478
13479# Check whether --with-gnu-ld was given.
13480if test "${with_gnu_ld+set}" = set; then
13481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13482else
13483 with_gnu_ld=no
13484fi
13485
13486# Prepare PATH_SEPARATOR.
13487# The user is always right.
13488if test "${PATH_SEPARATOR+set}" != set; then
13489 echo "#! /bin/sh" >conf$$.sh
13490 echo "exit 0" >>conf$$.sh
13491 chmod +x conf$$.sh
13492 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13493 PATH_SEPARATOR=';'
13494 else
13495 PATH_SEPARATOR=:
13496 fi
13497 rm -f conf$$.sh
13498fi
13499ac_prog=ld
13500if test "$GCC" = yes; then
13501 # Check if gcc -print-prog-name=ld gives a path.
13502 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13503$as_echo_n "checking for ld used by GCC... " >&6; }
13504 case $host in
13505 *-*-mingw*)
13506 # gcc leaves a trailing carriage return which upsets mingw
13507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13508 *)
13509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13510 esac
13511 case $ac_prog in
13512 # Accept absolute paths.
13513 [\\/]* | [A-Za-z]:[\\/]*)
13514 re_direlt='/[^/][^/]*/\.\./'
13515 # Canonicalize the path of ld
13516 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13517 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13518 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13519 done
13520 test -z "$LD" && LD="$ac_prog"
13521 ;;
13522 "")
13523 # If it fails, then pretend we aren't using GCC.
13524 ac_prog=ld
13525 ;;
13526 *)
13527 # If it is relative, then search for the first ld in PATH.
13528 with_gnu_ld=unknown
13529 ;;
13530 esac
13531elif test "$with_gnu_ld" = yes; then
13532 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13533$as_echo_n "checking for GNU ld... " >&6; }
13534else
13535 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13536$as_echo_n "checking for non-GNU ld... " >&6; }
13537fi
13538if test "${acl_cv_path_LD+set}" = set; then
13539 $as_echo_n "(cached) " >&6
13540else
13541 if test -z "$LD"; then
13542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13543 for ac_dir in $PATH; do
13544 test -z "$ac_dir" && ac_dir=.
13545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13546 acl_cv_path_LD="$ac_dir/$ac_prog"
13547 # Check to see if the program is GNU ld. I'd rather use --version,
13548 # but apparently some GNU ld's only accept -v.
13549 # Break only if it was the GNU/non-GNU ld that we prefer.
13550 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13551 *GNU* | *'with BFD'*)
13552 test "$with_gnu_ld" != no && break ;;
13553 *)
13554 test "$with_gnu_ld" != yes && break ;;
13555 esac
13556 fi
13557 done
13558 IFS="$ac_save_ifs"
13559else
13560 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13561fi
13562fi
13563
13564LD="$acl_cv_path_LD"
13565if test -n "$LD"; then
13566 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13567$as_echo "$LD" >&6; }
13568else
13569 { $as_echo "$as_me:$LINENO: result: no" >&5
13570$as_echo "no" >&6; }
13571fi
13572test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13573$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13574 { (exit 1); exit 1; }; }
13575{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13576$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13577if test "${acl_cv_prog_gnu_ld+set}" = set; then
13578 $as_echo_n "(cached) " >&6
13579else
13580 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13581case `$LD -v 2>&1 </dev/null` in
13582*GNU* | *'with BFD'*)
13583 acl_cv_prog_gnu_ld=yes ;;
13584*)
13585 acl_cv_prog_gnu_ld=no ;;
13586esac
13587fi
13588{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13589$as_echo "$acl_cv_prog_gnu_ld" >&6; }
13590with_gnu_ld=$acl_cv_prog_gnu_ld
13591
13592
13593
13594
13595 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13596$as_echo_n "checking for shared library run path origin... " >&6; }
13597if test "${acl_cv_rpath+set}" = set; then
13598 $as_echo_n "(cached) " >&6
13599else
13600
13601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13603 . ./conftest.sh
13604 rm -f ./conftest.sh
13605 acl_cv_rpath=done
13606
13607fi
13608{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13609$as_echo "$acl_cv_rpath" >&6; }
13610 wl="$acl_cv_wl"
13611 libext="$acl_cv_libext"
13612 shlibext="$acl_cv_shlibext"
13613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13615 hardcode_direct="$acl_cv_hardcode_direct"
13616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13617 # Check whether --enable-rpath was given.
13618if test "${enable_rpath+set}" = set; then
13619 enableval=$enable_rpath; :
13620else
13621 enable_rpath=yes
13622fi
13623
13624
13625
13626 acl_libdirstem=lib
13627 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13628 if test -n "$searchpath"; then
13629 acl_save_IFS="${IFS= }"; IFS=":"
13630 for searchdir in $searchpath; do
13631 if test -d "$searchdir"; then
13632 case "$searchdir" in
13633 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13634 *) searchdir=`cd "$searchdir" && pwd`
13635 case "$searchdir" in
13636 */lib64 ) acl_libdirstem=lib64 ;;
13637 esac ;;
13638 esac
13639 fi
13640 done
13641 IFS="$acl_save_IFS"
13642 fi
13643
13644
13645
13646 gl_threads_api=none
13647 LIBTHREAD=
13648 LTLIBTHREAD=
13649 LIBMULTITHREAD=
13650 LTLIBMULTITHREAD=
13651 if test "$gl_use_threads" != no; then
13652 { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
13653$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13654 gl_have_weak=no
13655 cat >conftest.$ac_ext <<_ACEOF
13656/* confdefs.h. */
13657_ACEOF
13658cat confdefs.h >>conftest.$ac_ext
13659cat >>conftest.$ac_ext <<_ACEOF
13660/* end confdefs.h. */
13661extern void xyzzy ();
13662#pragma weak xyzzy
13663int
13664main ()
13665{
13666xyzzy();
13667 ;
13668 return 0;
13669}
13670_ACEOF
13671rm -f conftest.$ac_objext conftest$ac_exeext
13672if { (ac_try="$ac_link"
13673case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676esac
13677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678$as_echo "$ac_try_echo") >&5
13679 (eval "$ac_link") 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } && {
13686 test -z "$ac_c_werror_flag" ||
13687 test ! -s conftest.err
13688 } && test -s conftest$ac_exeext && {
13689 test "$cross_compiling" = yes ||
13690 $as_test_x conftest$ac_exeext
13691 }; then
13692 gl_have_weak=yes
13693else
13694 $as_echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697
13698fi
13699
13700rm -rf conftest.dSYM
13701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13702 conftest$ac_exeext conftest.$ac_ext
13703 { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
13704$as_echo "$gl_have_weak" >&6; }
13705 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13706 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13707 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
13708 if test "${ac_cv_header_pthread_h+set}" = set; then
13709 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13710$as_echo_n "checking for pthread.h... " >&6; }
13711if test "${ac_cv_header_pthread_h+set}" = set; then
13712 $as_echo_n "(cached) " >&6
13713fi
13714{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13715$as_echo "$ac_cv_header_pthread_h" >&6; }
13716else
13717 # Is the header compilable?
13718{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
13719$as_echo_n "checking pthread.h usability... " >&6; }
13720cat >conftest.$ac_ext <<_ACEOF
13721/* confdefs.h. */
13722_ACEOF
13723cat confdefs.h >>conftest.$ac_ext
13724cat >>conftest.$ac_ext <<_ACEOF
13725/* end confdefs.h. */
13726$ac_includes_default
13727#include <pthread.h>
13728_ACEOF
13729rm -f conftest.$ac_objext
13730if { (ac_try="$ac_compile"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13736$as_echo "$ac_try_echo") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13738 ac_status=$?
13739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
13742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && {
13744 test -z "$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 } && test -s conftest.$ac_objext; then
13747 ac_header_compiler=yes
13748else
13749 $as_echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_header_compiler=no
13753fi
13754
13755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13757$as_echo "$ac_header_compiler" >&6; }
13758
13759# Is the header present?
13760{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
13761$as_echo_n "checking pthread.h presence... " >&6; }
13762cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768#include <pthread.h>
13769_ACEOF
13770if { (ac_try="$ac_cpp conftest.$ac_ext"
13771case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774esac
13775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13776$as_echo "$ac_try_echo") >&5
13777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } >/dev/null && {
13784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13785 test ! -s conftest.err
13786 }; then
13787 ac_header_preproc=yes
13788else
13789 $as_echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792 ac_header_preproc=no
13793fi
13794
13795rm -f conftest.err conftest.$ac_ext
13796{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13797$as_echo "$ac_header_preproc" >&6; }
13798
13799# So? What about this header?
13800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13801 yes:no: )
13802 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13803$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13804 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
13805$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
13806 ac_header_preproc=yes
13807 ;;
13808 no:yes:* )
13809 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13810$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13811 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13812$as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13813 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
13814$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
13815 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
13816$as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
13817 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13818$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
13819 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
13820$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
13821 ( cat <<\_ASBOX
13822## --------------------------------------------- ##
13823## Report this to upstart-devel@lists.ubuntu.com ##
13824## --------------------------------------------- ##
13825_ASBOX
13826 ) | sed "s/^/$as_me: WARNING: /" >&2
13827 ;;
13828esac
13829{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13830$as_echo_n "checking for pthread.h... " >&6; }
13831if test "${ac_cv_header_pthread_h+set}" = set; then
13832 $as_echo_n "(cached) " >&6
13833else
13834 ac_cv_header_pthread_h=$ac_header_preproc
13835fi
13836{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13837$as_echo "$ac_cv_header_pthread_h" >&6; }
13838
13839fi
13840if test "x$ac_cv_header_pthread_h" = x""yes; then
13841 gl_have_pthread_h=yes
13842else
13843 gl_have_pthread_h=no
13844fi
13845
13846
13847 if test "$gl_have_pthread_h" = yes; then
13848 # Other possible tests:
13849 # -lpthreads (FSU threads, PCthreads)
13850 # -lgthreads
13851 gl_have_pthread=
13852 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13853 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13854 # the second one only in libpthread, and lock.c needs it.
13855 cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861#include <pthread.h>
13862int
13863main ()
13864{
13865pthread_mutex_lock((pthread_mutex_t*)0);
13866 pthread_mutexattr_init((pthread_mutexattr_t*)0);
13867 ;
13868 return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext conftest$ac_exeext
13872if { (ac_try="$ac_link"
13873case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876esac
13877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878$as_echo "$ac_try_echo") >&5
13879 (eval "$ac_link") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } && {
13886 test -z "$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13888 } && test -s conftest$ac_exeext && {
13889 test "$cross_compiling" = yes ||
13890 $as_test_x conftest$ac_exeext
13891 }; then
13892 gl_have_pthread=yes
13893else
13894 $as_echo "$as_me: failed program was:" >&5
13895sed 's/^/| /' conftest.$ac_ext >&5
13896
13897
13898fi
13899
13900rm -rf conftest.dSYM
13901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13902 conftest$ac_exeext conftest.$ac_ext
13903 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13904 # since it is defined as a macro on OSF/1.)
13905 if test -n "$gl_have_pthread"; then
13906 # The program links fine without libpthread. But it may actually
13907 # need to link with libpthread in order to create multiple threads.
13908 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13909$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13910if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13911 $as_echo_n "(cached) " >&6
13912else
13913 ac_check_lib_save_LIBS=$LIBS
13914LIBS="-lpthread $LIBS"
13915cat >conftest.$ac_ext <<_ACEOF
13916/* confdefs.h. */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
13920/* end confdefs.h. */
13921
13922/* Override any GCC internal prototype to avoid an error.
13923 Use char because int might match the return type of a GCC
13924 builtin and then its argument prototype would still apply. */
13925#ifdef __cplusplus
13926extern "C"
13927#endif
13928char pthread_kill ();
13929int
13930main ()
13931{
13932return pthread_kill ();
13933 ;
13934 return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext conftest$ac_exeext
13938if { (ac_try="$ac_link"
13939case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942esac
13943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13944$as_echo "$ac_try_echo") >&5
13945 (eval "$ac_link") 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } && {
13952 test -z "$ac_c_werror_flag" ||
13953 test ! -s conftest.err
13954 } && test -s conftest$ac_exeext && {
13955 test "$cross_compiling" = yes ||
13956 $as_test_x conftest$ac_exeext
13957 }; then
13958 ac_cv_lib_pthread_pthread_kill=yes
13959else
13960 $as_echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 ac_cv_lib_pthread_pthread_kill=no
13964fi
13965
13966rm -rf conftest.dSYM
13967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13968 conftest$ac_exeext conftest.$ac_ext
13969LIBS=$ac_check_lib_save_LIBS
13970fi
13971{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13972$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13973if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13974 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13975 # On Solaris and HP-UX, most pthread functions exist also in libc.
13976 # Therefore pthread_in_use() needs to actually try to create a
13977 # thread: pthread_create from libc will fail, whereas
13978 # pthread_create will actually create a thread.
13979 case "$host_os" in
13980 solaris* | hpux*)
13981
13982cat >>confdefs.h <<\_ACEOF
13983#define PTHREAD_IN_USE_DETECTION_HARD 1
13984_ACEOF
13985
13986 esac
13987
13988fi
13989
13990 else
13991 # Some library is needed. Try libpthread and libc_r.
13992 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13993$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13994if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13995 $as_echo_n "(cached) " >&6
13996else
13997 ac_check_lib_save_LIBS=$LIBS
13998LIBS="-lpthread $LIBS"
13999cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005
14006/* Override any GCC internal prototype to avoid an error.
14007 Use char because int might match the return type of a GCC
14008 builtin and then its argument prototype would still apply. */
14009#ifdef __cplusplus
14010extern "C"
14011#endif
14012char pthread_kill ();
14013int
14014main ()
14015{
14016return pthread_kill ();
14017 ;
14018 return 0;
14019}
14020_ACEOF
14021rm -f conftest.$ac_objext conftest$ac_exeext
14022if { (ac_try="$ac_link"
14023case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14026esac
14027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14028$as_echo "$ac_try_echo") >&5
14029 (eval "$ac_link") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } && {
14036 test -z "$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 } && test -s conftest$ac_exeext && {
14039 test "$cross_compiling" = yes ||
14040 $as_test_x conftest$ac_exeext
14041 }; then
14042 ac_cv_lib_pthread_pthread_kill=yes
14043else
14044 $as_echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 ac_cv_lib_pthread_pthread_kill=no
14048fi
14049
14050rm -rf conftest.dSYM
14051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14052 conftest$ac_exeext conftest.$ac_ext
14053LIBS=$ac_check_lib_save_LIBS
14054fi
14055{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
14056$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
14057if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
14058 gl_have_pthread=yes
14059 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
14060 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
14061fi
14062
14063 if test -z "$gl_have_pthread"; then
14064 # For FreeBSD 4.
14065 { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
14066$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
14067if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
14068 $as_echo_n "(cached) " >&6
14069else
14070 ac_check_lib_save_LIBS=$LIBS
14071LIBS="-lc_r $LIBS"
14072cat >conftest.$ac_ext <<_ACEOF
14073/* confdefs.h. */
14074_ACEOF
14075cat confdefs.h >>conftest.$ac_ext
14076cat >>conftest.$ac_ext <<_ACEOF
14077/* end confdefs.h. */
14078
14079/* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14082#ifdef __cplusplus
14083extern "C"
14084#endif
14085char pthread_kill ();
14086int
14087main ()
14088{
14089return pthread_kill ();
14090 ;
14091 return 0;
14092}
14093_ACEOF
14094rm -f conftest.$ac_objext conftest$ac_exeext
14095if { (ac_try="$ac_link"
14096case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14101$as_echo "$ac_try_echo") >&5
14102 (eval "$ac_link") 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_exeext && {
14112 test "$cross_compiling" = yes ||
14113 $as_test_x conftest$ac_exeext
14114 }; then
14115 ac_cv_lib_c_r_pthread_kill=yes
14116else
14117 $as_echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 ac_cv_lib_c_r_pthread_kill=no
14121fi
14122
14123rm -rf conftest.dSYM
14124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14125 conftest$ac_exeext conftest.$ac_ext
14126LIBS=$ac_check_lib_save_LIBS
14127fi
14128{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
14129$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
14130if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
14131 gl_have_pthread=yes
14132 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
14133 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
14134fi
14135
14136 fi
14137 fi
14138 if test -n "$gl_have_pthread"; then
14139 gl_threads_api=posix
14140
14141cat >>confdefs.h <<\_ACEOF
14142#define USE_POSIX_THREADS 1
14143_ACEOF
14144
14145 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14146 if test $gl_have_weak = yes; then
14147
14148cat >>confdefs.h <<\_ACEOF
14149#define USE_POSIX_THREADS_WEAK 1
14150_ACEOF
14151
14152 LIBTHREAD=
14153 LTLIBTHREAD=
14154 fi
14155 fi
14156 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
14157 # pthread_rwlock_* functions.
14158 { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
14159$as_echo_n "checking for pthread_rwlock_t... " >&6; }
14160if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
14161 $as_echo_n "(cached) " >&6
14162else
14163 ac_cv_type_pthread_rwlock_t=no
14164cat >conftest.$ac_ext <<_ACEOF
14165/* confdefs.h. */
14166_ACEOF
14167cat confdefs.h >>conftest.$ac_ext
14168cat >>conftest.$ac_ext <<_ACEOF
14169/* end confdefs.h. */
14170#include <pthread.h>
14171
14172int
14173main ()
14174{
14175if (sizeof (pthread_rwlock_t))
14176 return 0;
14177 ;
14178 return 0;
14179}
14180_ACEOF
14181rm -f conftest.$ac_objext
14182if { (ac_try="$ac_compile"
14183case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14186esac
14187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14188$as_echo "$ac_try_echo") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 cat >conftest.$ac_ext <<_ACEOF
14200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
14204/* end confdefs.h. */
14205#include <pthread.h>
14206
14207int
14208main ()
14209{
14210if (sizeof ((pthread_rwlock_t)))
14211 return 0;
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
14217if { (ac_try="$ac_compile"
14218case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14223$as_echo "$ac_try_echo") >&5
14224 (eval "$ac_compile") 2>conftest.er1
14225 ac_status=$?
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
14229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest.$ac_objext; then
14234 :
14235else
14236 $as_echo "$as_me: failed program was:" >&5
14237sed 's/^/| /' conftest.$ac_ext >&5
14238
14239 ac_cv_type_pthread_rwlock_t=yes
14240fi
14241
14242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243else
14244 $as_echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247
14248fi
14249
14250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251fi
14252{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14253$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
14254if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
14255
14256cat >>confdefs.h <<\_ACEOF
14257#define HAVE_PTHREAD_RWLOCK 1
14258_ACEOF
14259
14260fi
14261
14262 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
14263 cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269#include <pthread.h>
14270int
14271main ()
14272{
14273#if __FreeBSD__ == 4
14274error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
14275#else
14276int x = (int)PTHREAD_MUTEX_RECURSIVE;
14277return !x;
14278#endif
14279 ;
14280 return 0;
14281}
14282_ACEOF
14283rm -f conftest.$ac_objext
14284if { (ac_try="$ac_compile"
14285case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14288esac
14289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14290$as_echo "$ac_try_echo") >&5
14291 (eval "$ac_compile") 2>conftest.er1
14292 ac_status=$?
14293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
14296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest.$ac_objext; then
14301
14302cat >>confdefs.h <<\_ACEOF
14303#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
14304_ACEOF
14305
14306else
14307 $as_echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
14310
14311fi
14312
14313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 fi
14316 fi
14317 if test -z "$gl_have_pthread"; then
14318 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
14319 gl_have_solaristhread=
14320 gl_save_LIBS="$LIBS"
14321 LIBS="$LIBS -lthread"
14322 cat >conftest.$ac_ext <<_ACEOF
14323/* confdefs.h. */
14324_ACEOF
14325cat confdefs.h >>conftest.$ac_ext
14326cat >>conftest.$ac_ext <<_ACEOF
14327/* end confdefs.h. */
14328#include <thread.h>
14329#include <synch.h>
14330int
14331main ()
14332{
14333thr_self();
14334 ;
14335 return 0;
14336}
14337_ACEOF
14338rm -f conftest.$ac_objext conftest$ac_exeext
14339if { (ac_try="$ac_link"
14340case "(($ac_try" in
14341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14342 *) ac_try_echo=$ac_try;;
14343esac
14344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14345$as_echo "$ac_try_echo") >&5
14346 (eval "$ac_link") 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } && {
14353 test -z "$ac_c_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest$ac_exeext && {
14356 test "$cross_compiling" = yes ||
14357 $as_test_x conftest$ac_exeext
14358 }; then
14359 gl_have_solaristhread=yes
14360else
14361 $as_echo "$as_me: failed program was:" >&5
14362sed 's/^/| /' conftest.$ac_ext >&5
14363
14364
14365fi
14366
14367rm -rf conftest.dSYM
14368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14369 conftest$ac_exeext conftest.$ac_ext
14370 LIBS="$gl_save_LIBS"
14371 if test -n "$gl_have_solaristhread"; then
14372 gl_threads_api=solaris
14373 LIBTHREAD=-lthread
14374 LTLIBTHREAD=-lthread
14375 LIBMULTITHREAD="$LIBTHREAD"
14376 LTLIBMULTITHREAD="$LTLIBTHREAD"
14377
14378cat >>confdefs.h <<\_ACEOF
14379#define USE_SOLARIS_THREADS 1
14380_ACEOF
14381
14382 if test $gl_have_weak = yes; then
14383
14384cat >>confdefs.h <<\_ACEOF
14385#define USE_SOLARIS_THREADS_WEAK 1
14386_ACEOF
14387
14388 LIBTHREAD=
14389 LTLIBTHREAD=
14390 fi
14391 fi
14392 fi
14393 fi
14394 if test "$gl_use_threads" = pth; then
14395 gl_save_CPPFLAGS="$CPPFLAGS"
14396
14397
14398
14399
14400
14401 { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
14402$as_echo_n "checking how to link with libpth... " >&6; }
14403if test "${ac_cv_libpth_libs+set}" = set; then
14404 $as_echo_n "(cached) " >&6
14405else
14406
14407
14408
14409
14410 use_additional=yes
14411
14412 acl_save_prefix="$prefix"
14413 prefix="$acl_final_prefix"
14414 acl_save_exec_prefix="$exec_prefix"
14415 exec_prefix="$acl_final_exec_prefix"
14416
14417 eval additional_includedir=\"$includedir\"
14418 eval additional_libdir=\"$libdir\"
14419
14420 exec_prefix="$acl_save_exec_prefix"
14421 prefix="$acl_save_prefix"
14422
14423
14424# Check whether --with-libpth-prefix was given.
14425if test "${with_libpth_prefix+set}" = set; then
14426 withval=$with_libpth_prefix;
14427 if test "X$withval" = "Xno"; then
14428 use_additional=no
14429 else
14430 if test "X$withval" = "X"; then
14431
14432 acl_save_prefix="$prefix"
14433 prefix="$acl_final_prefix"
14434 acl_save_exec_prefix="$exec_prefix"
14435 exec_prefix="$acl_final_exec_prefix"
14436
14437 eval additional_includedir=\"$includedir\"
14438 eval additional_libdir=\"$libdir\"
14439
14440 exec_prefix="$acl_save_exec_prefix"
14441 prefix="$acl_save_prefix"
14442
14443 else
14444 additional_includedir="$withval/include"
14445 additional_libdir="$withval/$acl_libdirstem"
14446 fi
14447 fi
14448
14449fi
14450
14451 LIBPTH=
14452 LTLIBPTH=
14453 INCPTH=
14454 rpathdirs=
14455 ltrpathdirs=
14456 names_already_handled=
14457 names_next_round='pth '
14458 while test -n "$names_next_round"; do
14459 names_this_round="$names_next_round"
14460 names_next_round=
14461 for name in $names_this_round; do
14462 already_handled=
14463 for n in $names_already_handled; do
14464 if test "$n" = "$name"; then
14465 already_handled=yes
14466 break
14467 fi
14468 done
14469 if test -z "$already_handled"; then
14470 names_already_handled="$names_already_handled $name"
14471 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14472 eval value=\"\$HAVE_LIB$uppername\"
14473 if test -n "$value"; then
14474 if test "$value" = yes; then
14475 eval value=\"\$LIB$uppername\"
14476 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
14477 eval value=\"\$LTLIB$uppername\"
14478 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
14479 else
14480 :
14481 fi
14482 else
14483 found_dir=
14484 found_la=
14485 found_so=
14486 found_a=
14487 if test $use_additional = yes; then
14488 if test -n "$shlibext" \
14489 && { test -f "$additional_libdir/lib$name.$shlibext" \
14490 || { test "$shlibext" = dll \
14491 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14492 found_dir="$additional_libdir"
14493 if test -f "$additional_libdir/lib$name.$shlibext"; then
14494 found_so="$additional_libdir/lib$name.$shlibext"
14495 else
14496 found_so="$additional_libdir/lib$name.dll.a"
14497 fi
14498 if test -f "$additional_libdir/lib$name.la"; then
14499 found_la="$additional_libdir/lib$name.la"
14500 fi
14501 else
14502 if test -f "$additional_libdir/lib$name.$libext"; then
14503 found_dir="$additional_libdir"
14504 found_a="$additional_libdir/lib$name.$libext"
14505 if test -f "$additional_libdir/lib$name.la"; then
14506 found_la="$additional_libdir/lib$name.la"
14507 fi
14508 fi
14509 fi
14510 fi
14511 if test "X$found_dir" = "X"; then
14512 for x in $LDFLAGS $LTLIBPTH; do
14513
14514 acl_save_prefix="$prefix"
14515 prefix="$acl_final_prefix"
14516 acl_save_exec_prefix="$exec_prefix"
14517 exec_prefix="$acl_final_exec_prefix"
14518 eval x=\"$x\"
14519 exec_prefix="$acl_save_exec_prefix"
14520 prefix="$acl_save_prefix"
14521
14522 case "$x" in
14523 -L*)
14524 dir=`echo "X$x" | sed -e 's/^X-L//'`
14525 if test -n "$shlibext" \
14526 && { test -f "$dir/lib$name.$shlibext" \
14527 || { test "$shlibext" = dll \
14528 && test -f "$dir/lib$name.dll.a"; }; }; then
14529 found_dir="$dir"
14530 if test -f "$dir/lib$name.$shlibext"; then
14531 found_so="$dir/lib$name.$shlibext"
14532 else
14533 found_so="$dir/lib$name.dll.a"
14534 fi
14535 if test -f "$dir/lib$name.la"; then
14536 found_la="$dir/lib$name.la"
14537 fi
14538 else
14539 if test -f "$dir/lib$name.$libext"; then
14540 found_dir="$dir"
14541 found_a="$dir/lib$name.$libext"
14542 if test -f "$dir/lib$name.la"; then
14543 found_la="$dir/lib$name.la"
14544 fi
14545 fi
14546 fi
14547 ;;
14548 esac
14549 if test "X$found_dir" != "X"; then
14550 break
14551 fi
14552 done
14553 fi
14554 if test "X$found_dir" != "X"; then
14555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
14556 if test "X$found_so" != "X"; then
14557 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14558 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14559 else
14560 haveit=
14561 for x in $ltrpathdirs; do
14562 if test "X$x" = "X$found_dir"; then
14563 haveit=yes
14564 break
14565 fi
14566 done
14567 if test -z "$haveit"; then
14568 ltrpathdirs="$ltrpathdirs $found_dir"
14569 fi
14570 if test "$hardcode_direct" = yes; then
14571 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14572 else
14573 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14574 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14575 haveit=
14576 for x in $rpathdirs; do
14577 if test "X$x" = "X$found_dir"; then
14578 haveit=yes
14579 break
14580 fi
14581 done
14582 if test -z "$haveit"; then
14583 rpathdirs="$rpathdirs $found_dir"
14584 fi
14585 else
14586 haveit=
14587 for x in $LDFLAGS $LIBPTH; do
14588
14589 acl_save_prefix="$prefix"
14590 prefix="$acl_final_prefix"
14591 acl_save_exec_prefix="$exec_prefix"
14592 exec_prefix="$acl_final_exec_prefix"
14593 eval x=\"$x\"
14594 exec_prefix="$acl_save_exec_prefix"
14595 prefix="$acl_save_prefix"
14596
14597 if test "X$x" = "X-L$found_dir"; then
14598 haveit=yes
14599 break
14600 fi
14601 done
14602 if test -z "$haveit"; then
14603 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
14604 fi
14605 if test "$hardcode_minus_L" != no; then
14606 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14607 else
14608 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14609 fi
14610 fi
14611 fi
14612 fi
14613 else
14614 if test "X$found_a" != "X"; then
14615 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
14616 else
14617 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
14618 fi
14619 fi
14620 additional_includedir=
14621 case "$found_dir" in
14622 */$acl_libdirstem | */$acl_libdirstem/)
14623 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14624 additional_includedir="$basedir/include"
14625 ;;
14626 esac
14627 if test "X$additional_includedir" != "X"; then
14628 if test "X$additional_includedir" != "X/usr/include"; then
14629 haveit=
14630 if test "X$additional_includedir" = "X/usr/local/include"; then
14631 if test -n "$GCC"; then
14632 case $host_os in
14633 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14634 esac
14635 fi
14636 fi
14637 if test -z "$haveit"; then
14638 for x in $CPPFLAGS $INCPTH; do
14639
14640 acl_save_prefix="$prefix"
14641 prefix="$acl_final_prefix"
14642 acl_save_exec_prefix="$exec_prefix"
14643 exec_prefix="$acl_final_exec_prefix"
14644 eval x=\"$x\"
14645 exec_prefix="$acl_save_exec_prefix"
14646 prefix="$acl_save_prefix"
14647
14648 if test "X$x" = "X-I$additional_includedir"; then
14649 haveit=yes
14650 break
14651 fi
14652 done
14653 if test -z "$haveit"; then
14654 if test -d "$additional_includedir"; then
14655 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
14656 fi
14657 fi
14658 fi
14659 fi
14660 fi
14661 if test -n "$found_la"; then
14662 save_libdir="$libdir"
14663 case "$found_la" in
14664 */* | *\\*) . "$found_la" ;;
14665 *) . "./$found_la" ;;
14666 esac
14667 libdir="$save_libdir"
14668 for dep in $dependency_libs; do
14669 case "$dep" in
14670 -L*)
14671 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14672 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14673 haveit=
14674 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14675 if test -n "$GCC"; then
14676 case $host_os in
14677 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14678 esac
14679 fi
14680 fi
14681 if test -z "$haveit"; then
14682 haveit=
14683 for x in $LDFLAGS $LIBPTH; do
14684
14685 acl_save_prefix="$prefix"
14686 prefix="$acl_final_prefix"
14687 acl_save_exec_prefix="$exec_prefix"
14688 exec_prefix="$acl_final_exec_prefix"
14689 eval x=\"$x\"
14690 exec_prefix="$acl_save_exec_prefix"
14691 prefix="$acl_save_prefix"
14692
14693 if test "X$x" = "X-L$additional_libdir"; then
14694 haveit=yes
14695 break
14696 fi
14697 done
14698 if test -z "$haveit"; then
14699 if test -d "$additional_libdir"; then
14700 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
14701 fi
14702 fi
14703 haveit=
14704 for x in $LDFLAGS $LTLIBPTH; do
14705
14706 acl_save_prefix="$prefix"
14707 prefix="$acl_final_prefix"
14708 acl_save_exec_prefix="$exec_prefix"
14709 exec_prefix="$acl_final_exec_prefix"
14710 eval x=\"$x\"
14711 exec_prefix="$acl_save_exec_prefix"
14712 prefix="$acl_save_prefix"
14713
14714 if test "X$x" = "X-L$additional_libdir"; then
14715 haveit=yes
14716 break
14717 fi
14718 done
14719 if test -z "$haveit"; then
14720 if test -d "$additional_libdir"; then
14721 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
14722 fi
14723 fi
14724 fi
14725 fi
14726 ;;
14727 -R*)
14728 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14729 if test "$enable_rpath" != no; then
14730 haveit=
14731 for x in $rpathdirs; do
14732 if test "X$x" = "X$dir"; then
14733 haveit=yes
14734 break
14735 fi
14736 done
14737 if test -z "$haveit"; then
14738 rpathdirs="$rpathdirs $dir"
14739 fi
14740 haveit=
14741 for x in $ltrpathdirs; do
14742 if test "X$x" = "X$dir"; then
14743 haveit=yes
14744 break
14745 fi
14746 done
14747 if test -z "$haveit"; then
14748 ltrpathdirs="$ltrpathdirs $dir"
14749 fi
14750 fi
14751 ;;
14752 -l*)
14753 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14754 ;;
14755 *.la)
14756 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14757 ;;
14758 *)
14759 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
14760 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
14761 ;;
14762 esac
14763 done
14764 fi
14765 else
14766 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14767 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
14768 fi
14769 fi
14770 fi
14771 done
14772 done
14773 if test "X$rpathdirs" != "X"; then
14774 if test -n "$hardcode_libdir_separator"; then
14775 alldirs=
14776 for found_dir in $rpathdirs; do
14777 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14778 done
14779 acl_save_libdir="$libdir"
14780 libdir="$alldirs"
14781 eval flag=\"$hardcode_libdir_flag_spec\"
14782 libdir="$acl_save_libdir"
14783 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14784 else
14785 for found_dir in $rpathdirs; do
14786 acl_save_libdir="$libdir"
14787 libdir="$found_dir"
14788 eval flag=\"$hardcode_libdir_flag_spec\"
14789 libdir="$acl_save_libdir"
14790 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14791 done
14792 fi
14793 fi
14794 if test "X$ltrpathdirs" != "X"; then
14795 for found_dir in $ltrpathdirs; do
14796 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
14797 done
14798 fi
14799
14800 ac_cv_libpth_libs="$LIBPTH"
14801 ac_cv_libpth_ltlibs="$LTLIBPTH"
14802 ac_cv_libpth_cppflags="$INCPTH"
14803
14804fi
14805{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
14806$as_echo "$ac_cv_libpth_libs" >&6; }
14807 LIBPTH="$ac_cv_libpth_libs"
14808 LTLIBPTH="$ac_cv_libpth_ltlibs"
14809 INCPTH="$ac_cv_libpth_cppflags"
14810
14811 for element in $INCPTH; do
14812 haveit=
14813 for x in $CPPFLAGS; do
14814
14815 acl_save_prefix="$prefix"
14816 prefix="$acl_final_prefix"
14817 acl_save_exec_prefix="$exec_prefix"
14818 exec_prefix="$acl_final_exec_prefix"
14819 eval x=\"$x\"
14820 exec_prefix="$acl_save_exec_prefix"
14821 prefix="$acl_save_prefix"
14822
14823 if test "X$x" = "X$element"; then
14824 haveit=yes
14825 break
14826 fi
14827 done
14828 if test -z "$haveit"; then
14829 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14830 fi
14831 done
14832
14833
14834
14835 HAVE_LIBPTH=yes
14836
14837
14838
14839 gl_have_pth=
14840 gl_save_LIBS="$LIBS"
14841 LIBS="$LIBS -lpth"
14842 cat >conftest.$ac_ext <<_ACEOF
14843/* confdefs.h. */
14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848#include <pth.h>
14849int
14850main ()
14851{
14852pth_self();
14853 ;
14854 return 0;
14855}
14856_ACEOF
14857rm -f conftest.$ac_objext conftest$ac_exeext
14858if { (ac_try="$ac_link"
14859case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862esac
14863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14864$as_echo "$ac_try_echo") >&5
14865 (eval "$ac_link") 2>conftest.er1
14866 ac_status=$?
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
14870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } && {
14872 test -z "$ac_c_werror_flag" ||
14873 test ! -s conftest.err
14874 } && test -s conftest$ac_exeext && {
14875 test "$cross_compiling" = yes ||
14876 $as_test_x conftest$ac_exeext
14877 }; then
14878 gl_have_pth=yes
14879else
14880 $as_echo "$as_me: failed program was:" >&5
14881sed 's/^/| /' conftest.$ac_ext >&5
14882
14883
14884fi
14885
14886rm -rf conftest.dSYM
14887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LIBS="$gl_save_LIBS"
14890 if test -n "$gl_have_pth"; then
14891 gl_threads_api=pth
14892 LIBTHREAD="$LIBPTH"
14893 LTLIBTHREAD="$LTLIBPTH"
14894 LIBMULTITHREAD="$LIBTHREAD"
14895 LTLIBMULTITHREAD="$LTLIBTHREAD"
14896
14897cat >>confdefs.h <<\_ACEOF
14898#define USE_PTH_THREADS 1
14899_ACEOF
14900
14901 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14902 if test $gl_have_weak = yes; then
14903
14904cat >>confdefs.h <<\_ACEOF
14905#define USE_PTH_THREADS_WEAK 1
14906_ACEOF
14907
14908 LIBTHREAD=
14909 LTLIBTHREAD=
14910 fi
14911 fi
14912 else
14913 CPPFLAGS="$gl_save_CPPFLAGS"
14914 fi
14915 fi
14916 if test -z "$gl_have_pthread"; then
14917 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
14918 if { case "$host_os" in
14919 mingw*) true;;
14920 *) false;;
14921 esac
14922 }; then
14923 gl_threads_api=win32
14924
14925cat >>confdefs.h <<\_ACEOF
14926#define USE_WIN32_THREADS 1
14927_ACEOF
14928
14929 fi
14930 fi
14931 fi
14932 fi
14933 { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
14934$as_echo_n "checking for multithread API to use... " >&6; }
14935 { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
14936$as_echo "$gl_threads_api" >&6; }
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956 use_additional=yes
14957
14958 acl_save_prefix="$prefix"
14959 prefix="$acl_final_prefix"
14960 acl_save_exec_prefix="$exec_prefix"
14961 exec_prefix="$acl_final_exec_prefix"
14962
14963 eval additional_includedir=\"$includedir\"
14964 eval additional_libdir=\"$libdir\"
14965
14966 exec_prefix="$acl_save_exec_prefix"
14967 prefix="$acl_save_prefix"
14968
14969
14970# Check whether --with-libiconv-prefix was given.
14971if test "${with_libiconv_prefix+set}" = set; then
14972 withval=$with_libiconv_prefix;
14973 if test "X$withval" = "Xno"; then
14974 use_additional=no
14975 else
14976 if test "X$withval" = "X"; then
14977
14978 acl_save_prefix="$prefix"
14979 prefix="$acl_final_prefix"
14980 acl_save_exec_prefix="$exec_prefix"
14981 exec_prefix="$acl_final_exec_prefix"
14982
14983 eval additional_includedir=\"$includedir\"
14984 eval additional_libdir=\"$libdir\"
14985
14986 exec_prefix="$acl_save_exec_prefix"
14987 prefix="$acl_save_prefix"
14988
14989 else
14990 additional_includedir="$withval/include"
14991 additional_libdir="$withval/$acl_libdirstem"
14992 fi
14993 fi
14994
14995fi
14996
14997 LIBICONV=
14998 LTLIBICONV=
14999 INCICONV=
15000 rpathdirs=
15001 ltrpathdirs=
15002 names_already_handled=
15003 names_next_round='iconv '
15004 while test -n "$names_next_round"; do
15005 names_this_round="$names_next_round"
15006 names_next_round=
15007 for name in $names_this_round; do
15008 already_handled=
15009 for n in $names_already_handled; do
15010 if test "$n" = "$name"; then
15011 already_handled=yes
15012 break
15013 fi
15014 done
15015 if test -z "$already_handled"; then
15016 names_already_handled="$names_already_handled $name"
15017 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15018 eval value=\"\$HAVE_LIB$uppername\"
15019 if test -n "$value"; then
15020 if test "$value" = yes; then
15021 eval value=\"\$LIB$uppername\"
15022 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15023 eval value=\"\$LTLIB$uppername\"
15024 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15025 else
15026 :
15027 fi
15028 else
15029 found_dir=
15030 found_la=
15031 found_so=
15032 found_a=
15033 if test $use_additional = yes; then
15034 if test -n "$shlibext" \
15035 && { test -f "$additional_libdir/lib$name.$shlibext" \
15036 || { test "$shlibext" = dll \
15037 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
15038 found_dir="$additional_libdir"
15039 if test -f "$additional_libdir/lib$name.$shlibext"; then
15040 found_so="$additional_libdir/lib$name.$shlibext"
15041 else
15042 found_so="$additional_libdir/lib$name.dll.a"
15043 fi
15044 if test -f "$additional_libdir/lib$name.la"; then
15045 found_la="$additional_libdir/lib$name.la"
15046 fi
15047 else
15048 if test -f "$additional_libdir/lib$name.$libext"; then
15049 found_dir="$additional_libdir"
15050 found_a="$additional_libdir/lib$name.$libext"
15051 if test -f "$additional_libdir/lib$name.la"; then
15052 found_la="$additional_libdir/lib$name.la"
15053 fi
15054 fi
15055 fi
15056 fi
15057 if test "X$found_dir" = "X"; then
15058 for x in $LDFLAGS $LTLIBICONV; do
15059
15060 acl_save_prefix="$prefix"
15061 prefix="$acl_final_prefix"
15062 acl_save_exec_prefix="$exec_prefix"
15063 exec_prefix="$acl_final_exec_prefix"
15064 eval x=\"$x\"
15065 exec_prefix="$acl_save_exec_prefix"
15066 prefix="$acl_save_prefix"
15067
15068 case "$x" in
15069 -L*)
15070 dir=`echo "X$x" | sed -e 's/^X-L//'`
15071 if test -n "$shlibext" \
15072 && { test -f "$dir/lib$name.$shlibext" \
15073 || { test "$shlibext" = dll \
15074 && test -f "$dir/lib$name.dll.a"; }; }; then
15075 found_dir="$dir"
15076 if test -f "$dir/lib$name.$shlibext"; then
15077 found_so="$dir/lib$name.$shlibext"
15078 else
15079 found_so="$dir/lib$name.dll.a"
15080 fi
15081 if test -f "$dir/lib$name.la"; then
15082 found_la="$dir/lib$name.la"
15083 fi
15084 else
15085 if test -f "$dir/lib$name.$libext"; then
15086 found_dir="$dir"
15087 found_a="$dir/lib$name.$libext"
15088 if test -f "$dir/lib$name.la"; then
15089 found_la="$dir/lib$name.la"
15090 fi
15091 fi
15092 fi
15093 ;;
15094 esac
15095 if test "X$found_dir" != "X"; then
15096 break
15097 fi
15098 done
15099 fi
15100 if test "X$found_dir" != "X"; then
15101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15102 if test "X$found_so" != "X"; then
15103 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15105 else
15106 haveit=
15107 for x in $ltrpathdirs; do
15108 if test "X$x" = "X$found_dir"; then
15109 haveit=yes
15110 break
15111 fi
15112 done
15113 if test -z "$haveit"; then
15114 ltrpathdirs="$ltrpathdirs $found_dir"
15115 fi
15116 if test "$hardcode_direct" = yes; then
15117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15118 else
15119 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15121 haveit=
15122 for x in $rpathdirs; do
15123 if test "X$x" = "X$found_dir"; then
15124 haveit=yes
15125 break
15126 fi
15127 done
15128 if test -z "$haveit"; then
15129 rpathdirs="$rpathdirs $found_dir"
15130 fi
15131 else
15132 haveit=
15133 for x in $LDFLAGS $LIBICONV; do
15134
15135 acl_save_prefix="$prefix"
15136 prefix="$acl_final_prefix"
15137 acl_save_exec_prefix="$exec_prefix"
15138 exec_prefix="$acl_final_exec_prefix"
15139 eval x=\"$x\"
15140 exec_prefix="$acl_save_exec_prefix"
15141 prefix="$acl_save_prefix"
15142
15143 if test "X$x" = "X-L$found_dir"; then
15144 haveit=yes
15145 break
15146 fi
15147 done
15148 if test -z "$haveit"; then
15149 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15150 fi
15151 if test "$hardcode_minus_L" != no; then
15152 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15153 else
15154 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15155 fi
15156 fi
15157 fi
15158 fi
15159 else
15160 if test "X$found_a" != "X"; then
15161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15162 else
15163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15164 fi
15165 fi
15166 additional_includedir=
15167 case "$found_dir" in
15168 */$acl_libdirstem | */$acl_libdirstem/)
15169 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15170 additional_includedir="$basedir/include"
15171 ;;
15172 esac
15173 if test "X$additional_includedir" != "X"; then
15174 if test "X$additional_includedir" != "X/usr/include"; then
15175 haveit=
15176 if test "X$additional_includedir" = "X/usr/local/include"; then
15177 if test -n "$GCC"; then
15178 case $host_os in
15179 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15180 esac
15181 fi
15182 fi
15183 if test -z "$haveit"; then
15184 for x in $CPPFLAGS $INCICONV; do
15185
15186 acl_save_prefix="$prefix"
15187 prefix="$acl_final_prefix"
15188 acl_save_exec_prefix="$exec_prefix"
15189 exec_prefix="$acl_final_exec_prefix"
15190 eval x=\"$x\"
15191 exec_prefix="$acl_save_exec_prefix"
15192 prefix="$acl_save_prefix"
15193
15194 if test "X$x" = "X-I$additional_includedir"; then
15195 haveit=yes
15196 break
15197 fi
15198 done
15199 if test -z "$haveit"; then
15200 if test -d "$additional_includedir"; then
15201 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15202 fi
15203 fi
15204 fi
15205 fi
15206 fi
15207 if test -n "$found_la"; then
15208 save_libdir="$libdir"
15209 case "$found_la" in
15210 */* | *\\*) . "$found_la" ;;
15211 *) . "./$found_la" ;;
15212 esac
15213 libdir="$save_libdir"
15214 for dep in $dependency_libs; do
15215 case "$dep" in
15216 -L*)
15217 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15218 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15219 haveit=
15220 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15221 if test -n "$GCC"; then
15222 case $host_os in
15223 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15224 esac
15225 fi
15226 fi
15227 if test -z "$haveit"; then
15228 haveit=
15229 for x in $LDFLAGS $LIBICONV; do
15230
15231 acl_save_prefix="$prefix"
15232 prefix="$acl_final_prefix"
15233 acl_save_exec_prefix="$exec_prefix"
15234 exec_prefix="$acl_final_exec_prefix"
15235 eval x=\"$x\"
15236 exec_prefix="$acl_save_exec_prefix"
15237 prefix="$acl_save_prefix"
15238
15239 if test "X$x" = "X-L$additional_libdir"; then
15240 haveit=yes
15241 break
15242 fi
15243 done
15244 if test -z "$haveit"; then
15245 if test -d "$additional_libdir"; then
15246 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15247 fi
15248 fi
15249 haveit=
15250 for x in $LDFLAGS $LTLIBICONV; do
15251
15252 acl_save_prefix="$prefix"
15253 prefix="$acl_final_prefix"
15254 acl_save_exec_prefix="$exec_prefix"
15255 exec_prefix="$acl_final_exec_prefix"
15256 eval x=\"$x\"
15257 exec_prefix="$acl_save_exec_prefix"
15258 prefix="$acl_save_prefix"
15259
15260 if test "X$x" = "X-L$additional_libdir"; then
15261 haveit=yes
15262 break
15263 fi
15264 done
15265 if test -z "$haveit"; then
15266 if test -d "$additional_libdir"; then
15267 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15268 fi
15269 fi
15270 fi
15271 fi
15272 ;;
15273 -R*)
15274 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15275 if test "$enable_rpath" != no; then
15276 haveit=
15277 for x in $rpathdirs; do
15278 if test "X$x" = "X$dir"; then
15279 haveit=yes
15280 break
15281 fi
15282 done
15283 if test -z "$haveit"; then
15284 rpathdirs="$rpathdirs $dir"
15285 fi
15286 haveit=
15287 for x in $ltrpathdirs; do
15288 if test "X$x" = "X$dir"; then
15289 haveit=yes
15290 break
15291 fi
15292 done
15293 if test -z "$haveit"; then
15294 ltrpathdirs="$ltrpathdirs $dir"
15295 fi
15296 fi
15297 ;;
15298 -l*)
15299 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15300 ;;
15301 *.la)
15302 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15303 ;;
15304 *)
15305 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15306 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15307 ;;
15308 esac
15309 done
15310 fi
15311 else
15312 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15314 fi
15315 fi
15316 fi
15317 done
15318 done
15319 if test "X$rpathdirs" != "X"; then
15320 if test -n "$hardcode_libdir_separator"; then
15321 alldirs=
15322 for found_dir in $rpathdirs; do
15323 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15324 done
15325 acl_save_libdir="$libdir"
15326 libdir="$alldirs"
15327 eval flag=\"$hardcode_libdir_flag_spec\"
15328 libdir="$acl_save_libdir"
15329 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15330 else
15331 for found_dir in $rpathdirs; do
15332 acl_save_libdir="$libdir"
15333 libdir="$found_dir"
15334 eval flag=\"$hardcode_libdir_flag_spec\"
15335 libdir="$acl_save_libdir"
15336 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15337 done
15338 fi
15339 fi
15340 if test "X$ltrpathdirs" != "X"; then
15341 for found_dir in $ltrpathdirs; do
15342 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15343 done
15344 fi
15345
15346
15347
15348
15349
15350 cat >conftest.$ac_ext <<_ACEOF
15351/* confdefs.h. */
15352_ACEOF
15353cat confdefs.h >>conftest.$ac_ext
15354cat >>conftest.$ac_ext <<_ACEOF
15355/* end confdefs.h. */
15356int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
15357int
15358main ()
15359{
15360
15361 ;
15362 return 0;
15363}
15364_ACEOF
15365rm -f conftest.$ac_objext conftest$ac_exeext
15366if { (ac_try="$ac_link"
15367case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370esac
15371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372$as_echo "$ac_try_echo") >&5
15373 (eval "$ac_link") 2>conftest.er1
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest$ac_exeext && {
15383 test "$cross_compiling" = yes ||
15384 $as_test_x conftest$ac_exeext
15385 }; then
15386
15387cat >>confdefs.h <<\_ACEOF
15388#define HAVE_BUILTIN_EXPECT 1
15389_ACEOF
15390
15391else
15392 $as_echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395
15396fi
15397
15398rm -rf conftest.dSYM
15399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15400 conftest$ac_exeext conftest.$ac_ext
15401
15402
15403
15404
15405
15406
15407for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
15408do
15409as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15412$as_echo_n "checking for $ac_header... " >&6; }
15413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15414 $as_echo_n "(cached) " >&6
15415fi
15416ac_res=`eval 'as_val=${'$as_ac_Header'}
15417 $as_echo "$as_val"'`
15418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15419$as_echo "$ac_res" >&6; }
15420else
15421 # Is the header compilable?
15422{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15423$as_echo_n "checking $ac_header usability... " >&6; }
15424cat >conftest.$ac_ext <<_ACEOF
15425/* confdefs.h. */
15426_ACEOF
15427cat confdefs.h >>conftest.$ac_ext
15428cat >>conftest.$ac_ext <<_ACEOF
15429/* end confdefs.h. */
15430$ac_includes_default
15431#include <$ac_header>
15432_ACEOF
15433rm -f conftest.$ac_objext
15434if { (ac_try="$ac_compile"
15435case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438esac
15439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15440$as_echo "$ac_try_echo") >&5
15441 (eval "$ac_compile") 2>conftest.er1
15442 ac_status=$?
15443 grep -v '^ *+' conftest.er1 >conftest.err
15444 rm -f conftest.er1
15445 cat conftest.err >&5
15446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); } && {
15448 test -z "$ac_c_werror_flag" ||
15449 test ! -s conftest.err
15450 } && test -s conftest.$ac_objext; then
15451 ac_header_compiler=yes
15452else
15453 $as_echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 ac_header_compiler=no
15457fi
15458
15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15460{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15461$as_echo "$ac_header_compiler" >&6; }
15462
15463# Is the header present?
15464{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15465$as_echo_n "checking $ac_header presence... " >&6; }
15466cat >conftest.$ac_ext <<_ACEOF
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472#include <$ac_header>
15473_ACEOF
15474if { (ac_try="$ac_cpp conftest.$ac_ext"
15475case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478esac
15479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15480$as_echo "$ac_try_echo") >&5
15481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15482 ac_status=$?
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
15486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } >/dev/null && {
15488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15489 test ! -s conftest.err
15490 }; then
15491 ac_header_preproc=yes
15492else
15493 $as_echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496 ac_header_preproc=no
15497fi
15498
15499rm -f conftest.err conftest.$ac_ext
15500{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15501$as_echo "$ac_header_preproc" >&6; }
15502
15503# So? What about this header?
15504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505 yes:no: )
15506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15507$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15509$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15510 ac_header_preproc=yes
15511 ;;
15512 no:yes:* )
15513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15514$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15516$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15518$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15520$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15522$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15524$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15525 ( cat <<\_ASBOX
15526## --------------------------------------------- ##
15527## Report this to upstart-devel@lists.ubuntu.com ##
15528## --------------------------------------------- ##
15529_ASBOX
15530 ) | sed "s/^/$as_me: WARNING: /" >&2
15531 ;;
15532esac
15533{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15534$as_echo_n "checking for $ac_header... " >&6; }
15535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15536 $as_echo_n "(cached) " >&6
15537else
15538 eval "$as_ac_Header=\$ac_header_preproc"
15539fi
15540ac_res=`eval 'as_val=${'$as_ac_Header'}
15541 $as_echo "$as_val"'`
15542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15543$as_echo "$ac_res" >&6; }
15544
15545fi
15546as_val=`eval 'as_val=${'$as_ac_Header'}
15547 $as_echo "$as_val"'`
15548 if test "x$as_val" = x""yes; then
15549 cat >>confdefs.h <<_ACEOF
15550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15551_ACEOF
15552
15553fi
15554
15555done
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
15574 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
15575 argz_next __fsetlocking
15576do
15577as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15578{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15579$as_echo_n "checking for $ac_func... " >&6; }
15580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15581 $as_echo_n "(cached) " >&6
15582else
15583 cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15591#define $ac_func innocuous_$ac_func
15592
15593/* System header to define __stub macros and hopefully few prototypes,
15594 which can conflict with char $ac_func (); below.
15595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15596 <limits.h> exists even on freestanding compilers. */
15597
15598#ifdef __STDC__
15599# include <limits.h>
15600#else
15601# include <assert.h>
15602#endif
15603
15604#undef $ac_func
15605
15606/* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15609#ifdef __cplusplus
15610extern "C"
15611#endif
15612char $ac_func ();
15613/* The GNU C library defines this for functions which it implements
15614 to always fail with ENOSYS. Some functions are actually named
15615 something starting with __ and the normal name is an alias. */
15616#if defined __stub_$ac_func || defined __stub___$ac_func
15617choke me
15618#endif
15619
15620int
15621main ()
15622{
15623return $ac_func ();
15624 ;
15625 return 0;
15626}
15627_ACEOF
15628rm -f conftest.$ac_objext conftest$ac_exeext
15629if { (ac_try="$ac_link"
15630case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15633esac
15634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15635$as_echo "$ac_try_echo") >&5
15636 (eval "$ac_link") 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } && {
15643 test -z "$ac_c_werror_flag" ||
15644 test ! -s conftest.err
15645 } && test -s conftest$ac_exeext && {
15646 test "$cross_compiling" = yes ||
15647 $as_test_x conftest$ac_exeext
15648 }; then
15649 eval "$as_ac_var=yes"
15650else
15651 $as_echo "$as_me: failed program was:" >&5
15652sed 's/^/| /' conftest.$ac_ext >&5
15653
15654 eval "$as_ac_var=no"
15655fi
15656
15657rm -rf conftest.dSYM
15658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15660fi
15661ac_res=`eval 'as_val=${'$as_ac_var'}
15662 $as_echo "$as_val"'`
15663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15664$as_echo "$ac_res" >&6; }
15665as_val=`eval 'as_val=${'$as_ac_var'}
15666 $as_echo "$as_val"'`
15667 if test "x$as_val" = x""yes; then
15668 cat >>confdefs.h <<_ACEOF
15669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15670_ACEOF
15671
15672fi
15673done
15674
15675
15676
15677 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
15678$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
15679if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
15680 $as_echo_n "(cached) " >&6
15681else
15682 cat >conftest.$ac_ext <<_ACEOF
15683/* confdefs.h. */
15684_ACEOF
15685cat confdefs.h >>conftest.$ac_ext
15686cat >>conftest.$ac_ext <<_ACEOF
15687/* end confdefs.h. */
15688#include <stdio.h>
15689int
15690main ()
15691{
15692
15693#ifndef feof_unlocked
15694 char *p = (char *) feof_unlocked;
15695#endif
15696
15697 ;
15698 return 0;
15699}
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (ac_try="$ac_compile"
15703case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15708$as_echo "$ac_try_echo") >&5
15709 (eval "$ac_compile") 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } && {
15716 test -z "$ac_c_werror_flag" ||
15717 test ! -s conftest.err
15718 } && test -s conftest.$ac_objext; then
15719 ac_cv_have_decl_feof_unlocked=yes
15720else
15721 $as_echo "$as_me: failed program was:" >&5
15722sed 's/^/| /' conftest.$ac_ext >&5
15723
15724 ac_cv_have_decl_feof_unlocked=no
15725fi
15726
15727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728fi
15729{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
15730$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
15731 if test $ac_cv_have_decl_feof_unlocked = yes; then
15732 gt_value=1
15733 else
15734 gt_value=0
15735 fi
15736
15737cat >>confdefs.h <<_ACEOF
15738#define HAVE_DECL_FEOF_UNLOCKED $gt_value
15739_ACEOF
15740
15741
15742
15743 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
15744$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
15745if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
15746 $as_echo_n "(cached) " >&6
15747else
15748 cat >conftest.$ac_ext <<_ACEOF
15749/* confdefs.h. */
15750_ACEOF
15751cat confdefs.h >>conftest.$ac_ext
15752cat >>conftest.$ac_ext <<_ACEOF
15753/* end confdefs.h. */
15754#include <stdio.h>
15755int
15756main ()
15757{
15758
15759#ifndef fgets_unlocked
15760 char *p = (char *) fgets_unlocked;
15761#endif
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext
15768if { (ac_try="$ac_compile"
15769case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15774$as_echo "$ac_try_echo") >&5
15775 (eval "$ac_compile") 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_c_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest.$ac_objext; then
15785 ac_cv_have_decl_fgets_unlocked=yes
15786else
15787 $as_echo "$as_me: failed program was:" >&5
15788sed 's/^/| /' conftest.$ac_ext >&5
15789
15790 ac_cv_have_decl_fgets_unlocked=no
15791fi
15792
15793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794fi
15795{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
15796$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
15797 if test $ac_cv_have_decl_fgets_unlocked = yes; then
15798 gt_value=1
15799 else
15800 gt_value=0
15801 fi
15802
15803cat >>confdefs.h <<_ACEOF
15804#define HAVE_DECL_FGETS_UNLOCKED $gt_value
15805_ACEOF
15806
15807
15808
15809
15810
15811
15812
15813
15814 am_save_CPPFLAGS="$CPPFLAGS"
15815
15816 for element in $INCICONV; do
15817 haveit=
15818 for x in $CPPFLAGS; do
15819
15820 acl_save_prefix="$prefix"
15821 prefix="$acl_final_prefix"
15822 acl_save_exec_prefix="$exec_prefix"
15823 exec_prefix="$acl_final_exec_prefix"
15824 eval x=\"$x\"
15825 exec_prefix="$acl_save_exec_prefix"
15826 prefix="$acl_save_prefix"
15827
15828 if test "X$x" = "X$element"; then
15829 haveit=yes
15830 break
15831 fi
15832 done
15833 if test -z "$haveit"; then
15834 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15835 fi
15836 done
15837
15838
15839 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
15840$as_echo_n "checking for iconv... " >&6; }
15841if test "${am_cv_func_iconv+set}" = set; then
15842 $as_echo_n "(cached) " >&6
15843else
15844
15845 am_cv_func_iconv="no, consider installing GNU libiconv"
15846 am_cv_lib_iconv=no
15847 cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853#include <stdlib.h>
15854#include <iconv.h>
15855int
15856main ()
15857{
15858iconv_t cd = iconv_open("","");
15859 iconv(cd,NULL,NULL,NULL,NULL);
15860 iconv_close(cd);
15861 ;
15862 return 0;
15863}
15864_ACEOF
15865rm -f conftest.$ac_objext conftest$ac_exeext
15866if { (ac_try="$ac_link"
15867case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872$as_echo "$ac_try_echo") >&5
15873 (eval "$ac_link") 2>conftest.er1
15874 ac_status=$?
15875 grep -v '^ *+' conftest.er1 >conftest.err
15876 rm -f conftest.er1
15877 cat conftest.err >&5
15878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext && {
15883 test "$cross_compiling" = yes ||
15884 $as_test_x conftest$ac_exeext
15885 }; then
15886 am_cv_func_iconv=yes
15887else
15888 $as_echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891
15892fi
15893
15894rm -rf conftest.dSYM
15895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15896 conftest$ac_exeext conftest.$ac_ext
15897 if test "$am_cv_func_iconv" != yes; then
15898 am_save_LIBS="$LIBS"
15899 LIBS="$LIBS $LIBICONV"
15900 cat >conftest.$ac_ext <<_ACEOF
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
15906#include <stdlib.h>
15907#include <iconv.h>
15908int
15909main ()
15910{
15911iconv_t cd = iconv_open("","");
15912 iconv(cd,NULL,NULL,NULL,NULL);
15913 iconv_close(cd);
15914 ;
15915 return 0;
15916}
15917_ACEOF
15918rm -f conftest.$ac_objext conftest$ac_exeext
15919if { (ac_try="$ac_link"
15920case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923esac
15924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15925$as_echo "$ac_try_echo") >&5
15926 (eval "$ac_link") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext && {
15936 test "$cross_compiling" = yes ||
15937 $as_test_x conftest$ac_exeext
15938 }; then
15939 am_cv_lib_iconv=yes
15940 am_cv_func_iconv=yes
15941else
15942 $as_echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945
15946fi
15947
15948rm -rf conftest.dSYM
15949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950 conftest$ac_exeext conftest.$ac_ext
15951 LIBS="$am_save_LIBS"
15952 fi
15953
15954fi
15955{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15956$as_echo "$am_cv_func_iconv" >&6; }
15957 if test "$am_cv_func_iconv" = yes; then
15958
15959cat >>confdefs.h <<\_ACEOF
15960#define HAVE_ICONV 1
15961_ACEOF
15962
15963 fi
15964 if test "$am_cv_lib_iconv" = yes; then
15965 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
15966$as_echo_n "checking how to link with libiconv... " >&6; }
15967 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
15968$as_echo "$LIBICONV" >&6; }
15969 else
15970 CPPFLAGS="$am_save_CPPFLAGS"
15971 LIBICONV=
15972 LTLIBICONV=
15973 fi
15974
15975
15976
15977 if test "$am_cv_func_iconv" = yes; then
15978 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
15979$as_echo_n "checking for iconv declaration... " >&6; }
15980 if test "${am_cv_proto_iconv+set}" = set; then
15981 $as_echo_n "(cached) " >&6
15982else
15983
15984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990
15991#include <stdlib.h>
15992#include <iconv.h>
15993extern
15994#ifdef __cplusplus
15995"C"
15996#endif
15997#if defined(__STDC__) || defined(__cplusplus)
15998size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15999#else
16000size_t iconv();
16001#endif
16002
16003int
16004main ()
16005{
16006
16007 ;
16008 return 0;
16009}
16010_ACEOF
16011rm -f conftest.$ac_objext
16012if { (ac_try="$ac_compile"
16013case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016esac
16017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018$as_echo "$ac_try_echo") >&5
16019 (eval "$ac_compile") 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest.$ac_objext; then
16029 am_cv_proto_iconv_arg1=""
16030else
16031 $as_echo "$as_me: failed program was:" >&5
16032sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 am_cv_proto_iconv_arg1="const"
16035fi
16036
16037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16039fi
16040
16041 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16042 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
16043 }$am_cv_proto_iconv" >&5
16044$as_echo "${ac_t:-
16045 }$am_cv_proto_iconv" >&6; }
16046
16047cat >>confdefs.h <<_ACEOF
16048#define ICONV_CONST $am_cv_proto_iconv_arg1
16049_ACEOF
16050
16051 fi
16052
16053
16054 { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
16055$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
16056if test "${gt_cv_nl_locale_name+set}" = set; then
16057 $as_echo_n "(cached) " >&6
16058else
16059 cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
16065#include <langinfo.h>
16066#include <locale.h>
16067int
16068main ()
16069{
16070char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
16071 ;
16072 return 0;
16073}
16074_ACEOF
16075rm -f conftest.$ac_objext conftest$ac_exeext
16076if { (ac_try="$ac_link"
16077case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080esac
16081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16082$as_echo "$ac_try_echo") >&5
16083 (eval "$ac_link") 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && {
16090 test -z "$ac_c_werror_flag" ||
16091 test ! -s conftest.err
16092 } && test -s conftest$ac_exeext && {
16093 test "$cross_compiling" = yes ||
16094 $as_test_x conftest$ac_exeext
16095 }; then
16096 gt_cv_nl_locale_name=yes
16097else
16098 $as_echo "$as_me: failed program was:" >&5
16099sed 's/^/| /' conftest.$ac_ext >&5
16100
16101 gt_cv_nl_locale_name=no
16102fi
16103
16104rm -rf conftest.dSYM
16105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16106 conftest$ac_exeext conftest.$ac_ext
16107
16108fi
16109{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
16110$as_echo "$gt_cv_nl_locale_name" >&6; }
16111 if test $gt_cv_nl_locale_name = yes; then
16112
16113cat >>confdefs.h <<\_ACEOF
16114#define HAVE_NL_LOCALE_NAME 1
16115_ACEOF
16116
16117 fi
16118
16119 for ac_prog in bison
16120do
16121 # Extract the first word of "$ac_prog", so it can be a program name with args.
16122set dummy $ac_prog; ac_word=$2
16123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16124$as_echo_n "checking for $ac_word... " >&6; }
16125if test "${ac_cv_prog_INTLBISON+set}" = set; then
16126 $as_echo_n "(cached) " >&6
16127else
16128 if test -n "$INTLBISON"; then
16129 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16130else
16131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16132for as_dir in $PATH
16133do
16134 IFS=$as_save_IFS
16135 test -z "$as_dir" && as_dir=.
16136 for ac_exec_ext in '' $ac_executable_extensions; do
16137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16138 ac_cv_prog_INTLBISON="$ac_prog"
16139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 break 2
16141 fi
16142done
16143done
16144IFS=$as_save_IFS
16145
16146fi
16147fi
16148INTLBISON=$ac_cv_prog_INTLBISON
16149if test -n "$INTLBISON"; then
16150 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
16151$as_echo "$INTLBISON" >&6; }
16152else
16153 { $as_echo "$as_me:$LINENO: result: no" >&5
16154$as_echo "no" >&6; }
16155fi
16156
16157
16158 test -n "$INTLBISON" && break
16159done
16160
16161 if test -z "$INTLBISON"; then
16162 ac_verc_fail=yes
16163 else
16164 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
16165$as_echo_n "checking version of bison... " >&6; }
16166 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16167 case $ac_prog_version in
16168 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16169 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16170 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16171 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16172 esac
16173 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16174$as_echo "$ac_prog_version" >&6; }
16175 fi
16176 if test $ac_verc_fail = yes; then
16177 INTLBISON=:
16178 fi
16179
16180
16181 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16182$as_echo_n "checking for long long int... " >&6; }
16183if test "${ac_cv_type_long_long_int+set}" = set; then
16184 $as_echo_n "(cached) " >&6
16185else
16186 cat >conftest.$ac_ext <<_ACEOF
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192long long int ll = 9223372036854775807ll;
16193 long long int nll = -9223372036854775807LL;
16194 typedef int a[((-9223372036854775807LL < 0
16195 && 0 < 9223372036854775807ll)
16196 ? 1 : -1)];
16197 int i = 63;
16198int
16199main ()
16200{
16201long long int llmax = 9223372036854775807ll;
16202 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16203 | (llmax / ll) | (llmax % ll));
16204 ;
16205 return 0;
16206}
16207_ACEOF
16208rm -f conftest.$ac_objext conftest$ac_exeext
16209if { (ac_try="$ac_link"
16210case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213esac
16214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215$as_echo "$ac_try_echo") >&5
16216 (eval "$ac_link") 2>conftest.er1
16217 ac_status=$?
16218 grep -v '^ *+' conftest.er1 >conftest.err
16219 rm -f conftest.er1
16220 cat conftest.err >&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && {
16223 test -z "$ac_c_werror_flag" ||
16224 test ! -s conftest.err
16225 } && test -s conftest$ac_exeext && {
16226 test "$cross_compiling" = yes ||
16227 $as_test_x conftest$ac_exeext
16228 }; then
16229 ac_cv_type_long_long_int=yes
16230else
16231 $as_echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ac_cv_type_long_long_int=no
16235fi
16236
16237rm -rf conftest.dSYM
16238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16239 conftest$ac_exeext conftest.$ac_ext
16240fi
16241{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16242$as_echo "$ac_cv_type_long_long_int" >&6; }
16243 if test $ac_cv_type_long_long_int = yes; then
16244
16245cat >>confdefs.h <<\_ACEOF
16246#define HAVE_LONG_LONG_INT 1
16247_ACEOF
16248
16249 fi
16250
16251
16252 { $as_echo "$as_me:$LINENO: checking for long double" >&5
16253$as_echo_n "checking for long double... " >&6; }
16254if test "${gt_cv_c_long_double+set}" = set; then
16255 $as_echo_n "(cached) " >&6
16256else
16257 if test "$GCC" = yes; then
16258 gt_cv_c_long_double=yes
16259 else
16260 cat >conftest.$ac_ext <<_ACEOF
16261/* confdefs.h. */
16262_ACEOF
16263cat confdefs.h >>conftest.$ac_ext
16264cat >>conftest.$ac_ext <<_ACEOF
16265/* end confdefs.h. */
16266
16267 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
16268 long double foo = 0.0;
16269 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16270 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
16271
16272int
16273main ()
16274{
16275
16276 ;
16277 return 0;
16278}
16279_ACEOF
16280rm -f conftest.$ac_objext
16281if { (ac_try="$ac_compile"
16282case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285esac
16286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287$as_echo "$ac_try_echo") >&5
16288 (eval "$ac_compile") 2>conftest.er1
16289 ac_status=$?
16290 grep -v '^ *+' conftest.er1 >conftest.err
16291 rm -f conftest.er1
16292 cat conftest.err >&5
16293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); } && {
16295 test -z "$ac_c_werror_flag" ||
16296 test ! -s conftest.err
16297 } && test -s conftest.$ac_objext; then
16298 gt_cv_c_long_double=yes
16299else
16300 $as_echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 gt_cv_c_long_double=no
16304fi
16305
16306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 fi
16308fi
16309{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
16310$as_echo "$gt_cv_c_long_double" >&6; }
16311 if test $gt_cv_c_long_double = yes; then
16312
16313cat >>confdefs.h <<\_ACEOF
16314#define HAVE_LONG_DOUBLE 1
16315_ACEOF
16316
16317 fi
16318
16319
16320 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16321$as_echo_n "checking for wchar_t... " >&6; }
16322if test "${gt_cv_c_wchar_t+set}" = set; then
16323 $as_echo_n "(cached) " >&6
16324else
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331#include <stddef.h>
16332 wchar_t foo = (wchar_t)'\0';
16333int
16334main ()
16335{
16336
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext
16342if { (ac_try="$ac_compile"
16343case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346esac
16347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16348$as_echo "$ac_try_echo") >&5
16349 (eval "$ac_compile") 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } && {
16356 test -z "$ac_c_werror_flag" ||
16357 test ! -s conftest.err
16358 } && test -s conftest.$ac_objext; then
16359 gt_cv_c_wchar_t=yes
16360else
16361 $as_echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 gt_cv_c_wchar_t=no
16365fi
16366
16367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368fi
16369{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16370$as_echo "$gt_cv_c_wchar_t" >&6; }
16371 if test $gt_cv_c_wchar_t = yes; then
16372
16373cat >>confdefs.h <<\_ACEOF
16374#define HAVE_WCHAR_T 1
16375_ACEOF
16376
16377 fi
16378
16379
16380 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
16381$as_echo_n "checking for wint_t... " >&6; }
16382if test "${gt_cv_c_wint_t+set}" = set; then
16383 $as_echo_n "(cached) " >&6
16384else
16385 cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391#include <wchar.h>
16392 wint_t foo = (wchar_t)'\0';
16393int
16394main ()
16395{
16396
16397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext
16402if { (ac_try="$ac_compile"
16403case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16408$as_echo "$ac_try_echo") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } && {
16416 test -z "$ac_c_werror_flag" ||
16417 test ! -s conftest.err
16418 } && test -s conftest.$ac_objext; then
16419 gt_cv_c_wint_t=yes
16420else
16421 $as_echo "$as_me: failed program was:" >&5
16422sed 's/^/| /' conftest.$ac_ext >&5
16423
16424 gt_cv_c_wint_t=no
16425fi
16426
16427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428fi
16429{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
16430$as_echo "$gt_cv_c_wint_t" >&6; }
16431 if test $gt_cv_c_wint_t = yes; then
16432
16433cat >>confdefs.h <<\_ACEOF
16434#define HAVE_WINT_T 1
16435_ACEOF
16436
16437 fi
16438
16439
16440
16441
16442 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
16443$as_echo_n "checking for intmax_t... " >&6; }
16444if test "${gt_cv_c_intmax_t+set}" = set; then
16445 $as_echo_n "(cached) " >&6
16446else
16447 cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453
16454#include <stddef.h>
16455#include <stdlib.h>
16456#if HAVE_STDINT_H_WITH_UINTMAX
16457#include <stdint.h>
16458#endif
16459#if HAVE_INTTYPES_H_WITH_UINTMAX
16460#include <inttypes.h>
16461#endif
16462
16463int
16464main ()
16465{
16466intmax_t x = -1;
16467 return !x;
16468 ;
16469 return 0;
16470}
16471_ACEOF
16472rm -f conftest.$ac_objext
16473if { (ac_try="$ac_compile"
16474case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477esac
16478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479$as_echo "$ac_try_echo") >&5
16480 (eval "$ac_compile") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest.$ac_objext; then
16490 gt_cv_c_intmax_t=yes
16491else
16492 $as_echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 gt_cv_c_intmax_t=no
16496fi
16497
16498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16499fi
16500{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
16501$as_echo "$gt_cv_c_intmax_t" >&6; }
16502 if test $gt_cv_c_intmax_t = yes; then
16503
16504cat >>confdefs.h <<\_ACEOF
16505#define HAVE_INTMAX_T 1
16506_ACEOF
16507
16508 fi
16509
16510
16511
16512 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
16513$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
16514if test "${gt_cv_func_printf_posix+set}" = set; then
16515 $as_echo_n "(cached) " >&6
16516else
16517
16518 if test "$cross_compiling" = yes; then
16519
16520 cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
16526
16527#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
16528 notposix
16529#endif
16530
16531_ACEOF
16532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16533 $EGREP "notposix" >/dev/null 2>&1; then
16534 gt_cv_func_printf_posix="guessing no"
16535else
16536 gt_cv_func_printf_posix="guessing yes"
16537fi
16538rm -f conftest*
16539
16540
16541else
16542 cat >conftest.$ac_ext <<_ACEOF
16543/* confdefs.h. */
16544_ACEOF
16545cat confdefs.h >>conftest.$ac_ext
16546cat >>conftest.$ac_ext <<_ACEOF
16547/* end confdefs.h. */
16548
16549#include <stdio.h>
16550#include <string.h>
16551/* The string "%2$d %1$d", with dollar characters protected from the shell's
16552 dollar expansion (possibly an autoconf bug). */
16553static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
16554static char buf[100];
16555int main ()
16556{
16557 sprintf (buf, format, 33, 55);
16558 return (strcmp (buf, "55 33") != 0);
16559}
16560_ACEOF
16561rm -f conftest$ac_exeext
16562if { (ac_try="$ac_link"
16563case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566esac
16567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16568$as_echo "$ac_try_echo") >&5
16569 (eval "$ac_link") 2>&5
16570 ac_status=$?
16571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16578$as_echo "$ac_try_echo") >&5
16579 (eval "$ac_try") 2>&5
16580 ac_status=$?
16581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 gt_cv_func_printf_posix=yes
16584else
16585 $as_echo "$as_me: program exited with status $ac_status" >&5
16586$as_echo "$as_me: failed program was:" >&5
16587sed 's/^/| /' conftest.$ac_ext >&5
16588
16589( exit $ac_status )
16590gt_cv_func_printf_posix=no
16591fi
16592rm -rf conftest.dSYM
16593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16594fi
16595
16596
16597
16598fi
16599{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
16600$as_echo "$gt_cv_func_printf_posix" >&6; }
16601 case $gt_cv_func_printf_posix in
16602 *yes)
16603
16604cat >>confdefs.h <<\_ACEOF
16605#define HAVE_POSIX_PRINTF 1
16606_ACEOF
16607
16608 ;;
16609 esac
16610
16611
16612 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
16613$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
16614if test "${ac_cv_gnu_library_2_1+set}" = set; then
16615 $as_echo_n "(cached) " >&6
16616else
16617 cat >conftest.$ac_ext <<_ACEOF
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
16623
16624#include <features.h>
16625#ifdef __GNU_LIBRARY__
16626 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16627 Lucky GNU user
16628 #endif
16629#endif
16630
16631_ACEOF
16632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16633 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
16634 ac_cv_gnu_library_2_1=yes
16635else
16636 ac_cv_gnu_library_2_1=no
16637fi
16638rm -f conftest*
16639
16640
16641
16642fi
16643{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
16644$as_echo "$ac_cv_gnu_library_2_1" >&6; }
16645
16646 GLIBC21="$ac_cv_gnu_library_2_1"
16647
16648
16649
16650
16651for ac_header in stdint.h
16652do
16653as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16656$as_echo_n "checking for $ac_header... " >&6; }
16657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16658 $as_echo_n "(cached) " >&6
16659fi
16660ac_res=`eval 'as_val=${'$as_ac_Header'}
16661 $as_echo "$as_val"'`
16662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16663$as_echo "$ac_res" >&6; }
16664else
16665 # Is the header compilable?
16666{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16667$as_echo_n "checking $ac_header usability... " >&6; }
16668cat >conftest.$ac_ext <<_ACEOF
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674$ac_includes_default
16675#include <$ac_header>
16676_ACEOF
16677rm -f conftest.$ac_objext
16678if { (ac_try="$ac_compile"
16679case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682esac
16683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16684$as_echo "$ac_try_echo") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest.$ac_objext; then
16695 ac_header_compiler=yes
16696else
16697 $as_echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_header_compiler=no
16701fi
16702
16703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16704{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16705$as_echo "$ac_header_compiler" >&6; }
16706
16707# Is the header present?
16708{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16709$as_echo_n "checking $ac_header presence... " >&6; }
16710cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716#include <$ac_header>
16717_ACEOF
16718if { (ac_try="$ac_cpp conftest.$ac_ext"
16719case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724$as_echo "$ac_try_echo") >&5
16725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } >/dev/null && {
16732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 }; then
16735 ac_header_preproc=yes
16736else
16737 $as_echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ac_header_preproc=no
16741fi
16742
16743rm -f conftest.err conftest.$ac_ext
16744{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16745$as_echo "$ac_header_preproc" >&6; }
16746
16747# So? What about this header?
16748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16749 yes:no: )
16750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16751$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16753$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16754 ac_header_preproc=yes
16755 ;;
16756 no:yes:* )
16757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16758$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16760$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16762$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16764$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16766$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16768$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16769 ( cat <<\_ASBOX
16770## --------------------------------------------- ##
16771## Report this to upstart-devel@lists.ubuntu.com ##
16772## --------------------------------------------- ##
16773_ASBOX
16774 ) | sed "s/^/$as_me: WARNING: /" >&2
16775 ;;
16776esac
16777{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16778$as_echo_n "checking for $ac_header... " >&6; }
16779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 $as_echo_n "(cached) " >&6
16781else
16782 eval "$as_ac_Header=\$ac_header_preproc"
16783fi
16784ac_res=`eval 'as_val=${'$as_ac_Header'}
16785 $as_echo "$as_val"'`
16786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16787$as_echo "$ac_res" >&6; }
16788
16789fi
16790as_val=`eval 'as_val=${'$as_ac_Header'}
16791 $as_echo "$as_val"'`
16792 if test "x$as_val" = x""yes; then
16793 cat >>confdefs.h <<_ACEOF
16794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16795_ACEOF
16796
16797fi
16798
16799done
16800
16801 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
16802$as_echo_n "checking for SIZE_MAX... " >&6; }
16803 if test "${gl_cv_size_max+set}" = set; then
16804 $as_echo_n "(cached) " >&6
16805else
16806
16807 gl_cv_size_max=
16808 cat >conftest.$ac_ext <<_ACEOF
16809/* confdefs.h. */
16810_ACEOF
16811cat confdefs.h >>conftest.$ac_ext
16812cat >>conftest.$ac_ext <<_ACEOF
16813/* end confdefs.h. */
16814
16815#include <limits.h>
16816#if HAVE_STDINT_H
16817#include <stdint.h>
16818#endif
16819#ifdef SIZE_MAX
16820Found it
16821#endif
16822
16823_ACEOF
16824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16825 $EGREP "Found it" >/dev/null 2>&1; then
16826 gl_cv_size_max=yes
16827fi
16828rm -f conftest*
16829
16830 if test -z "$gl_cv_size_max"; then
16831 if test "$cross_compiling" = yes; then
16832 # Depending upon the size, compute the lo and hi bounds.
16833cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839#include <stddef.h>
16840#include <limits.h>
16841int
16842main ()
16843{
16844static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
16845test_array [0] = 0
16846
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext
16852if { (ac_try="$ac_compile"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16858$as_echo "$ac_try_echo") >&5
16859 (eval "$ac_compile") 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } && {
16866 test -z "$ac_c_werror_flag" ||
16867 test ! -s conftest.err
16868 } && test -s conftest.$ac_objext; then
16869 ac_lo=0 ac_mid=0
16870 while :; do
16871 cat >conftest.$ac_ext <<_ACEOF
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877#include <stddef.h>
16878#include <limits.h>
16879int
16880main ()
16881{
16882static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
16883test_array [0] = 0
16884
16885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext
16890if { (ac_try="$ac_compile"
16891case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894esac
16895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16896$as_echo "$ac_try_echo") >&5
16897 (eval "$ac_compile") 2>conftest.er1
16898 ac_status=$?
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
16902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } && {
16904 test -z "$ac_c_werror_flag" ||
16905 test ! -s conftest.err
16906 } && test -s conftest.$ac_objext; then
16907 ac_hi=$ac_mid; break
16908else
16909 $as_echo "$as_me: failed program was:" >&5
16910sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 ac_lo=`expr $ac_mid + 1`
16913 if test $ac_lo -le $ac_mid; then
16914 ac_lo= ac_hi=
16915 break
16916 fi
16917 ac_mid=`expr 2 '*' $ac_mid + 1`
16918fi
16919
16920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 done
16922else
16923 $as_echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
16932#include <stddef.h>
16933#include <limits.h>
16934int
16935main ()
16936{
16937static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
16938test_array [0] = 0
16939
16940 ;
16941 return 0;
16942}
16943_ACEOF
16944rm -f conftest.$ac_objext
16945if { (ac_try="$ac_compile"
16946case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949esac
16950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16951$as_echo "$ac_try_echo") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16962 ac_hi=-1 ac_mid=-1
16963 while :; do
16964 cat >conftest.$ac_ext <<_ACEOF
16965/* confdefs.h. */
16966_ACEOF
16967cat confdefs.h >>conftest.$ac_ext
16968cat >>conftest.$ac_ext <<_ACEOF
16969/* end confdefs.h. */
16970#include <stddef.h>
16971#include <limits.h>
16972int
16973main ()
16974{
16975static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
16976test_array [0] = 0
16977
16978 ;
16979 return 0;
16980}
16981_ACEOF
16982rm -f conftest.$ac_objext
16983if { (ac_try="$ac_compile"
16984case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16989$as_echo "$ac_try_echo") >&5
16990 (eval "$ac_compile") 2>conftest.er1
16991 ac_status=$?
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
16995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } && {
16997 test -z "$ac_c_werror_flag" ||
16998 test ! -s conftest.err
16999 } && test -s conftest.$ac_objext; then
17000 ac_lo=$ac_mid; break
17001else
17002 $as_echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_hi=`expr '(' $ac_mid ')' - 1`
17006 if test $ac_mid -le $ac_hi; then
17007 ac_lo= ac_hi=
17008 break
17009 fi
17010 ac_mid=`expr 2 '*' $ac_mid`
17011fi
17012
17013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014 done
17015else
17016 $as_echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019 ac_lo= ac_hi=
17020fi
17021
17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023fi
17024
17025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026# Binary search between lo and hi bounds.
17027while test "x$ac_lo" != "x$ac_hi"; do
17028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17029 cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035#include <stddef.h>
17036#include <limits.h>
17037int
17038main ()
17039{
17040static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
17041test_array [0] = 0
17042
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext
17048if { (ac_try="$ac_compile"
17049case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17054$as_echo "$ac_try_echo") >&5
17055 (eval "$ac_compile") 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } && {
17062 test -z "$ac_c_werror_flag" ||
17063 test ! -s conftest.err
17064 } && test -s conftest.$ac_objext; then
17065 ac_hi=$ac_mid
17066else
17067 $as_echo "$as_me: failed program was:" >&5
17068sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_lo=`expr '(' $ac_mid ')' + 1`
17071fi
17072
17073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17074done
17075case $ac_lo in
17076?*) size_t_bits_minus_1=$ac_lo;;
17077'') size_t_bits_minus_1= ;;
17078esac
17079else
17080 cat >conftest.$ac_ext <<_ACEOF
17081/* confdefs.h. */
17082_ACEOF
17083cat confdefs.h >>conftest.$ac_ext
17084cat >>conftest.$ac_ext <<_ACEOF
17085/* end confdefs.h. */
17086#include <stddef.h>
17087#include <limits.h>
17088static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
17089static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
17090#include <stdio.h>
17091#include <stdlib.h>
17092int
17093main ()
17094{
17095
17096 FILE *f = fopen ("conftest.val", "w");
17097 if (! f)
17098 return 1;
17099 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
17100 {
17101 long int i = longval ();
17102 if (i != (sizeof (size_t) * CHAR_BIT - 1))
17103 return 1;
17104 fprintf (f, "%ld", i);
17105 }
17106 else
17107 {
17108 unsigned long int i = ulongval ();
17109 if (i != (sizeof (size_t) * CHAR_BIT - 1))
17110 return 1;
17111 fprintf (f, "%lu", i);
17112 }
17113 /* Do not output a trailing newline, as this causes \r\n confusion
17114 on some platforms. */
17115 return ferror (f) || fclose (f) != 0;
17116
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest$ac_exeext
17122if { (ac_try="$ac_link"
17123case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17126esac
17127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17128$as_echo "$ac_try_echo") >&5
17129 (eval "$ac_link") 2>&5
17130 ac_status=$?
17131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17133 { (case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136esac
17137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17138$as_echo "$ac_try_echo") >&5
17139 (eval "$ac_try") 2>&5
17140 ac_status=$?
17141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 size_t_bits_minus_1=`cat conftest.val`
17144else
17145 $as_echo "$as_me: program exited with status $ac_status" >&5
17146$as_echo "$as_me: failed program was:" >&5
17147sed 's/^/| /' conftest.$ac_ext >&5
17148
17149( exit $ac_status )
17150size_t_bits_minus_1=
17151fi
17152rm -rf conftest.dSYM
17153rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17154fi
17155rm -f conftest.val
17156
17157 if test "$cross_compiling" = yes; then
17158 # Depending upon the size, compute the lo and hi bounds.
17159cat >conftest.$ac_ext <<_ACEOF
17160/* confdefs.h. */
17161_ACEOF
17162cat confdefs.h >>conftest.$ac_ext
17163cat >>conftest.$ac_ext <<_ACEOF
17164/* end confdefs.h. */
17165#include <stddef.h>
17166int
17167main ()
17168{
17169static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
17170test_array [0] = 0
17171
17172 ;
17173 return 0;
17174}
17175_ACEOF
17176rm -f conftest.$ac_objext
17177if { (ac_try="$ac_compile"
17178case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181esac
17182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17183$as_echo "$ac_try_echo") >&5
17184 (eval "$ac_compile") 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && {
17191 test -z "$ac_c_werror_flag" ||
17192 test ! -s conftest.err
17193 } && test -s conftest.$ac_objext; then
17194 ac_lo=0 ac_mid=0
17195 while :; do
17196 cat >conftest.$ac_ext <<_ACEOF
17197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
17202#include <stddef.h>
17203int
17204main ()
17205{
17206static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
17207test_array [0] = 0
17208
17209 ;
17210 return 0;
17211}
17212_ACEOF
17213rm -f conftest.$ac_objext
17214if { (ac_try="$ac_compile"
17215case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218esac
17219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220$as_echo "$ac_try_echo") >&5
17221 (eval "$ac_compile") 2>conftest.er1
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); } && {
17228 test -z "$ac_c_werror_flag" ||
17229 test ! -s conftest.err
17230 } && test -s conftest.$ac_objext; then
17231 ac_hi=$ac_mid; break
17232else
17233 $as_echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 ac_lo=`expr $ac_mid + 1`
17237 if test $ac_lo -le $ac_mid; then
17238 ac_lo= ac_hi=
17239 break
17240 fi
17241 ac_mid=`expr 2 '*' $ac_mid + 1`
17242fi
17243
17244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245 done
17246else
17247 $as_echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 cat >conftest.$ac_ext <<_ACEOF
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
17256#include <stddef.h>
17257int
17258main ()
17259{
17260static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
17261test_array [0] = 0
17262
17263 ;
17264 return 0;
17265}
17266_ACEOF
17267rm -f conftest.$ac_objext
17268if { (ac_try="$ac_compile"
17269case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17274$as_echo "$ac_try_echo") >&5
17275 (eval "$ac_compile") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest.$ac_objext; then
17285 ac_hi=-1 ac_mid=-1
17286 while :; do
17287 cat >conftest.$ac_ext <<_ACEOF
17288/* confdefs.h. */
17289_ACEOF
17290cat confdefs.h >>conftest.$ac_ext
17291cat >>conftest.$ac_ext <<_ACEOF
17292/* end confdefs.h. */
17293#include <stddef.h>
17294int
17295main ()
17296{
17297static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
17298test_array [0] = 0
17299
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304rm -f conftest.$ac_objext
17305if { (ac_try="$ac_compile"
17306case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17309esac
17310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17311$as_echo "$ac_try_echo") >&5
17312 (eval "$ac_compile") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest.$ac_objext; then
17322 ac_lo=$ac_mid; break
17323else
17324 $as_echo "$as_me: failed program was:" >&5
17325sed 's/^/| /' conftest.$ac_ext >&5
17326
17327 ac_hi=`expr '(' $ac_mid ')' - 1`
17328 if test $ac_mid -le $ac_hi; then
17329 ac_lo= ac_hi=
17330 break
17331 fi
17332 ac_mid=`expr 2 '*' $ac_mid`
17333fi
17334
17335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336 done
17337else
17338 $as_echo "$as_me: failed program was:" >&5
17339sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_lo= ac_hi=
17342fi
17343
17344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345fi
17346
17347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17348# Binary search between lo and hi bounds.
17349while test "x$ac_lo" != "x$ac_hi"; do
17350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17351 cat >conftest.$ac_ext <<_ACEOF
17352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
17357#include <stddef.h>
17358int
17359main ()
17360{
17361static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
17362test_array [0] = 0
17363
17364 ;
17365 return 0;
17366}
17367_ACEOF
17368rm -f conftest.$ac_objext
17369if { (ac_try="$ac_compile"
17370case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373esac
17374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17375$as_echo "$ac_try_echo") >&5
17376 (eval "$ac_compile") 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && {
17383 test -z "$ac_c_werror_flag" ||
17384 test ! -s conftest.err
17385 } && test -s conftest.$ac_objext; then
17386 ac_hi=$ac_mid
17387else
17388 $as_echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 ac_lo=`expr '(' $ac_mid ')' + 1`
17392fi
17393
17394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17395done
17396case $ac_lo in
17397?*) fits_in_uint=$ac_lo;;
17398'') fits_in_uint= ;;
17399esac
17400else
17401 cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407#include <stddef.h>
17408static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
17409static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
17410#include <stdio.h>
17411#include <stdlib.h>
17412int
17413main ()
17414{
17415
17416 FILE *f = fopen ("conftest.val", "w");
17417 if (! f)
17418 return 1;
17419 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
17420 {
17421 long int i = longval ();
17422 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
17423 return 1;
17424 fprintf (f, "%ld", i);
17425 }
17426 else
17427 {
17428 unsigned long int i = ulongval ();
17429 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
17430 return 1;
17431 fprintf (f, "%lu", i);
17432 }
17433 /* Do not output a trailing newline, as this causes \r\n confusion
17434 on some platforms. */
17435 return ferror (f) || fclose (f) != 0;
17436
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest$ac_exeext
17442if { (ac_try="$ac_link"
17443case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17448$as_echo "$ac_try_echo") >&5
17449 (eval "$ac_link") 2>&5
17450 ac_status=$?
17451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17453 { (case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17456esac
17457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17458$as_echo "$ac_try_echo") >&5
17459 (eval "$ac_try") 2>&5
17460 ac_status=$?
17461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; }; then
17463 fits_in_uint=`cat conftest.val`
17464else
17465 $as_echo "$as_me: program exited with status $ac_status" >&5
17466$as_echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469( exit $ac_status )
17470fits_in_uint=
17471fi
17472rm -rf conftest.dSYM
17473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17474fi
17475rm -f conftest.val
17476
17477 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17478 if test $fits_in_uint = 1; then
17479 cat >conftest.$ac_ext <<_ACEOF
17480/* confdefs.h. */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h. */
17485#include <stddef.h>
17486 extern size_t foo;
17487 extern unsigned long foo;
17488
17489int
17490main ()
17491{
17492
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext
17498if { (ac_try="$ac_compile"
17499case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502esac
17503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17504$as_echo "$ac_try_echo") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest.$ac_objext; then
17515 fits_in_uint=0
17516else
17517 $as_echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
17520
17521fi
17522
17523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 fi
17525 if test $fits_in_uint = 1; then
17526 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17527 else
17528 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17529 fi
17530 else
17531 gl_cv_size_max='((size_t)~(size_t)0)'
17532 fi
17533 fi
17534
17535fi
17536
17537 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
17538$as_echo "$gl_cv_size_max" >&6; }
17539 if test "$gl_cv_size_max" != yes; then
17540
17541cat >>confdefs.h <<_ACEOF
17542#define SIZE_MAX $gl_cv_size_max
17543_ACEOF
17544
17545 fi
17546
17547
17548
17549
17550
17551for ac_header in stdint.h
17552do
17553as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17556$as_echo_n "checking for $ac_header... " >&6; }
17557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17558 $as_echo_n "(cached) " >&6
17559fi
17560ac_res=`eval 'as_val=${'$as_ac_Header'}
17561 $as_echo "$as_val"'`
17562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17563$as_echo "$ac_res" >&6; }
17564else
17565 # Is the header compilable?
17566{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17567$as_echo_n "checking $ac_header usability... " >&6; }
17568cat >conftest.$ac_ext <<_ACEOF
17569/* confdefs.h. */
17570_ACEOF
17571cat confdefs.h >>conftest.$ac_ext
17572cat >>conftest.$ac_ext <<_ACEOF
17573/* end confdefs.h. */
17574$ac_includes_default
17575#include <$ac_header>
17576_ACEOF
17577rm -f conftest.$ac_objext
17578if { (ac_try="$ac_compile"
17579case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17582esac
17583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17584$as_echo "$ac_try_echo") >&5
17585 (eval "$ac_compile") 2>conftest.er1
17586 ac_status=$?
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
17590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } && {
17592 test -z "$ac_c_werror_flag" ||
17593 test ! -s conftest.err
17594 } && test -s conftest.$ac_objext; then
17595 ac_header_compiler=yes
17596else
17597 $as_echo "$as_me: failed program was:" >&5
17598sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 ac_header_compiler=no
17601fi
17602
17603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17605$as_echo "$ac_header_compiler" >&6; }
17606
17607# Is the header present?
17608{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17609$as_echo_n "checking $ac_header presence... " >&6; }
17610cat >conftest.$ac_ext <<_ACEOF
17611/* confdefs.h. */
17612_ACEOF
17613cat confdefs.h >>conftest.$ac_ext
17614cat >>conftest.$ac_ext <<_ACEOF
17615/* end confdefs.h. */
17616#include <$ac_header>
17617_ACEOF
17618if { (ac_try="$ac_cpp conftest.$ac_ext"
17619case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17624$as_echo "$ac_try_echo") >&5
17625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17626 ac_status=$?
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
17630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } >/dev/null && {
17632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17633 test ! -s conftest.err
17634 }; then
17635 ac_header_preproc=yes
17636else
17637 $as_echo "$as_me: failed program was:" >&5
17638sed 's/^/| /' conftest.$ac_ext >&5
17639
17640 ac_header_preproc=no
17641fi
17642
17643rm -f conftest.err conftest.$ac_ext
17644{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17645$as_echo "$ac_header_preproc" >&6; }
17646
17647# So? What about this header?
17648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17649 yes:no: )
17650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17651$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17653$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17654 ac_header_preproc=yes
17655 ;;
17656 no:yes:* )
17657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17658$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17660$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17662$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17664$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17666$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17668$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17669 ( cat <<\_ASBOX
17670## --------------------------------------------- ##
17671## Report this to upstart-devel@lists.ubuntu.com ##
17672## --------------------------------------------- ##
17673_ASBOX
17674 ) | sed "s/^/$as_me: WARNING: /" >&2
17675 ;;
17676esac
17677{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17678$as_echo_n "checking for $ac_header... " >&6; }
17679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17680 $as_echo_n "(cached) " >&6
17681else
17682 eval "$as_ac_Header=\$ac_header_preproc"
17683fi
17684ac_res=`eval 'as_val=${'$as_ac_Header'}
17685 $as_echo "$as_val"'`
17686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17687$as_echo "$ac_res" >&6; }
17688
17689fi
17690as_val=`eval 'as_val=${'$as_ac_Header'}
17691 $as_echo "$as_val"'`
17692 if test "x$as_val" = x""yes; then
17693 cat >>confdefs.h <<_ACEOF
17694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17695_ACEOF
17696
17697fi
17698
17699done
17700
17701
17702
17703 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17704$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17705if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17706 $as_echo_n "(cached) " >&6
17707else
17708 gt_save_LIBS="$LIBS"
17709 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17710 cat >conftest.$ac_ext <<_ACEOF
17711/* confdefs.h. */
17712_ACEOF
17713cat confdefs.h >>conftest.$ac_ext
17714cat >>conftest.$ac_ext <<_ACEOF
17715/* end confdefs.h. */
17716#include <CoreFoundation/CFPreferences.h>
17717int
17718main ()
17719{
17720CFPreferencesCopyAppValue(NULL, NULL)
17721 ;
17722 return 0;
17723}
17724_ACEOF
17725rm -f conftest.$ac_objext conftest$ac_exeext
17726if { (ac_try="$ac_link"
17727case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17730esac
17731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17732$as_echo "$ac_try_echo") >&5
17733 (eval "$ac_link") 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } && {
17740 test -z "$ac_c_werror_flag" ||
17741 test ! -s conftest.err
17742 } && test -s conftest$ac_exeext && {
17743 test "$cross_compiling" = yes ||
17744 $as_test_x conftest$ac_exeext
17745 }; then
17746 gt_cv_func_CFPreferencesCopyAppValue=yes
17747else
17748 $as_echo "$as_me: failed program was:" >&5
17749sed 's/^/| /' conftest.$ac_ext >&5
17750
17751 gt_cv_func_CFPreferencesCopyAppValue=no
17752fi
17753
17754rm -rf conftest.dSYM
17755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17756 conftest$ac_exeext conftest.$ac_ext
17757 LIBS="$gt_save_LIBS"
17758fi
17759{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17760$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17761 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17762
17763cat >>confdefs.h <<\_ACEOF
17764#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17765_ACEOF
17766
17767 fi
17768 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17769$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17770if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17771 $as_echo_n "(cached) " >&6
17772else
17773 gt_save_LIBS="$LIBS"
17774 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17775 cat >conftest.$ac_ext <<_ACEOF
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
17781#include <CoreFoundation/CFLocale.h>
17782int
17783main ()
17784{
17785CFLocaleCopyCurrent();
17786 ;
17787 return 0;
17788}
17789_ACEOF
17790rm -f conftest.$ac_objext conftest$ac_exeext
17791if { (ac_try="$ac_link"
17792case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795esac
17796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797$as_echo "$ac_try_echo") >&5
17798 (eval "$ac_link") 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest$ac_exeext && {
17808 test "$cross_compiling" = yes ||
17809 $as_test_x conftest$ac_exeext
17810 }; then
17811 gt_cv_func_CFLocaleCopyCurrent=yes
17812else
17813 $as_echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816 gt_cv_func_CFLocaleCopyCurrent=no
17817fi
17818
17819rm -rf conftest.dSYM
17820rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17821 conftest$ac_exeext conftest.$ac_ext
17822 LIBS="$gt_save_LIBS"
17823fi
17824{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17825$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17826 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17827
17828cat >>confdefs.h <<\_ACEOF
17829#define HAVE_CFLOCALECOPYCURRENT 1
17830_ACEOF
17831
17832 fi
17833 INTL_MACOSX_LIBS=
17834 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17835 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17836 fi
17837
17838
17839
17840
17841
17842
17843
17844 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
17845$as_echo_n "checking for ptrdiff_t... " >&6; }
17846if test "${ac_cv_type_ptrdiff_t+set}" = set; then
17847 $as_echo_n "(cached) " >&6
17848else
17849 ac_cv_type_ptrdiff_t=no
17850cat >conftest.$ac_ext <<_ACEOF
17851/* confdefs.h. */
17852_ACEOF
17853cat confdefs.h >>conftest.$ac_ext
17854cat >>conftest.$ac_ext <<_ACEOF
17855/* end confdefs.h. */
17856$ac_includes_default
17857int
17858main ()
17859{
17860if (sizeof (ptrdiff_t))
17861 return 0;
17862 ;
17863 return 0;
17864}
17865_ACEOF
17866rm -f conftest.$ac_objext
17867if { (ac_try="$ac_compile"
17868case "(($ac_try" in
17869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17870 *) ac_try_echo=$ac_try;;
17871esac
17872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17873$as_echo "$ac_try_echo") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
17890$ac_includes_default
17891int
17892main ()
17893{
17894if (sizeof ((ptrdiff_t)))
17895 return 0;
17896 ;
17897 return 0;
17898}
17899_ACEOF
17900rm -f conftest.$ac_objext
17901if { (ac_try="$ac_compile"
17902case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905esac
17906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17907$as_echo "$ac_try_echo") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest.$ac_objext; then
17918 :
17919else
17920 $as_echo "$as_me: failed program was:" >&5
17921sed 's/^/| /' conftest.$ac_ext >&5
17922
17923 ac_cv_type_ptrdiff_t=yes
17924fi
17925
17926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927else
17928 $as_echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931
17932fi
17933
17934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17935fi
17936{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
17937$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
17938if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
17939 :
17940else
17941
17942cat >>confdefs.h <<\_ACEOF
17943#define ptrdiff_t long
17944_ACEOF
17945
17946
17947fi
17948
17949
17950
17951
17952for ac_header in stddef.h stdlib.h string.h
17953do
17954as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17957$as_echo_n "checking for $ac_header... " >&6; }
17958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17959 $as_echo_n "(cached) " >&6
17960fi
17961ac_res=`eval 'as_val=${'$as_ac_Header'}
17962 $as_echo "$as_val"'`
17963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17964$as_echo "$ac_res" >&6; }
17965else
17966 # Is the header compilable?
17967{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17968$as_echo_n "checking $ac_header usability... " >&6; }
17969cat >conftest.$ac_ext <<_ACEOF
17970/* confdefs.h. */
17971_ACEOF
17972cat confdefs.h >>conftest.$ac_ext
17973cat >>conftest.$ac_ext <<_ACEOF
17974/* end confdefs.h. */
17975$ac_includes_default
17976#include <$ac_header>
17977_ACEOF
17978rm -f conftest.$ac_objext
17979if { (ac_try="$ac_compile"
17980case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17983esac
17984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17985$as_echo "$ac_try_echo") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17987 ac_status=$?
17988 grep -v '^ *+' conftest.er1 >conftest.err
17989 rm -f conftest.er1
17990 cat conftest.err >&5
17991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest.$ac_objext; then
17996 ac_header_compiler=yes
17997else
17998 $as_echo "$as_me: failed program was:" >&5
17999sed 's/^/| /' conftest.$ac_ext >&5
18000
18001 ac_header_compiler=no
18002fi
18003
18004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18005{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18006$as_echo "$ac_header_compiler" >&6; }
18007
18008# Is the header present?
18009{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18010$as_echo_n "checking $ac_header presence... " >&6; }
18011cat >conftest.$ac_ext <<_ACEOF
18012/* confdefs.h. */
18013_ACEOF
18014cat confdefs.h >>conftest.$ac_ext
18015cat >>conftest.$ac_ext <<_ACEOF
18016/* end confdefs.h. */
18017#include <$ac_header>
18018_ACEOF
18019if { (ac_try="$ac_cpp conftest.$ac_ext"
18020case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18023esac
18024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18025$as_echo "$ac_try_echo") >&5
18026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18027 ac_status=$?
18028 grep -v '^ *+' conftest.er1 >conftest.err
18029 rm -f conftest.er1
18030 cat conftest.err >&5
18031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } >/dev/null && {
18033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 }; then
18036 ac_header_preproc=yes
18037else
18038 $as_echo "$as_me: failed program was:" >&5
18039sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 ac_header_preproc=no
18042fi
18043
18044rm -f conftest.err conftest.$ac_ext
18045{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18046$as_echo "$ac_header_preproc" >&6; }
18047
18048# So? What about this header?
18049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18050 yes:no: )
18051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18052$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18054$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18055 ac_header_preproc=yes
18056 ;;
18057 no:yes:* )
18058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18059$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18061$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18063$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18065$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18067$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18069$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18070 ( cat <<\_ASBOX
18071## --------------------------------------------- ##
18072## Report this to upstart-devel@lists.ubuntu.com ##
18073## --------------------------------------------- ##
18074_ASBOX
18075 ) | sed "s/^/$as_me: WARNING: /" >&2
18076 ;;
18077esac
18078{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18079$as_echo_n "checking for $ac_header... " >&6; }
18080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18081 $as_echo_n "(cached) " >&6
18082else
18083 eval "$as_ac_Header=\$ac_header_preproc"
18084fi
18085ac_res=`eval 'as_val=${'$as_ac_Header'}
18086 $as_echo "$as_val"'`
18087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18088$as_echo "$ac_res" >&6; }
18089
18090fi
18091as_val=`eval 'as_val=${'$as_ac_Header'}
18092 $as_echo "$as_val"'`
18093 if test "x$as_val" = x""yes; then
18094 cat >>confdefs.h <<_ACEOF
18095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18096_ACEOF
18097
18098fi
18099
18100done
18101
18102
18103
18104
18105
18106
18107
18108
18109for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
18110do
18111as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18112{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18113$as_echo_n "checking for $ac_func... " >&6; }
18114if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18115 $as_echo_n "(cached) " >&6
18116else
18117 cat >conftest.$ac_ext <<_ACEOF
18118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
18123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18125#define $ac_func innocuous_$ac_func
18126
18127/* System header to define __stub macros and hopefully few prototypes,
18128 which can conflict with char $ac_func (); below.
18129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18130 <limits.h> exists even on freestanding compilers. */
18131
18132#ifdef __STDC__
18133# include <limits.h>
18134#else
18135# include <assert.h>
18136#endif
18137
18138#undef $ac_func
18139
18140/* Override any GCC internal prototype to avoid an error.
18141 Use char because int might match the return type of a GCC
18142 builtin and then its argument prototype would still apply. */
18143#ifdef __cplusplus
18144extern "C"
18145#endif
18146char $ac_func ();
18147/* The GNU C library defines this for functions which it implements
18148 to always fail with ENOSYS. Some functions are actually named
18149 something starting with __ and the normal name is an alias. */
18150#if defined __stub_$ac_func || defined __stub___$ac_func
18151choke me
18152#endif
18153
18154int
18155main ()
18156{
18157return $ac_func ();
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext conftest$ac_exeext
18163if { (ac_try="$ac_link"
18164case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167esac
18168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18169$as_echo "$ac_try_echo") >&5
18170 (eval "$ac_link") 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } && {
18177 test -z "$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18179 } && test -s conftest$ac_exeext && {
18180 test "$cross_compiling" = yes ||
18181 $as_test_x conftest$ac_exeext
18182 }; then
18183 eval "$as_ac_var=yes"
18184else
18185 $as_echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 eval "$as_ac_var=no"
18189fi
18190
18191rm -rf conftest.dSYM
18192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18193 conftest$ac_exeext conftest.$ac_ext
18194fi
18195ac_res=`eval 'as_val=${'$as_ac_var'}
18196 $as_echo "$as_val"'`
18197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18198$as_echo "$ac_res" >&6; }
18199as_val=`eval 'as_val=${'$as_ac_var'}
18200 $as_echo "$as_val"'`
18201 if test "x$as_val" = x""yes; then
18202 cat >>confdefs.h <<_ACEOF
18203#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18204_ACEOF
18205
18206fi
18207done
18208
18209
18210
18211 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18212$as_echo_n "checking whether _snprintf is declared... " >&6; }
18213if test "${ac_cv_have_decl__snprintf+set}" = set; then
18214 $as_echo_n "(cached) " >&6
18215else
18216 cat >conftest.$ac_ext <<_ACEOF
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222#include <stdio.h>
18223int
18224main ()
18225{
18226
18227#ifndef _snprintf
18228 char *p = (char *) _snprintf;
18229#endif
18230
18231 ;
18232 return 0;
18233}
18234_ACEOF
18235rm -f conftest.$ac_objext
18236if { (ac_try="$ac_compile"
18237case "(($ac_try" in
18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239 *) ac_try_echo=$ac_try;;
18240esac
18241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18242$as_echo "$ac_try_echo") >&5
18243 (eval "$ac_compile") 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && {
18250 test -z "$ac_c_werror_flag" ||
18251 test ! -s conftest.err
18252 } && test -s conftest.$ac_objext; then
18253 ac_cv_have_decl__snprintf=yes
18254else
18255 $as_echo "$as_me: failed program was:" >&5
18256sed 's/^/| /' conftest.$ac_ext >&5
18257
18258 ac_cv_have_decl__snprintf=no
18259fi
18260
18261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262fi
18263{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18264$as_echo "$ac_cv_have_decl__snprintf" >&6; }
18265 if test $ac_cv_have_decl__snprintf = yes; then
18266 gt_value=1
18267 else
18268 gt_value=0
18269 fi
18270
18271cat >>confdefs.h <<_ACEOF
18272#define HAVE_DECL__SNPRINTF $gt_value
18273_ACEOF
18274
18275
18276
18277 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
18278$as_echo_n "checking whether _snwprintf is declared... " >&6; }
18279if test "${ac_cv_have_decl__snwprintf+set}" = set; then
18280 $as_echo_n "(cached) " >&6
18281else
18282 cat >conftest.$ac_ext <<_ACEOF
18283/* confdefs.h. */
18284_ACEOF
18285cat confdefs.h >>conftest.$ac_ext
18286cat >>conftest.$ac_ext <<_ACEOF
18287/* end confdefs.h. */
18288#include <stdio.h>
18289int
18290main ()
18291{
18292
18293#ifndef _snwprintf
18294 char *p = (char *) _snwprintf;
18295#endif
18296
18297 ;
18298 return 0;
18299}
18300_ACEOF
18301rm -f conftest.$ac_objext
18302if { (ac_try="$ac_compile"
18303case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306esac
18307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18308$as_echo "$ac_try_echo") >&5
18309 (eval "$ac_compile") 2>conftest.er1
18310 ac_status=$?
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
18314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } && {
18316 test -z "$ac_c_werror_flag" ||
18317 test ! -s conftest.err
18318 } && test -s conftest.$ac_objext; then
18319 ac_cv_have_decl__snwprintf=yes
18320else
18321 $as_echo "$as_me: failed program was:" >&5
18322sed 's/^/| /' conftest.$ac_ext >&5
18323
18324 ac_cv_have_decl__snwprintf=no
18325fi
18326
18327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18328fi
18329{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
18330$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
18331 if test $ac_cv_have_decl__snwprintf = yes; then
18332 gt_value=1
18333 else
18334 gt_value=0
18335 fi
18336
18337cat >>confdefs.h <<_ACEOF
18338#define HAVE_DECL__SNWPRINTF $gt_value
18339_ACEOF
18340
18341
18342
18343
18344 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
18345$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
18346if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
18347 $as_echo_n "(cached) " >&6
18348else
18349 cat >conftest.$ac_ext <<_ACEOF
18350/* confdefs.h. */
18351_ACEOF
18352cat confdefs.h >>conftest.$ac_ext
18353cat >>conftest.$ac_ext <<_ACEOF
18354/* end confdefs.h. */
18355#include <stdio.h>
18356int
18357main ()
18358{
18359
18360#ifndef getc_unlocked
18361 char *p = (char *) getc_unlocked;
18362#endif
18363
18364 ;
18365 return 0;
18366}
18367_ACEOF
18368rm -f conftest.$ac_objext
18369if { (ac_try="$ac_compile"
18370case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373esac
18374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18375$as_echo "$ac_try_echo") >&5
18376 (eval "$ac_compile") 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } && {
18383 test -z "$ac_c_werror_flag" ||
18384 test ! -s conftest.err
18385 } && test -s conftest.$ac_objext; then
18386 ac_cv_have_decl_getc_unlocked=yes
18387else
18388 $as_echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 ac_cv_have_decl_getc_unlocked=no
18392fi
18393
18394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395fi
18396{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
18397$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
18398 if test $ac_cv_have_decl_getc_unlocked = yes; then
18399 gt_value=1
18400 else
18401 gt_value=0
18402 fi
18403
18404cat >>confdefs.h <<_ACEOF
18405#define HAVE_DECL_GETC_UNLOCKED $gt_value
18406_ACEOF
18407
18408
18409
18410 case $gt_cv_func_printf_posix in
18411 *yes) HAVE_POSIX_PRINTF=1 ;;
18412 *) HAVE_POSIX_PRINTF=0 ;;
18413 esac
18414
18415 if test "$ac_cv_func_asprintf" = yes; then
18416 HAVE_ASPRINTF=1
18417 else
18418 HAVE_ASPRINTF=0
18419 fi
18420
18421 if test "$ac_cv_func_snprintf" = yes; then
18422 HAVE_SNPRINTF=1
18423 else
18424 HAVE_SNPRINTF=0
18425 fi
18426
18427 if test "$ac_cv_func_wprintf" = yes; then
18428 HAVE_WPRINTF=1
18429 else
18430 HAVE_WPRINTF=0
18431 fi
18432
18433
18434
18435 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
18436$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18437if test "${am_cv_langinfo_codeset+set}" = set; then
18438 $as_echo_n "(cached) " >&6
18439else
18440 cat >conftest.$ac_ext <<_ACEOF
18441/* confdefs.h. */
18442_ACEOF
18443cat confdefs.h >>conftest.$ac_ext
18444cat >>conftest.$ac_ext <<_ACEOF
18445/* end confdefs.h. */
18446#include <langinfo.h>
18447int
18448main ()
18449{
18450char* cs = nl_langinfo(CODESET); return !cs;
18451 ;
18452 return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext conftest$ac_exeext
18456if { (ac_try="$ac_link"
18457case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460esac
18461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18462$as_echo "$ac_try_echo") >&5
18463 (eval "$ac_link") 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } && {
18470 test -z "$ac_c_werror_flag" ||
18471 test ! -s conftest.err
18472 } && test -s conftest$ac_exeext && {
18473 test "$cross_compiling" = yes ||
18474 $as_test_x conftest$ac_exeext
18475 }; then
18476 am_cv_langinfo_codeset=yes
18477else
18478 $as_echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 am_cv_langinfo_codeset=no
18482fi
18483
18484rm -rf conftest.dSYM
18485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18486 conftest$ac_exeext conftest.$ac_ext
18487
18488fi
18489{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
18490$as_echo "$am_cv_langinfo_codeset" >&6; }
18491 if test $am_cv_langinfo_codeset = yes; then
18492
18493cat >>confdefs.h <<\_ACEOF
18494#define HAVE_LANGINFO_CODESET 1
18495_ACEOF
18496
18497 fi
18498
18499
18500 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
18501$as_echo_n "checking for LC_MESSAGES... " >&6; }
18502if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
18503 $as_echo_n "(cached) " >&6
18504else
18505 cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511#include <locale.h>
18512int
18513main ()
18514{
18515return LC_MESSAGES
18516 ;
18517 return 0;
18518}
18519_ACEOF
18520rm -f conftest.$ac_objext conftest$ac_exeext
18521if { (ac_try="$ac_link"
18522case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525esac
18526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18527$as_echo "$ac_try_echo") >&5
18528 (eval "$ac_link") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } && {
18535 test -z "$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 } && test -s conftest$ac_exeext && {
18538 test "$cross_compiling" = yes ||
18539 $as_test_x conftest$ac_exeext
18540 }; then
18541 gt_cv_val_LC_MESSAGES=yes
18542else
18543 $as_echo "$as_me: failed program was:" >&5
18544sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 gt_cv_val_LC_MESSAGES=no
18547fi
18548
18549rm -rf conftest.dSYM
18550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18551 conftest$ac_exeext conftest.$ac_ext
18552fi
18553{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
18554$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
18555 if test $gt_cv_val_LC_MESSAGES = yes; then
18556
18557cat >>confdefs.h <<\_ACEOF
18558#define HAVE_LC_MESSAGES 1
18559_ACEOF
18560
18561 fi
18562
18563
18564 if test "$enable_shared" = yes; then
18565 case "$host_os" in
18566 cygwin*) is_woe32dll=yes ;;
18567 *) is_woe32dll=no ;;
18568 esac
18569 else
18570 is_woe32dll=no
18571 fi
18572 WOE32DLL=$is_woe32dll
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
18601$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18602if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
18603 $as_echo_n "(cached) " >&6
18604else
18605 gt_save_LIBS="$LIBS"
18606 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613#include <CoreFoundation/CFPreferences.h>
18614int
18615main ()
18616{
18617CFPreferencesCopyAppValue(NULL, NULL)
18618 ;
18619 return 0;
18620}
18621_ACEOF
18622rm -f conftest.$ac_objext conftest$ac_exeext
18623if { (ac_try="$ac_link"
18624case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627esac
18628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18629$as_echo "$ac_try_echo") >&5
18630 (eval "$ac_link") 2>conftest.er1
18631 ac_status=$?
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
18635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest$ac_exeext && {
18640 test "$cross_compiling" = yes ||
18641 $as_test_x conftest$ac_exeext
18642 }; then
18643 gt_cv_func_CFPreferencesCopyAppValue=yes
18644else
18645 $as_echo "$as_me: failed program was:" >&5
18646sed 's/^/| /' conftest.$ac_ext >&5
18647
18648 gt_cv_func_CFPreferencesCopyAppValue=no
18649fi
18650
18651rm -rf conftest.dSYM
18652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18653 conftest$ac_exeext conftest.$ac_ext
18654 LIBS="$gt_save_LIBS"
18655fi
18656{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18657$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18658 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18659
18660cat >>confdefs.h <<\_ACEOF
18661#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
18662_ACEOF
18663
18664 fi
18665 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
18666$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18667if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
18668 $as_echo_n "(cached) " >&6
18669else
18670 gt_save_LIBS="$LIBS"
18671 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18672 cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678#include <CoreFoundation/CFLocale.h>
18679int
18680main ()
18681{
18682CFLocaleCopyCurrent();
18683 ;
18684 return 0;
18685}
18686_ACEOF
18687rm -f conftest.$ac_objext conftest$ac_exeext
18688if { (ac_try="$ac_link"
18689case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18692esac
18693eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18694$as_echo "$ac_try_echo") >&5
18695 (eval "$ac_link") 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest$ac_exeext && {
18705 test "$cross_compiling" = yes ||
18706 $as_test_x conftest$ac_exeext
18707 }; then
18708 gt_cv_func_CFLocaleCopyCurrent=yes
18709else
18710 $as_echo "$as_me: failed program was:" >&5
18711sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 gt_cv_func_CFLocaleCopyCurrent=no
18714fi
18715
18716rm -rf conftest.dSYM
18717rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718 conftest$ac_exeext conftest.$ac_ext
18719 LIBS="$gt_save_LIBS"
18720fi
18721{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18722$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18723 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18724
18725cat >>confdefs.h <<\_ACEOF
18726#define HAVE_CFLOCALECOPYCURRENT 1
18727_ACEOF
18728
18729 fi
18730 INTL_MACOSX_LIBS=
18731 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18732 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18733 fi
18734
18735
18736
18737
18738
18739
18740 BUILD_INCLUDED_LIBINTL=no
18741 USE_INCLUDED_LIBINTL=no
18742
18743 LIBINTL=
18744 LTLIBINTL=
18745 POSUB=
18746
18747 case " $gt_needs " in
18748 *" need-formatstring-macros "*) gt_api_version=3 ;;
18749 *" need-ngettext "*) gt_api_version=2 ;;
18750 *) gt_api_version=1 ;;
18751 esac
18752 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
18753 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
18754
18755 if test "$USE_NLS" = "yes"; then
18756 gt_use_preinstalled_gnugettext=no
18757
18758 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
18759$as_echo_n "checking whether included gettext is requested... " >&6; }
18760
18761# Check whether --with-included-gettext was given.
18762if test "${with_included_gettext+set}" = set; then
18763 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
18764else
18765 nls_cv_force_use_gnu_gettext=no
18766fi
18767
18768 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
18769$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
18770
18771 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
18772 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
18773
18774
18775 if test $gt_api_version -ge 3; then
18776 gt_revision_test_code='
18777#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
18778#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
18779#endif
18780typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
18781'
18782 else
18783 gt_revision_test_code=
18784 fi
18785 if test $gt_api_version -ge 2; then
18786 gt_expression_test_code=' + * ngettext ("", "", 0)'
18787 else
18788 gt_expression_test_code=
18789 fi
18790
18791 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
18792$as_echo_n "checking for GNU gettext in libc... " >&6; }
18793if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
18794 $as_echo_n "(cached) " >&6
18795else
18796 cat >conftest.$ac_ext <<_ACEOF
18797/* confdefs.h. */
18798_ACEOF
18799cat confdefs.h >>conftest.$ac_ext
18800cat >>conftest.$ac_ext <<_ACEOF
18801/* end confdefs.h. */
18802#include <libintl.h>
18803$gt_revision_test_code
18804extern int _nl_msg_cat_cntr;
18805extern int *_nl_domain_bindings;
18806int
18807main ()
18808{
18809bindtextdomain ("", "");
18810return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
18811 ;
18812 return 0;
18813}
18814_ACEOF
18815rm -f conftest.$ac_objext conftest$ac_exeext
18816if { (ac_try="$ac_link"
18817case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18822$as_echo "$ac_try_echo") >&5
18823 (eval "$ac_link") 2>conftest.er1
18824 ac_status=$?
18825 grep -v '^ *+' conftest.er1 >conftest.err
18826 rm -f conftest.er1
18827 cat conftest.err >&5
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && {
18830 test -z "$ac_c_werror_flag" ||
18831 test ! -s conftest.err
18832 } && test -s conftest$ac_exeext && {
18833 test "$cross_compiling" = yes ||
18834 $as_test_x conftest$ac_exeext
18835 }; then
18836 eval "$gt_func_gnugettext_libc=yes"
18837else
18838 $as_echo "$as_me: failed program was:" >&5
18839sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 eval "$gt_func_gnugettext_libc=no"
18842fi
18843
18844rm -rf conftest.dSYM
18845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846 conftest$ac_exeext conftest.$ac_ext
18847fi
18848ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
18849 $as_echo "$as_val"'`
18850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18851$as_echo "$ac_res" >&6; }
18852
18853 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
18854
18855
18856
18857
18858 use_additional=yes
18859
18860 acl_save_prefix="$prefix"
18861 prefix="$acl_final_prefix"
18862 acl_save_exec_prefix="$exec_prefix"
18863 exec_prefix="$acl_final_exec_prefix"
18864
18865 eval additional_includedir=\"$includedir\"
18866 eval additional_libdir=\"$libdir\"
18867
18868 exec_prefix="$acl_save_exec_prefix"
18869 prefix="$acl_save_prefix"
18870
18871
18872# Check whether --with-libintl-prefix was given.
18873if test "${with_libintl_prefix+set}" = set; then
18874 withval=$with_libintl_prefix;
18875 if test "X$withval" = "Xno"; then
18876 use_additional=no
18877 else
18878 if test "X$withval" = "X"; then
18879
18880 acl_save_prefix="$prefix"
18881 prefix="$acl_final_prefix"
18882 acl_save_exec_prefix="$exec_prefix"
18883 exec_prefix="$acl_final_exec_prefix"
18884
18885 eval additional_includedir=\"$includedir\"
18886 eval additional_libdir=\"$libdir\"
18887
18888 exec_prefix="$acl_save_exec_prefix"
18889 prefix="$acl_save_prefix"
18890
18891 else
18892 additional_includedir="$withval/include"
18893 additional_libdir="$withval/$acl_libdirstem"
18894 fi
18895 fi
18896
18897fi
18898
18899 LIBINTL=
18900 LTLIBINTL=
18901 INCINTL=
18902 rpathdirs=
18903 ltrpathdirs=
18904 names_already_handled=
18905 names_next_round='intl '
18906 while test -n "$names_next_round"; do
18907 names_this_round="$names_next_round"
18908 names_next_round=
18909 for name in $names_this_round; do
18910 already_handled=
18911 for n in $names_already_handled; do
18912 if test "$n" = "$name"; then
18913 already_handled=yes
18914 break
18915 fi
18916 done
18917 if test -z "$already_handled"; then
18918 names_already_handled="$names_already_handled $name"
18919 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18920 eval value=\"\$HAVE_LIB$uppername\"
18921 if test -n "$value"; then
18922 if test "$value" = yes; then
18923 eval value=\"\$LIB$uppername\"
18924 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18925 eval value=\"\$LTLIB$uppername\"
18926 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18927 else
18928 :
18929 fi
18930 else
18931 found_dir=
18932 found_la=
18933 found_so=
18934 found_a=
18935 if test $use_additional = yes; then
18936 if test -n "$shlibext" \
18937 && { test -f "$additional_libdir/lib$name.$shlibext" \
18938 || { test "$shlibext" = dll \
18939 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
18940 found_dir="$additional_libdir"
18941 if test -f "$additional_libdir/lib$name.$shlibext"; then
18942 found_so="$additional_libdir/lib$name.$shlibext"
18943 else
18944 found_so="$additional_libdir/lib$name.dll.a"
18945 fi
18946 if test -f "$additional_libdir/lib$name.la"; then
18947 found_la="$additional_libdir/lib$name.la"
18948 fi
18949 else
18950 if test -f "$additional_libdir/lib$name.$libext"; then
18951 found_dir="$additional_libdir"
18952 found_a="$additional_libdir/lib$name.$libext"
18953 if test -f "$additional_libdir/lib$name.la"; then
18954 found_la="$additional_libdir/lib$name.la"
18955 fi
18956 fi
18957 fi
18958 fi
18959 if test "X$found_dir" = "X"; then
18960 for x in $LDFLAGS $LTLIBINTL; do
18961
18962 acl_save_prefix="$prefix"
18963 prefix="$acl_final_prefix"
18964 acl_save_exec_prefix="$exec_prefix"
18965 exec_prefix="$acl_final_exec_prefix"
18966 eval x=\"$x\"
18967 exec_prefix="$acl_save_exec_prefix"
18968 prefix="$acl_save_prefix"
18969
18970 case "$x" in
18971 -L*)
18972 dir=`echo "X$x" | sed -e 's/^X-L//'`
18973 if test -n "$shlibext" \
18974 && { test -f "$dir/lib$name.$shlibext" \
18975 || { test "$shlibext" = dll \
18976 && test -f "$dir/lib$name.dll.a"; }; }; then
18977 found_dir="$dir"
18978 if test -f "$dir/lib$name.$shlibext"; then
18979 found_so="$dir/lib$name.$shlibext"
18980 else
18981 found_so="$dir/lib$name.dll.a"
18982 fi
18983 if test -f "$dir/lib$name.la"; then
18984 found_la="$dir/lib$name.la"
18985 fi
18986 else
18987 if test -f "$dir/lib$name.$libext"; then
18988 found_dir="$dir"
18989 found_a="$dir/lib$name.$libext"
18990 if test -f "$dir/lib$name.la"; then
18991 found_la="$dir/lib$name.la"
18992 fi
18993 fi
18994 fi
18995 ;;
18996 esac
18997 if test "X$found_dir" != "X"; then
18998 break
18999 fi
19000 done
19001 fi
19002 if test "X$found_dir" != "X"; then
19003 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19004 if test "X$found_so" != "X"; then
19005 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
19006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19007 else
19008 haveit=
19009 for x in $ltrpathdirs; do
19010 if test "X$x" = "X$found_dir"; then
19011 haveit=yes
19012 break
19013 fi
19014 done
19015 if test -z "$haveit"; then
19016 ltrpathdirs="$ltrpathdirs $found_dir"
19017 fi
19018 if test "$hardcode_direct" = yes; then
19019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19020 else
19021 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
19022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19023 haveit=
19024 for x in $rpathdirs; do
19025 if test "X$x" = "X$found_dir"; then
19026 haveit=yes
19027 break
19028 fi
19029 done
19030 if test -z "$haveit"; then
19031 rpathdirs="$rpathdirs $found_dir"
19032 fi
19033 else
19034 haveit=
19035 for x in $LDFLAGS $LIBINTL; do
19036
19037 acl_save_prefix="$prefix"
19038 prefix="$acl_final_prefix"
19039 acl_save_exec_prefix="$exec_prefix"
19040 exec_prefix="$acl_final_exec_prefix"
19041 eval x=\"$x\"
19042 exec_prefix="$acl_save_exec_prefix"
19043 prefix="$acl_save_prefix"
19044
19045 if test "X$x" = "X-L$found_dir"; then
19046 haveit=yes
19047 break
19048 fi
19049 done
19050 if test -z "$haveit"; then
19051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19052 fi
19053 if test "$hardcode_minus_L" != no; then
19054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19055 else
19056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19057 fi
19058 fi
19059 fi
19060 fi
19061 else
19062 if test "X$found_a" != "X"; then
19063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19064 else
19065 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19066 fi
19067 fi
19068 additional_includedir=
19069 case "$found_dir" in
19070 */$acl_libdirstem | */$acl_libdirstem/)
19071 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19072 additional_includedir="$basedir/include"
19073 ;;
19074 esac
19075 if test "X$additional_includedir" != "X"; then
19076 if test "X$additional_includedir" != "X/usr/include"; then
19077 haveit=
19078 if test "X$additional_includedir" = "X/usr/local/include"; then
19079 if test -n "$GCC"; then
19080 case $host_os in
19081 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19082 esac
19083 fi
19084 fi
19085 if test -z "$haveit"; then
19086 for x in $CPPFLAGS $INCINTL; do
19087
19088 acl_save_prefix="$prefix"
19089 prefix="$acl_final_prefix"
19090 acl_save_exec_prefix="$exec_prefix"
19091 exec_prefix="$acl_final_exec_prefix"
19092 eval x=\"$x\"
19093 exec_prefix="$acl_save_exec_prefix"
19094 prefix="$acl_save_prefix"
19095
19096 if test "X$x" = "X-I$additional_includedir"; then
19097 haveit=yes
19098 break
19099 fi
19100 done
19101 if test -z "$haveit"; then
19102 if test -d "$additional_includedir"; then
19103 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19104 fi
19105 fi
19106 fi
19107 fi
19108 fi
19109 if test -n "$found_la"; then
19110 save_libdir="$libdir"
19111 case "$found_la" in
19112 */* | *\\*) . "$found_la" ;;
19113 *) . "./$found_la" ;;
19114 esac
19115 libdir="$save_libdir"
19116 for dep in $dependency_libs; do
19117 case "$dep" in
19118 -L*)
19119 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19120 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
19121 haveit=
19122 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
19123 if test -n "$GCC"; then
19124 case $host_os in
19125 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19126 esac
19127 fi
19128 fi
19129 if test -z "$haveit"; then
19130 haveit=
19131 for x in $LDFLAGS $LIBINTL; do
19132
19133 acl_save_prefix="$prefix"
19134 prefix="$acl_final_prefix"
19135 acl_save_exec_prefix="$exec_prefix"
19136 exec_prefix="$acl_final_exec_prefix"
19137 eval x=\"$x\"
19138 exec_prefix="$acl_save_exec_prefix"
19139 prefix="$acl_save_prefix"
19140
19141 if test "X$x" = "X-L$additional_libdir"; then
19142 haveit=yes
19143 break
19144 fi
19145 done
19146 if test -z "$haveit"; then
19147 if test -d "$additional_libdir"; then
19148 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19149 fi
19150 fi
19151 haveit=
19152 for x in $LDFLAGS $LTLIBINTL; do
19153
19154 acl_save_prefix="$prefix"
19155 prefix="$acl_final_prefix"
19156 acl_save_exec_prefix="$exec_prefix"
19157 exec_prefix="$acl_final_exec_prefix"
19158 eval x=\"$x\"
19159 exec_prefix="$acl_save_exec_prefix"
19160 prefix="$acl_save_prefix"
19161
19162 if test "X$x" = "X-L$additional_libdir"; then
19163 haveit=yes
19164 break
19165 fi
19166 done
19167 if test -z "$haveit"; then
19168 if test -d "$additional_libdir"; then
19169 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19170 fi
19171 fi
19172 fi
19173 fi
19174 ;;
19175 -R*)
19176 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19177 if test "$enable_rpath" != no; then
19178 haveit=
19179 for x in $rpathdirs; do
19180 if test "X$x" = "X$dir"; then
19181 haveit=yes
19182 break
19183 fi
19184 done
19185 if test -z "$haveit"; then
19186 rpathdirs="$rpathdirs $dir"
19187 fi
19188 haveit=
19189 for x in $ltrpathdirs; do
19190 if test "X$x" = "X$dir"; then
19191 haveit=yes
19192 break
19193 fi
19194 done
19195 if test -z "$haveit"; then
19196 ltrpathdirs="$ltrpathdirs $dir"
19197 fi
19198 fi
19199 ;;
19200 -l*)
19201 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19202 ;;
19203 *.la)
19204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19205 ;;
19206 *)
19207 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19208 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19209 ;;
19210 esac
19211 done
19212 fi
19213 else
19214 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19216 fi
19217 fi
19218 fi
19219 done
19220 done
19221 if test "X$rpathdirs" != "X"; then
19222 if test -n "$hardcode_libdir_separator"; then
19223 alldirs=
19224 for found_dir in $rpathdirs; do
19225 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19226 done
19227 acl_save_libdir="$libdir"
19228 libdir="$alldirs"
19229 eval flag=\"$hardcode_libdir_flag_spec\"
19230 libdir="$acl_save_libdir"
19231 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19232 else
19233 for found_dir in $rpathdirs; do
19234 acl_save_libdir="$libdir"
19235 libdir="$found_dir"
19236 eval flag=\"$hardcode_libdir_flag_spec\"
19237 libdir="$acl_save_libdir"
19238 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19239 done
19240 fi
19241 fi
19242 if test "X$ltrpathdirs" != "X"; then
19243 for found_dir in $ltrpathdirs; do
19244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19245 done
19246 fi
19247
19248 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
19249$as_echo_n "checking for GNU gettext in libintl... " >&6; }
19250if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
19251 $as_echo_n "(cached) " >&6
19252else
19253 gt_save_CPPFLAGS="$CPPFLAGS"
19254 CPPFLAGS="$CPPFLAGS $INCINTL"
19255 gt_save_LIBS="$LIBS"
19256 LIBS="$LIBS $LIBINTL"
19257 cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263#include <libintl.h>
19264$gt_revision_test_code
19265extern int _nl_msg_cat_cntr;
19266extern
19267#ifdef __cplusplus
19268"C"
19269#endif
19270const char *_nl_expand_alias (const char *);
19271int
19272main ()
19273{
19274bindtextdomain ("", "");
19275return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19276 ;
19277 return 0;
19278}
19279_ACEOF
19280rm -f conftest.$ac_objext conftest$ac_exeext
19281if { (ac_try="$ac_link"
19282case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19285esac
19286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287$as_echo "$ac_try_echo") >&5
19288 (eval "$ac_link") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext && {
19298 test "$cross_compiling" = yes ||
19299 $as_test_x conftest$ac_exeext
19300 }; then
19301 eval "$gt_func_gnugettext_libintl=yes"
19302else
19303 $as_echo "$as_me: failed program was:" >&5
19304sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 eval "$gt_func_gnugettext_libintl=no"
19307fi
19308
19309rm -rf conftest.dSYM
19310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19311 conftest$ac_exeext conftest.$ac_ext
19312 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19313 LIBS="$LIBS $LIBICONV"
19314 cat >conftest.$ac_ext <<_ACEOF
19315/* confdefs.h. */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h. */
19320#include <libintl.h>
19321$gt_revision_test_code
19322extern int _nl_msg_cat_cntr;
19323extern
19324#ifdef __cplusplus
19325"C"
19326#endif
19327const char *_nl_expand_alias (const char *);
19328int
19329main ()
19330{
19331bindtextdomain ("", "");
19332return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19333 ;
19334 return 0;
19335}
19336_ACEOF
19337rm -f conftest.$ac_objext conftest$ac_exeext
19338if { (ac_try="$ac_link"
19339case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342esac
19343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19344$as_echo "$ac_try_echo") >&5
19345 (eval "$ac_link") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest$ac_exeext && {
19355 test "$cross_compiling" = yes ||
19356 $as_test_x conftest$ac_exeext
19357 }; then
19358 LIBINTL="$LIBINTL $LIBICONV"
19359 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19360 eval "$gt_func_gnugettext_libintl=yes"
19361
19362else
19363 $as_echo "$as_me: failed program was:" >&5
19364sed 's/^/| /' conftest.$ac_ext >&5
19365
19366
19367fi
19368
19369rm -rf conftest.dSYM
19370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19371 conftest$ac_exeext conftest.$ac_ext
19372 fi
19373 CPPFLAGS="$gt_save_CPPFLAGS"
19374 LIBS="$gt_save_LIBS"
19375fi
19376ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
19377 $as_echo "$as_val"'`
19378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19379$as_echo "$ac_res" >&6; }
19380 fi
19381
19382 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19383 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19384 && test "$PACKAGE" != gettext-runtime \
19385 && test "$PACKAGE" != gettext-tools; }; then
19386 gt_use_preinstalled_gnugettext=yes
19387 else
19388 LIBINTL=
19389 LTLIBINTL=
19390 INCINTL=
19391 fi
19392
19393
19394 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
19395 nls_cv_use_gnu_gettext=yes
19396 fi
19397 fi
19398
19399 if test "$nls_cv_use_gnu_gettext" = "yes"; then
19400 BUILD_INCLUDED_LIBINTL=yes
19401 USE_INCLUDED_LIBINTL=yes
19402 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
19403 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
19404 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
19405 fi
19406
19407 CATOBJEXT=
19408 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19409 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19410 CATOBJEXT=.gmo
19411 fi
19412
19413
19414 if test -n "$INTL_MACOSX_LIBS"; then
19415 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19416 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19417 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19418 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19419 fi
19420 fi
19421
19422 if test "$gt_use_preinstalled_gnugettext" = "yes" \
19423 || test "$nls_cv_use_gnu_gettext" = "yes"; then
19424
19425cat >>confdefs.h <<\_ACEOF
19426#define ENABLE_NLS 1
19427_ACEOF
19428
19429 else
19430 USE_NLS=no
19431 fi
19432 fi
19433
19434 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
19435$as_echo_n "checking whether to use NLS... " >&6; }
19436 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
19437$as_echo "$USE_NLS" >&6; }
19438 if test "$USE_NLS" = "yes"; then
19439 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
19440$as_echo_n "checking where the gettext function comes from... " >&6; }
19441 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19442 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19443 gt_source="external libintl"
19444 else
19445 gt_source="libc"
19446 fi
19447 else
19448 gt_source="included intl directory"
19449 fi
19450 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
19451$as_echo "$gt_source" >&6; }
19452 fi
19453
19454 if test "$USE_NLS" = "yes"; then
19455
19456 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19457 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19458 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
19459$as_echo_n "checking how to link with libintl... " >&6; }
19460 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
19461$as_echo "$LIBINTL" >&6; }
19462
19463 for element in $INCINTL; do
19464 haveit=
19465 for x in $CPPFLAGS; do
19466
19467 acl_save_prefix="$prefix"
19468 prefix="$acl_final_prefix"
19469 acl_save_exec_prefix="$exec_prefix"
19470 exec_prefix="$acl_final_exec_prefix"
19471 eval x=\"$x\"
19472 exec_prefix="$acl_save_exec_prefix"
19473 prefix="$acl_save_prefix"
19474
19475 if test "X$x" = "X$element"; then
19476 haveit=yes
19477 break
19478 fi
19479 done
19480 if test -z "$haveit"; then
19481 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19482 fi
19483 done
19484
19485 fi
19486
19487
19488cat >>confdefs.h <<\_ACEOF
19489#define HAVE_GETTEXT 1
19490_ACEOF
19491
19492
19493cat >>confdefs.h <<\_ACEOF
19494#define HAVE_DCGETTEXT 1
19495_ACEOF
19496
19497 fi
19498
19499 POSUB=po
19500 fi
19501
19502
19503 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
19504 BUILD_INCLUDED_LIBINTL=yes
19505 fi
19506
19507
19508
19509
19510
19511 nls_cv_header_intl=
19512 nls_cv_header_libgt=
19513
19514 DATADIRNAME=share
19515
19516
19517 INSTOBJEXT=.mo
19518
19519
19520 GENCAT=gencat
19521
19522
19523 INTLOBJS=
19524 if test "$USE_INCLUDED_LIBINTL" = yes; then
19525 INTLOBJS="\$(GETTOBJS)"
19526 fi
19527
19528
19529 INTL_LIBTOOL_SUFFIX_PREFIX=
19530
19531
19532
19533 INTLLIBS="$LIBINTL"
19534
19535
19536
19537
19538
19539
19540
19541# Checks for programs.
19542ac_ext=c
19543ac_cpp='$CPP $CPPFLAGS'
19544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546ac_compiler_gnu=$ac_cv_c_compiler_gnu
19547if test -n "$ac_tool_prefix"; then
19548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19549set dummy ${ac_tool_prefix}gcc; ac_word=$2
19550{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19551$as_echo_n "checking for $ac_word... " >&6; }
19552if test "${ac_cv_prog_CC+set}" = set; then
19553 $as_echo_n "(cached) " >&6
19554else
19555 if test -n "$CC"; then
19556 ac_cv_prog_CC="$CC" # Let the user override the test.
19557else
19558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559for as_dir in $PATH
19560do
19561 IFS=$as_save_IFS
19562 test -z "$as_dir" && as_dir=.
19563 for ac_exec_ext in '' $ac_executable_extensions; do
19564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19567 break 2
19568 fi
19569done
19570done
19571IFS=$as_save_IFS
19572
19573fi
19574fi
19575CC=$ac_cv_prog_CC
19576if test -n "$CC"; then
19577 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19578$as_echo "$CC" >&6; }
19579else
19580 { $as_echo "$as_me:$LINENO: result: no" >&5
19581$as_echo "no" >&6; }
19582fi
19583
19584
19585fi
19586if test -z "$ac_cv_prog_CC"; then
19587 ac_ct_CC=$CC
19588 # Extract the first word of "gcc", so it can be a program name with args.
19589set dummy gcc; ac_word=$2
19590{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19591$as_echo_n "checking for $ac_word... " >&6; }
19592if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19593 $as_echo_n "(cached) " >&6
19594else
19595 if test -n "$ac_ct_CC"; then
19596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19597else
19598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19599for as_dir in $PATH
19600do
19601 IFS=$as_save_IFS
19602 test -z "$as_dir" && as_dir=.
19603 for ac_exec_ext in '' $ac_executable_extensions; do
19604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19605 ac_cv_prog_ac_ct_CC="gcc"
19606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19607 break 2
19608 fi
19609done
19610done
19611IFS=$as_save_IFS
19612
19613fi
19614fi
19615ac_ct_CC=$ac_cv_prog_ac_ct_CC
19616if test -n "$ac_ct_CC"; then
19617 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19618$as_echo "$ac_ct_CC" >&6; }
19619else
19620 { $as_echo "$as_me:$LINENO: result: no" >&5
19621$as_echo "no" >&6; }
19622fi
19623
19624 if test "x$ac_ct_CC" = x; then
19625 CC=""
19626 else
19627 case $cross_compiling:$ac_tool_warned in
19628yes:)
19629{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19631ac_tool_warned=yes ;;
19632esac
19633 CC=$ac_ct_CC
19634 fi
19635else
19636 CC="$ac_cv_prog_CC"
19637fi
19638
19639if test -z "$CC"; then
19640 if test -n "$ac_tool_prefix"; then
19641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19642set dummy ${ac_tool_prefix}cc; ac_word=$2
19643{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19644$as_echo_n "checking for $ac_word... " >&6; }
19645if test "${ac_cv_prog_CC+set}" = set; then
19646 $as_echo_n "(cached) " >&6
19647else
19648 if test -n "$CC"; then
19649 ac_cv_prog_CC="$CC" # Let the user override the test.
19650else
19651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19652for as_dir in $PATH
19653do
19654 IFS=$as_save_IFS
19655 test -z "$as_dir" && as_dir=.
19656 for ac_exec_ext in '' $ac_executable_extensions; do
19657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19658 ac_cv_prog_CC="${ac_tool_prefix}cc"
19659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19660 break 2
19661 fi
19662done
19663done
19664IFS=$as_save_IFS
19665
19666fi
19667fi
19668CC=$ac_cv_prog_CC
19669if test -n "$CC"; then
19670 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19671$as_echo "$CC" >&6; }
19672else
19673 { $as_echo "$as_me:$LINENO: result: no" >&5
19674$as_echo "no" >&6; }
19675fi
19676
19677
19678 fi
19679fi
19680if test -z "$CC"; then
19681 # Extract the first word of "cc", so it can be a program name with args.
19682set dummy cc; ac_word=$2
19683{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19684$as_echo_n "checking for $ac_word... " >&6; }
19685if test "${ac_cv_prog_CC+set}" = set; then
19686 $as_echo_n "(cached) " >&6
19687else
19688 if test -n "$CC"; then
19689 ac_cv_prog_CC="$CC" # Let the user override the test.
19690else
19691 ac_prog_rejected=no
19692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19693for as_dir in $PATH
19694do
19695 IFS=$as_save_IFS
19696 test -z "$as_dir" && as_dir=.
19697 for ac_exec_ext in '' $ac_executable_extensions; do
19698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19700 ac_prog_rejected=yes
19701 continue
19702 fi
19703 ac_cv_prog_CC="cc"
19704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19705 break 2
19706 fi
19707done
19708done
19709IFS=$as_save_IFS
19710
19711if test $ac_prog_rejected = yes; then
19712 # We found a bogon in the path, so make sure we never use it.
19713 set dummy $ac_cv_prog_CC
19714 shift
19715 if test $# != 0; then
19716 # We chose a different compiler from the bogus one.
19717 # However, it has the same basename, so the bogon will be chosen
19718 # first if we set CC to just the basename; use the full file name.
19719 shift
19720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19721 fi
19722fi
19723fi
19724fi
19725CC=$ac_cv_prog_CC
19726if test -n "$CC"; then
19727 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19728$as_echo "$CC" >&6; }
19729else
19730 { $as_echo "$as_me:$LINENO: result: no" >&5
19731$as_echo "no" >&6; }
19732fi
19733
19734
19735fi
19736if test -z "$CC"; then
19737 if test -n "$ac_tool_prefix"; then
19738 for ac_prog in cl.exe
19739 do
19740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19741set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19743$as_echo_n "checking for $ac_word... " >&6; }
19744if test "${ac_cv_prog_CC+set}" = set; then
19745 $as_echo_n "(cached) " >&6
19746else
19747 if test -n "$CC"; then
19748 ac_cv_prog_CC="$CC" # Let the user override the test.
19749else
19750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19751for as_dir in $PATH
19752do
19753 IFS=$as_save_IFS
19754 test -z "$as_dir" && as_dir=.
19755 for ac_exec_ext in '' $ac_executable_extensions; do
19756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19759 break 2
19760 fi
19761done
19762done
19763IFS=$as_save_IFS
19764
19765fi
19766fi
19767CC=$ac_cv_prog_CC
19768if test -n "$CC"; then
19769 { $as_echo "$as_me:$LINENO: result: $CC" >&5
19770$as_echo "$CC" >&6; }
19771else
19772 { $as_echo "$as_me:$LINENO: result: no" >&5
19773$as_echo "no" >&6; }
19774fi
19775
19776
19777 test -n "$CC" && break
19778 done
19779fi
19780if test -z "$CC"; then
19781 ac_ct_CC=$CC
19782 for ac_prog in cl.exe
19783do
19784 # Extract the first word of "$ac_prog", so it can be a program name with args.
19785set dummy $ac_prog; ac_word=$2
19786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19787$as_echo_n "checking for $ac_word... " >&6; }
19788if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19789 $as_echo_n "(cached) " >&6
19790else
19791 if test -n "$ac_ct_CC"; then
19792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19793else
19794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19795for as_dir in $PATH
19796do
19797 IFS=$as_save_IFS
19798 test -z "$as_dir" && as_dir=.
19799 for ac_exec_ext in '' $ac_executable_extensions; do
19800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19801 ac_cv_prog_ac_ct_CC="$ac_prog"
19802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19803 break 2
19804 fi
19805done
19806done
19807IFS=$as_save_IFS
19808
19809fi
19810fi
19811ac_ct_CC=$ac_cv_prog_ac_ct_CC
19812if test -n "$ac_ct_CC"; then
19813 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19814$as_echo "$ac_ct_CC" >&6; }
19815else
19816 { $as_echo "$as_me:$LINENO: result: no" >&5
19817$as_echo "no" >&6; }
19818fi
19819
19820
19821 test -n "$ac_ct_CC" && break
19822done
19823
19824 if test "x$ac_ct_CC" = x; then
19825 CC=""
19826 else
19827 case $cross_compiling:$ac_tool_warned in
19828yes:)
19829{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
19830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19831ac_tool_warned=yes ;;
19832esac
19833 CC=$ac_ct_CC
19834 fi
19835fi
19836
19837fi
19838
19839
19840test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19842{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19843See \`config.log' for more details." >&5
19844$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
19845See \`config.log' for more details." >&2;}
19846 { (exit 1); exit 1; }; }; }
19847
19848# Provide some information about the compiler.
19849$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
19850set X $ac_compile
19851ac_compiler=$2
19852{ (ac_try="$ac_compiler --version >&5"
19853case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19856esac
19857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19858$as_echo "$ac_try_echo") >&5
19859 (eval "$ac_compiler --version >&5") 2>&5
19860 ac_status=$?
19861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }
19863{ (ac_try="$ac_compiler -v >&5"
19864case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19867esac
19868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19869$as_echo "$ac_try_echo") >&5
19870 (eval "$ac_compiler -v >&5") 2>&5
19871 ac_status=$?
19872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }
19874{ (ac_try="$ac_compiler -V >&5"
19875case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878esac
19879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19880$as_echo "$ac_try_echo") >&5
19881 (eval "$ac_compiler -V >&5") 2>&5
19882 ac_status=$?
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }
19885
19886{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19887$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19888if test "${ac_cv_c_compiler_gnu+set}" = set; then
19889 $as_echo_n "(cached) " >&6
19890else
19891 cat >conftest.$ac_ext <<_ACEOF
19892/* confdefs.h. */
19893_ACEOF
19894cat confdefs.h >>conftest.$ac_ext
19895cat >>conftest.$ac_ext <<_ACEOF
19896/* end confdefs.h. */
19897
19898int
19899main ()
19900{
19901#ifndef __GNUC__
19902 choke me
19903#endif
19904
19905 ;
19906 return 0;
19907}
19908_ACEOF
19909rm -f conftest.$ac_objext
19910if { (ac_try="$ac_compile"
19911case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19914esac
19915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19916$as_echo "$ac_try_echo") >&5
19917 (eval "$ac_compile") 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } && {
19924 test -z "$ac_c_werror_flag" ||
19925 test ! -s conftest.err
19926 } && test -s conftest.$ac_objext; then
19927 ac_compiler_gnu=yes
19928else
19929 $as_echo "$as_me: failed program was:" >&5
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
19932 ac_compiler_gnu=no
19933fi
19934
19935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19936ac_cv_c_compiler_gnu=$ac_compiler_gnu
19937
19938fi
19939{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19940$as_echo "$ac_cv_c_compiler_gnu" >&6; }
19941if test $ac_compiler_gnu = yes; then
19942 GCC=yes
19943else
19944 GCC=
19945fi
19946ac_test_CFLAGS=${CFLAGS+set}
19947ac_save_CFLAGS=$CFLAGS
19948{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19949$as_echo_n "checking whether $CC accepts -g... " >&6; }
19950if test "${ac_cv_prog_cc_g+set}" = set; then
19951 $as_echo_n "(cached) " >&6
19952else
19953 ac_save_c_werror_flag=$ac_c_werror_flag
19954 ac_c_werror_flag=yes
19955 ac_cv_prog_cc_g=no
19956 CFLAGS="-g"
19957 cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963
19964int
19965main ()
19966{
19967
19968 ;
19969 return 0;
19970}
19971_ACEOF
19972rm -f conftest.$ac_objext
19973if { (ac_try="$ac_compile"
19974case "(($ac_try" in
19975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19976 *) ac_try_echo=$ac_try;;
19977esac
19978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19979$as_echo "$ac_try_echo") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19981 ac_status=$?
19982 grep -v '^ *+' conftest.er1 >conftest.err
19983 rm -f conftest.er1
19984 cat conftest.err >&5
19985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest.$ac_objext; then
19990 ac_cv_prog_cc_g=yes
19991else
19992 $as_echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995 CFLAGS=""
19996 cat >conftest.$ac_ext <<_ACEOF
19997/* confdefs.h. */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h. */
20002
20003int
20004main ()
20005{
20006
20007 ;
20008 return 0;
20009}
20010_ACEOF
20011rm -f conftest.$ac_objext
20012if { (ac_try="$ac_compile"
20013case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20016esac
20017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20018$as_echo "$ac_try_echo") >&5
20019 (eval "$ac_compile") 2>conftest.er1
20020 ac_status=$?
20021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
20024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest.$ac_objext; then
20029 :
20030else
20031 $as_echo "$as_me: failed program was:" >&5
20032sed 's/^/| /' conftest.$ac_ext >&5
20033
20034 ac_c_werror_flag=$ac_save_c_werror_flag
20035 CFLAGS="-g"
20036 cat >conftest.$ac_ext <<_ACEOF
20037/* confdefs.h. */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
20041/* end confdefs.h. */
20042
20043int
20044main ()
20045{
20046
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (ac_try="$ac_compile"
20053case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20056esac
20057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20058$as_echo "$ac_try_echo") >&5
20059 (eval "$ac_compile") 2>conftest.er1
20060 ac_status=$?
20061 grep -v '^ *+' conftest.er1 >conftest.err
20062 rm -f conftest.er1
20063 cat conftest.err >&5
20064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest.$ac_objext; then
20069 ac_cv_prog_cc_g=yes
20070else
20071 $as_echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074
20075fi
20076
20077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20078fi
20079
20080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081fi
20082
20083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20084 ac_c_werror_flag=$ac_save_c_werror_flag
20085fi
20086{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20087$as_echo "$ac_cv_prog_cc_g" >&6; }
20088if test "$ac_test_CFLAGS" = set; then
20089 CFLAGS=$ac_save_CFLAGS
20090elif test $ac_cv_prog_cc_g = yes; then
20091 if test "$GCC" = yes; then
20092 CFLAGS="-g -O2"
20093 else
20094 CFLAGS="-g"
20095 fi
20096else
20097 if test "$GCC" = yes; then
20098 CFLAGS="-O2"
20099 else
20100 CFLAGS=
20101 fi
20102fi
20103{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20104$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20105if test "${ac_cv_prog_cc_c89+set}" = set; then
20106 $as_echo_n "(cached) " >&6
20107else
20108 ac_cv_prog_cc_c89=no
20109ac_save_CC=$CC
20110cat >conftest.$ac_ext <<_ACEOF
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
20116#include <stdarg.h>
20117#include <stdio.h>
20118#include <sys/types.h>
20119#include <sys/stat.h>
20120/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20121struct buf { int x; };
20122FILE * (*rcsopen) (struct buf *, struct stat *, int);
20123static char *e (p, i)
20124 char **p;
20125 int i;
20126{
20127 return p[i];
20128}
20129static char *f (char * (*g) (char **, int), char **p, ...)
20130{
20131 char *s;
20132 va_list v;
20133 va_start (v,p);
20134 s = g (p, va_arg (v,int));
20135 va_end (v);
20136 return s;
20137}
20138
20139/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20140 function prototypes and stuff, but not '\xHH' hex character constants.
20141 These don't provoke an error unfortunately, instead are silently treated
20142 as 'x'. The following induces an error, until -std is added to get
20143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20144 array size at least. It's necessary to write '\x00'==0 to get something
20145 that's true only with -std. */
20146int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20147
20148/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20149 inside strings and character constants. */
20150#define FOO(x) 'x'
20151int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20152
20153int test (int i, double x);
20154struct s1 {int (*f) (int a);};
20155struct s2 {int (*f) (double a);};
20156int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20157int argc;
20158char **argv;
20159int
20160main ()
20161{
20162return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20163 ;
20164 return 0;
20165}
20166_ACEOF
20167for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20169do
20170 CC="$ac_save_CC $ac_arg"
20171 rm -f conftest.$ac_objext
20172if { (ac_try="$ac_compile"
20173case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176esac
20177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20178$as_echo "$ac_try_echo") >&5
20179 (eval "$ac_compile") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest.$ac_objext; then
20189 ac_cv_prog_cc_c89=$ac_arg
20190else
20191 $as_echo "$as_me: failed program was:" >&5
20192sed 's/^/| /' conftest.$ac_ext >&5
20193
20194
20195fi
20196
20197rm -f core conftest.err conftest.$ac_objext
20198 test "x$ac_cv_prog_cc_c89" != "xno" && break
20199done
20200rm -f conftest.$ac_ext
20201CC=$ac_save_CC
20202
20203fi
20204# AC_CACHE_VAL
20205case "x$ac_cv_prog_cc_c89" in
20206 x)
20207 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20208$as_echo "none needed" >&6; } ;;
20209 xno)
20210 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20211$as_echo "unsupported" >&6; } ;;
20212 *)
20213 CC="$CC $ac_cv_prog_cc_c89"
20214 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20215$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20216esac
20217
20218
20219ac_ext=c
20220ac_cpp='$CPP $CPPFLAGS'
20221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223ac_compiler_gnu=$ac_cv_c_compiler_gnu
20224
20225if test "x$CC" != xcc; then
20226 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20227$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
20228else
20229 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20230$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
20231fi
20232set dummy $CC; ac_cc=`$as_echo "$2" |
20233 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20234if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20235 $as_echo_n "(cached) " >&6
20236else
20237 cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
20243
20244int
20245main ()
20246{
20247
20248 ;
20249 return 0;
20250}
20251_ACEOF
20252# Make sure it works both with $CC and with simple cc.
20253# We do the test twice because some compilers refuse to overwrite an
20254# existing .o file with -o, though they will create one.
20255ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20256rm -f conftest2.*
20257if { (case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20260esac
20261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20262$as_echo "$ac_try_echo") >&5
20263 (eval "$ac_try") 2>&5
20264 ac_status=$?
20265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270esac
20271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20272$as_echo "$ac_try_echo") >&5
20273 (eval "$ac_try") 2>&5
20274 ac_status=$?
20275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); };
20277then
20278 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20279 if test "x$CC" != xcc; then
20280 # Test first that cc exists at all.
20281 if { ac_try='cc -c conftest.$ac_ext >&5'
20282 { (case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20285esac
20286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20287$as_echo "$ac_try_echo") >&5
20288 (eval "$ac_try") 2>&5
20289 ac_status=$?
20290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20293 rm -f conftest2.*
20294 if { (case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297esac
20298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20299$as_echo "$ac_try_echo") >&5
20300 (eval "$ac_try") 2>&5
20301 ac_status=$?
20302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); } &&
20304 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20307esac
20308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20309$as_echo "$ac_try_echo") >&5
20310 (eval "$ac_try") 2>&5
20311 ac_status=$?
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); };
20314 then
20315 # cc works too.
20316 :
20317 else
20318 # cc exists but doesn't like -o.
20319 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20320 fi
20321 fi
20322 fi
20323else
20324 eval ac_cv_prog_cc_${ac_cc}_c_o=no
20325fi
20326rm -f core conftest*
20327
20328fi
20329if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20330 { $as_echo "$as_me:$LINENO: result: yes" >&5
20331$as_echo "yes" >&6; }
20332else
20333 { $as_echo "$as_me:$LINENO: result: no" >&5
20334$as_echo "no" >&6; }
20335
20336cat >>confdefs.h <<\_ACEOF
20337#define NO_MINUS_C_MINUS_O 1
20338_ACEOF
20339
20340fi
20341
20342# FIXME: we rely on the cache variable name because
20343# there is no other way.
20344set dummy $CC
20345am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20346eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
20347if test "$am_t" != yes; then
20348 # Losing compiler, so override with the script.
20349 # FIXME: It is wrong to rewrite CC.
20350 # But if we don't then we get into trouble of one sort or another.
20351 # A longer-term fix would be to have automake use am__CC in this case,
20352 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20353 CC="$am_aux_dir/compile $CC"
20354fi
20355
20356
20357
20358# Checks for libraries.
20359
20360
20361
20362 if test "x$nih_install" = "xyes"; then
20363 INSTALL_NIH_TRUE=
20364 INSTALL_NIH_FALSE='#'
20365else
20366 INSTALL_NIH_TRUE='#'
20367 INSTALL_NIH_FALSE=
20368fi
20369
20370
20371
20372
20373if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20374 if test -n "$ac_tool_prefix"; then
20375 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20376set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20377{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20378$as_echo_n "checking for $ac_word... " >&6; }
20379if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20380 $as_echo_n "(cached) " >&6
20381else
20382 case $PKG_CONFIG in
20383 [\\/]* | ?:[\\/]*)
20384 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20385 ;;
20386 *)
20387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20388for as_dir in $PATH
20389do
20390 IFS=$as_save_IFS
20391 test -z "$as_dir" && as_dir=.
20392 for ac_exec_ext in '' $ac_executable_extensions; do
20393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20394 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20396 break 2
20397 fi
20398done
20399done
20400IFS=$as_save_IFS
20401
20402 ;;
20403esac
20404fi
20405PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20406if test -n "$PKG_CONFIG"; then
20407 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20408$as_echo "$PKG_CONFIG" >&6; }
20409else
20410 { $as_echo "$as_me:$LINENO: result: no" >&5
20411$as_echo "no" >&6; }
20412fi
20413
20414
20415fi
20416if test -z "$ac_cv_path_PKG_CONFIG"; then
20417 ac_pt_PKG_CONFIG=$PKG_CONFIG
20418 # Extract the first word of "pkg-config", so it can be a program name with args.
20419set dummy pkg-config; ac_word=$2
20420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20421$as_echo_n "checking for $ac_word... " >&6; }
20422if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20423 $as_echo_n "(cached) " >&6
20424else
20425 case $ac_pt_PKG_CONFIG in
20426 [\\/]* | ?:[\\/]*)
20427 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20428 ;;
20429 *)
20430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20431for as_dir in $PATH
20432do
20433 IFS=$as_save_IFS
20434 test -z "$as_dir" && as_dir=.
20435 for ac_exec_ext in '' $ac_executable_extensions; do
20436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20437 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20439 break 2
20440 fi
20441done
20442done
20443IFS=$as_save_IFS
20444
20445 ;;
20446esac
20447fi
20448ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20449if test -n "$ac_pt_PKG_CONFIG"; then
20450 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20451$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20452else
20453 { $as_echo "$as_me:$LINENO: result: no" >&5
20454$as_echo "no" >&6; }
20455fi
20456
20457 if test "x$ac_pt_PKG_CONFIG" = x; then
20458 PKG_CONFIG=""
20459 else
20460 case $cross_compiling:$ac_tool_warned in
20461yes:)
20462{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20464ac_tool_warned=yes ;;
20465esac
20466 PKG_CONFIG=$ac_pt_PKG_CONFIG
20467 fi
20468else
20469 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20470fi
20471
20472fi
20473if test -n "$PKG_CONFIG"; then
20474 _pkg_min_version=0.22
20475 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20476$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20477 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20478 { $as_echo "$as_me:$LINENO: result: yes" >&5
20479$as_echo "yes" >&6; }
20480 else
20481 { $as_echo "$as_me:$LINENO: result: no" >&5
20482$as_echo "no" >&6; }
20483 PKG_CONFIG=""
20484 fi
20485
20486fi
20487
20488# Checks for libraries
20489
20490nih_with_dbus=yes
20491if test "x$nih_with_dbus" = "xyes"; then
20492
20493pkg_failed=no
20494{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
20495$as_echo_n "checking for DBUS... " >&6; }
20496
20497if test -n "$PKG_CONFIG"; then
20498 if test -n "$DBUS_CFLAGS"; then
20499 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20500 else
20501 if test -n "$PKG_CONFIG" && \
Scott James Remnantd91d8522009-07-16 18:21:14 +010020502 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
20503 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020504 ac_status=$?
20505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020507 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020508else
20509 pkg_failed=yes
20510fi
20511 fi
20512else
20513 pkg_failed=untried
20514fi
20515if test -n "$PKG_CONFIG"; then
20516 if test -n "$DBUS_LIBS"; then
20517 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20518 else
20519 if test -n "$PKG_CONFIG" && \
Scott James Remnantd91d8522009-07-16 18:21:14 +010020520 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
20521 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020522 ac_status=$?
20523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020525 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020526else
20527 pkg_failed=yes
20528fi
20529 fi
20530else
20531 pkg_failed=untried
20532fi
20533
20534
20535
20536if test $pkg_failed = yes; then
20537
20538if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20539 _pkg_short_errors_supported=yes
20540else
20541 _pkg_short_errors_supported=no
20542fi
20543 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020544 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020545 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010020546 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020547 fi
20548 # Put the nasty error message in config.log where it belongs
20549 echo "$DBUS_PKG_ERRORS" >&5
20550
Scott James Remnantd91d8522009-07-16 18:21:14 +010020551 { { $as_echo "$as_me:$LINENO: error: Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010020552
20553$DBUS_PKG_ERRORS
20554
20555Consider adjusting the PKG_CONFIG_PATH environment variable if you
20556installed software in a non-standard prefix.
20557
20558Alternatively, you may set the environment variables DBUS_CFLAGS
20559and DBUS_LIBS to avoid the need to call pkg-config.
20560See the pkg-config man page for more details.
20561" >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010020562$as_echo "$as_me: error: Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010020563
20564$DBUS_PKG_ERRORS
20565
20566Consider adjusting the PKG_CONFIG_PATH environment variable if you
20567installed software in a non-standard prefix.
20568
20569Alternatively, you may set the environment variables DBUS_CFLAGS
20570and DBUS_LIBS to avoid the need to call pkg-config.
20571See the pkg-config man page for more details.
20572" >&2;}
20573 { (exit 1); exit 1; }; }
20574elif test $pkg_failed = untried; then
20575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20577{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20578is in your PATH or set the PKG_CONFIG environment variable to the full
20579path to pkg-config.
20580
20581Alternatively, you may set the environment variables DBUS_CFLAGS
20582and DBUS_LIBS to avoid the need to call pkg-config.
20583See the pkg-config man page for more details.
20584
20585To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20586See \`config.log' for more details." >&5
20587$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20588is in your PATH or set the PKG_CONFIG environment variable to the full
20589path to pkg-config.
20590
20591Alternatively, you may set the environment variables DBUS_CFLAGS
20592and DBUS_LIBS to avoid the need to call pkg-config.
20593See the pkg-config man page for more details.
20594
20595To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20596See \`config.log' for more details." >&2;}
20597 { (exit 1); exit 1; }; }; }
20598else
20599 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
20600 DBUS_LIBS=$pkg_cv_DBUS_LIBS
20601 { $as_echo "$as_me:$LINENO: result: yes" >&5
20602$as_echo "yes" >&6; }
20603 :
20604fi
20605 { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20606$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
20607if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20608 $as_echo_n "(cached) " >&6
20609else
20610 ac_check_lib_save_LIBS=$LIBS
20611LIBS="-lexpat $LIBS"
20612cat >conftest.$ac_ext <<_ACEOF
20613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
20618
20619/* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20622#ifdef __cplusplus
20623extern "C"
20624#endif
20625char XML_ParserCreate ();
20626int
20627main ()
20628{
20629return XML_ParserCreate ();
20630 ;
20631 return 0;
20632}
20633_ACEOF
20634rm -f conftest.$ac_objext conftest$ac_exeext
20635if { (ac_try="$ac_link"
20636case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20639esac
20640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641$as_echo "$ac_try_echo") >&5
20642 (eval "$ac_link") 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest$ac_exeext && {
20652 test "$cross_compiling" = yes ||
20653 $as_test_x conftest$ac_exeext
20654 }; then
20655 ac_cv_lib_expat_XML_ParserCreate=yes
20656else
20657 $as_echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ac_cv_lib_expat_XML_ParserCreate=no
20661fi
20662
20663rm -rf conftest.dSYM
20664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20665 conftest$ac_exeext conftest.$ac_ext
20666LIBS=$ac_check_lib_save_LIBS
20667fi
20668{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20669$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
20670if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
20671 { $as_echo "$as_me:$LINENO: checking for XML_StopParser in -lexpat" >&5
20672$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
20673if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then
20674 $as_echo_n "(cached) " >&6
20675else
20676 ac_check_lib_save_LIBS=$LIBS
20677LIBS="-lexpat $LIBS"
20678cat >conftest.$ac_ext <<_ACEOF
20679/* confdefs.h. */
20680_ACEOF
20681cat confdefs.h >>conftest.$ac_ext
20682cat >>conftest.$ac_ext <<_ACEOF
20683/* end confdefs.h. */
20684
20685/* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688#ifdef __cplusplus
20689extern "C"
20690#endif
20691char XML_StopParser ();
20692int
20693main ()
20694{
20695return XML_StopParser ();
20696 ;
20697 return 0;
20698}
20699_ACEOF
20700rm -f conftest.$ac_objext conftest$ac_exeext
20701if { (ac_try="$ac_link"
20702case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705esac
20706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20707$as_echo "$ac_try_echo") >&5
20708 (eval "$ac_link") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext && {
20718 test "$cross_compiling" = yes ||
20719 $as_test_x conftest$ac_exeext
20720 }; then
20721 ac_cv_lib_expat_XML_StopParser=yes
20722else
20723 $as_echo "$as_me: failed program was:" >&5
20724sed 's/^/| /' conftest.$ac_ext >&5
20725
20726 ac_cv_lib_expat_XML_StopParser=no
20727fi
20728
20729rm -rf conftest.dSYM
20730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20731 conftest$ac_exeext conftest.$ac_ext
20732LIBS=$ac_check_lib_save_LIBS
20733fi
20734{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_StopParser" >&5
20735$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
20736if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then
20737 EXPAT_LIBS=-lexpat
20738
20739else
20740 { { $as_echo "$as_me:$LINENO: error: expat >= 2.0.0 required" >&5
20741$as_echo "$as_me: error: expat >= 2.0.0 required" >&2;}
20742 { (exit 1); exit 1; }; }
20743fi
20744
20745else
20746 { { $as_echo "$as_me:$LINENO: error: expat library not found" >&5
20747$as_echo "$as_me: error: expat library not found" >&2;}
20748 { (exit 1); exit 1; }; }
20749fi
20750
20751else
20752 if test "x$nih_with_dbus" != "xno"; then
20753
20754pkg_failed=no
20755{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
20756$as_echo_n "checking for DBUS... " >&6; }
20757
20758if test -n "$PKG_CONFIG"; then
20759 if test -n "$DBUS_CFLAGS"; then
20760 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
20761 else
20762 if test -n "$PKG_CONFIG" && \
Scott James Remnantd91d8522009-07-16 18:21:14 +010020763 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
20764 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020765 ac_status=$?
20766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020768 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020769else
20770 pkg_failed=yes
20771fi
20772 fi
20773else
20774 pkg_failed=untried
20775fi
20776if test -n "$PKG_CONFIG"; then
20777 if test -n "$DBUS_LIBS"; then
20778 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
20779 else
20780 if test -n "$PKG_CONFIG" && \
Scott James Remnantd91d8522009-07-16 18:21:14 +010020781 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\"") >&5
20782 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010020783 ac_status=$?
20784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020786 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020787else
20788 pkg_failed=yes
20789fi
20790 fi
20791else
20792 pkg_failed=untried
20793fi
20794
20795
20796
20797if test $pkg_failed = yes; then
20798
20799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20800 _pkg_short_errors_supported=yes
20801else
20802 _pkg_short_errors_supported=no
20803fi
20804 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010020805 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020806 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010020807 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010020808 fi
20809 # Put the nasty error message in config.log where it belongs
20810 echo "$DBUS_PKG_ERRORS" >&5
20811
20812 { $as_echo "$as_me:$LINENO: result: no" >&5
20813$as_echo "no" >&6; }
20814 nih_have_dbus=no
20815elif test $pkg_failed = untried; then
20816 nih_have_dbus=no
20817else
20818 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
20819 DBUS_LIBS=$pkg_cv_DBUS_LIBS
20820 { $as_echo "$as_me:$LINENO: result: yes" >&5
20821$as_echo "yes" >&6; }
20822 :
20823fi
20824 { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20825$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
20826if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20827 $as_echo_n "(cached) " >&6
20828else
20829 ac_check_lib_save_LIBS=$LIBS
20830LIBS="-lexpat $LIBS"
20831cat >conftest.$ac_ext <<_ACEOF
20832/* confdefs.h. */
20833_ACEOF
20834cat confdefs.h >>conftest.$ac_ext
20835cat >>conftest.$ac_ext <<_ACEOF
20836/* end confdefs.h. */
20837
20838/* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20841#ifdef __cplusplus
20842extern "C"
20843#endif
20844char XML_ParserCreate ();
20845int
20846main ()
20847{
20848return XML_ParserCreate ();
20849 ;
20850 return 0;
20851}
20852_ACEOF
20853rm -f conftest.$ac_objext conftest$ac_exeext
20854if { (ac_try="$ac_link"
20855case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20858esac
20859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20860$as_echo "$ac_try_echo") >&5
20861 (eval "$ac_link") 2>conftest.er1
20862 ac_status=$?
20863 grep -v '^ *+' conftest.er1 >conftest.err
20864 rm -f conftest.er1
20865 cat conftest.err >&5
20866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); } && {
20868 test -z "$ac_c_werror_flag" ||
20869 test ! -s conftest.err
20870 } && test -s conftest$ac_exeext && {
20871 test "$cross_compiling" = yes ||
20872 $as_test_x conftest$ac_exeext
20873 }; then
20874 ac_cv_lib_expat_XML_ParserCreate=yes
20875else
20876 $as_echo "$as_me: failed program was:" >&5
20877sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ac_cv_lib_expat_XML_ParserCreate=no
20880fi
20881
20882rm -rf conftest.dSYM
20883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884 conftest$ac_exeext conftest.$ac_ext
20885LIBS=$ac_check_lib_save_LIBS
20886fi
20887{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20888$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
20889if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
20890 { $as_echo "$as_me:$LINENO: checking for XML_StopParser in -lexpat" >&5
20891$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
20892if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then
20893 $as_echo_n "(cached) " >&6
20894else
20895 ac_check_lib_save_LIBS=$LIBS
20896LIBS="-lexpat $LIBS"
20897cat >conftest.$ac_ext <<_ACEOF
20898/* confdefs.h. */
20899_ACEOF
20900cat confdefs.h >>conftest.$ac_ext
20901cat >>conftest.$ac_ext <<_ACEOF
20902/* end confdefs.h. */
20903
20904/* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20907#ifdef __cplusplus
20908extern "C"
20909#endif
20910char XML_StopParser ();
20911int
20912main ()
20913{
20914return XML_StopParser ();
20915 ;
20916 return 0;
20917}
20918_ACEOF
20919rm -f conftest.$ac_objext conftest$ac_exeext
20920if { (ac_try="$ac_link"
20921case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924esac
20925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20926$as_echo "$ac_try_echo") >&5
20927 (eval "$ac_link") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } && {
20934 test -z "$ac_c_werror_flag" ||
20935 test ! -s conftest.err
20936 } && test -s conftest$ac_exeext && {
20937 test "$cross_compiling" = yes ||
20938 $as_test_x conftest$ac_exeext
20939 }; then
20940 ac_cv_lib_expat_XML_StopParser=yes
20941else
20942 $as_echo "$as_me: failed program was:" >&5
20943sed 's/^/| /' conftest.$ac_ext >&5
20944
20945 ac_cv_lib_expat_XML_StopParser=no
20946fi
20947
20948rm -rf conftest.dSYM
20949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20950 conftest$ac_exeext conftest.$ac_ext
20951LIBS=$ac_check_lib_save_LIBS
20952fi
20953{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_StopParser" >&5
20954$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
20955if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then
20956 EXPAT_LIBS=-lexpat
20957
20958else
20959 nih_have_dbus=no
20960fi
20961
20962else
20963 nih_have_dbus=no
20964fi
20965
20966else
20967 nih_have_dbus=no
20968fi
20969
20970fi
20971
20972 if test "x$nih_have_dbus" != "xno"; then
20973 HAVE_DBUS_TRUE=
20974 HAVE_DBUS_FALSE='#'
20975else
20976 HAVE_DBUS_TRUE='#'
20977 HAVE_DBUS_FALSE=
20978fi
20979
20980
20981
20982# Checks for header files.
20983
20984for ac_header in valgrind/valgrind.h
20985do
20986as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20987if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20989$as_echo_n "checking for $ac_header... " >&6; }
20990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20991 $as_echo_n "(cached) " >&6
20992fi
20993ac_res=`eval 'as_val=${'$as_ac_Header'}
20994 $as_echo "$as_val"'`
20995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20996$as_echo "$ac_res" >&6; }
20997else
20998 # Is the header compilable?
20999{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21000$as_echo_n "checking $ac_header usability... " >&6; }
21001cat >conftest.$ac_ext <<_ACEOF
21002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
21007$ac_includes_default
21008#include <$ac_header>
21009_ACEOF
21010rm -f conftest.$ac_objext
21011if { (ac_try="$ac_compile"
21012case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21015esac
21016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017$as_echo "$ac_try_echo") >&5
21018 (eval "$ac_compile") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest.$ac_objext; then
21028 ac_header_compiler=yes
21029else
21030 $as_echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033 ac_header_compiler=no
21034fi
21035
21036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21038$as_echo "$ac_header_compiler" >&6; }
21039
21040# Is the header present?
21041{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21042$as_echo_n "checking $ac_header presence... " >&6; }
21043cat >conftest.$ac_ext <<_ACEOF
21044/* confdefs.h. */
21045_ACEOF
21046cat confdefs.h >>conftest.$ac_ext
21047cat >>conftest.$ac_ext <<_ACEOF
21048/* end confdefs.h. */
21049#include <$ac_header>
21050_ACEOF
21051if { (ac_try="$ac_cpp conftest.$ac_ext"
21052case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21055esac
21056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21057$as_echo "$ac_try_echo") >&5
21058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } >/dev/null && {
21065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 }; then
21068 ac_header_preproc=yes
21069else
21070 $as_echo "$as_me: failed program was:" >&5
21071sed 's/^/| /' conftest.$ac_ext >&5
21072
21073 ac_header_preproc=no
21074fi
21075
21076rm -f conftest.err conftest.$ac_ext
21077{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21078$as_echo "$ac_header_preproc" >&6; }
21079
21080# So? What about this header?
21081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21082 yes:no: )
21083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21084$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21086$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21087 ac_header_preproc=yes
21088 ;;
21089 no:yes:* )
21090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21091$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21093$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21095$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21097$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21099$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21101$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21102 ( cat <<\_ASBOX
21103## --------------------------------------------- ##
21104## Report this to upstart-devel@lists.ubuntu.com ##
21105## --------------------------------------------- ##
21106_ASBOX
21107 ) | sed "s/^/$as_me: WARNING: /" >&2
21108 ;;
21109esac
21110{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21111$as_echo_n "checking for $ac_header... " >&6; }
21112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21113 $as_echo_n "(cached) " >&6
21114else
21115 eval "$as_ac_Header=\$ac_header_preproc"
21116fi
21117ac_res=`eval 'as_val=${'$as_ac_Header'}
21118 $as_echo "$as_val"'`
21119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21120$as_echo "$ac_res" >&6; }
21121
21122fi
21123as_val=`eval 'as_val=${'$as_ac_Header'}
21124 $as_echo "$as_val"'`
21125 if test "x$as_val" = x""yes; then
21126 cat >>confdefs.h <<_ACEOF
21127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21128_ACEOF
21129
21130fi
21131
21132done
21133
21134
21135# Checks for typedefs, structures, and compiler characteristics.
21136 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
21137$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
21138if test "${ac_cv_prog_cc_c99+set}" = set; then
21139 $as_echo_n "(cached) " >&6
21140else
21141 ac_cv_prog_cc_c99=no
21142ac_save_CC=$CC
21143cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
21149#include <stdarg.h>
21150#include <stdbool.h>
21151#include <stdlib.h>
21152#include <wchar.h>
21153#include <stdio.h>
21154
21155// Check varargs macros. These examples are taken from C99 6.10.3.5.
21156#define debug(...) fprintf (stderr, __VA_ARGS__)
21157#define showlist(...) puts (#__VA_ARGS__)
21158#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
21159static void
21160test_varargs_macros (void)
21161{
21162 int x = 1234;
21163 int y = 5678;
21164 debug ("Flag");
21165 debug ("X = %d\n", x);
21166 showlist (The first, second, and third items.);
21167 report (x>y, "x is %d but y is %d", x, y);
21168}
21169
21170// Check long long types.
21171#define BIG64 18446744073709551615ull
21172#define BIG32 4294967295ul
21173#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
21174#if !BIG_OK
21175 your preprocessor is broken;
21176#endif
21177#if BIG_OK
21178#else
21179 your preprocessor is broken;
21180#endif
21181static long long int bignum = -9223372036854775807LL;
21182static unsigned long long int ubignum = BIG64;
21183
21184struct incomplete_array
21185{
21186 int datasize;
21187 double data[];
21188};
21189
21190struct named_init {
21191 int number;
21192 const wchar_t *name;
21193 double average;
21194};
21195
21196typedef const char *ccp;
21197
21198static inline int
21199test_restrict (ccp restrict text)
21200{
21201 // See if C++-style comments work.
21202 // Iterate through items via the restricted pointer.
21203 // Also check for declarations in for loops.
21204 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
21205 continue;
21206 return 0;
21207}
21208
21209// Check varargs and va_copy.
21210static void
21211test_varargs (const char *format, ...)
21212{
21213 va_list args;
21214 va_start (args, format);
21215 va_list args_copy;
21216 va_copy (args_copy, args);
21217
21218 const char *str;
21219 int number;
21220 float fnumber;
21221
21222 while (*format)
21223 {
21224 switch (*format++)
21225 {
21226 case 's': // string
21227 str = va_arg (args_copy, const char *);
21228 break;
21229 case 'd': // int
21230 number = va_arg (args_copy, int);
21231 break;
21232 case 'f': // float
21233 fnumber = va_arg (args_copy, double);
21234 break;
21235 default:
21236 break;
21237 }
21238 }
21239 va_end (args_copy);
21240 va_end (args);
21241}
21242
21243int
21244main ()
21245{
21246
21247 // Check bool.
21248 _Bool success = false;
21249
21250 // Check restrict.
21251 if (test_restrict ("String literal") == 0)
21252 success = true;
21253 char *restrict newvar = "Another string";
21254
21255 // Check varargs.
21256 test_varargs ("s, d' f .", "string", 65, 34.234);
21257 test_varargs_macros ();
21258
21259 // Check flexible array members.
21260 struct incomplete_array *ia =
21261 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
21262 ia->datasize = 10;
21263 for (int i = 0; i < ia->datasize; ++i)
21264 ia->data[i] = i * 1.234;
21265
21266 // Check named initializers.
21267 struct named_init ni = {
21268 .number = 34,
21269 .name = L"Test wide string",
21270 .average = 543.34343,
21271 };
21272
21273 ni.number = 58;
21274
21275 int dynamic_array[ni.number];
21276 dynamic_array[ni.number - 1] = 543;
21277
21278 // work around unused variable warnings
21279 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
21280 || dynamic_array[ni.number - 1] != 543);
21281
21282 ;
21283 return 0;
21284}
21285_ACEOF
21286for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
21287do
21288 CC="$ac_save_CC $ac_arg"
21289 rm -f conftest.$ac_objext
21290if { (ac_try="$ac_compile"
21291case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21294esac
21295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21296$as_echo "$ac_try_echo") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21307 ac_cv_prog_cc_c99=$ac_arg
21308else
21309 $as_echo "$as_me: failed program was:" >&5
21310sed 's/^/| /' conftest.$ac_ext >&5
21311
21312
21313fi
21314
21315rm -f core conftest.err conftest.$ac_objext
21316 test "x$ac_cv_prog_cc_c99" != "xno" && break
21317done
21318rm -f conftest.$ac_ext
21319CC=$ac_save_CC
21320
21321fi
21322# AC_CACHE_VAL
21323case "x$ac_cv_prog_cc_c99" in
21324 x)
21325 { $as_echo "$as_me:$LINENO: result: none needed" >&5
21326$as_echo "none needed" >&6; } ;;
21327 xno)
21328 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
21329$as_echo "unsupported" >&6; } ;;
21330 *)
21331 CC="$CC $ac_cv_prog_cc_c99"
21332 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
21333$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
21334esac
21335
21336
21337
21338# FIXME: we rely on the cache variable name because
21339# there is no other way.
21340set dummy $CC
21341am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21342eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
21343if test "$am_t" != yes; then
21344 # Losing compiler, so override with the script.
21345 # FIXME: It is wrong to rewrite CC.
21346 # But if we don't then we get into trouble of one sort or another.
21347 # A longer-term fix would be to have automake use am__CC in this case,
21348 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21349 CC="$am_aux_dir/compile $CC"
21350fi
21351
21352
21353# Check whether --enable-threading was given.
21354if test "${enable_threading+set}" = set; then
21355 enableval=$enable_threading;
21356else
21357 enable_threading=no
21358fi
21359if test "x$enable_threading" != "xno" ; then
21360 { $as_echo "$as_me:$LINENO: checking whether compiler supports __thread" >&5
21361$as_echo_n "checking whether compiler supports __thread... " >&6; }
21362if test "${nih_cv_c_thread+set}" = set; then
21363 $as_echo_n "(cached) " >&6
21364else
21365 cat >conftest.$ac_ext <<_ACEOF
21366/* confdefs.h. */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h. */
21371int __thread a;
21372int
21373main ()
21374{
21375
21376 ;
21377 return 0;
21378}
21379_ACEOF
21380rm -f conftest.$ac_objext
21381if { (ac_try="$ac_compile"
21382case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21385esac
21386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21387$as_echo "$ac_try_echo") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.$ac_objext; then
21398 nih_cv_c_thread=yes
21399else
21400 $as_echo "$as_me: failed program was:" >&5
21401sed 's/^/| /' conftest.$ac_ext >&5
21402
21403 nih_cv_c_thread=no
21404fi
21405
21406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407fi
21408{ $as_echo "$as_me:$LINENO: result: $nih_cv_c_thread" >&5
21409$as_echo "$nih_cv_c_thread" >&6; }
21410if test "x$nih_cv_c_thread" = "xno"; then
21411
21412cat >>confdefs.h <<\_ACEOF
21413#define __thread /**/
21414_ACEOF
21415
21416fi
21417
21418else
21419 cat >>confdefs.h <<\_ACEOF
21420#define __thread /**/
21421_ACEOF
21422
21423fi
21424
21425
21426# Other checks
21427# Check whether --enable-compiler-warnings was given.
21428if test "${enable_compiler_warnings+set}" = set; then
21429 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then
21430 if test "x$GCC" = "xyes"; then
21431 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
21432fi
21433
21434 if test "x$GXX" = "xyes"; then
21435 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
21436fi
21437
21438fi
21439
21440
21441fi
21442
21443# Check whether --enable-compiler-optimisations was given.
21444if test "${enable_compiler_optimisations+set}" = set; then
21445 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then
21446 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
21447 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
21448fi
21449
21450
21451fi
21452
21453# Check whether --enable-compiler-coverage was given.
21454if test "${enable_compiler_coverage+set}" = set; then
21455 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then
21456 if test "x$GCC" = "xyes"; then
21457 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
21458fi
21459
21460 if test "x$GXX" = "xyes"; then
21461 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
21462fi
21463
21464fi
21465
21466
21467fi
21468
21469
21470# Check whether --enable-linker-optimisations was given.
21471if test "${enable_linker_optimisations+set}" = set; then
21472 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then
21473 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
21474else
21475 LDFLAGS="$LDFLAGS -Wl,-O1"
21476fi
21477
21478
21479fi
21480
21481{ $as_echo "$as_me:$LINENO: checking for linker version script argument" >&5
21482$as_echo_n "checking for linker version script argument... " >&6; }
21483if test "${nih_cv_version_script+set}" = set; then
21484 $as_echo_n "(cached) " >&6
21485else
21486 nih_cv_version_script=none
21487for nih_try_arg in "-Wl,--version-script"; do
21488 nih_old_libs="$LIBS"
21489 LIBS="$LIBS $nih_try_arg=conftest.ver"
21490
21491 cat >conftest.ver <<EOF
21492TEST {
21493 global:
21494 *;
21495};
21496EOF
21497
21498 cat >conftest.$ac_ext <<_ACEOF
21499/* confdefs.h. */
21500_ACEOF
21501cat confdefs.h >>conftest.$ac_ext
21502cat >>conftest.$ac_ext <<_ACEOF
21503/* end confdefs.h. */
21504
21505int
21506main ()
21507{
21508
21509 ;
21510 return 0;
21511}
21512_ACEOF
21513rm -f conftest.$ac_objext conftest$ac_exeext
21514if { (ac_try="$ac_link"
21515case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518esac
21519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520$as_echo "$ac_try_echo") >&5
21521 (eval "$ac_link") 2>conftest.er1
21522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest$ac_exeext && {
21531 test "$cross_compiling" = yes ||
21532 $as_test_x conftest$ac_exeext
21533 }; then
21534
21535 rm -f conftest.ver
21536 LIBS="$nih_old_libs"
21537 nih_cv_version_script="$nih_try_arg"
21538 break
21539
21540else
21541 $as_echo "$as_me: failed program was:" >&5
21542sed 's/^/| /' conftest.$ac_ext >&5
21543
21544
21545fi
21546
21547rm -rf conftest.dSYM
21548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21549 conftest$ac_exeext conftest.$ac_ext
21550
21551 rm -f conftest.ver
21552 LIBS="$nih_old_libs"
21553done
21554fi
21555{ $as_echo "$as_me:$LINENO: result: $nih_cv_version_script" >&5
21556$as_echo "$nih_cv_version_script" >&6; }
21557if test "x$nih_cv_version_script" != "xnone"; then
21558 VERSION_SCRIPT_ARG=$nih_cv_version_script
21559
21560fi
21561
21562 if test "x$nih_cv_version_script" != "xnone"; then
21563 HAVE_VERSION_SCRIPT_ARG_TRUE=
21564 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
21565else
21566 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
21567 HAVE_VERSION_SCRIPT_ARG_FALSE=
21568fi
21569
21570
21571
21572
21573# Checks for header files.
21574
21575# Checks for typedefs, structures, and compiler characteristics.
21576
21577# Checks for library functions.
21578
21579# Other checks
21580{ $as_echo "$as_me:$LINENO: checking whether to include sbindir in PATH" >&5
21581$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
21582eval upstart_sbindir=\"$sbindir\"
21583case $upstart_sbindir in
21584 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
21585 { $as_echo "$as_me:$LINENO: result: no" >&5
21586$as_echo "no" >&6; }
21587 ;;
21588 *)
21589 { $as_echo "$as_me:$LINENO: result: yes" >&5
21590$as_echo "yes" >&6; }
21591
21592cat >>confdefs.h <<_ACEOF
21593#define EXTRA_PATH "$upstart_sbindir"
21594_ACEOF
21595
21596 ;;
21597esac
21598
21599
21600ac_config_files="$ac_config_files Makefile m4/Makefile intl/Makefile nih/Makefile nih-dbus/Makefile nih-dbus-tool/Makefile dbus/Makefile init/Makefile util/Makefile conf/Makefile doc/Makefile contrib/Makefile po/Makefile.in"
21601
21602ac_config_headers="$ac_config_headers config.h"
21603
21604cat >confcache <<\_ACEOF
21605# This file is a shell script that caches the results of configure
21606# tests run on this system so they can be shared between configure
21607# scripts and configure runs, see configure's option --config-cache.
21608# It is not useful on other systems. If it contains results you don't
21609# want to keep, you may remove or edit it.
21610#
21611# config.status only pays attention to the cache file if you give it
21612# the --recheck option to rerun configure.
21613#
21614# `ac_cv_env_foo' variables (set or unset) will be overridden when
21615# loading this file, other *unset* `ac_cv_foo' will be assigned the
21616# following values.
21617
21618_ACEOF
21619
21620# The following way of writing the cache mishandles newlines in values,
21621# but we know of no workaround that is simple, portable, and efficient.
21622# So, we kill variables containing newlines.
21623# Ultrix sh set writes to stderr and can't be redirected directly,
21624# and sets the high bit in the cache file unless we assign to the vars.
21625(
21626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21627 eval ac_val=\$$ac_var
21628 case $ac_val in #(
21629 *${as_nl}*)
21630 case $ac_var in #(
21631 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21632$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21633 esac
21634 case $ac_var in #(
21635 _ | IFS | as_nl) ;; #(
21636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21637 *) $as_unset $ac_var ;;
21638 esac ;;
21639 esac
21640 done
21641
21642 (set) 2>&1 |
21643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21644 *${as_nl}ac_space=\ *)
21645 # `set' does not quote correctly, so add quotes (double-quote
21646 # substitution turns \\\\ into \\, and sed turns \\ into \).
21647 sed -n \
21648 "s/'/'\\\\''/g;
21649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21650 ;; #(
21651 *)
21652 # `set' quotes correctly as required by POSIX, so do not add quotes.
21653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21654 ;;
21655 esac |
21656 sort
21657) |
21658 sed '
21659 /^ac_cv_env_/b end
21660 t clear
21661 :clear
21662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21663 t end
21664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21665 :end' >>confcache
21666if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21667 if test -w "$cache_file"; then
21668 test "x$cache_file" != "x/dev/null" &&
21669 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21670$as_echo "$as_me: updating cache $cache_file" >&6;}
21671 cat confcache >$cache_file
21672 else
21673 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21674$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21675 fi
21676fi
21677rm -f confcache
21678
21679test "x$prefix" = xNONE && prefix=$ac_default_prefix
21680# Let make expand exec_prefix.
21681test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21682
21683DEFS=-DHAVE_CONFIG_H
21684
21685ac_libobjs=
21686ac_ltlibobjs=
21687for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21688 # 1. Remove the extension, and $U if already installed.
21689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21692 # will be set to the directory where LIBOBJS objects are built.
21693 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21694 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21695done
21696LIBOBJS=$ac_libobjs
21697
21698LTLIBOBJS=$ac_ltlibobjs
21699
21700
21701if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21702 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21703Usually this means the macro was only invoked conditionally." >&5
21704$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21705Usually this means the macro was only invoked conditionally." >&2;}
21706 { (exit 1); exit 1; }; }
21707fi
21708if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21709 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21710Usually this means the macro was only invoked conditionally." >&5
21711$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21712Usually this means the macro was only invoked conditionally." >&2;}
21713 { (exit 1); exit 1; }; }
21714fi
21715if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
21716 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_NIH\" was never defined.
21717Usually this means the macro was only invoked conditionally." >&5
21718$as_echo "$as_me: error: conditional \"INSTALL_NIH\" was never defined.
21719Usually this means the macro was only invoked conditionally." >&2;}
21720 { (exit 1); exit 1; }; }
21721fi
21722if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
21723 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DBUS\" was never defined.
21724Usually this means the macro was only invoked conditionally." >&5
21725$as_echo "$as_me: error: conditional \"HAVE_DBUS\" was never defined.
21726Usually this means the macro was only invoked conditionally." >&2;}
21727 { (exit 1); exit 1; }; }
21728fi
21729if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
21730 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
21731Usually this means the macro was only invoked conditionally." >&5
21732$as_echo "$as_me: error: conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
21733Usually this means the macro was only invoked conditionally." >&2;}
21734 { (exit 1); exit 1; }; }
21735fi
21736
21737: ${CONFIG_STATUS=./config.status}
21738ac_write_fail=0
21739ac_clean_files_save=$ac_clean_files
21740ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21741{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21742$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21743cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21744#! $SHELL
21745# Generated by $as_me.
21746# Run this file to recreate the current configuration.
21747# Compiler output produced by configure, useful for debugging
21748# configure, is in config.log if it exists.
21749
21750debug=false
21751ac_cs_recheck=false
21752ac_cs_silent=false
21753SHELL=\${CONFIG_SHELL-$SHELL}
21754_ACEOF
21755
21756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21757## --------------------- ##
21758## M4sh Initialization. ##
21759## --------------------- ##
21760
21761# Be more Bourne compatible
21762DUALCASE=1; export DUALCASE # for MKS sh
21763if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21764 emulate sh
21765 NULLCMD=:
21766 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21767 # is contrary to our usage. Disable this feature.
21768 alias -g '${1+"$@"}'='"$@"'
21769 setopt NO_GLOB_SUBST
21770else
21771 case `(set -o) 2>/dev/null` in
21772 *posix*) set -o posix ;;
21773esac
21774
21775fi
21776
21777
21778
21779
21780# PATH needs CR
21781# Avoid depending upon Character Ranges.
21782as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21783as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21784as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21785as_cr_digits='0123456789'
21786as_cr_alnum=$as_cr_Letters$as_cr_digits
21787
21788as_nl='
21789'
21790export as_nl
21791# Printing a long string crashes Solaris 7 /usr/bin/printf.
21792as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21793as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21795if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21796 as_echo='printf %s\n'
21797 as_echo_n='printf %s'
21798else
21799 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21800 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21801 as_echo_n='/usr/ucb/echo -n'
21802 else
21803 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21804 as_echo_n_body='eval
21805 arg=$1;
21806 case $arg in
21807 *"$as_nl"*)
21808 expr "X$arg" : "X\\(.*\\)$as_nl";
21809 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21810 esac;
21811 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21812 '
21813 export as_echo_n_body
21814 as_echo_n='sh -c $as_echo_n_body as_echo'
21815 fi
21816 export as_echo_body
21817 as_echo='sh -c $as_echo_body as_echo'
21818fi
21819
21820# The user is always right.
21821if test "${PATH_SEPARATOR+set}" != set; then
21822 PATH_SEPARATOR=:
21823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21825 PATH_SEPARATOR=';'
21826 }
21827fi
21828
21829# Support unset when possible.
21830if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21831 as_unset=unset
21832else
21833 as_unset=false
21834fi
21835
21836
21837# IFS
21838# We need space, tab and new line, in precisely that order. Quoting is
21839# there to prevent editors from complaining about space-tab.
21840# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21841# splitting by setting IFS to empty value.)
21842IFS=" "" $as_nl"
21843
21844# Find who we are. Look in the path if we contain no directory separator.
21845case $0 in
21846 *[\\/]* ) as_myself=$0 ;;
21847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848for as_dir in $PATH
21849do
21850 IFS=$as_save_IFS
21851 test -z "$as_dir" && as_dir=.
21852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21853done
21854IFS=$as_save_IFS
21855
21856 ;;
21857esac
21858# We did not find ourselves, most probably we were run as `sh COMMAND'
21859# in which case we are not to be found in the path.
21860if test "x$as_myself" = x; then
21861 as_myself=$0
21862fi
21863if test ! -f "$as_myself"; then
21864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21865 { (exit 1); exit 1; }
21866fi
21867
21868# Work around bugs in pre-3.0 UWIN ksh.
21869for as_var in ENV MAIL MAILPATH
21870do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21871done
21872PS1='$ '
21873PS2='> '
21874PS4='+ '
21875
21876# NLS nuisances.
21877LC_ALL=C
21878export LC_ALL
21879LANGUAGE=C
21880export LANGUAGE
21881
21882# Required to use basename.
21883if expr a : '\(a\)' >/dev/null 2>&1 &&
21884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21885 as_expr=expr
21886else
21887 as_expr=false
21888fi
21889
21890if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21891 as_basename=basename
21892else
21893 as_basename=false
21894fi
21895
21896
21897# Name of the executable.
21898as_me=`$as_basename -- "$0" ||
21899$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21900 X"$0" : 'X\(//\)$' \| \
21901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21902$as_echo X/"$0" |
21903 sed '/^.*\/\([^/][^/]*\)\/*$/{
21904 s//\1/
21905 q
21906 }
21907 /^X\/\(\/\/\)$/{
21908 s//\1/
21909 q
21910 }
21911 /^X\/\(\/\).*/{
21912 s//\1/
21913 q
21914 }
21915 s/.*/./; q'`
21916
21917# CDPATH.
21918$as_unset CDPATH
21919
21920
21921
21922 as_lineno_1=$LINENO
21923 as_lineno_2=$LINENO
21924 test "x$as_lineno_1" != "x$as_lineno_2" &&
21925 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21926
21927 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21928 # uniformly replaced by the line number. The first 'sed' inserts a
21929 # line-number line after each line using $LINENO; the second 'sed'
21930 # does the real work. The second script uses 'N' to pair each
21931 # line-number line with the line containing $LINENO, and appends
21932 # trailing '-' during substitution so that $LINENO is not a special
21933 # case at line end.
21934 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21935 # scripts with optimization help from Paolo Bonzini. Blame Lee
21936 # E. McMahon (1931-1989) for sed's syntax. :-)
21937 sed -n '
21938 p
21939 /[$]LINENO/=
21940 ' <$as_myself |
21941 sed '
21942 s/[$]LINENO.*/&-/
21943 t lineno
21944 b
21945 :lineno
21946 N
21947 :loop
21948 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21949 t loop
21950 s/-\n.*//
21951 ' >$as_me.lineno &&
21952 chmod +x "$as_me.lineno" ||
21953 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21954 { (exit 1); exit 1; }; }
21955
21956 # Don't try to exec as it changes $[0], causing all sort of problems
21957 # (the dirname of $[0] is not the place where we might find the
21958 # original and so on. Autoconf is especially sensitive to this).
21959 . "./$as_me.lineno"
21960 # Exit status is that of the last command.
21961 exit
21962}
21963
21964
21965if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21966 as_dirname=dirname
21967else
21968 as_dirname=false
21969fi
21970
21971ECHO_C= ECHO_N= ECHO_T=
21972case `echo -n x` in
21973-n*)
21974 case `echo 'x\c'` in
21975 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21976 *) ECHO_C='\c';;
21977 esac;;
21978*)
21979 ECHO_N='-n';;
21980esac
21981if expr a : '\(a\)' >/dev/null 2>&1 &&
21982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21983 as_expr=expr
21984else
21985 as_expr=false
21986fi
21987
21988rm -f conf$$ conf$$.exe conf$$.file
21989if test -d conf$$.dir; then
21990 rm -f conf$$.dir/conf$$.file
21991else
21992 rm -f conf$$.dir
21993 mkdir conf$$.dir 2>/dev/null
21994fi
21995if (echo >conf$$.file) 2>/dev/null; then
21996 if ln -s conf$$.file conf$$ 2>/dev/null; then
21997 as_ln_s='ln -s'
21998 # ... but there are two gotchas:
21999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22001 # In both cases, we have to default to `cp -p'.
22002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22003 as_ln_s='cp -p'
22004 elif ln conf$$.file conf$$ 2>/dev/null; then
22005 as_ln_s=ln
22006 else
22007 as_ln_s='cp -p'
22008 fi
22009else
22010 as_ln_s='cp -p'
22011fi
22012rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22013rmdir conf$$.dir 2>/dev/null
22014
22015if mkdir -p . 2>/dev/null; then
22016 as_mkdir_p=:
22017else
22018 test -d ./-p && rmdir ./-p
22019 as_mkdir_p=false
22020fi
22021
22022if test -x / >/dev/null 2>&1; then
22023 as_test_x='test -x'
22024else
22025 if ls -dL / >/dev/null 2>&1; then
22026 as_ls_L_option=L
22027 else
22028 as_ls_L_option=
22029 fi
22030 as_test_x='
22031 eval sh -c '\''
22032 if test -d "$1"; then
22033 test -d "$1/.";
22034 else
22035 case $1 in
22036 -*)set "./$1";;
22037 esac;
22038 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22039 ???[sx]*):;;*)false;;esac;fi
22040 '\'' sh
22041 '
22042fi
22043as_executable_p=$as_test_x
22044
22045# Sed expression to map a string onto a valid CPP name.
22046as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22047
22048# Sed expression to map a string onto a valid variable name.
22049as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22050
22051
22052exec 6>&1
22053
22054# Save the log message, to keep $[0] and so on meaningful, and to
22055# report actual input values of CONFIG_FILES etc. instead of their
22056# values after options handling.
22057ac_log="
Scott James Remnantd91d8522009-07-16 18:21:14 +010022058This file was extended by upstart $as_me 0.6.1, which was
Scott James Remnant65f683d2009-07-14 13:05:17 +010022059generated by GNU Autoconf 2.63. Invocation command line was
22060
22061 CONFIG_FILES = $CONFIG_FILES
22062 CONFIG_HEADERS = $CONFIG_HEADERS
22063 CONFIG_LINKS = $CONFIG_LINKS
22064 CONFIG_COMMANDS = $CONFIG_COMMANDS
22065 $ $0 $@
22066
22067on `(hostname || uname -n) 2>/dev/null | sed 1q`
22068"
22069
22070_ACEOF
22071
22072case $ac_config_files in *"
22073"*) set x $ac_config_files; shift; ac_config_files=$*;;
22074esac
22075
22076case $ac_config_headers in *"
22077"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22078esac
22079
22080
22081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22082# Files that config.status was made for.
22083config_files="$ac_config_files"
22084config_headers="$ac_config_headers"
22085config_commands="$ac_config_commands"
22086
22087_ACEOF
22088
22089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22090ac_cs_usage="\
22091\`$as_me' instantiates files from templates according to the
22092current configuration.
22093
22094Usage: $0 [OPTION]... [FILE]...
22095
22096 -h, --help print this help, then exit
22097 -V, --version print version number and configuration settings, then exit
22098 -q, --quiet, --silent
22099 do not print progress messages
22100 -d, --debug don't remove temporary files
22101 --recheck update $as_me by reconfiguring in the same conditions
22102 --file=FILE[:TEMPLATE]
22103 instantiate the configuration file FILE
22104 --header=FILE[:TEMPLATE]
22105 instantiate the configuration header FILE
22106
22107Configuration files:
22108$config_files
22109
22110Configuration headers:
22111$config_headers
22112
22113Configuration commands:
22114$config_commands
22115
22116Report bugs to <bug-autoconf@gnu.org>."
22117
22118_ACEOF
22119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22120ac_cs_version="\\
Scott James Remnantd91d8522009-07-16 18:21:14 +010022121upstart config.status 0.6.1
Scott James Remnant65f683d2009-07-14 13:05:17 +010022122configured by $0, generated by GNU Autoconf 2.63,
22123 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22124
22125Copyright (C) 2008 Free Software Foundation, Inc.
22126This config.status script is free software; the Free Software Foundation
22127gives unlimited permission to copy, distribute and modify it."
22128
22129ac_pwd='$ac_pwd'
22130srcdir='$srcdir'
22131INSTALL='$INSTALL'
22132MKDIR_P='$MKDIR_P'
22133AWK='$AWK'
22134test -n "\$AWK" || AWK=awk
22135_ACEOF
22136
22137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22138# The default lists apply if the user does not specify any file.
22139ac_need_defaults=:
22140while test $# != 0
22141do
22142 case $1 in
22143 --*=*)
22144 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22145 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22146 ac_shift=:
22147 ;;
22148 *)
22149 ac_option=$1
22150 ac_optarg=$2
22151 ac_shift=shift
22152 ;;
22153 esac
22154
22155 case $ac_option in
22156 # Handling of the options.
22157 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22158 ac_cs_recheck=: ;;
22159 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22160 $as_echo "$ac_cs_version"; exit ;;
22161 --debug | --debu | --deb | --de | --d | -d )
22162 debug=: ;;
22163 --file | --fil | --fi | --f )
22164 $ac_shift
22165 case $ac_optarg in
22166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22167 esac
22168 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22169 ac_need_defaults=false;;
22170 --header | --heade | --head | --hea )
22171 $ac_shift
22172 case $ac_optarg in
22173 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22174 esac
22175 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22176 ac_need_defaults=false;;
22177 --he | --h)
22178 # Conflict between --help and --header
22179 { $as_echo "$as_me: error: ambiguous option: $1
22180Try \`$0 --help' for more information." >&2
22181 { (exit 1); exit 1; }; };;
22182 --help | --hel | -h )
22183 $as_echo "$ac_cs_usage"; exit ;;
22184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22186 ac_cs_silent=: ;;
22187
22188 # This is an error.
22189 -*) { $as_echo "$as_me: error: unrecognized option: $1
22190Try \`$0 --help' for more information." >&2
22191 { (exit 1); exit 1; }; } ;;
22192
22193 *) ac_config_targets="$ac_config_targets $1"
22194 ac_need_defaults=false ;;
22195
22196 esac
22197 shift
22198done
22199
22200ac_configure_extra_args=
22201
22202if $ac_cs_silent; then
22203 exec 6>/dev/null
22204 ac_configure_extra_args="$ac_configure_extra_args --silent"
22205fi
22206
22207_ACEOF
22208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22209if \$ac_cs_recheck; then
22210 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22211 shift
22212 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22213 CONFIG_SHELL='$SHELL'
22214 export CONFIG_SHELL
22215 exec "\$@"
22216fi
22217
22218_ACEOF
22219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22220exec 5>>config.log
22221{
22222 echo
22223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22224## Running $as_me. ##
22225_ASBOX
22226 $as_echo "$ac_log"
22227} >&5
22228
22229_ACEOF
22230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22231#
22232# INIT-COMMANDS
22233#
22234AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22235
22236
22237# The HP-UX ksh and POSIX shell print the target directory to stdout
22238# if CDPATH is set.
22239(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22240
22241sed_quote_subst='$sed_quote_subst'
22242double_quote_subst='$double_quote_subst'
22243delay_variable_subst='$delay_variable_subst'
22244macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22245macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22246enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22247enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22248pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22249enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22250host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22251host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22252host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22253build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22254build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22255build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22256SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22257Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22258GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22259EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22260FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22261LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22262NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22263LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22264max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22265ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22266exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22267lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22268lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22269lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22270reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22271reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22272OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22273deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22274file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22275AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22276AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22277STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22278RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22279old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22280old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22281old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22282CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22283CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22284compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22285GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22286lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22287lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22288lt_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"`'
22289lt_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"`'
22290objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22291SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22292ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22293MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22294lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22295lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22296lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22297lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22298lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22299need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22300DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22301NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22302LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22303OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22304OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22305libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22306shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22307extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22308archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22309enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22310export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22311whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22312compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22313old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22314old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22315archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22316archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22317module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22318module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22319with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22320allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22321no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22322hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22323hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22324hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22325hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22326hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22327hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22328hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22329hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22330inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22331link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22332fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22333always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22334export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22335exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22336include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22337prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22338file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22339variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22340need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22341need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22342version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22343runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22344shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22345shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22346libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22347library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22348soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22349postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22350postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22351finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22352finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22353hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22354sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22355sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22356hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22357enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22358enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22359enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22360old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22361striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22362
22363LTCC='$LTCC'
22364LTCFLAGS='$LTCFLAGS'
22365compiler='$compiler_DEFAULT'
22366
22367# Quote evaled strings.
22368for var in SED \
22369GREP \
22370EGREP \
22371FGREP \
22372LD \
22373NM \
22374LN_S \
22375lt_SP2NL \
22376lt_NL2SP \
22377reload_flag \
22378OBJDUMP \
22379deplibs_check_method \
22380file_magic_cmd \
22381AR \
22382AR_FLAGS \
22383STRIP \
22384RANLIB \
22385CC \
22386CFLAGS \
22387compiler \
22388lt_cv_sys_global_symbol_pipe \
22389lt_cv_sys_global_symbol_to_cdecl \
22390lt_cv_sys_global_symbol_to_c_name_address \
22391lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22392SHELL \
22393ECHO \
22394lt_prog_compiler_no_builtin_flag \
22395lt_prog_compiler_wl \
22396lt_prog_compiler_pic \
22397lt_prog_compiler_static \
22398lt_cv_prog_compiler_c_o \
22399need_locks \
22400DSYMUTIL \
22401NMEDIT \
22402LIPO \
22403OTOOL \
22404OTOOL64 \
22405shrext_cmds \
22406export_dynamic_flag_spec \
22407whole_archive_flag_spec \
22408compiler_needs_object \
22409with_gnu_ld \
22410allow_undefined_flag \
22411no_undefined_flag \
22412hardcode_libdir_flag_spec \
22413hardcode_libdir_flag_spec_ld \
22414hardcode_libdir_separator \
22415fix_srcfile_path \
22416exclude_expsyms \
22417include_expsyms \
22418file_list_spec \
22419variables_saved_for_relink \
22420libname_spec \
22421library_names_spec \
22422soname_spec \
22423finish_eval \
22424old_striplib \
22425striplib; do
22426 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22427 *[\\\\\\\`\\"\\\$]*)
22428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22429 ;;
22430 *)
22431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22432 ;;
22433 esac
22434done
22435
22436# Double-quote double-evaled strings.
22437for var in reload_cmds \
22438old_postinstall_cmds \
22439old_postuninstall_cmds \
22440old_archive_cmds \
22441extract_expsyms_cmds \
22442old_archive_from_new_cmds \
22443old_archive_from_expsyms_cmds \
22444archive_cmds \
22445archive_expsym_cmds \
22446module_cmds \
22447module_expsym_cmds \
22448export_symbols_cmds \
22449prelink_cmds \
22450postinstall_cmds \
22451postuninstall_cmds \
22452finish_cmds \
22453sys_lib_search_path_spec \
22454sys_lib_dlsearch_path_spec; do
22455 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22456 *[\\\\\\\`\\"\\\$]*)
22457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22458 ;;
22459 *)
22460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22461 ;;
22462 esac
22463done
22464
22465# Fix-up fallback echo if it was mangled by the above quoting rules.
22466case \$lt_ECHO in
22467*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22468 ;;
22469esac
22470
22471ac_aux_dir='$ac_aux_dir'
22472xsi_shell='$xsi_shell'
22473lt_shell_append='$lt_shell_append'
22474
22475# See if we are running on zsh, and set the options which allow our
22476# commands through without removal of \ escapes INIT.
22477if test -n "\${ZSH_VERSION+set}" ; then
22478 setopt NO_GLOB_SUBST
22479fi
22480
22481
22482 PACKAGE='$PACKAGE'
22483 VERSION='$VERSION'
22484 TIMESTAMP='$TIMESTAMP'
22485 RM='$RM'
22486 ofile='$ofile'
22487
22488
22489
22490# Capture the value of obsolete ALL_LINGUAS because we need it to compute
22491 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22492 # from automake < 1.5.
22493 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22494 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22495 LINGUAS="${LINGUAS-%UNSET%}"
22496
22497
22498_ACEOF
22499
22500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22501
22502# Handling of arguments.
22503for ac_config_target in $ac_config_targets
22504do
22505 case $ac_config_target in
22506 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22507 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22508 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22509 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22510 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
22511 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
22512 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
22513 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
22514 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
22515 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
22516 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
22517 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22518 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
22519 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22520 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
22521 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22522 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22523
22524 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22525$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22526 { (exit 1); exit 1; }; };;
22527 esac
22528done
22529
22530
22531# If the user did not use the arguments to specify the items to instantiate,
22532# then the envvar interface is used. Set only those that are not.
22533# We use the long form for the default assignment because of an extremely
22534# bizarre bug on SunOS 4.1.3.
22535if $ac_need_defaults; then
22536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22539fi
22540
22541# Have a temporary directory for convenience. Make it in the build tree
22542# simply because there is no reason against having it here, and in addition,
22543# creating and moving files from /tmp can sometimes cause problems.
22544# Hook for its removal unless debugging.
22545# Note that there is a small window in which the directory will not be cleaned:
22546# after its creation but before its name has been assigned to `$tmp'.
22547$debug ||
22548{
22549 tmp=
22550 trap 'exit_status=$?
22551 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22552' 0
22553 trap '{ (exit 1); exit 1; }' 1 2 13 15
22554}
22555# Create a (secure) tmp directory for tmp files.
22556
22557{
22558 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22559 test -n "$tmp" && test -d "$tmp"
22560} ||
22561{
22562 tmp=./conf$$-$RANDOM
22563 (umask 077 && mkdir "$tmp")
22564} ||
22565{
22566 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22567 { (exit 1); exit 1; }
22568}
22569
22570# Set up the scripts for CONFIG_FILES section.
22571# No need to generate them if there are no CONFIG_FILES.
22572# This happens for instance with `./config.status config.h'.
22573if test -n "$CONFIG_FILES"; then
22574
22575
22576ac_cr=' '
22577ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22578if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22579 ac_cs_awk_cr='\\r'
22580else
22581 ac_cs_awk_cr=$ac_cr
22582fi
22583
22584echo 'BEGIN {' >"$tmp/subs1.awk" &&
22585_ACEOF
22586
22587
22588{
22589 echo "cat >conf$$subs.awk <<_ACEOF" &&
22590 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22591 echo "_ACEOF"
22592} >conf$$subs.sh ||
22593 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22594$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22595 { (exit 1); exit 1; }; }
22596ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22597ac_delim='%!_!# '
22598for ac_last_try in false false false false false :; do
22599 . ./conf$$subs.sh ||
22600 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22601$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22602 { (exit 1); exit 1; }; }
22603
22604 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22605 if test $ac_delim_n = $ac_delim_num; then
22606 break
22607 elif $ac_last_try; then
22608 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22609$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22610 { (exit 1); exit 1; }; }
22611 else
22612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22613 fi
22614done
22615rm -f conf$$subs.sh
22616
22617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22618cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22619_ACEOF
22620sed -n '
22621h
22622s/^/S["/; s/!.*/"]=/
22623p
22624g
22625s/^[^!]*!//
22626:repl
22627t repl
22628s/'"$ac_delim"'$//
22629t delim
22630:nl
22631h
22632s/\(.\{148\}\).*/\1/
22633t more1
22634s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22635p
22636n
22637b repl
22638:more1
22639s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22640p
22641g
22642s/.\{148\}//
22643t nl
22644:delim
22645h
22646s/\(.\{148\}\).*/\1/
22647t more2
22648s/["\\]/\\&/g; s/^/"/; s/$/"/
22649p
22650b
22651:more2
22652s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22653p
22654g
22655s/.\{148\}//
22656t delim
22657' <conf$$subs.awk | sed '
22658/^[^""]/{
22659 N
22660 s/\n//
22661}
22662' >>$CONFIG_STATUS || ac_write_fail=1
22663rm -f conf$$subs.awk
22664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22665_ACAWK
22666cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22667 for (key in S) S_is_set[key] = 1
22668 FS = ""
22669
22670}
22671{
22672 line = $ 0
22673 nfields = split(line, field, "@")
22674 substed = 0
22675 len = length(field[1])
22676 for (i = 2; i < nfields; i++) {
22677 key = field[i]
22678 keylen = length(key)
22679 if (S_is_set[key]) {
22680 value = S[key]
22681 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22682 len += length(value) + length(field[++i])
22683 substed = 1
22684 } else
22685 len += 1 + keylen
22686 }
22687
22688 print line
22689}
22690
22691_ACAWK
22692_ACEOF
22693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22694if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22695 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22696else
22697 cat
22698fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22699 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22700$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22701 { (exit 1); exit 1; }; }
22702_ACEOF
22703
22704# VPATH may cause trouble with some makes, so we remove $(srcdir),
22705# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22706# trailing colons and then remove the whole line if VPATH becomes empty
22707# (actually we leave an empty line to preserve line numbers).
22708if test "x$srcdir" = x.; then
22709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22710s/:*\$(srcdir):*/:/
22711s/:*\${srcdir}:*/:/
22712s/:*@srcdir@:*/:/
22713s/^\([^=]*=[ ]*\):*/\1/
22714s/:*$//
22715s/^[^=]*=[ ]*$//
22716}'
22717fi
22718
22719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22720fi # test -n "$CONFIG_FILES"
22721
22722# Set up the scripts for CONFIG_HEADERS section.
22723# No need to generate them if there are no CONFIG_HEADERS.
22724# This happens for instance with `./config.status Makefile'.
22725if test -n "$CONFIG_HEADERS"; then
22726cat >"$tmp/defines.awk" <<\_ACAWK ||
22727BEGIN {
22728_ACEOF
22729
22730# Transform confdefs.h into an awk script `defines.awk', embedded as
22731# here-document in config.status, that substitutes the proper values into
22732# config.h.in to produce config.h.
22733
22734# Create a delimiter string that does not exist in confdefs.h, to ease
22735# handling of long lines.
22736ac_delim='%!_!# '
22737for ac_last_try in false false :; do
22738 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22739 if test -z "$ac_t"; then
22740 break
22741 elif $ac_last_try; then
22742 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22743$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22744 { (exit 1); exit 1; }; }
22745 else
22746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22747 fi
22748done
22749
22750# For the awk script, D is an array of macro values keyed by name,
22751# likewise P contains macro parameters if any. Preserve backslash
22752# newline sequences.
22753
22754ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22755sed -n '
22756s/.\{148\}/&'"$ac_delim"'/g
22757t rset
22758:rset
22759s/^[ ]*#[ ]*define[ ][ ]*/ /
22760t def
22761d
22762:def
22763s/\\$//
22764t bsnl
22765s/["\\]/\\&/g
22766s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22767D["\1"]=" \3"/p
22768s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22769d
22770:bsnl
22771s/["\\]/\\&/g
22772s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22773D["\1"]=" \3\\\\\\n"\\/p
22774t cont
22775s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22776t cont
22777d
22778:cont
22779n
22780s/.\{148\}/&'"$ac_delim"'/g
22781t clear
22782:clear
22783s/\\$//
22784t bsnlc
22785s/["\\]/\\&/g; s/^/"/; s/$/"/p
22786d
22787:bsnlc
22788s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22789b cont
22790' <confdefs.h | sed '
22791s/'"$ac_delim"'/"\\\
22792"/g' >>$CONFIG_STATUS || ac_write_fail=1
22793
22794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22795 for (key in D) D_is_set[key] = 1
22796 FS = ""
22797}
22798/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22799 line = \$ 0
22800 split(line, arg, " ")
22801 if (arg[1] == "#") {
22802 defundef = arg[2]
22803 mac1 = arg[3]
22804 } else {
22805 defundef = substr(arg[1], 2)
22806 mac1 = arg[2]
22807 }
22808 split(mac1, mac2, "(") #)
22809 macro = mac2[1]
22810 prefix = substr(line, 1, index(line, defundef) - 1)
22811 if (D_is_set[macro]) {
22812 # Preserve the white space surrounding the "#".
22813 print prefix "define", macro P[macro] D[macro]
22814 next
22815 } else {
22816 # Replace #undef with comments. This is necessary, for example,
22817 # in the case of _POSIX_SOURCE, which is predefined and required
22818 # on some systems where configure will not decide to define it.
22819 if (defundef == "undef") {
22820 print "/*", prefix defundef, macro, "*/"
22821 next
22822 }
22823 }
22824}
22825{ print }
22826_ACAWK
22827_ACEOF
22828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22830$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22831 { (exit 1); exit 1; }; }
22832fi # test -n "$CONFIG_HEADERS"
22833
22834
22835eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22836shift
22837for ac_tag
22838do
22839 case $ac_tag in
22840 :[FHLC]) ac_mode=$ac_tag; continue;;
22841 esac
22842 case $ac_mode$ac_tag in
22843 :[FHL]*:*);;
22844 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22845$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22846 { (exit 1); exit 1; }; };;
22847 :[FH]-) ac_tag=-:-;;
22848 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22849 esac
22850 ac_save_IFS=$IFS
22851 IFS=:
22852 set x $ac_tag
22853 IFS=$ac_save_IFS
22854 shift
22855 ac_file=$1
22856 shift
22857
22858 case $ac_mode in
22859 :L) ac_source=$1;;
22860 :[FH])
22861 ac_file_inputs=
22862 for ac_f
22863 do
22864 case $ac_f in
22865 -) ac_f="$tmp/stdin";;
22866 *) # Look for the file first in the build tree, then in the source tree
22867 # (if the path is not absolute). The absolute path cannot be DOS-style,
22868 # because $ac_f cannot contain `:'.
22869 test -f "$ac_f" ||
22870 case $ac_f in
22871 [\\/$]*) false;;
22872 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22873 esac ||
22874 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22875$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22876 { (exit 1); exit 1; }; };;
22877 esac
22878 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22879 ac_file_inputs="$ac_file_inputs '$ac_f'"
22880 done
22881
22882 # Let's still pretend it is `configure' which instantiates (i.e., don't
22883 # use $as_me), people would be surprised to read:
22884 # /* config.h. Generated by config.status. */
22885 configure_input='Generated from '`
22886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22887 `' by configure.'
22888 if test x"$ac_file" != x-; then
22889 configure_input="$ac_file. $configure_input"
22890 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22891$as_echo "$as_me: creating $ac_file" >&6;}
22892 fi
22893 # Neutralize special characters interpreted by sed in replacement strings.
22894 case $configure_input in #(
22895 *\&* | *\|* | *\\* )
22896 ac_sed_conf_input=`$as_echo "$configure_input" |
22897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22898 *) ac_sed_conf_input=$configure_input;;
22899 esac
22900
22901 case $ac_tag in
22902 *:-:* | *:-) cat >"$tmp/stdin" \
22903 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22904$as_echo "$as_me: error: could not create $ac_file" >&2;}
22905 { (exit 1); exit 1; }; } ;;
22906 esac
22907 ;;
22908 esac
22909
22910 ac_dir=`$as_dirname -- "$ac_file" ||
22911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22912 X"$ac_file" : 'X\(//\)[^/]' \| \
22913 X"$ac_file" : 'X\(//\)$' \| \
22914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22915$as_echo X"$ac_file" |
22916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22917 s//\1/
22918 q
22919 }
22920 /^X\(\/\/\)[^/].*/{
22921 s//\1/
22922 q
22923 }
22924 /^X\(\/\/\)$/{
22925 s//\1/
22926 q
22927 }
22928 /^X\(\/\).*/{
22929 s//\1/
22930 q
22931 }
22932 s/.*/./; q'`
22933 { as_dir="$ac_dir"
22934 case $as_dir in #(
22935 -*) as_dir=./$as_dir;;
22936 esac
22937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22938 as_dirs=
22939 while :; do
22940 case $as_dir in #(
22941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22942 *) as_qdir=$as_dir;;
22943 esac
22944 as_dirs="'$as_qdir' $as_dirs"
22945 as_dir=`$as_dirname -- "$as_dir" ||
22946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22947 X"$as_dir" : 'X\(//\)[^/]' \| \
22948 X"$as_dir" : 'X\(//\)$' \| \
22949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22950$as_echo X"$as_dir" |
22951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22952 s//\1/
22953 q
22954 }
22955 /^X\(\/\/\)[^/].*/{
22956 s//\1/
22957 q
22958 }
22959 /^X\(\/\/\)$/{
22960 s//\1/
22961 q
22962 }
22963 /^X\(\/\).*/{
22964 s//\1/
22965 q
22966 }
22967 s/.*/./; q'`
22968 test -d "$as_dir" && break
22969 done
22970 test -z "$as_dirs" || eval "mkdir $as_dirs"
22971 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22972$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22973 { (exit 1); exit 1; }; }; }
22974 ac_builddir=.
22975
22976case "$ac_dir" in
22977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22978*)
22979 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22980 # A ".." for each directory in $ac_dir_suffix.
22981 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22982 case $ac_top_builddir_sub in
22983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22985 esac ;;
22986esac
22987ac_abs_top_builddir=$ac_pwd
22988ac_abs_builddir=$ac_pwd$ac_dir_suffix
22989# for backward compatibility:
22990ac_top_builddir=$ac_top_build_prefix
22991
22992case $srcdir in
22993 .) # We are building in place.
22994 ac_srcdir=.
22995 ac_top_srcdir=$ac_top_builddir_sub
22996 ac_abs_top_srcdir=$ac_pwd ;;
22997 [\\/]* | ?:[\\/]* ) # Absolute name.
22998 ac_srcdir=$srcdir$ac_dir_suffix;
22999 ac_top_srcdir=$srcdir
23000 ac_abs_top_srcdir=$srcdir ;;
23001 *) # Relative name.
23002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23003 ac_top_srcdir=$ac_top_build_prefix$srcdir
23004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23005esac
23006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23007
23008
23009 case $ac_mode in
23010 :F)
23011 #
23012 # CONFIG_FILE
23013 #
23014
23015 case $INSTALL in
23016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23018 esac
23019 ac_MKDIR_P=$MKDIR_P
23020 case $MKDIR_P in
23021 [\\/$]* | ?:[\\/]* ) ;;
23022 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23023 esac
23024_ACEOF
23025
23026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23027# If the template does not know about datarootdir, expand it.
23028# FIXME: This hack should be removed a few years after 2.60.
23029ac_datarootdir_hack=; ac_datarootdir_seen=
23030
23031ac_sed_dataroot='
23032/datarootdir/ {
23033 p
23034 q
23035}
23036/@datadir@/p
23037/@docdir@/p
23038/@infodir@/p
23039/@localedir@/p
23040/@mandir@/p
23041'
23042case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23043*datarootdir*) ac_datarootdir_seen=yes;;
23044*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23045 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23046$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23047_ACEOF
23048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23049 ac_datarootdir_hack='
23050 s&@datadir@&$datadir&g
23051 s&@docdir@&$docdir&g
23052 s&@infodir@&$infodir&g
23053 s&@localedir@&$localedir&g
23054 s&@mandir@&$mandir&g
23055 s&\\\${datarootdir}&$datarootdir&g' ;;
23056esac
23057_ACEOF
23058
23059# Neutralize VPATH when `$srcdir' = `.'.
23060# Shell code in configure.ac might set extrasub.
23061# FIXME: do we really want to maintain this feature?
23062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23063ac_sed_extra="$ac_vpsub
23064$extrasub
23065_ACEOF
23066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23067:t
23068/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23069s|@configure_input@|$ac_sed_conf_input|;t t
23070s&@top_builddir@&$ac_top_builddir_sub&;t t
23071s&@top_build_prefix@&$ac_top_build_prefix&;t t
23072s&@srcdir@&$ac_srcdir&;t t
23073s&@abs_srcdir@&$ac_abs_srcdir&;t t
23074s&@top_srcdir@&$ac_top_srcdir&;t t
23075s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23076s&@builddir@&$ac_builddir&;t t
23077s&@abs_builddir@&$ac_abs_builddir&;t t
23078s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23079s&@INSTALL@&$ac_INSTALL&;t t
23080s&@MKDIR_P@&$ac_MKDIR_P&;t t
23081$ac_datarootdir_hack
23082"
23083eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23084 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23085$as_echo "$as_me: error: could not create $ac_file" >&2;}
23086 { (exit 1); exit 1; }; }
23087
23088test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23089 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23090 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23091 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23092which seems to be undefined. Please make sure it is defined." >&5
23093$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23094which seems to be undefined. Please make sure it is defined." >&2;}
23095
23096 rm -f "$tmp/stdin"
23097 case $ac_file in
23098 -) cat "$tmp/out" && rm -f "$tmp/out";;
23099 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23100 esac \
23101 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23102$as_echo "$as_me: error: could not create $ac_file" >&2;}
23103 { (exit 1); exit 1; }; }
23104 ;;
23105 :H)
23106 #
23107 # CONFIG_HEADER
23108 #
23109 if test x"$ac_file" != x-; then
23110 {
23111 $as_echo "/* $configure_input */" \
23112 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23113 } >"$tmp/config.h" \
23114 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23115$as_echo "$as_me: error: could not create $ac_file" >&2;}
23116 { (exit 1); exit 1; }; }
23117 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23118 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23119$as_echo "$as_me: $ac_file is unchanged" >&6;}
23120 else
23121 rm -f "$ac_file"
23122 mv "$tmp/config.h" "$ac_file" \
23123 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23124$as_echo "$as_me: error: could not create $ac_file" >&2;}
23125 { (exit 1); exit 1; }; }
23126 fi
23127 else
23128 $as_echo "/* $configure_input */" \
23129 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23130 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23131$as_echo "$as_me: error: could not create -" >&2;}
23132 { (exit 1); exit 1; }; }
23133 fi
23134# Compute "$ac_file"'s index in $config_headers.
23135_am_arg="$ac_file"
23136_am_stamp_count=1
23137for _am_header in $config_headers :; do
23138 case $_am_header in
23139 $_am_arg | $_am_arg:* )
23140 break ;;
23141 * )
23142 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23143 esac
23144done
23145echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23146$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23147 X"$_am_arg" : 'X\(//\)[^/]' \| \
23148 X"$_am_arg" : 'X\(//\)$' \| \
23149 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23150$as_echo X"$_am_arg" |
23151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23152 s//\1/
23153 q
23154 }
23155 /^X\(\/\/\)[^/].*/{
23156 s//\1/
23157 q
23158 }
23159 /^X\(\/\/\)$/{
23160 s//\1/
23161 q
23162 }
23163 /^X\(\/\).*/{
23164 s//\1/
23165 q
23166 }
23167 s/.*/./; q'`/stamp-h$_am_stamp_count
23168 ;;
23169
23170 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23171$as_echo "$as_me: executing $ac_file commands" >&6;}
23172 ;;
23173 esac
23174
23175
23176 case $ac_file$ac_mode in
23177 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23178 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23179 # are listed without --file. Let's play safe and only enable the eval
23180 # if we detect the quoting.
23181 case $CONFIG_FILES in
23182 *\'*) eval set x "$CONFIG_FILES" ;;
23183 *) set x $CONFIG_FILES ;;
23184 esac
23185 shift
23186 for mf
23187 do
23188 # Strip MF so we end up with the name of the file.
23189 mf=`echo "$mf" | sed -e 's/:.*$//'`
23190 # Check whether this is an Automake generated Makefile or not.
23191 # We used to match only the files named `Makefile.in', but
23192 # some people rename them; so instead we look at the file content.
23193 # Grep'ing the first line is not enough: some people post-process
23194 # each Makefile.in and add a new line on top of each file to say so.
23195 # Grep'ing the whole file is not good either: AIX grep has a line
23196 # limit of 2048, but all sed's we know have understand at least 4000.
23197 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23198 dirpart=`$as_dirname -- "$mf" ||
23199$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23200 X"$mf" : 'X\(//\)[^/]' \| \
23201 X"$mf" : 'X\(//\)$' \| \
23202 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23203$as_echo X"$mf" |
23204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23205 s//\1/
23206 q
23207 }
23208 /^X\(\/\/\)[^/].*/{
23209 s//\1/
23210 q
23211 }
23212 /^X\(\/\/\)$/{
23213 s//\1/
23214 q
23215 }
23216 /^X\(\/\).*/{
23217 s//\1/
23218 q
23219 }
23220 s/.*/./; q'`
23221 else
23222 continue
23223 fi
23224 # Extract the definition of DEPDIR, am__include, and am__quote
23225 # from the Makefile without running `make'.
23226 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23227 test -z "$DEPDIR" && continue
23228 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23229 test -z "am__include" && continue
23230 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23231 # When using ansi2knr, U may be empty or an underscore; expand it
23232 U=`sed -n 's/^U = //p' < "$mf"`
23233 # Find all dependency output files, they are included files with
23234 # $(DEPDIR) in their names. We invoke sed twice because it is the
23235 # simplest approach to changing $(DEPDIR) to its actual value in the
23236 # expansion.
23237 for file in `sed -n "
23238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23240 # Make sure the directory exists.
23241 test -f "$dirpart/$file" && continue
23242 fdir=`$as_dirname -- "$file" ||
23243$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23244 X"$file" : 'X\(//\)[^/]' \| \
23245 X"$file" : 'X\(//\)$' \| \
23246 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23247$as_echo X"$file" |
23248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23249 s//\1/
23250 q
23251 }
23252 /^X\(\/\/\)[^/].*/{
23253 s//\1/
23254 q
23255 }
23256 /^X\(\/\/\)$/{
23257 s//\1/
23258 q
23259 }
23260 /^X\(\/\).*/{
23261 s//\1/
23262 q
23263 }
23264 s/.*/./; q'`
23265 { as_dir=$dirpart/$fdir
23266 case $as_dir in #(
23267 -*) as_dir=./$as_dir;;
23268 esac
23269 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23270 as_dirs=
23271 while :; do
23272 case $as_dir in #(
23273 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23274 *) as_qdir=$as_dir;;
23275 esac
23276 as_dirs="'$as_qdir' $as_dirs"
23277 as_dir=`$as_dirname -- "$as_dir" ||
23278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23279 X"$as_dir" : 'X\(//\)[^/]' \| \
23280 X"$as_dir" : 'X\(//\)$' \| \
23281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23282$as_echo X"$as_dir" |
23283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23284 s//\1/
23285 q
23286 }
23287 /^X\(\/\/\)[^/].*/{
23288 s//\1/
23289 q
23290 }
23291 /^X\(\/\/\)$/{
23292 s//\1/
23293 q
23294 }
23295 /^X\(\/\).*/{
23296 s//\1/
23297 q
23298 }
23299 s/.*/./; q'`
23300 test -d "$as_dir" && break
23301 done
23302 test -z "$as_dirs" || eval "mkdir $as_dirs"
23303 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23304$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23305 { (exit 1); exit 1; }; }; }
23306 # echo "creating $dirpart/$file"
23307 echo '# dummy' > "$dirpart/$file"
23308 done
23309 done
23310}
23311 ;;
23312 "libtool":C)
23313
23314 # See if we are running on zsh, and set the options which allow our
23315 # commands through without removal of \ escapes.
23316 if test -n "${ZSH_VERSION+set}" ; then
23317 setopt NO_GLOB_SUBST
23318 fi
23319
23320 cfgfile="${ofile}T"
23321 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23322 $RM "$cfgfile"
23323
23324 cat <<_LT_EOF >> "$cfgfile"
23325#! $SHELL
23326
23327# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23328# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23329# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23330# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23331#
23332# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23333# 2006, 2007, 2008 Free Software Foundation, Inc.
23334# Written by Gordon Matzigkeit, 1996
23335#
23336# This file is part of GNU Libtool.
23337#
23338# GNU Libtool is free software; you can redistribute it and/or
23339# modify it under the terms of the GNU General Public License as
23340# published by the Free Software Foundation; either version 2 of
23341# the License, or (at your option) any later version.
23342#
23343# As a special exception to the GNU General Public License,
23344# if you distribute this file as part of a program or library that
23345# is built using GNU Libtool, you may include this file under the
23346# same distribution terms that you use for the rest of that program.
23347#
23348# GNU Libtool is distributed in the hope that it will be useful,
23349# but WITHOUT ANY WARRANTY; without even the implied warranty of
23350# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23351# GNU General Public License for more details.
23352#
23353# You should have received a copy of the GNU General Public License
23354# along with GNU Libtool; see the file COPYING. If not, a copy
23355# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23356# obtained by writing to the Free Software Foundation, Inc.,
23357# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23358
23359
23360# The names of the tagged configurations supported by this script.
23361available_tags=""
23362
23363# ### BEGIN LIBTOOL CONFIG
23364
23365# Which release of libtool.m4 was used?
23366macro_version=$macro_version
23367macro_revision=$macro_revision
23368
23369# Whether or not to build shared libraries.
23370build_libtool_libs=$enable_shared
23371
23372# Whether or not to build static libraries.
23373build_old_libs=$enable_static
23374
23375# What type of objects to build.
23376pic_mode=$pic_mode
23377
23378# Whether or not to optimize for fast installation.
23379fast_install=$enable_fast_install
23380
23381# The host system.
23382host_alias=$host_alias
23383host=$host
23384host_os=$host_os
23385
23386# The build system.
23387build_alias=$build_alias
23388build=$build
23389build_os=$build_os
23390
23391# A sed program that does not truncate output.
23392SED=$lt_SED
23393
23394# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23395Xsed="\$SED -e 1s/^X//"
23396
23397# A grep program that handles long lines.
23398GREP=$lt_GREP
23399
23400# An ERE matcher.
23401EGREP=$lt_EGREP
23402
23403# A literal string matcher.
23404FGREP=$lt_FGREP
23405
23406# A BSD- or MS-compatible name lister.
23407NM=$lt_NM
23408
23409# Whether we need soft or hard links.
23410LN_S=$lt_LN_S
23411
23412# What is the maximum length of a command?
23413max_cmd_len=$max_cmd_len
23414
23415# Object file suffix (normally "o").
23416objext=$ac_objext
23417
23418# Executable file suffix (normally "").
23419exeext=$exeext
23420
23421# whether the shell understands "unset".
23422lt_unset=$lt_unset
23423
23424# turn spaces into newlines.
23425SP2NL=$lt_lt_SP2NL
23426
23427# turn newlines into spaces.
23428NL2SP=$lt_lt_NL2SP
23429
23430# How to create reloadable object files.
23431reload_flag=$lt_reload_flag
23432reload_cmds=$lt_reload_cmds
23433
23434# An object symbol dumper.
23435OBJDUMP=$lt_OBJDUMP
23436
23437# Method to check whether dependent libraries are shared objects.
23438deplibs_check_method=$lt_deplibs_check_method
23439
23440# Command to use when deplibs_check_method == "file_magic".
23441file_magic_cmd=$lt_file_magic_cmd
23442
23443# The archiver.
23444AR=$lt_AR
23445AR_FLAGS=$lt_AR_FLAGS
23446
23447# A symbol stripping program.
23448STRIP=$lt_STRIP
23449
23450# Commands used to install an old-style archive.
23451RANLIB=$lt_RANLIB
23452old_postinstall_cmds=$lt_old_postinstall_cmds
23453old_postuninstall_cmds=$lt_old_postuninstall_cmds
23454
23455# A C compiler.
23456LTCC=$lt_CC
23457
23458# LTCC compiler flags.
23459LTCFLAGS=$lt_CFLAGS
23460
23461# Take the output of nm and produce a listing of raw symbols and C names.
23462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23463
23464# Transform the output of nm in a proper C declaration.
23465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23466
23467# Transform the output of nm in a C name address pair.
23468global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23469
23470# Transform the output of nm in a C name address pair when lib prefix is needed.
23471global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23472
23473# The name of the directory that contains temporary libtool files.
23474objdir=$objdir
23475
23476# Shell to use when invoking shell scripts.
23477SHELL=$lt_SHELL
23478
23479# An echo program that does not interpret backslashes.
23480ECHO=$lt_ECHO
23481
23482# Used to examine libraries when file_magic_cmd begins with "file".
23483MAGIC_CMD=$MAGIC_CMD
23484
23485# Must we lock files when doing compilation?
23486need_locks=$lt_need_locks
23487
23488# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23489DSYMUTIL=$lt_DSYMUTIL
23490
23491# Tool to change global to local symbols on Mac OS X.
23492NMEDIT=$lt_NMEDIT
23493
23494# Tool to manipulate fat objects and archives on Mac OS X.
23495LIPO=$lt_LIPO
23496
23497# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23498OTOOL=$lt_OTOOL
23499
23500# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23501OTOOL64=$lt_OTOOL64
23502
23503# Old archive suffix (normally "a").
23504libext=$libext
23505
23506# Shared library suffix (normally ".so").
23507shrext_cmds=$lt_shrext_cmds
23508
23509# The commands to extract the exported symbol list from a shared archive.
23510extract_expsyms_cmds=$lt_extract_expsyms_cmds
23511
23512# Variables whose values should be saved in libtool wrapper scripts and
23513# restored at link time.
23514variables_saved_for_relink=$lt_variables_saved_for_relink
23515
23516# Do we need the "lib" prefix for modules?
23517need_lib_prefix=$need_lib_prefix
23518
23519# Do we need a version for libraries?
23520need_version=$need_version
23521
23522# Library versioning type.
23523version_type=$version_type
23524
23525# Shared library runtime path variable.
23526runpath_var=$runpath_var
23527
23528# Shared library path variable.
23529shlibpath_var=$shlibpath_var
23530
23531# Is shlibpath searched before the hard-coded library search path?
23532shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23533
23534# Format of library name prefix.
23535libname_spec=$lt_libname_spec
23536
23537# List of archive names. First name is the real one, the rest are links.
23538# The last name is the one that the linker finds with -lNAME
23539library_names_spec=$lt_library_names_spec
23540
23541# The coded name of the library, if different from the real name.
23542soname_spec=$lt_soname_spec
23543
23544# Command to use after installation of a shared archive.
23545postinstall_cmds=$lt_postinstall_cmds
23546
23547# Command to use after uninstallation of a shared archive.
23548postuninstall_cmds=$lt_postuninstall_cmds
23549
23550# Commands used to finish a libtool library installation in a directory.
23551finish_cmds=$lt_finish_cmds
23552
23553# As "finish_cmds", except a single script fragment to be evaled but
23554# not shown.
23555finish_eval=$lt_finish_eval
23556
23557# Whether we should hardcode library paths into libraries.
23558hardcode_into_libs=$hardcode_into_libs
23559
23560# Compile-time system search path for libraries.
23561sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23562
23563# Run-time system search path for libraries.
23564sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23565
23566# Whether dlopen is supported.
23567dlopen_support=$enable_dlopen
23568
23569# Whether dlopen of programs is supported.
23570dlopen_self=$enable_dlopen_self
23571
23572# Whether dlopen of statically linked programs is supported.
23573dlopen_self_static=$enable_dlopen_self_static
23574
23575# Commands to strip libraries.
23576old_striplib=$lt_old_striplib
23577striplib=$lt_striplib
23578
23579
23580# The linker used to build libraries.
23581LD=$lt_LD
23582
23583# Commands used to build an old-style archive.
23584old_archive_cmds=$lt_old_archive_cmds
23585
23586# A language specific compiler.
23587CC=$lt_compiler
23588
23589# Is the compiler the GNU compiler?
23590with_gcc=$GCC
23591
23592# Compiler flag to turn off builtin functions.
23593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23594
23595# How to pass a linker flag through the compiler.
23596wl=$lt_lt_prog_compiler_wl
23597
23598# Additional compiler flags for building library objects.
23599pic_flag=$lt_lt_prog_compiler_pic
23600
23601# Compiler flag to prevent dynamic linking.
23602link_static_flag=$lt_lt_prog_compiler_static
23603
23604# Does compiler simultaneously support -c and -o options?
23605compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23606
23607# Whether or not to add -lc for building shared libraries.
23608build_libtool_need_lc=$archive_cmds_need_lc
23609
23610# Whether or not to disallow shared libs when runtime libs are static.
23611allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23612
23613# Compiler flag to allow reflexive dlopens.
23614export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23615
23616# Compiler flag to generate shared objects directly from archives.
23617whole_archive_flag_spec=$lt_whole_archive_flag_spec
23618
23619# Whether the compiler copes with passing no objects directly.
23620compiler_needs_object=$lt_compiler_needs_object
23621
23622# Create an old-style archive from a shared archive.
23623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23624
23625# Create a temporary old-style archive to link instead of a shared archive.
23626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23627
23628# Commands used to build a shared archive.
23629archive_cmds=$lt_archive_cmds
23630archive_expsym_cmds=$lt_archive_expsym_cmds
23631
23632# Commands used to build a loadable module if different from building
23633# a shared archive.
23634module_cmds=$lt_module_cmds
23635module_expsym_cmds=$lt_module_expsym_cmds
23636
23637# Whether we are building with GNU ld or not.
23638with_gnu_ld=$lt_with_gnu_ld
23639
23640# Flag that allows shared libraries with undefined symbols to be built.
23641allow_undefined_flag=$lt_allow_undefined_flag
23642
23643# Flag that enforces no undefined symbols.
23644no_undefined_flag=$lt_no_undefined_flag
23645
23646# Flag to hardcode \$libdir into a binary during linking.
23647# This must work even if \$libdir does not exist
23648hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23649
23650# If ld is used when linking, flag to hardcode \$libdir into a binary
23651# during linking. This must work even if \$libdir does not exist.
23652hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23653
23654# Whether we need a single "-rpath" flag with a separated argument.
23655hardcode_libdir_separator=$lt_hardcode_libdir_separator
23656
23657# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23658# DIR into the resulting binary.
23659hardcode_direct=$hardcode_direct
23660
23661# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23662# DIR into the resulting binary and the resulting library dependency is
23663# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23664# library is relocated.
23665hardcode_direct_absolute=$hardcode_direct_absolute
23666
23667# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23668# into the resulting binary.
23669hardcode_minus_L=$hardcode_minus_L
23670
23671# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23672# into the resulting binary.
23673hardcode_shlibpath_var=$hardcode_shlibpath_var
23674
23675# Set to "yes" if building a shared library automatically hardcodes DIR
23676# into the library and all subsequent libraries and executables linked
23677# against it.
23678hardcode_automatic=$hardcode_automatic
23679
23680# Set to yes if linker adds runtime paths of dependent libraries
23681# to runtime path list.
23682inherit_rpath=$inherit_rpath
23683
23684# Whether libtool must link a program against all its dependency libraries.
23685link_all_deplibs=$link_all_deplibs
23686
23687# Fix the shell variable \$srcfile for the compiler.
23688fix_srcfile_path=$lt_fix_srcfile_path
23689
23690# Set to "yes" if exported symbols are required.
23691always_export_symbols=$always_export_symbols
23692
23693# The commands to list exported symbols.
23694export_symbols_cmds=$lt_export_symbols_cmds
23695
23696# Symbols that should not be listed in the preloaded symbols.
23697exclude_expsyms=$lt_exclude_expsyms
23698
23699# Symbols that must always be exported.
23700include_expsyms=$lt_include_expsyms
23701
23702# Commands necessary for linking programs (against libraries) with templates.
23703prelink_cmds=$lt_prelink_cmds
23704
23705# Specify filename containing input files.
23706file_list_spec=$lt_file_list_spec
23707
23708# How to hardcode a shared library path into an executable.
23709hardcode_action=$hardcode_action
23710
23711# ### END LIBTOOL CONFIG
23712
23713_LT_EOF
23714
23715 case $host_os in
23716 aix3*)
23717 cat <<\_LT_EOF >> "$cfgfile"
23718# AIX sometimes has problems with the GCC collect2 program. For some
23719# reason, if we set the COLLECT_NAMES environment variable, the problems
23720# vanish in a puff of smoke.
23721if test "X${COLLECT_NAMES+set}" != Xset; then
23722 COLLECT_NAMES=
23723 export COLLECT_NAMES
23724fi
23725_LT_EOF
23726 ;;
23727 esac
23728
23729
23730ltmain="$ac_aux_dir/ltmain.sh"
23731
23732
23733 # We use sed instead of cat because bash on DJGPP gets confused if
23734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23735 # text mode, it properly converts lines to CR/LF. This bash problem
23736 # is reportedly fixed, but why not run on old versions too?
23737 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23738 || (rm -f "$cfgfile"; exit 1)
23739
23740 case $xsi_shell in
23741 yes)
23742 cat << \_LT_EOF >> "$cfgfile"
23743
23744# func_dirname file append nondir_replacement
23745# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23746# otherwise set result to NONDIR_REPLACEMENT.
23747func_dirname ()
23748{
23749 case ${1} in
23750 */*) func_dirname_result="${1%/*}${2}" ;;
23751 * ) func_dirname_result="${3}" ;;
23752 esac
23753}
23754
23755# func_basename file
23756func_basename ()
23757{
23758 func_basename_result="${1##*/}"
23759}
23760
23761# func_dirname_and_basename file append nondir_replacement
23762# perform func_basename and func_dirname in a single function
23763# call:
23764# dirname: Compute the dirname of FILE. If nonempty,
23765# add APPEND to the result, otherwise set result
23766# to NONDIR_REPLACEMENT.
23767# value returned in "$func_dirname_result"
23768# basename: Compute filename of FILE.
23769# value retuned in "$func_basename_result"
23770# Implementation must be kept synchronized with func_dirname
23771# and func_basename. For efficiency, we do not delegate to
23772# those functions but instead duplicate the functionality here.
23773func_dirname_and_basename ()
23774{
23775 case ${1} in
23776 */*) func_dirname_result="${1%/*}${2}" ;;
23777 * ) func_dirname_result="${3}" ;;
23778 esac
23779 func_basename_result="${1##*/}"
23780}
23781
23782# func_stripname prefix suffix name
23783# strip PREFIX and SUFFIX off of NAME.
23784# PREFIX and SUFFIX must not contain globbing or regex special
23785# characters, hashes, percent signs, but SUFFIX may contain a leading
23786# dot (in which case that matches only a dot).
23787func_stripname ()
23788{
23789 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23790 # positional parameters, so assign one to ordinary parameter first.
23791 func_stripname_result=${3}
23792 func_stripname_result=${func_stripname_result#"${1}"}
23793 func_stripname_result=${func_stripname_result%"${2}"}
23794}
23795
23796# func_opt_split
23797func_opt_split ()
23798{
23799 func_opt_split_opt=${1%%=*}
23800 func_opt_split_arg=${1#*=}
23801}
23802
23803# func_lo2o object
23804func_lo2o ()
23805{
23806 case ${1} in
23807 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23808 *) func_lo2o_result=${1} ;;
23809 esac
23810}
23811
23812# func_xform libobj-or-source
23813func_xform ()
23814{
23815 func_xform_result=${1%.*}.lo
23816}
23817
23818# func_arith arithmetic-term...
23819func_arith ()
23820{
23821 func_arith_result=$(( $* ))
23822}
23823
23824# func_len string
23825# STRING may not start with a hyphen.
23826func_len ()
23827{
23828 func_len_result=${#1}
23829}
23830
23831_LT_EOF
23832 ;;
23833 *) # Bourne compatible functions.
23834 cat << \_LT_EOF >> "$cfgfile"
23835
23836# func_dirname file append nondir_replacement
23837# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23838# otherwise set result to NONDIR_REPLACEMENT.
23839func_dirname ()
23840{
23841 # Extract subdirectory from the argument.
23842 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23843 if test "X$func_dirname_result" = "X${1}"; then
23844 func_dirname_result="${3}"
23845 else
23846 func_dirname_result="$func_dirname_result${2}"
23847 fi
23848}
23849
23850# func_basename file
23851func_basename ()
23852{
23853 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23854}
23855
23856
23857# func_stripname prefix suffix name
23858# strip PREFIX and SUFFIX off of NAME.
23859# PREFIX and SUFFIX must not contain globbing or regex special
23860# characters, hashes, percent signs, but SUFFIX may contain a leading
23861# dot (in which case that matches only a dot).
23862# func_strip_suffix prefix name
23863func_stripname ()
23864{
23865 case ${2} in
23866 .*) func_stripname_result=`$ECHO "X${3}" \
23867 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23868 *) func_stripname_result=`$ECHO "X${3}" \
23869 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23870 esac
23871}
23872
23873# sed scripts:
23874my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23875my_sed_long_arg='1s/^-[^=]*=//'
23876
23877# func_opt_split
23878func_opt_split ()
23879{
23880 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23881 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23882}
23883
23884# func_lo2o object
23885func_lo2o ()
23886{
23887 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23888}
23889
23890# func_xform libobj-or-source
23891func_xform ()
23892{
23893 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23894}
23895
23896# func_arith arithmetic-term...
23897func_arith ()
23898{
23899 func_arith_result=`expr "$@"`
23900}
23901
23902# func_len string
23903# STRING may not start with a hyphen.
23904func_len ()
23905{
23906 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23907}
23908
23909_LT_EOF
23910esac
23911
23912case $lt_shell_append in
23913 yes)
23914 cat << \_LT_EOF >> "$cfgfile"
23915
23916# func_append var value
23917# Append VALUE to the end of shell variable VAR.
23918func_append ()
23919{
23920 eval "$1+=\$2"
23921}
23922_LT_EOF
23923 ;;
23924 *)
23925 cat << \_LT_EOF >> "$cfgfile"
23926
23927# func_append var value
23928# Append VALUE to the end of shell variable VAR.
23929func_append ()
23930{
23931 eval "$1=\$$1\$2"
23932}
23933
23934_LT_EOF
23935 ;;
23936 esac
23937
23938
23939 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23940 || (rm -f "$cfgfile"; exit 1)
23941
23942 mv -f "$cfgfile" "$ofile" ||
23943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23944 chmod +x "$ofile"
23945
23946 ;;
23947 "po-directories":C)
23948 for ac_file in $CONFIG_FILES; do
23949 # Support "outfile[:infile[:infile...]]"
23950 case "$ac_file" in
23951 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23952 esac
23953 # PO directories have a Makefile.in generated from Makefile.in.in.
23954 case "$ac_file" in */Makefile.in)
23955 # Adjust a relative srcdir.
23956 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23957 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23958 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23959 # In autoconf-2.13 it is called $ac_given_srcdir.
23960 # In autoconf-2.50 it is called $srcdir.
23961 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23962 case "$ac_given_srcdir" in
23963 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23964 /*) top_srcdir="$ac_given_srcdir" ;;
23965 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23966 esac
23967 # Treat a directory as a PO directory if and only if it has a
23968 # POTFILES.in file. This allows packages to have multiple PO
23969 # directories under different names or in different locations.
23970 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23971 rm -f "$ac_dir/POTFILES"
23972 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23973 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23974 POMAKEFILEDEPS="POTFILES.in"
23975 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23976 # on $ac_dir but don't depend on user-specified configuration
23977 # parameters.
23978 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23979 # The LINGUAS file contains the set of available languages.
23980 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23981 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23982 fi
23983 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23984 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23985 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23986 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23987 else
23988 # The set of available languages was given in configure.in.
23989 # Hide the ALL_LINGUAS assigment from automake < 1.5.
23990 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23991 fi
23992 # Compute POFILES
23993 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23994 # Compute UPDATEPOFILES
23995 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23996 # Compute DUMMYPOFILES
23997 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23998 # Compute GMOFILES
23999 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24000 case "$ac_given_srcdir" in
24001 .) srcdirpre= ;;
24002 *) srcdirpre='$(srcdir)/' ;;
24003 esac
24004 POFILES=
24005 UPDATEPOFILES=
24006 DUMMYPOFILES=
24007 GMOFILES=
24008 for lang in $ALL_LINGUAS; do
24009 POFILES="$POFILES $srcdirpre$lang.po"
24010 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24011 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24012 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24013 done
24014 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24015 # environment variable.
24016 INST_LINGUAS=
24017 if test -n "$ALL_LINGUAS"; then
24018 for presentlang in $ALL_LINGUAS; do
24019 useit=no
24020 if test "%UNSET%" != "$LINGUAS"; then
24021 desiredlanguages="$LINGUAS"
24022 else
24023 desiredlanguages="$ALL_LINGUAS"
24024 fi
24025 for desiredlang in $desiredlanguages; do
24026 # Use the presentlang catalog if desiredlang is
24027 # a. equal to presentlang, or
24028 # b. a variant of presentlang (because in this case,
24029 # presentlang can be used as a fallback for messages
24030 # which are not translated in the desiredlang catalog).
24031 case "$desiredlang" in
24032 "$presentlang"*) useit=yes;;
24033 esac
24034 done
24035 if test $useit = yes; then
24036 INST_LINGUAS="$INST_LINGUAS $presentlang"
24037 fi
24038 done
24039 fi
24040 CATALOGS=
24041 if test -n "$INST_LINGUAS"; then
24042 for lang in $INST_LINGUAS; do
24043 CATALOGS="$CATALOGS $lang.gmo"
24044 done
24045 fi
24046 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24047 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24048 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24049 if test -f "$f"; then
24050 case "$f" in
24051 *.orig | *.bak | *~) ;;
24052 *) cat "$f" >> "$ac_dir/Makefile" ;;
24053 esac
24054 fi
24055 done
24056 fi
24057 ;;
24058 esac
24059 done ;;
24060
24061 esac
24062done # for ac_tag
24063
24064
24065{ (exit 0); exit 0; }
24066_ACEOF
24067chmod +x $CONFIG_STATUS
24068ac_clean_files=$ac_clean_files_save
24069
24070test $ac_write_fail = 0 ||
24071 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24072$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24073 { (exit 1); exit 1; }; }
24074
24075
24076# configure is writing to config.log, and then calls config.status.
24077# config.status does its own redirection, appending to config.log.
24078# Unfortunately, on DOS this fails, as config.log is still kept open
24079# by configure, so config.status won't be able to write to it; its
24080# output is simply discarded. So we exec the FD to /dev/null,
24081# effectively closing config.log, so it can be properly (re)opened and
24082# appended to by config.status. When coming back to configure, we
24083# need to make the FD available again.
24084if test "$no_create" != yes; then
24085 ac_cs_success=:
24086 ac_config_status_args=
24087 test "$silent" = yes &&
24088 ac_config_status_args="$ac_config_status_args --quiet"
24089 exec 5>/dev/null
24090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24091 exec 5>>config.log
24092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24093 # would make configure fail if this is the last instruction.
24094 $ac_cs_success || { (exit 1); exit 1; }
24095fi
24096if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24097 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24098$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24099fi
24100