blob: b92a3607f4168c9175b0c8acb8a78b4fd524bfa6 [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 Remnantb9dc80a2009-08-03 22:58:46 +01003# Generated by GNU Autoconf 2.64 for upstart 0.6.3.
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,
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
Scott James Remnant65f683d2009-07-14 13:05:17 +010011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright © 2009 Canonical Ltd.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010034esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010035fi
36
37
Scott James Remnant65f683d2009-07-14 13:05:17 +010038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010052 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;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010062 case $arg in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010063 *"$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
Scott James Remnant65f683d2009-07-14 13:05:17 +010085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010094case $0 in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
Scott James Remnant65f683d2009-07-14 13:05:17 +0100103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100114 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +0100115fi
116
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Scott James Remnant65f683d2009-07-14 13:05:17 +0100124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: upstart-devel@lists.ubuntu.com about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
Scott James Remnant65f683d2009-07-14 13:05:17 +0100378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
Scott James Remnant65f683d2009-07-14 13:05:17 +0100396
Scott James Remnant65f683d2009-07-14 13:05:17 +0100397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
Scott James Remnant65f683d2009-07-14 13:05:17 +0100422
423
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Scott James Remnant65f683d2009-07-14 13:05:17 +0100429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Scott James Remnant65f683d2009-07-14 13:05:17 +0100446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
Scott James Remnant65f683d2009-07-14 13:05:17 +0100455ECHO_C= ECHO_N= ECHO_T=
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100456case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +0100457-n*)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100458 case `echo 'xy\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +0100459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
Scott James Remnant65f683d2009-07-14 13:05:17 +0100463 esac;;
464*)
465 ECHO_N='-n';;
466esac
Scott James Remnant65f683d2009-07-14 13:05:17 +0100467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100496 as_mkdir_p='mkdir -p "$as_dir"'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100515 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +0100516 -*)set "./$1";;
517 esac;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +0100519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
Scott James Remnant65f683d2009-07-14 13:05:17 +0100533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
562$*
563_LT_EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
583
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
594
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
606 IFS="$lt_save_ifs"
607
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
648
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
664 fi
665 fi
666 fi
667 fi
668 fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681exec 7<&0 </dev/null 6>&1
682
683# Name of the host.
684# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685# so uname gets run too.
686ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688#
689# Initializations.
690#
691ac_default_prefix=/usr/local
692ac_clean_files=
693ac_config_libobj_dir=.
694LIBOBJS=
695cross_compiling=no
696subdirs=
697MFLAGS=
698MAKEFLAGS=
Scott James Remnant65f683d2009-07-14 13:05:17 +0100699
700# Identity of this package.
701PACKAGE_NAME='upstart'
702PACKAGE_TARNAME='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100703PACKAGE_VERSION='0.6.3'
704PACKAGE_STRING='upstart 0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100705PACKAGE_BUGREPORT='upstart-devel@lists.ubuntu.com'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100706PACKAGE_URL=''
Scott James Remnant65f683d2009-07-14 13:05:17 +0100707
708ac_unique_file="init/main.c"
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723# include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728# include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745gt_needs=
746ac_subst_vars='LTLIBOBJS
747LIBOBJS
748HAVE_VERSION_SCRIPT_ARG_FALSE
749HAVE_VERSION_SCRIPT_ARG_TRUE
750VERSION_SCRIPT_ARG
751HAVE_DBUS_FALSE
752HAVE_DBUS_TRUE
753EXPAT_LIBS
754DBUS_LIBS
755DBUS_CFLAGS
756PKG_CONFIG
757INSTALL_NIH_FALSE
758INSTALL_NIH_TRUE
759POSUB
760LTLIBINTL
761LIBINTL
762INTLLIBS
763INTL_LIBTOOL_SUFFIX_PREFIX
764INTLOBJS
765GENCAT
766INSTOBJEXT
767DATADIRNAME
768CATOBJEXT
769USE_INCLUDED_LIBINTL
770BUILD_INCLUDED_LIBINTL
771WOE32DLL
772HAVE_WPRINTF
773HAVE_SNPRINTF
774HAVE_ASPRINTF
775HAVE_POSIX_PRINTF
776INTL_MACOSX_LIBS
777GLIBC21
778INTLBISON
779LTLIBICONV
780LIBICONV
781LTLIBMULTITHREAD
782LIBMULTITHREAD
783LTLIBTHREAD
784LIBTHREAD
785LTLIBPTH
786LIBPTH
787PRI_MACROS_BROKEN
788ALLOCA
789HAVE_VISIBILITY
790CFLAG_VISIBILITY
791GLIBC2
792MSGMERGE
793XGETTEXT_015
794XGETTEXT
795GMSGFMT_015
796MSGFMT_015
797GMSGFMT
798MSGFMT
799USE_NLS
800OTOOL64
801OTOOL
802LIPO
803NMEDIT
804DSYMUTIL
805lt_ECHO
806RANLIB
807AR
808OBJDUMP
809LN_S
810NM
811ac_ct_DUMPBIN
812DUMPBIN
813LD
814FGREP
815SED
816host_os
817host_vendor
818host_cpu
819host
820build_os
821build_vendor
822build_cpu
823build
824LIBTOOL
825am__fastdepCC_FALSE
826am__fastdepCC_TRUE
827CCDEPMODE
828AMDEPBACKSLASH
829AMDEP_FALSE
830AMDEP_TRUE
831am__quote
832am__include
833DEPDIR
834am__untar
835am__tar
836AMTAR
837am__leading_dot
838SET_MAKE
839AWK
840mkdir_p
841MKDIR_P
842INSTALL_STRIP_PROGRAM
843STRIP
844install_sh
845MAKEINFO
846AUTOHEADER
847AUTOMAKE
848AUTOCONF
849ACLOCAL
850VERSION
851PACKAGE
852CYGPATH_W
853am__isrc
854INSTALL_DATA
855INSTALL_SCRIPT
856INSTALL_PROGRAM
857EGREP
858GREP
859CPP
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867target_alias
868host_alias
869build_alias
870LIBS
871ECHO_T
872ECHO_N
873ECHO_C
874DEFS
875PACKAGE_COPYRIGHT
876mandir
877localedir
878libdir
879psdir
880pdfdir
881dvidir
882htmldir
883infodir
884docdir
885oldincludedir
886includedir
887localstatedir
888sharedstatedir
889sysconfdir
890datadir
891datarootdir
892libexecdir
893sbindir
894bindir
895program_transform_name
896prefix
897exec_prefix
Scott James Remnantb9dc80a2009-08-03 22:58:46 +0100898PACKAGE_URL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100899PACKAGE_BUGREPORT
900PACKAGE_STRING
901PACKAGE_VERSION
902PACKAGE_TARNAME
903PACKAGE_NAME
904PATH_SEPARATOR
905SHELL'
906ac_subst_files=''
907ac_user_opts='
908enable_option_checking
909enable_dependency_tracking
910enable_shared
911enable_static
912with_pic
913enable_fast_install
914with_gnu_ld
915enable_libtool_lock
916enable_nls
917enable_threads
918enable_rpath
919with_libpth_prefix
920with_libiconv_prefix
921with_included_gettext
922with_libintl_prefix
923enable_threading
924enable_compiler_warnings
925enable_compiler_optimisations
926enable_compiler_coverage
927enable_linker_optimisations
928'
929 ac_precious_vars='build_alias
930host_alias
931target_alias
932CC
933CFLAGS
934LDFLAGS
935LIBS
936CPPFLAGS
937CPP
938PKG_CONFIG
939DBUS_CFLAGS
940DBUS_LIBS'
941
942
943# Initialize some variables set by options.
944ac_init_help=
945ac_init_version=false
946ac_unrecognized_opts=
947ac_unrecognized_sep=
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001049 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054"enable_$ac_useropt"
1055"*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001075 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080"enable_$ac_useropt"
1081"*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001279 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001295 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"with_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326Try \`$0 --help' for more information."
Scott James Remnant65f683d2009-07-14 13:05:17 +01001327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01001336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348done
1349
1350if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001352 as_fn_error "missing argument to $ac_option"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001353fi
1354
1355if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361fi
1362
1363# Check all directory arguments for consistency.
1364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001382done
1383
1384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
1386# FIXME: To remove some day.
1387build=$build_alias
1388host=$host_alias
1389target=$target_alias
1390
1391# FIXME: To remove some day.
1392if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400fi
1401
1402ac_tool_prefix=
1403test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405test "$silent" = yes && exec 6>/dev/null
1406
1407
1408ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409ac_ls_di=`ls -di .` &&
1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001411 as_fn_error "working directory cannot be determined"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001412test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001413 as_fn_error "pwd does not report name of working directory"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001414
1415
1416# Find the source files, if location was not specified.
1417if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425$as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447else
1448 ac_srcdir_defaulted=no
1449fi
1450if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001453fi
1454ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455ac_abs_confdir=`(
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001457 pwd)`
1458# When building in place, set srcdir=.
1459if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461fi
1462# Remove unnecessary trailing slashes from srcdir.
1463# Double slashes in file names in object file debugging info
1464# mess up M-x gdb in Emacs.
1465case $srcdir in
1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467esac
1468for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473done
1474
1475#
1476# Report the --help message.
1477#
1478if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001482\`configure' configures upstart 0.6.3 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001483
1484Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489Defaults for the options are specified in brackets.
1490
1491Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508By default, \`make install' will install all the files in
1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511for instance \`--prefix=\$HOME'.
1512
1513For better control, use the options below.
1514
1515Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535_ACEOF
1536
1537 cat <<\_ACEOF
1538
1539Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547_ACEOF
1548fi
1549
1550if test -n "$ac_init_help"; then
1551 case $ac_init_help in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001552 short | recursive ) echo "Configuration of upstart 0.6.3:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001553 esac
1554 cat <<\_ACEOF
1555
1556Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --enable-shared[=PKGS] build shared libraries [default=yes]
1563 --enable-static[=PKGS] build static libraries [default=yes]
1564 --enable-fast-install[=PKGS]
1565 optimize for fast installation [default=yes]
1566 --disable-libtool-lock avoid locking (might break parallel builds)
1567 --disable-nls do not use Native Language Support
1568 --enable-threads={posix|solaris|pth|win32}
1569 specify multithreading API
1570 --disable-threads build without multithread safety
1571 --disable-rpath do not hardcode runtime library paths
1572 --enable-threading Enable support for multi-threading
1573 --enable-compiler-warnings
1574 Enable additional compiler warnings
1575 --disable-compiler-optimisations
1576 Disable compiler optimisations
1577 --enable-compiler-coverage
1578 Enable generation of coverage data
1579 --disable-linker-optimisations
1580 Disable linker optimisations
1581
1582Optional Packages:
1583 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1584 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1588 --with-gnu-ld assume the C compiler uses GNU ld default=no
1589 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1590 --without-libpth-prefix don't search for libpth in includedir and libdir
1591 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1592 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1593 --with-included-gettext use the GNU gettext library included here
1594 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1595 --without-libintl-prefix don't search for libintl in includedir and libdir
1596
1597Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
1602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
1605 CPP C preprocessor
1606 PKG_CONFIG path to pkg-config utility
1607 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1608 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1609
1610Use these variables to override the choices made by `configure' or to help
1611it to find libraries and programs with nonstandard names/locations.
1612
1613Report bugs to <upstart-devel@lists.ubuntu.com>.
1614_ACEOF
1615ac_status=$?
1616fi
1617
1618if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 continue
1624 ac_builddir=.
1625
1626case "$ac_dir" in
1627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628*)
1629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630 # A ".." for each directory in $ac_dir_suffix.
1631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 esac ;;
1636esac
1637ac_abs_top_builddir=$ac_pwd
1638ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639# for backward compatibility:
1640ac_top_builddir=$ac_top_build_prefix
1641
1642case $srcdir in
1643 .) # We are building in place.
1644 ac_srcdir=.
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
1648 ac_srcdir=$srcdir$ac_dir_suffix;
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1651 *) # Relative name.
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655esac
1656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for guested configure.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure" --help=recursive
1666 else
1667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 fi || ac_status=$?
1669 cd "$ac_pwd" || { ac_status=$?; break; }
1670 done
1671fi
1672
1673test -n "$ac_init_help" && exit $ac_status
1674if $ac_init_version; then
1675 cat <<\_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001676upstart configure 0.6.3
1677generated by GNU Autoconf 2.64
Scott James Remnant65f683d2009-07-14 13:05:17 +01001678
1679Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016802002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
1681Foundation, Inc.
1682
Scott James Remnant65f683d2009-07-14 13:05:17 +01001683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685
1686Copyright © 2009 Canonical Ltd.
1687_ACEOF
1688 exit
1689fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001690
1691## ------------------------ ##
1692## Autoconf initialization. ##
1693## ------------------------ ##
1694
1695# ac_fn_c_try_compile LINENO
1696# --------------------------
1697# Try to compile conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727fi
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1730
1731} # ac_fn_c_try_compile
1732
1733# ac_fn_c_try_cpp LINENO
1734# ----------------------
1735# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_c_try_cpp ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } >/dev/null && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768} # ac_fn_c_try_cpp
1769
1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773# the include files in INCLUDES and setting the cache variable VAR
1774# accordingly.
1775ac_fn_c_check_header_mongrel ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780$as_echo_n "checking for $2... " >&6; }
1781if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787else
1788 # Is the header compilable?
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790$as_echo_n "checking $2 usability... " >&6; }
1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793$4
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1798else
1799 ac_header_compiler=no
1800fi
1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803$as_echo "$ac_header_compiler" >&6; }
1804
1805# Is the header present?
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807$as_echo_n "checking $2 presence... " >&6; }
1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809/* end confdefs.h. */
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1814else
1815 ac_header_preproc=no
1816fi
1817rm -f conftest.err conftest.$ac_ext
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819$as_echo "$ac_header_preproc" >&6; }
1820
1821# So? What about this header?
1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823 yes:no: )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ;;
1829 no:yes:* )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840( cat <<\_ASBOX
1841## --------------------------------------------- ##
1842## Report this to upstart-devel@lists.ubuntu.com ##
1843## --------------------------------------------- ##
1844_ASBOX
1845 ) | sed "s/^/$as_me: WARNING: /" >&2
1846 ;;
1847esac
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1852else
1853 eval "$3=\$ac_header_compiler"
1854fi
1855eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857$as_echo "$ac_res" >&6; }
1858fi
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860
1861} # ac_fn_c_check_header_mongrel
1862
1863# ac_fn_c_try_run LINENO
1864# ----------------------
1865# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866# that executables *can* be run.
1867ac_fn_c_try_run ()
1868{
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { { ac_try="$ac_link"
1871case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876$as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>&5
1878 ac_status=$?
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881 { { case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886$as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_try") 2>&5
1888 ac_status=$?
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; }; }; then :
1891 ac_retval=0
1892else
1893 $as_echo "$as_me: program exited with status $ac_status" >&5
1894 $as_echo "$as_me: failed program was:" >&5
1895sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=$ac_status
1898fi
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 return $ac_retval
1902
1903} # ac_fn_c_try_run
1904
1905# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1906# -------------------------------------------------------
1907# Tests whether HEADER exists and can be compiled using the include files in
1908# INCLUDES, setting the cache variable VAR accordingly.
1909ac_fn_c_check_header_compile ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916else
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h. */
1919$4
1920#include <$2>
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923 eval "$3=yes"
1924else
1925 eval "$3=no"
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
1934} # ac_fn_c_check_header_compile
1935
1936# ac_fn_c_try_link LINENO
1937# -----------------------
1938# Try to link conftest.$ac_ext, and return whether this succeeded.
1939ac_fn_c_try_link ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1944case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947esac
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1956 fi
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 $as_test_x conftest$ac_exeext
1964 }; then :
1965 ac_retval=0
1966else
1967 $as_echo "$as_me: failed program was:" >&5
1968sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=1
1971fi
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 return $ac_retval
1979
1980} # ac_fn_c_try_link
1981
1982# ac_fn_c_check_func LINENO FUNC VAR
1983# ----------------------------------
1984# Tests whether FUNC exists, setting the cache variable VAR accordingly
1985ac_fn_c_check_func ()
1986{
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989$as_echo_n "checking for $2... " >&6; }
1990if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 $as_echo_n "(cached) " >&6
1992else
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1997#define $2 innocuous_$2
1998
1999/* System header to define __stub macros and hopefully few prototypes,
2000 which can conflict with char $2 (); below.
2001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2002 <limits.h> exists even on freestanding compilers. */
2003
2004#ifdef __STDC__
2005# include <limits.h>
2006#else
2007# include <assert.h>
2008#endif
2009
2010#undef $2
2011
2012/* Override any GCC internal prototype to avoid an error.
2013 Use char because int might match the return type of a GCC
2014 builtin and then its argument prototype would still apply. */
2015#ifdef __cplusplus
2016extern "C"
2017#endif
2018char $2 ();
2019/* The GNU C library defines this for functions which it implements
2020 to always fail with ENOSYS. Some functions are actually named
2021 something starting with __ and the normal name is an alias. */
2022#if defined __stub_$2 || defined __stub___$2
2023choke me
2024#endif
2025
2026int
2027main ()
2028{
2029return $2 ();
2030 ;
2031 return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_link "$LINENO"; then :
2035 eval "$3=yes"
2036else
2037 eval "$3=no"
2038fi
2039rm -f core conftest.err conftest.$ac_objext \
2040 conftest$ac_exeext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047} # ac_fn_c_check_func
2048
2049# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2050# -------------------------------------------
2051# Tests whether TYPE exists after having included INCLUDES, setting cache
2052# variable VAR accordingly.
2053ac_fn_c_check_type ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057$as_echo_n "checking for $2... " >&6; }
2058if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2059 $as_echo_n "(cached) " >&6
2060else
2061 eval "$3=no"
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h. */
2064$4
2065int
2066main ()
2067{
2068if (sizeof ($2))
2069 return 0;
2070 ;
2071 return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$4
2078int
2079main ()
2080{
2081if (sizeof (($2)))
2082 return 0;
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088
2089else
2090 eval "$3=yes"
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100
2101} # ac_fn_c_check_type
2102
2103# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2104# --------------------------------------------
2105# Tries to find the compile-time value of EXPR in a program that includes
2106# INCLUDES, setting VAR accordingly. Returns whether the value could be
2107# computed
2108ac_fn_c_compute_int ()
2109{
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if test "$cross_compiling" = yes; then
2112 # Depending upon the size, compute the lo and hi bounds.
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116int
2117main ()
2118{
2119static int test_array [1 - 2 * !(($2) >= 0)];
2120test_array [0] = 0
2121
2122 ;
2123 return 0;
2124}
2125_ACEOF
2126if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_lo=0 ac_mid=0
2128 while :; do
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2136test_array [0] = 0
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=$ac_mid; break
2144else
2145 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2146 if test $ac_lo -le $ac_mid; then
2147 ac_lo= ac_hi=
2148 break
2149 fi
2150 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2151fi
2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158int
2159main ()
2160{
2161static int test_array [1 - 2 * !(($2) < 0)];
2162test_array [0] = 0
2163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_hi=-1 ac_mid=-1
2170 while :; do
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173$4
2174int
2175main ()
2176{
2177static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2178test_array [0] = 0
2179
2180 ;
2181 return 0;
2182}
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 ac_lo=$ac_mid; break
2186else
2187 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2188 if test $ac_mid -le $ac_hi; then
2189 ac_lo= ac_hi=
2190 break
2191 fi
2192 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2193fi
2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 done
2196else
2197 ac_lo= ac_hi=
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202# Binary search between lo and hi bounds.
2203while test "x$ac_lo" != "x$ac_hi"; do
2204 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206/* end confdefs.h. */
2207$4
2208int
2209main ()
2210{
2211static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2212test_array [0] = 0
2213
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_hi=$ac_mid
2220else
2221 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224done
2225case $ac_lo in #((
2226?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2227'') ac_retval=1 ;;
2228esac
2229 else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h. */
2232$4
2233static long int longval () { return $2; }
2234static unsigned long int ulongval () { return $2; }
2235#include <stdio.h>
2236#include <stdlib.h>
2237int
2238main ()
2239{
2240
2241 FILE *f = fopen ("conftest.val", "w");
2242 if (! f)
2243 return 1;
2244 if (($2) < 0)
2245 {
2246 long int i = longval ();
2247 if (i != ($2))
2248 return 1;
2249 fprintf (f, "%ld", i);
2250 }
2251 else
2252 {
2253 unsigned long int i = ulongval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%lu", i);
2257 }
2258 /* Do not output a trailing newline, as this causes \r\n confusion
2259 on some platforms. */
2260 return ferror (f) || fclose (f) != 0;
2261
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_run "$LINENO"; then :
2267 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2268else
2269 ac_retval=1
2270fi
2271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2272 conftest.$ac_objext conftest.beam conftest.$ac_ext
2273rm -f conftest.val
2274
2275 fi
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 return $ac_retval
2278
2279} # ac_fn_c_compute_int
Scott James Remnant65f683d2009-07-14 13:05:17 +01002280cat >config.log <<_ACEOF
2281This file contains any messages produced by compilers while
2282running configure, to aid debugging if configure makes a mistake.
2283
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002284It was created by upstart $as_me 0.6.3, which was
2285generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +01002286
2287 $ $0 $@
2288
2289_ACEOF
2290exec 5>>config.log
2291{
2292cat <<_ASUNAME
2293## --------- ##
2294## Platform. ##
2295## --------- ##
2296
2297hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302
2303/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2305
2306/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2307/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2308/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2310/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2311/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2312/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2313
2314_ASUNAME
2315
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002321 $as_echo "PATH: $as_dir"
2322 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002323IFS=$as_save_IFS
2324
2325} >&5
2326
2327cat >&5 <<_ACEOF
2328
2329
2330## ----------- ##
2331## Core tests. ##
2332## ----------- ##
2333
2334_ACEOF
2335
2336
2337# Keep a trace of the command line.
2338# Strip out --no-create and --no-recursion so they do not pile up.
2339# Strip out --silent because we don't want to record it for future runs.
2340# Also quote any args containing shell meta-characters.
2341# Make two passes to allow for proper duplicate-argument suppression.
2342ac_configure_args=
2343ac_configure_args0=
2344ac_configure_args1=
2345ac_must_keep_next=false
2346for ac_pass in 1 2
2347do
2348 for ac_arg
2349 do
2350 case $ac_arg in
2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353 | -silent | --silent | --silen | --sile | --sil)
2354 continue ;;
2355 *\'*)
2356 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357 esac
2358 case $ac_pass in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002360 2)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002361 as_fn_append ac_configure_args1 " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002362 if test $ac_must_keep_next = true; then
2363 ac_must_keep_next=false # Got value, back to normal.
2364 else
2365 case $ac_arg in
2366 *=* | --config-cache | -C | -disable-* | --disable-* \
2367 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369 | -with-* | --with-* | -without-* | --without-* | --x)
2370 case "$ac_configure_args0 " in
2371 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372 esac
2373 ;;
2374 -* ) ac_must_keep_next=true ;;
2375 esac
2376 fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002377 as_fn_append ac_configure_args " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002378 ;;
2379 esac
2380 done
2381done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002382{ ac_configure_args0=; unset ac_configure_args0;}
2383{ ac_configure_args1=; unset ac_configure_args1;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01002384
2385# When interrupted or exit'd, cleanup temporary files, and complete
2386# config.log. We remove comments because anyway the quotes in there
2387# would cause problems or look ugly.
2388# WARNING: Use '\'' to represent an apostrophe within the trap.
2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390trap 'exit_status=$?
2391 # Save into config.log some information that might help in debugging.
2392 {
2393 echo
2394
2395 cat <<\_ASBOX
2396## ---------------- ##
2397## Cache variables. ##
2398## ---------------- ##
2399_ASBOX
2400 echo
2401 # The following way of writing the cache mishandles newlines in values,
2402(
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in #(
2406 *${as_nl}*)
2407 case $ac_var in #(
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002409$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 esac
2411 case $ac_var in #(
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002414 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002415 esac ;;
2416 esac
2417 done
2418 (set) 2>&1 |
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2421 sed -n \
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 ;; #(
2425 *)
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427 ;;
2428 esac |
2429 sort
2430)
2431 echo
2432
2433 cat <<\_ASBOX
2434## ----------------- ##
2435## Output variables. ##
2436## ----------------- ##
2437_ASBOX
2438 echo
2439 for ac_var in $ac_subst_vars
2440 do
2441 eval ac_val=\$$ac_var
2442 case $ac_val in
2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 esac
2445 $as_echo "$ac_var='\''$ac_val'\''"
2446 done | sort
2447 echo
2448
2449 if test -n "$ac_subst_files"; then
2450 cat <<\_ASBOX
2451## ------------------- ##
2452## File substitutions. ##
2453## ------------------- ##
2454_ASBOX
2455 echo
2456 for ac_var in $ac_subst_files
2457 do
2458 eval ac_val=\$$ac_var
2459 case $ac_val in
2460 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 esac
2462 $as_echo "$ac_var='\''$ac_val'\''"
2463 done | sort
2464 echo
2465 fi
2466
2467 if test -s confdefs.h; then
2468 cat <<\_ASBOX
2469## ----------- ##
2470## confdefs.h. ##
2471## ----------- ##
2472_ASBOX
2473 echo
2474 cat confdefs.h
2475 echo
2476 fi
2477 test "$ac_signal" != 0 &&
2478 $as_echo "$as_me: caught signal $ac_signal"
2479 $as_echo "$as_me: exit $exit_status"
2480 } >&5
2481 rm -f core *.core core.conftest.* &&
2482 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2483 exit $exit_status
2484' 0
2485for ac_signal in 1 2 13 15; do
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002486 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Scott James Remnant65f683d2009-07-14 13:05:17 +01002487done
2488ac_signal=0
2489
2490# confdefs.h avoids OS command line length limits that DEFS can exceed.
2491rm -f -r conftest* confdefs.h
2492
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002493$as_echo "/* confdefs.h */" > confdefs.h
2494
Scott James Remnant65f683d2009-07-14 13:05:17 +01002495# Predefined preprocessor variables.
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_NAME "$PACKAGE_NAME"
2499_ACEOF
2500
Scott James Remnant65f683d2009-07-14 13:05:17 +01002501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2503_ACEOF
2504
Scott James Remnant65f683d2009-07-14 13:05:17 +01002505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_VERSION "$PACKAGE_VERSION"
2507_ACEOF
2508
Scott James Remnant65f683d2009-07-14 13:05:17 +01002509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_STRING "$PACKAGE_STRING"
2511_ACEOF
2512
Scott James Remnant65f683d2009-07-14 13:05:17 +01002513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2515_ACEOF
2516
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_URL "$PACKAGE_URL"
2519_ACEOF
2520
Scott James Remnant65f683d2009-07-14 13:05:17 +01002521
2522# Let the site file select an alternate cache file if it wants to.
2523# Prefer an explicitly selected file to automatically selected ones.
2524ac_site_file1=NONE
2525ac_site_file2=NONE
2526if test -n "$CONFIG_SITE"; then
2527 ac_site_file1=$CONFIG_SITE
2528elif test "x$prefix" != xNONE; then
2529 ac_site_file1=$prefix/share/config.site
2530 ac_site_file2=$prefix/etc/config.site
2531else
2532 ac_site_file1=$ac_default_prefix/share/config.site
2533 ac_site_file2=$ac_default_prefix/etc/config.site
2534fi
2535for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536do
2537 test "x$ac_site_file" = xNONE && continue
2538 if test -r "$ac_site_file"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002539 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002540$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541 sed 's/^/| /' "$ac_site_file" >&5
2542 . "$ac_site_file"
2543 fi
2544done
2545
2546if test -r "$cache_file"; then
2547 # Some versions of bash will fail to source /dev/null (special
2548 # files actually), so we avoid doing that.
2549 if test -f "$cache_file"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002551$as_echo "$as_me: loading cache $cache_file" >&6;}
2552 case $cache_file in
2553 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2554 *) . "./$cache_file";;
2555 esac
2556 fi
2557else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002559$as_echo "$as_me: creating cache $cache_file" >&6;}
2560 >$cache_file
2561fi
2562
2563gt_needs="$gt_needs "
2564# Check that the precious variables saved in the cache have kept the same
2565# value.
2566ac_cache_corrupted=false
2567for ac_var in $ac_precious_vars; do
2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569 eval ac_new_set=\$ac_env_${ac_var}_set
2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571 eval ac_new_val=\$ac_env_${ac_var}_value
2572 case $ac_old_set,$ac_new_set in
2573 set,)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2577 ,set)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580 ac_cache_corrupted=: ;;
2581 ,);;
2582 *)
2583 if test "x$ac_old_val" != "x$ac_new_val"; then
2584 # differences in whitespace do not lead to failure.
2585 ac_old_val_w=`echo x $ac_old_val`
2586 ac_new_val_w=`echo x $ac_new_val`
2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590 ac_cache_corrupted=:
2591 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594 eval $ac_var=\$ac_old_val
2595 fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002597$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002599$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2600 fi;;
2601 esac
2602 # Pass precious variables to config.status.
2603 if test "$ac_new_set" = set; then
2604 case $ac_new_val in
2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606 *) ac_arg=$ac_var=$ac_new_val ;;
2607 esac
2608 case " $ac_configure_args " in
2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002610 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002611 esac
2612 fi
2613done
2614if $ac_cache_corrupted; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002619 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002620fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002621## -------------------- ##
2622## Main body of script. ##
2623## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +01002624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633
2634
2635
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002636$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (C) 2009 Canonical Ltd.\"" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01002637 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2638
2639
2640
2641
2642
2643ac_ext=c
2644ac_cpp='$CPP $CPPFLAGS'
2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647ac_compiler_gnu=$ac_cv_c_compiler_gnu
2648if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2650set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002652$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002653if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002664 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002668 break 2
2669 fi
2670done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002671 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002672IFS=$as_save_IFS
2673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002679$as_echo "$CC" >&6; }
2680else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002682$as_echo "no" >&6; }
2683fi
2684
2685
2686fi
2687if test -z "$ac_cv_prog_CC"; then
2688 ac_ct_CC=$CC
2689 # Extract the first word of "gcc", so it can be a program name with args.
2690set dummy gcc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002692$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002693if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002694 $as_echo_n "(cached) " >&6
2695else
2696 if test -n "$ac_ct_CC"; then
2697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2698else
2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700for as_dir in $PATH
2701do
2702 IFS=$as_save_IFS
2703 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002704 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002708 break 2
2709 fi
2710done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002711 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002712IFS=$as_save_IFS
2713
2714fi
2715fi
2716ac_ct_CC=$ac_cv_prog_ac_ct_CC
2717if test -n "$ac_ct_CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002719$as_echo "$ac_ct_CC" >&6; }
2720else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002722$as_echo "no" >&6; }
2723fi
2724
2725 if test "x$ac_ct_CC" = x; then
2726 CC=""
2727 else
2728 case $cross_compiling:$ac_tool_warned in
2729yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2732ac_tool_warned=yes ;;
2733esac
2734 CC=$ac_ct_CC
2735 fi
2736else
2737 CC="$ac_cv_prog_CC"
2738fi
2739
2740if test -z "$CC"; then
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2743set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002745$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002746if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002747 $as_echo_n "(cached) " >&6
2748else
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC="$CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002757 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002761 break 2
2762 fi
2763done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002764 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002765IFS=$as_save_IFS
2766
2767fi
2768fi
2769CC=$ac_cv_prog_CC
2770if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002772$as_echo "$CC" >&6; }
2773else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002775$as_echo "no" >&6; }
2776fi
2777
2778
2779 fi
2780fi
2781if test -z "$CC"; then
2782 # Extract the first word of "cc", so it can be a program name with args.
2783set dummy cc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002785$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002786if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002787 $as_echo_n "(cached) " >&6
2788else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
2792 ac_prog_rejected=no
2793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002798 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2801 ac_prog_rejected=yes
2802 continue
2803 fi
2804 ac_cv_prog_CC="cc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002806 break 2
2807 fi
2808done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002809 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002810IFS=$as_save_IFS
2811
2812if test $ac_prog_rejected = yes; then
2813 # We found a bogon in the path, so make sure we never use it.
2814 set dummy $ac_cv_prog_CC
2815 shift
2816 if test $# != 0; then
2817 # We chose a different compiler from the bogus one.
2818 # However, it has the same basename, so the bogon will be chosen
2819 # first if we set CC to just the basename; use the full file name.
2820 shift
2821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2822 fi
2823fi
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002829$as_echo "$CC" >&6; }
2830else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002832$as_echo "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 for ac_prog in cl.exe
2840 do
2841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002844$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002845if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002846 $as_echo_n "(cached) " >&6
2847else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002856 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002860 break 2
2861 fi
2862done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002863 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002864IFS=$as_save_IFS
2865
2866fi
2867fi
2868CC=$ac_cv_prog_CC
2869if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002871$as_echo "$CC" >&6; }
2872else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002874$as_echo "no" >&6; }
2875fi
2876
2877
2878 test -n "$CC" && break
2879 done
2880fi
2881if test -z "$CC"; then
2882 ac_ct_CC=$CC
2883 for ac_prog in cl.exe
2884do
2885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2886set dummy $ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002888$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002890 $as_echo_n "(cached) " >&6
2891else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002900 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002904 break 2
2905 fi
2906done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002907 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002908IFS=$as_save_IFS
2909
2910fi
2911fi
2912ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913if test -n "$ac_ct_CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002915$as_echo "$ac_ct_CC" >&6; }
2916else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002918$as_echo "no" >&6; }
2919fi
2920
2921
2922 test -n "$ac_ct_CC" && break
2923done
2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
2934 CC=$ac_ct_CC
2935 fi
2936fi
2937
2938fi
2939
2940
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002941test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002943as_fn_error "no acceptable C compiler found in \$PATH
2944See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002945
2946# Provide some information about the compiler.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002947$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002948set X $ac_compile
2949ac_compiler=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002950for ac_option in --version -v -V -qversion; do
2951 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957$as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +01002959 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002960 if test -s conftest.err; then
2961 sed '10a\
2962... rest of stderr output deleted ...
2963 10q' conftest.err >conftest.er1
2964 cat conftest.er1 >&5
2965 rm -f conftest.er1 conftest.err
2966 fi
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }
2969done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002970
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01002972/* end confdefs.h. */
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002973#include <stdio.h>
Scott James Remnant65f683d2009-07-14 13:05:17 +01002974int
2975main ()
2976{
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002977FILE *f = fopen ("conftest.out", "w");
2978 return ferror (f) || fclose (f) != 0;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002979
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984ac_clean_files_save=$ac_clean_files
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002985ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002986# Try to create an executable without -o first, disregard a.out.
2987# It will help us diagnose broken compilers, and finding out an intuition
2988# of exeext.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002990$as_echo_n "checking for C compiler default output file name... " >&6; }
2991ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992
2993# The possible output files:
2994ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2995
2996ac_rmfiles=
2997for ac_file in $ac_files
2998do
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 esac
3003done
3004rm -f $ac_rmfiles
3005
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003006if { { ac_try="$ac_link_default"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003013 (eval "$ac_link_default") 2>&5
3014 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019# in a Makefile. We should not override ac_cv_exeext if it was cached,
3020# so that the user can short-circuit this test for compilers unknown to
3021# Autoconf.
3022for ac_file in $ac_files ''
3023do
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3027 ;;
3028 [ab].out )
3029 # We found the default executable, but exeext='' is most
3030 # certainly right.
3031 break;;
3032 *.* )
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Scott James Remnant65f683d2009-07-14 13:05:17 +01003034 then :; else
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3036 fi
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3041 # actually working.
3042 break;;
3043 * )
3044 break;;
3045 esac
3046done
3047test "$ac_cv_exeext" = no && ac_cv_exeext=
3048
3049else
3050 ac_file=''
3051fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003053$as_echo "$ac_file" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003054if test -z "$ac_file"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003055 $as_echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003060{ as_fn_set_status 77
3061as_fn_error "C compiler cannot create executables
3062See \`config.log' for more details." "$LINENO" 5; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003063fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003064ac_exeext=$ac_cv_exeext
3065
3066# Check that the compiler produces executables we can run. If not, either
3067# the compiler is broken, or we cross compile.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003069$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003070# If not cross compiling, check that we can run a simple program.
3071if test "$cross_compiling" != yes; then
3072 if { ac_try='./$ac_file'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003073 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +01003074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003079 (eval "$ac_try") 2>&5
3080 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003083 cross_compiling=no
3084 else
3085 if test "$cross_compiling" = maybe; then
3086 cross_compiling=yes
3087 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003090as_fn_error "cannot run C compiled programs.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003091If you meant to cross compile, use \`--host'.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003092See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003093 fi
3094 fi
3095fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003097$as_echo "yes" >&6; }
3098
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003099rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
Scott James Remnant65f683d2009-07-14 13:05:17 +01003100ac_clean_files=$ac_clean_files_save
3101# Check that the compiler produces executables we can run. If not, either
3102# the compiler is broken, or we cross compile.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003104$as_echo_n "checking whether we are cross compiling... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003106$as_echo "$cross_compiling" >&6; }
3107
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003109$as_echo_n "checking for suffix of executables... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003110if { { ac_try="$ac_link"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003117 (eval "$ac_link") 2>&5
3118 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003121 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3122# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3123# work properly (i.e., refer to `conftest.exe'), while it won't with
3124# `rm'.
3125for ac_file in conftest.exe conftest conftest.*; do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 break;;
3131 * ) break;;
3132 esac
3133done
3134else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003137as_fn_error "cannot compute suffix of executables: cannot compile and link
3138See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003139fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003140rm -f conftest$ac_cv_exeext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003142$as_echo "$ac_cv_exeext" >&6; }
3143
3144rm -f conftest.$ac_ext
3145EXEEXT=$ac_cv_exeext
3146ac_exeext=$EXEEXT
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003148$as_echo_n "checking for suffix of object files... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003149if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003150 $as_echo_n "(cached) " >&6
3151else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.o conftest.obj
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003164if { { ac_try="$ac_compile"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003171 (eval "$ac_compile") 2>&5
3172 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003175 for ac_file in conftest.o conftest.obj conftest.*; do
3176 test -f "$ac_file" || continue;
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3180 break;;
3181 esac
3182done
3183else
3184 $as_echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003187{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003189as_fn_error "cannot compute suffix of object files: cannot compile
3190See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003191fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003192rm -f conftest.$ac_cv_objext conftest.$ac_ext
3193fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003195$as_echo "$ac_cv_objext" >&6; }
3196OBJEXT=$ac_cv_objext
3197ac_objext=$OBJEXT
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003199$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003200if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003201 $as_echo_n "(cached) " >&6
3202else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003204/* end confdefs.h. */
3205
3206int
3207main ()
3208{
3209#ifndef __GNUC__
3210 choke me
3211#endif
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003217if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003218 ac_compiler_gnu=yes
3219else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003220 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003221fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223ac_cv_c_compiler_gnu=$ac_compiler_gnu
3224
3225fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003227$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3228if test $ac_compiler_gnu = yes; then
3229 GCC=yes
3230else
3231 GCC=
3232fi
3233ac_test_CFLAGS=${CFLAGS+set}
3234ac_save_CFLAGS=$CFLAGS
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003236$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003237if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003238 $as_echo_n "(cached) " >&6
3239else
3240 ac_save_c_werror_flag=$ac_c_werror_flag
3241 ac_c_werror_flag=yes
3242 ac_cv_prog_cc_g=no
3243 CFLAGS="-g"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003255if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003256 ac_cv_prog_cc_g=yes
3257else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003258 CFLAGS=""
3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003260/* end confdefs.h. */
3261
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003270if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003271
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003272else
3273 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +01003274 CFLAGS="-g"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003276/* end confdefs.h. */
3277
3278int
3279main ()
3280{
3281
3282 ;
3283 return 0;
3284}
3285_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003286if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003287 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +01003288fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003297$as_echo "$ac_cv_prog_cc_g" >&6; }
3298if test "$ac_test_CFLAGS" = set; then
3299 CFLAGS=$ac_save_CFLAGS
3300elif test $ac_cv_prog_cc_g = yes; then
3301 if test "$GCC" = yes; then
3302 CFLAGS="-g -O2"
3303 else
3304 CFLAGS="-g"
3305 fi
3306else
3307 if test "$GCC" = yes; then
3308 CFLAGS="-O2"
3309 else
3310 CFLAGS=
3311 fi
3312fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003314$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003315if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003316 $as_echo_n "(cached) " >&6
3317else
3318 ac_cv_prog_cc_c89=no
3319ac_save_CC=$CC
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003321/* end confdefs.h. */
3322#include <stdarg.h>
3323#include <stdio.h>
3324#include <sys/types.h>
3325#include <sys/stat.h>
3326/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3327struct buf { int x; };
3328FILE * (*rcsopen) (struct buf *, struct stat *, int);
3329static char *e (p, i)
3330 char **p;
3331 int i;
3332{
3333 return p[i];
3334}
3335static char *f (char * (*g) (char **, int), char **p, ...)
3336{
3337 char *s;
3338 va_list v;
3339 va_start (v,p);
3340 s = g (p, va_arg (v,int));
3341 va_end (v);
3342 return s;
3343}
3344
3345/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3346 function prototypes and stuff, but not '\xHH' hex character constants.
3347 These don't provoke an error unfortunately, instead are silently treated
3348 as 'x'. The following induces an error, until -std is added to get
3349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3350 array size at least. It's necessary to write '\x00'==0 to get something
3351 that's true only with -std. */
3352int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3353
3354/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3355 inside strings and character constants. */
3356#define FOO(x) 'x'
3357int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3358
3359int test (int i, double x);
3360struct s1 {int (*f) (int a);};
3361struct s2 {int (*f) (double a);};
3362int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363int argc;
3364char **argv;
3365int
3366main ()
3367{
3368return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3375do
3376 CC="$ac_save_CC $ac_arg"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003377 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003378 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +01003379fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003380rm -f core conftest.err conftest.$ac_objext
3381 test "x$ac_cv_prog_cc_c89" != "xno" && break
3382done
3383rm -f conftest.$ac_ext
3384CC=$ac_save_CC
3385
3386fi
3387# AC_CACHE_VAL
3388case "x$ac_cv_prog_cc_c89" in
3389 x)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003391$as_echo "none needed" >&6; } ;;
3392 xno)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003394$as_echo "unsupported" >&6; } ;;
3395 *)
3396 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003398$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3399esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003400if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003401
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003402fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411ac_ext=c
3412ac_cpp='$CPP $CPPFLAGS'
3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003417$as_echo_n "checking how to run the C preprocessor... " >&6; }
3418# On Suns, sometimes $CPP names a directory.
3419if test -n "$CPP" && test -d "$CPP"; then
3420 CPP=
3421fi
3422if test -z "$CPP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003423 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003424 $as_echo_n "(cached) " >&6
3425else
3426 # Double quotes because CPP needs to be expanded
3427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428 do
3429 ac_preproc_ok=false
3430for ac_c_preproc_warn_flag in '' yes
3431do
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 # <limits.h> exists even on freestanding compilers.
3436 # On the NeXT, cc -E runs the code through the compiler's parser,
3437 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003439/* end confdefs.h. */
3440#ifdef __STDC__
3441# include <limits.h>
3442#else
3443# include <assert.h>
3444#endif
3445 Syntax error
3446_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003447if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003448
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003449else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003450 # Broken: fails on valid input.
3451continue
3452fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003453rm -f conftest.err conftest.$ac_ext
3454
3455 # OK, works on sane cases. Now check whether nonexistent headers
3456 # can be detected and how.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003458/* end confdefs.h. */
3459#include <ac_nonexistent.h>
3460_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003461if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003462 # Broken: success on invalid input.
3463continue
3464else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003465 # Passes both tests.
3466ac_preproc_ok=:
3467break
3468fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003469rm -f conftest.err conftest.$ac_ext
3470
3471done
3472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3473rm -f conftest.err conftest.$ac_ext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003474if $ac_preproc_ok; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003475 break
3476fi
3477
3478 done
3479 ac_cv_prog_CPP=$CPP
3480
3481fi
3482 CPP=$ac_cv_prog_CPP
3483else
3484 ac_cv_prog_CPP=$CPP
3485fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003487$as_echo "$CPP" >&6; }
3488ac_preproc_ok=false
3489for ac_c_preproc_warn_flag in '' yes
3490do
3491 # Use a header file that comes with gcc, so configuring glibc
3492 # with a fresh cross-compiler works.
3493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3494 # <limits.h> exists even on freestanding compilers.
3495 # On the NeXT, cc -E runs the code through the compiler's parser,
3496 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003498/* end confdefs.h. */
3499#ifdef __STDC__
3500# include <limits.h>
3501#else
3502# include <assert.h>
3503#endif
3504 Syntax error
3505_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003506if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003507
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003508else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003509 # Broken: fails on valid input.
3510continue
3511fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003512rm -f conftest.err conftest.$ac_ext
3513
3514 # OK, works on sane cases. Now check whether nonexistent headers
3515 # can be detected and how.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003517/* end confdefs.h. */
3518#include <ac_nonexistent.h>
3519_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003520if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003521 # Broken: success on invalid input.
3522continue
3523else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003524 # Passes both tests.
3525ac_preproc_ok=:
3526break
3527fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003528rm -f conftest.err conftest.$ac_ext
3529
3530done
3531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532rm -f conftest.err conftest.$ac_ext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003533if $ac_preproc_ok; then :
3534
Scott James Remnant65f683d2009-07-14 13:05:17 +01003535else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003538as_fn_error "C preprocessor \"$CPP\" fails sanity check
3539See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003540fi
3541
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003550$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003551if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003552 $as_echo_n "(cached) " >&6
3553else
3554 if test -z "$GREP"; then
3555 ac_path_GREP_found=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003562 for ac_prog in grep ggrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3566# Check for GNU ac_path_GREP and select it if it is found.
3567 # Check for GNU $ac_path_GREP
3568case `"$ac_path_GREP" --version 2>&1` in
3569*GNU*)
3570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3571*)
3572 ac_count=0
3573 $as_echo_n 0123456789 >"conftest.in"
3574 while :
3575 do
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 $as_echo 'GREP' >> "conftest.nl"
3580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003582 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_GREP="$ac_path_GREP"
3586 ac_path_GREP_max=$ac_count
3587 fi
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3590 done
3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3592esac
3593
3594 $ac_path_GREP_found && break 3
3595 done
3596 done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003597 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003598IFS=$as_save_IFS
3599 if test -z "$ac_cv_path_GREP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003600 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003601 fi
3602else
3603 ac_cv_path_GREP=$GREP
3604fi
3605
3606fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003608$as_echo "$ac_cv_path_GREP" >&6; }
3609 GREP="$ac_cv_path_GREP"
3610
3611
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003613$as_echo_n "checking for egrep... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003614if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003615 $as_echo_n "(cached) " >&6
3616else
3617 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3618 then ac_cv_path_EGREP="$GREP -E"
3619 else
3620 if test -z "$EGREP"; then
3621 ac_path_EGREP_found=false
3622 # Loop through the user's path and test for each of PROGNAME-LIST
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625do
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003628 for ac_prog in egrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3631 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3632# Check for GNU ac_path_EGREP and select it if it is found.
3633 # Check for GNU $ac_path_EGREP
3634case `"$ac_path_EGREP" --version 2>&1` in
3635*GNU*)
3636 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3637*)
3638 ac_count=0
3639 $as_echo_n 0123456789 >"conftest.in"
3640 while :
3641 do
3642 cat "conftest.in" "conftest.in" >"conftest.tmp"
3643 mv "conftest.tmp" "conftest.in"
3644 cp "conftest.in" "conftest.nl"
3645 $as_echo 'EGREP' >> "conftest.nl"
3646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003648 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3650 # Best one so far, save it but keep looking for a better one
3651 ac_cv_path_EGREP="$ac_path_EGREP"
3652 ac_path_EGREP_max=$ac_count
3653 fi
3654 # 10*(2^10) chars as input seems more than enough
3655 test $ac_count -gt 10 && break
3656 done
3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3658esac
3659
3660 $ac_path_EGREP_found && break 3
3661 done
3662 done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003663 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003664IFS=$as_save_IFS
3665 if test -z "$ac_cv_path_EGREP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003666 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003667 fi
3668else
3669 ac_cv_path_EGREP=$EGREP
3670fi
3671
3672 fi
3673fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003675$as_echo "$ac_cv_path_EGREP" >&6; }
3676 EGREP="$ac_cv_path_EGREP"
3677
3678
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003680$as_echo_n "checking for ANSI C header files... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003681if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003682 $as_echo_n "(cached) " >&6
3683else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003685/* end confdefs.h. */
3686#include <stdlib.h>
3687#include <stdarg.h>
3688#include <string.h>
3689#include <float.h>
3690
3691int
3692main ()
3693{
3694
3695 ;
3696 return 0;
3697}
3698_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003699if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003700 ac_cv_header_stdc=yes
3701else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003702 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003703fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705
3706if test $ac_cv_header_stdc = yes; then
3707 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003709/* end confdefs.h. */
3710#include <string.h>
3711
3712_ACEOF
3713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003714 $EGREP "memchr" >/dev/null 2>&1; then :
3715
Scott James Remnant65f683d2009-07-14 13:05:17 +01003716else
3717 ac_cv_header_stdc=no
3718fi
3719rm -f conftest*
3720
3721fi
3722
3723if test $ac_cv_header_stdc = yes; then
3724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003726/* end confdefs.h. */
3727#include <stdlib.h>
3728
3729_ACEOF
3730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003731 $EGREP "free" >/dev/null 2>&1; then :
3732
Scott James Remnant65f683d2009-07-14 13:05:17 +01003733else
3734 ac_cv_header_stdc=no
3735fi
3736rm -f conftest*
3737
3738fi
3739
3740if test $ac_cv_header_stdc = yes; then
3741 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003742 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003743 :
3744else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003746/* end confdefs.h. */
3747#include <ctype.h>
3748#include <stdlib.h>
3749#if ((' ' & 0x0FF) == 0x020)
3750# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3751# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3752#else
3753# define ISLOWER(c) \
3754 (('a' <= (c) && (c) <= 'i') \
3755 || ('j' <= (c) && (c) <= 'r') \
3756 || ('s' <= (c) && (c) <= 'z'))
3757# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3758#endif
3759
3760#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3761int
3762main ()
3763{
3764 int i;
3765 for (i = 0; i < 256; i++)
3766 if (XOR (islower (i), ISLOWER (i))
3767 || toupper (i) != TOUPPER (i))
3768 return 2;
3769 return 0;
3770}
3771_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003772if ac_fn_c_try_run "$LINENO"; then :
3773
Scott James Remnant65f683d2009-07-14 13:05:17 +01003774else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003775 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003776fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3778 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003779fi
3780
Scott James Remnant65f683d2009-07-14 13:05:17 +01003781fi
3782fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003784$as_echo "$ac_cv_header_stdc" >&6; }
3785if test $ac_cv_header_stdc = yes; then
3786
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003787$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003788
3789fi
3790
3791# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003792for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3793 inttypes.h stdint.h unistd.h
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003794do :
3795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3796ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3797"
3798eval as_val=\$$as_ac_Header
3799 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003800 cat >>confdefs.h <<_ACEOF
3801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3802_ACEOF
3803
3804fi
3805
3806done
3807
3808
3809
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003810 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3811if test "x$ac_cv_header_minix_config_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003812 MINIX=yes
3813else
3814 MINIX=
3815fi
3816
3817
3818 if test "$MINIX" = yes; then
3819
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003820$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003821
3822
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003823$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003824
3825
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003826$as_echo "#define _MINIX 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003827
3828 fi
3829
3830
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003832$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003833if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003834 $as_echo_n "(cached) " >&6
3835else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003837/* end confdefs.h. */
3838
3839# define __EXTENSIONS__ 1
3840 $ac_includes_default
3841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
3848_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003849if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003850 ac_cv_safe_to_define___extensions__=yes
3851else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003852 ac_cv_safe_to_define___extensions__=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003853fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003857$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3858 test $ac_cv_safe_to_define___extensions__ = yes &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003859 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003860
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003861 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003862
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003863 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003864
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003865 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003866
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003867 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3868
Scott James Remnant65f683d2009-07-14 13:05:17 +01003869
3870
3871
3872am__api_version='1.10'
3873
3874ac_aux_dir=
3875for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003876 for ac_t in install-sh install.sh shtool; do
3877 if test -f "$ac_dir/$ac_t"; then
3878 ac_aux_dir=$ac_dir
3879 ac_install_sh="$ac_aux_dir/$ac_t -c"
3880 break 2
3881 fi
3882 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003883done
3884if test -z "$ac_aux_dir"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003885 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003886fi
3887
3888# These three variables are undocumented and unsupported,
3889# and are intended to be withdrawn in a future Autoconf release.
3890# They can cause serious problems if a builder's source tree is in a directory
3891# whose full name contains unusual characters.
3892ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3893ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3894ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3895
3896
3897# Find a good install program. We prefer a C program (faster),
3898# so one script is as good as another. But avoid the broken or
3899# incompatible versions:
3900# SysV /etc/install, /usr/sbin/install
3901# SunOS /usr/etc/install
3902# IRIX /sbin/install
3903# AIX /bin/install
3904# AmigaOS /C/install, which installs bootblocks on floppy discs
3905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3908# OS/2's system install, which has a completely different semantic
3909# ./install, which can be erroneously created by make from ./install.sh.
3910# Reject install programs that cannot install multiple files.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003912$as_echo_n "checking for a BSD-compatible install... " >&6; }
3913if test -z "$INSTALL"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003914if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003915 $as_echo_n "(cached) " >&6
3916else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003922 # Account for people who put trailing slashes in PATH elements.
3923case $as_dir/ in #((
3924 ./ | .// | /[cC]/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003926 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003927 /usr/ucb/* ) ;;
3928 *)
3929 # OSF1 and SCO ODT 3.0 have their own names for install.
3930 # Don't use installbsd from OSF since it installs stuff as root
3931 # by default.
3932 for ac_prog in ginstall scoinst install; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3935 if test $ac_prog = install &&
3936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937 # AIX install. It has an incompatible calling convention.
3938 :
3939 elif test $ac_prog = install &&
3940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941 # program-specific install script used by HP pwplus--don't use.
3942 :
3943 else
3944 rm -rf conftest.one conftest.two conftest.dir
3945 echo one > conftest.one
3946 echo two > conftest.two
3947 mkdir conftest.dir
3948 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3949 test -s conftest.one && test -s conftest.two &&
3950 test -s conftest.dir/conftest.one &&
3951 test -s conftest.dir/conftest.two
3952 then
3953 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3954 break 3
3955 fi
3956 fi
3957 fi
3958 done
3959 done
3960 ;;
3961esac
3962
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003963 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003964IFS=$as_save_IFS
3965
3966rm -rf conftest.one conftest.two conftest.dir
3967
3968fi
3969 if test "${ac_cv_path_install+set}" = set; then
3970 INSTALL=$ac_cv_path_install
3971 else
3972 # As a last resort, use the slow shell script. Don't cache a
3973 # value for INSTALL within a source directory, because that will
3974 # break other packages using the cache if that directory is
3975 # removed, or if the value is a relative name.
3976 INSTALL=$ac_install_sh
3977 fi
3978fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003980$as_echo "$INSTALL" >&6; }
3981
3982# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3983# It thinks the first close brace ends the variable substitution.
3984test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3985
3986test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3987
3988test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3989
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01003990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003991$as_echo_n "checking whether build environment is sane... " >&6; }
3992# Just in case
3993sleep 1
3994echo timestamp > conftest.file
3995# Do `set' in a subshell so we don't clobber the current shell's
3996# arguments. Must try -L first in case configure is actually a
3997# symlink; some systems play weird games with the mod time of symlinks
3998# (eg FreeBSD returns the mod time of the symlink's containing
3999# directory).
4000if (
4001 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4002 if test "$*" = "X"; then
4003 # -L didn't work.
4004 set X `ls -t $srcdir/configure conftest.file`
4005 fi
4006 rm -f conftest.file
4007 if test "$*" != "X $srcdir/configure conftest.file" \
4008 && test "$*" != "X conftest.file $srcdir/configure"; then
4009
4010 # If neither matched, then we have a broken ls. This can happen
4011 # if, for instance, CONFIG_SHELL is bash and it inherits a
4012 # broken ls alias from the environment. This has actually
4013 # happened. Such a system could not be considered "sane".
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004014 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4015alias in your environment" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004016 fi
4017
4018 test "$2" = conftest.file
4019 )
4020then
4021 # Ok.
4022 :
4023else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004024 as_fn_error "newly created file is older than distributed files!
4025Check your system clock" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004026fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004028$as_echo "yes" >&6; }
4029test "$program_prefix" != NONE &&
4030 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4031# Use a double $ so make ignores it.
4032test "$program_suffix" != NONE &&
4033 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4034# Double any \ or $.
4035# By default was `s,x,x', remove it if useless.
4036ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4037program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4038
4039# expand $ac_aux_dir to an absolute path
4040am_aux_dir=`cd $ac_aux_dir && pwd`
4041
4042test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4043# Use eval to expand $SHELL
4044if eval "$MISSING --run true"; then
4045 am_missing_run="$MISSING --run "
4046else
4047 am_missing_run=
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004049$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4050fi
4051
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004053$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4054if test -z "$MKDIR_P"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004055 if test "${ac_cv_path_mkdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004056 $as_echo_n "(cached) " >&6
4057else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4060do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004063 for ac_prog in mkdir gmkdir; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4067 'mkdir (GNU coreutils) '* | \
4068 'mkdir (coreutils) '* | \
4069 'mkdir (fileutils) '4.1*)
4070 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4071 break 3;;
4072 esac
4073 done
4074 done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004075 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004076IFS=$as_save_IFS
4077
4078fi
4079
4080 if test "${ac_cv_path_mkdir+set}" = set; then
4081 MKDIR_P="$ac_cv_path_mkdir -p"
4082 else
4083 # As a last resort, use the slow shell script. Don't cache a
4084 # value for MKDIR_P within a source directory, because that will
4085 # break other packages using the cache if that directory is
4086 # removed, or if the value is a relative name.
4087 test -d ./--version && rmdir ./--version
4088 MKDIR_P="$ac_install_sh -d"
4089 fi
4090fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004092$as_echo "$MKDIR_P" >&6; }
4093
4094mkdir_p="$MKDIR_P"
4095case $mkdir_p in
4096 [\\/$]* | ?:[\\/]*) ;;
4097 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4098esac
4099
4100for ac_prog in gawk mawk nawk awk
4101do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103set dummy $ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004105$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004106if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004107 $as_echo_n "(cached) " >&6
4108else
4109 if test -n "$AWK"; then
4110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111else
4112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113for as_dir in $PATH
4114do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004117 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119 ac_cv_prog_AWK="$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004121 break 2
4122 fi
4123done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004124 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004125IFS=$as_save_IFS
4126
4127fi
4128fi
4129AWK=$ac_cv_prog_AWK
4130if test -n "$AWK"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004132$as_echo "$AWK" >&6; }
4133else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004135$as_echo "no" >&6; }
4136fi
4137
4138
4139 test -n "$AWK" && break
4140done
4141
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004143$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4144set x ${MAKE-make}
4145ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004146if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004147 $as_echo_n "(cached) " >&6
4148else
4149 cat >conftest.make <<\_ACEOF
4150SHELL = /bin/sh
4151all:
4152 @echo '@@@%%%=$(MAKE)=@@@%%%'
4153_ACEOF
4154# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4155case `${MAKE-make} -f conftest.make 2>/dev/null` in
4156 *@@@%%%=?*=@@@%%%*)
4157 eval ac_cv_prog_make_${ac_make}_set=yes;;
4158 *)
4159 eval ac_cv_prog_make_${ac_make}_set=no;;
4160esac
4161rm -f conftest.make
4162fi
4163if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004165$as_echo "yes" >&6; }
4166 SET_MAKE=
4167else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004169$as_echo "no" >&6; }
4170 SET_MAKE="MAKE=${MAKE-make}"
4171fi
4172
4173rm -rf .tst 2>/dev/null
4174mkdir .tst 2>/dev/null
4175if test -d .tst; then
4176 am__leading_dot=.
4177else
4178 am__leading_dot=_
4179fi
4180rmdir .tst 2>/dev/null
4181
4182DEPDIR="${am__leading_dot}deps"
4183
4184ac_config_commands="$ac_config_commands depfiles"
4185
4186
4187am_make=${MAKE-make}
4188cat > confinc << 'END'
4189am__doit:
4190 @echo done
4191.PHONY: am__doit
4192END
4193# If we don't find an include directive, just comment out the code.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004195$as_echo_n "checking for style of include used by $am_make... " >&6; }
4196am__include="#"
4197am__quote=
4198_am_result=none
4199# First try GNU make style include.
4200echo "include confinc" > confmf
4201# We grep out `Entering directory' and `Leaving directory'
4202# messages which can occur if `w' ends up in MAKEFLAGS.
4203# In particular we don't look at `^make:' because GNU make might
4204# be invoked under some other name (usually "gmake"), in which
4205# case it prints its new name instead of `make'.
4206if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4207 am__include=include
4208 am__quote=
4209 _am_result=GNU
4210fi
4211# Now try BSD make style include.
4212if test "$am__include" = "#"; then
4213 echo '.include "confinc"' > confmf
4214 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4215 am__include=.include
4216 am__quote="\""
4217 _am_result=BSD
4218 fi
4219fi
4220
4221
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004223$as_echo "$_am_result" >&6; }
4224rm -f confinc confmf
4225
4226# Check whether --enable-dependency-tracking was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004227if test "${enable_dependency_tracking+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004228 enableval=$enable_dependency_tracking;
4229fi
4230
4231if test "x$enable_dependency_tracking" != xno; then
4232 am_depcomp="$ac_aux_dir/depcomp"
4233 AMDEPBACKSLASH='\'
4234fi
4235 if test "x$enable_dependency_tracking" != xno; then
4236 AMDEP_TRUE=
4237 AMDEP_FALSE='#'
4238else
4239 AMDEP_TRUE='#'
4240 AMDEP_FALSE=
4241fi
4242
4243
4244if test "`cd $srcdir && pwd`" != "`pwd`"; then
4245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4246 # is not polluted with repeated "-I."
4247 am__isrc=' -I$(srcdir)'
4248 # test to see if srcdir already configured
4249 if test -f $srcdir/config.status; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004250 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004251 fi
4252fi
4253
4254# test whether we have cygpath
4255if test -z "$CYGPATH_W"; then
4256 if (cygpath --version) >/dev/null 2>/dev/null; then
4257 CYGPATH_W='cygpath -w'
4258 else
4259 CYGPATH_W=echo
4260 fi
4261fi
4262
4263
4264# Define the identity of the package.
4265 PACKAGE='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004266 VERSION='0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004267
4268
4269cat >>confdefs.h <<_ACEOF
4270#define PACKAGE "$PACKAGE"
4271_ACEOF
4272
4273
4274cat >>confdefs.h <<_ACEOF
4275#define VERSION "$VERSION"
4276_ACEOF
4277
4278# Some tools Automake needs.
4279
4280ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4281
4282
4283AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4284
4285
4286AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4287
4288
4289AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4290
4291
4292MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4293
4294install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4295
4296# Installed binaries are usually stripped using `strip' when the user
4297# run `make install-strip'. However `strip' might not be the right
4298# tool to use in cross-compilation environments, therefore Automake
4299# will honor the `STRIP' environment variable to overrule this program.
4300if test "$cross_compiling" != no; then
4301 if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4303set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004305$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004306if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004307 $as_echo_n "(cached) " >&6
4308else
4309 if test -n "$STRIP"; then
4310 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4311else
4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313for as_dir in $PATH
4314do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004317 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004321 break 2
4322 fi
4323done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004324 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004325IFS=$as_save_IFS
4326
4327fi
4328fi
4329STRIP=$ac_cv_prog_STRIP
4330if test -n "$STRIP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004332$as_echo "$STRIP" >&6; }
4333else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004335$as_echo "no" >&6; }
4336fi
4337
4338
4339fi
4340if test -z "$ac_cv_prog_STRIP"; then
4341 ac_ct_STRIP=$STRIP
4342 # Extract the first word of "strip", so it can be a program name with args.
4343set dummy strip; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004345$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004346if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004347 $as_echo_n "(cached) " >&6
4348else
4349 if test -n "$ac_ct_STRIP"; then
4350 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004357 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004361 break 2
4362 fi
4363done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004364 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004365IFS=$as_save_IFS
4366
4367fi
4368fi
4369ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4370if test -n "$ac_ct_STRIP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004372$as_echo "$ac_ct_STRIP" >&6; }
4373else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004375$as_echo "no" >&6; }
4376fi
4377
4378 if test "x$ac_ct_STRIP" = x; then
4379 STRIP=":"
4380 else
4381 case $cross_compiling:$ac_tool_warned in
4382yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385ac_tool_warned=yes ;;
4386esac
4387 STRIP=$ac_ct_STRIP
4388 fi
4389else
4390 STRIP="$ac_cv_prog_STRIP"
4391fi
4392
4393fi
4394INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4395
4396# We need awk for the "check" target. The system "awk" is bad on
4397# some platforms.
4398# Always define AMTAR for backward compatibility.
4399
4400AMTAR=${AMTAR-"${am_missing_run}tar"}
4401
4402am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4403
4404
4405
4406
4407depcc="$CC" am_compiler_list=
4408
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004410$as_echo_n "checking dependency style of $depcc... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004411if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004412 $as_echo_n "(cached) " >&6
4413else
4414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4415 # We make a subdir and do the tests there. Otherwise we can end up
4416 # making bogus files that we don't know about and never remove. For
4417 # instance it was reported that on HP-UX the gcc test will end up
4418 # making a dummy file named `D' -- because `-MD' means `put the output
4419 # in D'.
4420 mkdir conftest.dir
4421 # Copy depcomp to subdir because otherwise we won't find it if we're
4422 # using a relative directory.
4423 cp "$am_depcomp" conftest.dir
4424 cd conftest.dir
4425 # We will build objects and dependencies in a subdirectory because
4426 # it helps to detect inapplicable dependency modes. For instance
4427 # both Tru64's cc and ICC support -MD to output dependencies as a
4428 # side effect of compilation, but ICC will put the dependencies in
4429 # the current directory while Tru64 will put them in the object
4430 # directory.
4431 mkdir sub
4432
4433 am_cv_CC_dependencies_compiler_type=none
4434 if test "$am_compiler_list" = ""; then
4435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4436 fi
4437 for depmode in $am_compiler_list; do
4438 # Setup a source with many dependencies, because some compilers
4439 # like to wrap large dependency lists on column 80 (with \), and
4440 # we should not choose a depcomp mode which is confused by this.
4441 #
4442 # We need to recreate these files for each test, as the compiler may
4443 # overwrite some of them when testing with obscure command lines.
4444 # This happens at least with the AIX C compiler.
4445 : > sub/conftest.c
4446 for i in 1 2 3 4 5 6; do
4447 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4448 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4449 # Solaris 8's {/usr,}/bin/sh.
4450 touch sub/conftst$i.h
4451 done
4452 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4453
4454 case $depmode in
4455 nosideeffect)
4456 # after this tag, mechanisms are not by side-effect, so they'll
4457 # only be used when explicitly requested
4458 if test "x$enable_dependency_tracking" = xyes; then
4459 continue
4460 else
4461 break
4462 fi
4463 ;;
4464 none) break ;;
4465 esac
4466 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4467 # mode. It turns out that the SunPro C++ compiler does not properly
4468 # handle `-M -o', and we need to detect this.
4469 if depmode=$depmode \
4470 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4472 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4473 >/dev/null 2>conftest.err &&
4474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4478 # icc doesn't choke on unknown options, it will just issue warnings
4479 # or remarks (even with -Werror). So we grep stderr for any message
4480 # that says an option was ignored or not supported.
4481 # When given -MP, icc 7.0 and 7.1 complain thusly:
4482 # icc: Command line warning: ignoring option '-M'; no argument required
4483 # The diagnosis changed in icc 8.0:
4484 # icc: Command line remark: option '-MP' not supported
4485 if (grep 'ignoring option' conftest.err ||
4486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4487 am_cv_CC_dependencies_compiler_type=$depmode
4488 break
4489 fi
4490 fi
4491 done
4492
4493 cd ..
4494 rm -rf conftest.dir
4495else
4496 am_cv_CC_dependencies_compiler_type=none
4497fi
4498
4499fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004501$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4503
4504 if
4505 test "x$enable_dependency_tracking" != xno \
4506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4507 am__fastdepCC_TRUE=
4508 am__fastdepCC_FALSE='#'
4509else
4510 am__fastdepCC_TRUE='#'
4511 am__fastdepCC_FALSE=
4512fi
4513
4514
4515
4516
4517
4518case `pwd` in
4519 *\ * | *\ *)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004521$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4522esac
4523
4524
4525
4526macro_version='2.2.6'
4527macro_revision='1.3012'
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541ltmain="$ac_aux_dir/ltmain.sh"
4542
4543# Make sure we can run config.sub.
4544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004545 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004546
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004548$as_echo_n "checking build system type... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004549if test "${ac_cv_build+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004550 $as_echo_n "(cached) " >&6
4551else
4552 ac_build_alias=$build_alias
4553test "x$ac_build_alias" = x &&
4554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4555test "x$ac_build_alias" = x &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004556 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004558 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004559
4560fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004562$as_echo "$ac_cv_build" >&6; }
4563case $ac_cv_build in
4564*-*-*) ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004565*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004566esac
4567build=$ac_cv_build
4568ac_save_IFS=$IFS; IFS='-'
4569set x $ac_cv_build
4570shift
4571build_cpu=$1
4572build_vendor=$2
4573shift; shift
4574# Remember, the first character of IFS is used to create $*,
4575# except with old shells:
4576build_os=$*
4577IFS=$ac_save_IFS
4578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4579
4580
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004582$as_echo_n "checking host system type... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004583if test "${ac_cv_host+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004584 $as_echo_n "(cached) " >&6
4585else
4586 if test "x$host_alias" = x; then
4587 ac_cv_host=$ac_cv_build
4588else
4589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004590 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004591fi
4592
4593fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004595$as_echo "$ac_cv_host" >&6; }
4596case $ac_cv_host in
4597*-*-*) ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004598*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004599esac
4600host=$ac_cv_host
4601ac_save_IFS=$IFS; IFS='-'
4602set x $ac_cv_host
4603shift
4604host_cpu=$1
4605host_vendor=$2
4606shift; shift
4607# Remember, the first character of IFS is used to create $*,
4608# except with old shells:
4609host_os=$*
4610IFS=$ac_save_IFS
4611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4612
4613
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004615$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004616if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004617 $as_echo_n "(cached) " >&6
4618else
4619 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4620 for ac_i in 1 2 3 4 5 6 7; do
4621 ac_script="$ac_script$as_nl$ac_script"
4622 done
4623 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004624 { ac_script=; unset ac_script;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01004625 if test -z "$SED"; then
4626 ac_path_SED_found=false
4627 # Loop through the user's path and test for each of PROGNAME-LIST
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629for as_dir in $PATH
4630do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004633 for ac_prog in sed gsed; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4636 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4637# Check for GNU ac_path_SED and select it if it is found.
4638 # Check for GNU $ac_path_SED
4639case `"$ac_path_SED" --version 2>&1` in
4640*GNU*)
4641 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4642*)
4643 ac_count=0
4644 $as_echo_n 0123456789 >"conftest.in"
4645 while :
4646 do
4647 cat "conftest.in" "conftest.in" >"conftest.tmp"
4648 mv "conftest.tmp" "conftest.in"
4649 cp "conftest.in" "conftest.nl"
4650 $as_echo '' >> "conftest.nl"
4651 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004653 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004654 if test $ac_count -gt ${ac_path_SED_max-0}; then
4655 # Best one so far, save it but keep looking for a better one
4656 ac_cv_path_SED="$ac_path_SED"
4657 ac_path_SED_max=$ac_count
4658 fi
4659 # 10*(2^10) chars as input seems more than enough
4660 test $ac_count -gt 10 && break
4661 done
4662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663esac
4664
4665 $ac_path_SED_found && break 3
4666 done
4667 done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004668 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004669IFS=$as_save_IFS
4670 if test -z "$ac_cv_path_SED"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004671 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004672 fi
4673else
4674 ac_cv_path_SED=$SED
4675fi
4676
4677fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004679$as_echo "$ac_cv_path_SED" >&6; }
4680 SED="$ac_cv_path_SED"
4681 rm -f conftest.sed
4682
4683test -z "$SED" && SED=sed
4684Xsed="$SED -e 1s/^X//"
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004697$as_echo_n "checking for fgrep... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004698if test "${ac_cv_path_FGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004699 $as_echo_n "(cached) " >&6
4700else
4701 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4702 then ac_cv_path_FGREP="$GREP -F"
4703 else
4704 if test -z "$FGREP"; then
4705 ac_path_FGREP_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004712 for ac_prog in fgrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4715 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4716# Check for GNU ac_path_FGREP and select it if it is found.
4717 # Check for GNU $ac_path_FGREP
4718case `"$ac_path_FGREP" --version 2>&1` in
4719*GNU*)
4720 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4721*)
4722 ac_count=0
4723 $as_echo_n 0123456789 >"conftest.in"
4724 while :
4725 do
4726 cat "conftest.in" "conftest.in" >"conftest.tmp"
4727 mv "conftest.tmp" "conftest.in"
4728 cp "conftest.in" "conftest.nl"
4729 $as_echo 'FGREP' >> "conftest.nl"
4730 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004732 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004733 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4734 # Best one so far, save it but keep looking for a better one
4735 ac_cv_path_FGREP="$ac_path_FGREP"
4736 ac_path_FGREP_max=$ac_count
4737 fi
4738 # 10*(2^10) chars as input seems more than enough
4739 test $ac_count -gt 10 && break
4740 done
4741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4742esac
4743
4744 $ac_path_FGREP_found && break 3
4745 done
4746 done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004747 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004748IFS=$as_save_IFS
4749 if test -z "$ac_cv_path_FGREP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004750 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004751 fi
4752else
4753 ac_cv_path_FGREP=$FGREP
4754fi
4755
4756 fi
4757fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004759$as_echo "$ac_cv_path_FGREP" >&6; }
4760 FGREP="$ac_cv_path_FGREP"
4761
4762
4763test -z "$GREP" && GREP=grep
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783# Check whether --with-gnu-ld was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004784if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004785 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4786else
4787 with_gnu_ld=no
4788fi
4789
4790ac_prog=ld
4791if test "$GCC" = yes; then
4792 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004794$as_echo_n "checking for ld used by $CC... " >&6; }
4795 case $host in
4796 *-*-mingw*)
4797 # gcc leaves a trailing carriage return which upsets mingw
4798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4799 *)
4800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4801 esac
4802 case $ac_prog in
4803 # Accept absolute paths.
4804 [\\/]* | ?:[\\/]*)
4805 re_direlt='/[^/][^/]*/\.\./'
4806 # Canonicalize the pathname of ld
4807 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4808 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4809 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4810 done
4811 test -z "$LD" && LD="$ac_prog"
4812 ;;
4813 "")
4814 # If it fails, then pretend we aren't using GCC.
4815 ac_prog=ld
4816 ;;
4817 *)
4818 # If it is relative, then search for the first ld in PATH.
4819 with_gnu_ld=unknown
4820 ;;
4821 esac
4822elif test "$with_gnu_ld" = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004824$as_echo_n "checking for GNU ld... " >&6; }
4825else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004827$as_echo_n "checking for non-GNU ld... " >&6; }
4828fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004829if test "${lt_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004830 $as_echo_n "(cached) " >&6
4831else
4832 if test -z "$LD"; then
4833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4834 for ac_dir in $PATH; do
4835 IFS="$lt_save_ifs"
4836 test -z "$ac_dir" && ac_dir=.
4837 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4838 lt_cv_path_LD="$ac_dir/$ac_prog"
4839 # Check to see if the program is GNU ld. I'd rather use --version,
4840 # but apparently some variants of GNU ld only accept -v.
4841 # Break only if it was the GNU/non-GNU ld that we prefer.
4842 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4843 *GNU* | *'with BFD'*)
4844 test "$with_gnu_ld" != no && break
4845 ;;
4846 *)
4847 test "$with_gnu_ld" != yes && break
4848 ;;
4849 esac
4850 fi
4851 done
4852 IFS="$lt_save_ifs"
4853else
4854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4855fi
4856fi
4857
4858LD="$lt_cv_path_LD"
4859if test -n "$LD"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004861$as_echo "$LD" >&6; }
4862else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004864$as_echo "no" >&6; }
4865fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004866test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004868$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004869if test "${lt_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004870 $as_echo_n "(cached) " >&6
4871else
4872 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4873case `$LD -v 2>&1 </dev/null` in
4874*GNU* | *'with BFD'*)
4875 lt_cv_prog_gnu_ld=yes
4876 ;;
4877*)
4878 lt_cv_prog_gnu_ld=no
4879 ;;
4880esac
4881fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004883$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4884with_gnu_ld=$lt_cv_prog_gnu_ld
4885
4886
4887
4888
4889
4890
4891
4892
4893
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004895$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004896if test "${lt_cv_path_NM+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004897 $as_echo_n "(cached) " >&6
4898else
4899 if test -n "$NM"; then
4900 # Let the user override the test.
4901 lt_cv_path_NM="$NM"
4902else
4903 lt_nm_to_check="${ac_tool_prefix}nm"
4904 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4905 lt_nm_to_check="$lt_nm_to_check nm"
4906 fi
4907 for lt_tmp_nm in $lt_nm_to_check; do
4908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4909 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4910 IFS="$lt_save_ifs"
4911 test -z "$ac_dir" && ac_dir=.
4912 tmp_nm="$ac_dir/$lt_tmp_nm"
4913 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4914 # Check to see if the nm accepts a BSD-compat flag.
4915 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4916 # nm: unknown option "B" ignored
4917 # Tru64's nm complains that /dev/null is an invalid object file
4918 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4919 */dev/null* | *'Invalid file or object type'*)
4920 lt_cv_path_NM="$tmp_nm -B"
4921 break
4922 ;;
4923 *)
4924 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4925 */dev/null*)
4926 lt_cv_path_NM="$tmp_nm -p"
4927 break
4928 ;;
4929 *)
4930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4931 continue # so that we can try to find one that supports BSD flags
4932 ;;
4933 esac
4934 ;;
4935 esac
4936 fi
4937 done
4938 IFS="$lt_save_ifs"
4939 done
4940 : ${lt_cv_path_NM=no}
4941fi
4942fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004944$as_echo "$lt_cv_path_NM" >&6; }
4945if test "$lt_cv_path_NM" != "no"; then
4946 NM="$lt_cv_path_NM"
4947else
4948 # Didn't find any BSD compatible name lister, look for dumpbin.
4949 if test -n "$ac_tool_prefix"; then
4950 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4951 do
4952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4953set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004955$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004956if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004957 $as_echo_n "(cached) " >&6
4958else
4959 if test -n "$DUMPBIN"; then
4960 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004967 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004971 break 2
4972 fi
4973done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004974 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004975IFS=$as_save_IFS
4976
4977fi
4978fi
4979DUMPBIN=$ac_cv_prog_DUMPBIN
4980if test -n "$DUMPBIN"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004982$as_echo "$DUMPBIN" >&6; }
4983else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004985$as_echo "no" >&6; }
4986fi
4987
4988
4989 test -n "$DUMPBIN" && break
4990 done
4991fi
4992if test -z "$DUMPBIN"; then
4993 ac_ct_DUMPBIN=$DUMPBIN
4994 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4995do
4996 # Extract the first word of "$ac_prog", so it can be a program name with args.
4997set dummy $ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004999$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005000if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005001 $as_echo_n "(cached) " >&6
5002else
5003 if test -n "$ac_ct_DUMPBIN"; then
5004 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5005else
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005011 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005015 break 2
5016 fi
5017done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005018 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005019IFS=$as_save_IFS
5020
5021fi
5022fi
5023ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5024if test -n "$ac_ct_DUMPBIN"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005026$as_echo "$ac_ct_DUMPBIN" >&6; }
5027else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005029$as_echo "no" >&6; }
5030fi
5031
5032
5033 test -n "$ac_ct_DUMPBIN" && break
5034done
5035
5036 if test "x$ac_ct_DUMPBIN" = x; then
5037 DUMPBIN=":"
5038 else
5039 case $cross_compiling:$ac_tool_warned in
5040yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5043ac_tool_warned=yes ;;
5044esac
5045 DUMPBIN=$ac_ct_DUMPBIN
5046 fi
5047fi
5048
5049
5050 if test "$DUMPBIN" != ":"; then
5051 NM="$DUMPBIN"
5052 fi
5053fi
5054test -z "$NM" && NM=nm
5055
5056
5057
5058
5059
5060
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005062$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005063if test "${lt_cv_nm_interface+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005064 $as_echo_n "(cached) " >&6
5065else
5066 lt_cv_nm_interface="BSD nm"
5067 echo "int some_variable = 0;" > conftest.$ac_ext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005068 (eval echo "\"\$as_me:5068: $ac_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005069 (eval "$ac_compile" 2>conftest.err)
5070 cat conftest.err >&5
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005071 (eval echo "\"\$as_me:5071: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005072 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5073 cat conftest.err >&5
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005074 (eval echo "\"\$as_me:5074: output\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005075 cat conftest.out >&5
5076 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5077 lt_cv_nm_interface="MS dumpbin"
5078 fi
5079 rm -f conftest*
5080fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005082$as_echo "$lt_cv_nm_interface" >&6; }
5083
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005085$as_echo_n "checking whether ln -s works... " >&6; }
5086LN_S=$as_ln_s
5087if test "$LN_S" = "ln -s"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005089$as_echo "yes" >&6; }
5090else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005092$as_echo "no, using $LN_S" >&6; }
5093fi
5094
5095# find the maximum length of command line arguments
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005097$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005098if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005099 $as_echo_n "(cached) " >&6
5100else
5101 i=0
5102 teststring="ABCD"
5103
5104 case $build_os in
5105 msdosdjgpp*)
5106 # On DJGPP, this test can blow up pretty badly due to problems in libc
5107 # (any single argument exceeding 2000 bytes causes a buffer overrun
5108 # during glob expansion). Even if it were fixed, the result of this
5109 # check would be larger than it should be.
5110 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5111 ;;
5112
5113 gnu*)
5114 # Under GNU Hurd, this test is not required because there is
5115 # no limit to the length of command line arguments.
5116 # Libtool will interpret -1 as no limit whatsoever
5117 lt_cv_sys_max_cmd_len=-1;
5118 ;;
5119
5120 cygwin* | mingw* | cegcc*)
5121 # On Win9x/ME, this test blows up -- it succeeds, but takes
5122 # about 5 minutes as the teststring grows exponentially.
5123 # Worse, since 9x/ME are not pre-emptively multitasking,
5124 # you end up with a "frozen" computer, even though with patience
5125 # the test eventually succeeds (with a max line length of 256k).
5126 # Instead, let's just punt: use the minimum linelength reported by
5127 # all of the supported platforms: 8192 (on NT/2K/XP).
5128 lt_cv_sys_max_cmd_len=8192;
5129 ;;
5130
5131 amigaos*)
5132 # On AmigaOS with pdksh, this test takes hours, literally.
5133 # So we just punt and use a minimum line length of 8192.
5134 lt_cv_sys_max_cmd_len=8192;
5135 ;;
5136
5137 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5138 # This has been around since 386BSD, at least. Likely further.
5139 if test -x /sbin/sysctl; then
5140 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5141 elif test -x /usr/sbin/sysctl; then
5142 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5143 else
5144 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5145 fi
5146 # And add a safety zone
5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5149 ;;
5150
5151 interix*)
5152 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5153 lt_cv_sys_max_cmd_len=196608
5154 ;;
5155
5156 osf*)
5157 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5158 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5159 # nice to cause kernel panics so lets avoid the loop below.
5160 # First set a reasonable default.
5161 lt_cv_sys_max_cmd_len=16384
5162 #
5163 if test -x /sbin/sysconfig; then
5164 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5165 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5166 esac
5167 fi
5168 ;;
5169 sco3.2v5*)
5170 lt_cv_sys_max_cmd_len=102400
5171 ;;
5172 sysv5* | sco5v6* | sysv4.2uw2*)
5173 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5174 if test -n "$kargmax"; then
5175 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5176 else
5177 lt_cv_sys_max_cmd_len=32768
5178 fi
5179 ;;
5180 *)
5181 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5182 if test -n "$lt_cv_sys_max_cmd_len"; then
5183 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5185 else
5186 # Make teststring a little bigger before we do anything with it.
5187 # a 1K string should be a reasonable start.
5188 for i in 1 2 3 4 5 6 7 8 ; do
5189 teststring=$teststring$teststring
5190 done
5191 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5192 # If test is not a shell built-in, we'll probably end up computing a
5193 # maximum length that is only half of the actual maximum length, but
5194 # we can't tell.
5195 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5196 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5197 test $i != 17 # 1/2 MB should be enough
5198 do
5199 i=`expr $i + 1`
5200 teststring=$teststring$teststring
5201 done
5202 # Only check the string length outside the loop.
5203 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5204 teststring=
5205 # Add a significant safety factor because C++ compilers can tack on
5206 # massive amounts of additional arguments before passing them to the
5207 # linker. It appears as though 1/2 is a usable value.
5208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5209 fi
5210 ;;
5211 esac
5212
5213fi
5214
5215if test -n $lt_cv_sys_max_cmd_len ; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005217$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5218else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005220$as_echo "none" >&6; }
5221fi
5222max_cmd_len=$lt_cv_sys_max_cmd_len
5223
5224
5225
5226
5227
5228
5229: ${CP="cp -f"}
5230: ${MV="mv -f"}
5231: ${RM="rm -f"}
5232
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005234$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5235# Try some XSI features
5236xsi_shell=no
5237( _lt_dummy="a/b/c"
5238 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5239 = c,a/b,, \
5240 && eval 'test $(( 1 + 1 )) -eq 2 \
5241 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5242 && xsi_shell=yes
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005244$as_echo "$xsi_shell" >&6; }
5245
5246
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005248$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5249lt_shell_append=no
5250( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5251 >/dev/null 2>&1 \
5252 && lt_shell_append=yes
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005254$as_echo "$lt_shell_append" >&6; }
5255
5256
5257if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5258 lt_unset=unset
5259else
5260 lt_unset=false
5261fi
5262
5263
5264
5265
5266
5267# test EBCDIC or ASCII
5268case `echo X|tr X '\101'` in
5269 A) # ASCII based system
5270 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5271 lt_SP2NL='tr \040 \012'
5272 lt_NL2SP='tr \015\012 \040\040'
5273 ;;
5274 *) # EBCDIC based system
5275 lt_SP2NL='tr \100 \n'
5276 lt_NL2SP='tr \r\n \100\100'
5277 ;;
5278esac
5279
5280
5281
5282
5283
5284
5285
5286
5287
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005289$as_echo_n "checking for $LD option to reload object files... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005290if test "${lt_cv_ld_reload_flag+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005291 $as_echo_n "(cached) " >&6
5292else
5293 lt_cv_ld_reload_flag='-r'
5294fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005296$as_echo "$lt_cv_ld_reload_flag" >&6; }
5297reload_flag=$lt_cv_ld_reload_flag
5298case $reload_flag in
5299"" | " "*) ;;
5300*) reload_flag=" $reload_flag" ;;
5301esac
5302reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303case $host_os in
5304 darwin*)
5305 if test "$GCC" = yes; then
5306 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5307 else
5308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309 fi
5310 ;;
5311esac
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321if test -n "$ac_tool_prefix"; then
5322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5323set dummy ${ac_tool_prefix}objdump; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005325$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005326if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005327 $as_echo_n "(cached) " >&6
5328else
5329 if test -n "$OBJDUMP"; then
5330 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005337 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005341 break 2
5342 fi
5343done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005344 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005345IFS=$as_save_IFS
5346
5347fi
5348fi
5349OBJDUMP=$ac_cv_prog_OBJDUMP
5350if test -n "$OBJDUMP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005352$as_echo "$OBJDUMP" >&6; }
5353else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005355$as_echo "no" >&6; }
5356fi
5357
5358
5359fi
5360if test -z "$ac_cv_prog_OBJDUMP"; then
5361 ac_ct_OBJDUMP=$OBJDUMP
5362 # Extract the first word of "objdump", so it can be a program name with args.
5363set dummy objdump; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005365$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005366if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005367 $as_echo_n "(cached) " >&6
5368else
5369 if test -n "$ac_ct_OBJDUMP"; then
5370 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005377 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005381 break 2
5382 fi
5383done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005384 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005385IFS=$as_save_IFS
5386
5387fi
5388fi
5389ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5390if test -n "$ac_ct_OBJDUMP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005392$as_echo "$ac_ct_OBJDUMP" >&6; }
5393else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005395$as_echo "no" >&6; }
5396fi
5397
5398 if test "x$ac_ct_OBJDUMP" = x; then
5399 OBJDUMP="false"
5400 else
5401 case $cross_compiling:$ac_tool_warned in
5402yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5405ac_tool_warned=yes ;;
5406esac
5407 OBJDUMP=$ac_ct_OBJDUMP
5408 fi
5409else
5410 OBJDUMP="$ac_cv_prog_OBJDUMP"
5411fi
5412
5413test -z "$OBJDUMP" && OBJDUMP=objdump
5414
5415
5416
5417
5418
5419
5420
5421
5422
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005424$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005425if test "${lt_cv_deplibs_check_method+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005426 $as_echo_n "(cached) " >&6
5427else
5428 lt_cv_file_magic_cmd='$MAGIC_CMD'
5429lt_cv_file_magic_test_file=
5430lt_cv_deplibs_check_method='unknown'
5431# Need to set the preceding variable on all platforms that support
5432# interlibrary dependencies.
5433# 'none' -- dependencies not supported.
5434# `unknown' -- same as none, but documents that we really don't know.
5435# 'pass_all' -- all dependencies passed with no checks.
5436# 'test_compile' -- check by making test program.
5437# 'file_magic [[regex]]' -- check by looking for files in library path
5438# which responds to the $file_magic_cmd with a given extended regex.
5439# If you have `file' or equivalent on your system and you're not sure
5440# whether `pass_all' will *always* work, you probably want this one.
5441
5442case $host_os in
5443aix[4-9]*)
5444 lt_cv_deplibs_check_method=pass_all
5445 ;;
5446
5447beos*)
5448 lt_cv_deplibs_check_method=pass_all
5449 ;;
5450
5451bsdi[45]*)
5452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5453 lt_cv_file_magic_cmd='/usr/bin/file -L'
5454 lt_cv_file_magic_test_file=/shlib/libc.so
5455 ;;
5456
5457cygwin*)
5458 # func_win32_libid is a shell function defined in ltmain.sh
5459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5460 lt_cv_file_magic_cmd='func_win32_libid'
5461 ;;
5462
5463mingw* | pw32*)
5464 # Base MSYS/MinGW do not provide the 'file' command needed by
5465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5466 # unless we find 'file', for example because we are cross-compiling.
5467 if ( file / ) >/dev/null 2>&1; then
5468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5469 lt_cv_file_magic_cmd='func_win32_libid'
5470 else
5471 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5472 lt_cv_file_magic_cmd='$OBJDUMP -f'
5473 fi
5474 ;;
5475
5476cegcc)
5477 # use the weaker test based on 'objdump'. See mingw*.
5478 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5479 lt_cv_file_magic_cmd='$OBJDUMP -f'
5480 ;;
5481
5482darwin* | rhapsody*)
5483 lt_cv_deplibs_check_method=pass_all
5484 ;;
5485
5486freebsd* | dragonfly*)
5487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488 case $host_cpu in
5489 i*86 )
5490 # Not sure whether the presence of OpenBSD here was a mistake.
5491 # Let's accept both of them until this is cleared up.
5492 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5493 lt_cv_file_magic_cmd=/usr/bin/file
5494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5495 ;;
5496 esac
5497 else
5498 lt_cv_deplibs_check_method=pass_all
5499 fi
5500 ;;
5501
5502gnu*)
5503 lt_cv_deplibs_check_method=pass_all
5504 ;;
5505
5506hpux10.20* | hpux11*)
5507 lt_cv_file_magic_cmd=/usr/bin/file
5508 case $host_cpu in
5509 ia64*)
5510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5511 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5512 ;;
5513 hppa*64*)
5514 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]'
5515 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5516 ;;
5517 *)
5518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5519 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5520 ;;
5521 esac
5522 ;;
5523
5524interix[3-9]*)
5525 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5527 ;;
5528
5529irix5* | irix6* | nonstopux*)
5530 case $LD in
5531 *-32|*"-32 ") libmagic=32-bit;;
5532 *-n32|*"-n32 ") libmagic=N32;;
5533 *-64|*"-64 ") libmagic=64-bit;;
5534 *) libmagic=never-match;;
5535 esac
5536 lt_cv_deplibs_check_method=pass_all
5537 ;;
5538
5539# This must be Linux ELF.
5540linux* | k*bsd*-gnu)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544netbsd* | netbsdelf*-gnu)
5545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5547 else
5548 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5549 fi
5550 ;;
5551
5552newos6*)
5553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5554 lt_cv_file_magic_cmd=/usr/bin/file
5555 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5556 ;;
5557
5558*nto* | *qnx*)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561
5562openbsd*)
5563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5565 else
5566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5567 fi
5568 ;;
5569
5570osf3* | osf4* | osf5*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574rdos*)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577
5578solaris*)
5579 lt_cv_deplibs_check_method=pass_all
5580 ;;
5581
5582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5583 lt_cv_deplibs_check_method=pass_all
5584 ;;
5585
5586sysv4 | sysv4.3*)
5587 case $host_vendor in
5588 motorola)
5589 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]'
5590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5591 ;;
5592 ncr)
5593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595 sequent)
5596 lt_cv_file_magic_cmd='/bin/file'
5597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5598 ;;
5599 sni)
5600 lt_cv_file_magic_cmd='/bin/file'
5601 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5602 lt_cv_file_magic_test_file=/lib/libc.so
5603 ;;
5604 siemens)
5605 lt_cv_deplibs_check_method=pass_all
5606 ;;
5607 pc)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610 esac
5611 ;;
5612
5613tpf*)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616esac
5617
5618fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005620$as_echo "$lt_cv_deplibs_check_method" >&6; }
5621file_magic_cmd=$lt_cv_file_magic_cmd
5622deplibs_check_method=$lt_cv_deplibs_check_method
5623test -z "$deplibs_check_method" && deplibs_check_method=unknown
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5638set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005640$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005641if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005642 $as_echo_n "(cached) " >&6
5643else
5644 if test -n "$AR"; then
5645 ac_cv_prog_AR="$AR" # Let the user override the test.
5646else
5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648for as_dir in $PATH
5649do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005652 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005656 break 2
5657 fi
5658done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005659 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005660IFS=$as_save_IFS
5661
5662fi
5663fi
5664AR=$ac_cv_prog_AR
5665if test -n "$AR"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005667$as_echo "$AR" >&6; }
5668else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005670$as_echo "no" >&6; }
5671fi
5672
5673
5674fi
5675if test -z "$ac_cv_prog_AR"; then
5676 ac_ct_AR=$AR
5677 # Extract the first word of "ar", so it can be a program name with args.
5678set dummy ar; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005680$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005681if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005682 $as_echo_n "(cached) " >&6
5683else
5684 if test -n "$ac_ct_AR"; then
5685 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005692 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005696 break 2
5697 fi
5698done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005699 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005700IFS=$as_save_IFS
5701
5702fi
5703fi
5704ac_ct_AR=$ac_cv_prog_ac_ct_AR
5705if test -n "$ac_ct_AR"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005707$as_echo "$ac_ct_AR" >&6; }
5708else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005710$as_echo "no" >&6; }
5711fi
5712
5713 if test "x$ac_ct_AR" = x; then
5714 AR="false"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720ac_tool_warned=yes ;;
5721esac
5722 AR=$ac_ct_AR
5723 fi
5724else
5725 AR="$ac_cv_prog_AR"
5726fi
5727
5728test -z "$AR" && AR=ar
5729test -z "$AR_FLAGS" && AR_FLAGS=cru
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5743set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005745$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005746if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005747 $as_echo_n "(cached) " >&6
5748else
5749 if test -n "$STRIP"; then
5750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005757 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005761 break 2
5762 fi
5763done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005764 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005765IFS=$as_save_IFS
5766
5767fi
5768fi
5769STRIP=$ac_cv_prog_STRIP
5770if test -n "$STRIP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005772$as_echo "$STRIP" >&6; }
5773else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005775$as_echo "no" >&6; }
5776fi
5777
5778
5779fi
5780if test -z "$ac_cv_prog_STRIP"; then
5781 ac_ct_STRIP=$STRIP
5782 # Extract the first word of "strip", so it can be a program name with args.
5783set dummy strip; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005785$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005786if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005787 $as_echo_n "(cached) " >&6
5788else
5789 if test -n "$ac_ct_STRIP"; then
5790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005797 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005801 break 2
5802 fi
5803done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005804 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005805IFS=$as_save_IFS
5806
5807fi
5808fi
5809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5810if test -n "$ac_ct_STRIP"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005812$as_echo "$ac_ct_STRIP" >&6; }
5813else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005815$as_echo "no" >&6; }
5816fi
5817
5818 if test "x$ac_ct_STRIP" = x; then
5819 STRIP=":"
5820 else
5821 case $cross_compiling:$ac_tool_warned in
5822yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5825ac_tool_warned=yes ;;
5826esac
5827 STRIP=$ac_ct_STRIP
5828 fi
5829else
5830 STRIP="$ac_cv_prog_STRIP"
5831fi
5832
5833test -z "$STRIP" && STRIP=:
5834
5835
5836
5837
5838
5839
5840if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5842set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005844$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005845if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$RANLIB"; then
5849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005856 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005860 break 2
5861 fi
5862done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005863 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005864IFS=$as_save_IFS
5865
5866fi
5867fi
5868RANLIB=$ac_cv_prog_RANLIB
5869if test -n "$RANLIB"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005871$as_echo "$RANLIB" >&6; }
5872else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005874$as_echo "no" >&6; }
5875fi
5876
5877
5878fi
5879if test -z "$ac_cv_prog_RANLIB"; then
5880 ac_ct_RANLIB=$RANLIB
5881 # Extract the first word of "ranlib", so it can be a program name with args.
5882set dummy ranlib; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005884$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005885if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005886 $as_echo_n "(cached) " >&6
5887else
5888 if test -n "$ac_ct_RANLIB"; then
5889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5890else
5891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892for as_dir in $PATH
5893do
5894 IFS=$as_save_IFS
5895 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005896 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005900 break 2
5901 fi
5902done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005903 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005904IFS=$as_save_IFS
5905
5906fi
5907fi
5908ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5909if test -n "$ac_ct_RANLIB"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005911$as_echo "$ac_ct_RANLIB" >&6; }
5912else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005914$as_echo "no" >&6; }
5915fi
5916
5917 if test "x$ac_ct_RANLIB" = x; then
5918 RANLIB=":"
5919 else
5920 case $cross_compiling:$ac_tool_warned in
5921yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01005922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924ac_tool_warned=yes ;;
5925esac
5926 RANLIB=$ac_ct_RANLIB
5927 fi
5928else
5929 RANLIB="$ac_cv_prog_RANLIB"
5930fi
5931
5932test -z "$RANLIB" && RANLIB=:
5933
5934
5935
5936
5937
5938
5939# Determine commands to create old-style static archives.
5940old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5941old_postinstall_cmds='chmod 644 $oldlib'
5942old_postuninstall_cmds=
5943
5944if test -n "$RANLIB"; then
5945 case $host_os in
5946 openbsd*)
5947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5948 ;;
5949 *)
5950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5951 ;;
5952 esac
5953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5954fi
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989# If no C compiler was specified, use CC.
5990LTCC=${LTCC-"$CC"}
5991
5992# If no C compiler flags were specified, use CFLAGS.
5993LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5994
5995# Allow CC to be a program name with arguments.
5996compiler=$CC
5997
5998
5999# Check for command to grab the raw symbol name followed by C symbol from nm.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006001$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006002if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006003 $as_echo_n "(cached) " >&6
6004else
6005
6006# These are sane defaults that work on at least a few old systems.
6007# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6008
6009# Character class describing NM global symbol codes.
6010symcode='[BCDEGRST]'
6011
6012# Regexp to match symbols that can be accessed directly from C.
6013sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6014
6015# Define system-specific variables.
6016case $host_os in
6017aix*)
6018 symcode='[BCDT]'
6019 ;;
6020cygwin* | mingw* | pw32* | cegcc*)
6021 symcode='[ABCDGISTW]'
6022 ;;
6023hpux*)
6024 if test "$host_cpu" = ia64; then
6025 symcode='[ABCDEGRST]'
6026 fi
6027 ;;
6028irix* | nonstopux*)
6029 symcode='[BCDEGRST]'
6030 ;;
6031osf*)
6032 symcode='[BCDEGQRST]'
6033 ;;
6034solaris*)
6035 symcode='[BDRT]'
6036 ;;
6037sco3.2v5*)
6038 symcode='[DT]'
6039 ;;
6040sysv4.2uw2*)
6041 symcode='[DT]'
6042 ;;
6043sysv5* | sco5v6* | unixware* | OpenUNIX*)
6044 symcode='[ABDT]'
6045 ;;
6046sysv4)
6047 symcode='[DFNSTU]'
6048 ;;
6049esac
6050
6051# If we're using GNU nm, then use its standard symbol codes.
6052case `$NM -V 2>&1` in
6053*GNU* | *'with BFD'*)
6054 symcode='[ABCDGIRSTW]' ;;
6055esac
6056
6057# Transform an extracted symbol line into a proper C declaration.
6058# Some systems (esp. on ia64) link data and code symbols differently,
6059# so use this general approach.
6060lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6061
6062# Transform an extracted symbol line into symbol name and symbol address
6063lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6064lt_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'"
6065
6066# Handle CRLF in mingw tool chain
6067opt_cr=
6068case $build_os in
6069mingw*)
6070 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6071 ;;
6072esac
6073
6074# Try without a prefix underscore, then with it.
6075for ac_symprfx in "" "_"; do
6076
6077 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6078 symxfrm="\\1 $ac_symprfx\\2 \\2"
6079
6080 # Write the raw and C identifiers.
6081 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6082 # Fake it for dumpbin and say T for any non-static function
6083 # and D for any global variable.
6084 # Also find C++ and __fastcall symbols from MSVC++,
6085 # which start with @ or ?.
6086 lt_cv_sys_global_symbol_pipe="$AWK '"\
6087" {last_section=section; section=\$ 3};"\
6088" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6089" \$ 0!~/External *\|/{next};"\
6090" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6091" {if(hide[section]) next};"\
6092" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6093" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6094" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6095" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6096" ' prfx=^$ac_symprfx"
6097 else
6098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6099 fi
6100
6101 # Check to see that the pipe works correctly.
6102 pipe_works=no
6103
6104 rm -f conftest*
6105 cat > conftest.$ac_ext <<_LT_EOF
6106#ifdef __cplusplus
6107extern "C" {
6108#endif
6109char nm_test_var;
6110void nm_test_func(void);
6111void nm_test_func(void){}
6112#ifdef __cplusplus
6113}
6114#endif
6115int main(){nm_test_var='a';nm_test_func();return(0);}
6116_LT_EOF
6117
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006119 (eval $ac_compile) 2>&5
6120 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006123 # Now try to grab the symbols.
6124 nlist=conftest.nm
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006126 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6127 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129 test $ac_status = 0; } && test -s "$nlist"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006130 # Try sorting and uniquifying the output.
6131 if sort "$nlist" | uniq > "$nlist"T; then
6132 mv -f "$nlist"T "$nlist"
6133 else
6134 rm -f "$nlist"T
6135 fi
6136
6137 # Make sure that we snagged all the symbols we need.
6138 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6139 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6140 cat <<_LT_EOF > conftest.$ac_ext
6141#ifdef __cplusplus
6142extern "C" {
6143#endif
6144
6145_LT_EOF
6146 # Now generate the symbol file.
6147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6148
6149 cat <<_LT_EOF >> conftest.$ac_ext
6150
6151/* The mapping between symbol names and symbols. */
6152const struct {
6153 const char *name;
6154 void *address;
6155}
6156lt__PROGRAM__LTX_preloaded_symbols[] =
6157{
6158 { "@PROGRAM@", (void *) 0 },
6159_LT_EOF
6160 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6161 cat <<\_LT_EOF >> conftest.$ac_ext
6162 {0, (void *) 0}
6163};
6164
6165/* This works around a problem in FreeBSD linker */
6166#ifdef FREEBSD_WORKAROUND
6167static const void *lt_preloaded_setup() {
6168 return lt__PROGRAM__LTX_preloaded_symbols;
6169}
6170#endif
6171
6172#ifdef __cplusplus
6173}
6174#endif
6175_LT_EOF
6176 # Now try linking the two files.
6177 mv conftest.$ac_objext conftstm.$ac_objext
6178 lt_save_LIBS="$LIBS"
6179 lt_save_CFLAGS="$CFLAGS"
6180 LIBS="conftstm.$ac_objext"
6181 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006183 (eval $ac_link) 2>&5
6184 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006187 pipe_works=yes
6188 fi
6189 LIBS="$lt_save_LIBS"
6190 CFLAGS="$lt_save_CFLAGS"
6191 else
6192 echo "cannot find nm_test_func in $nlist" >&5
6193 fi
6194 else
6195 echo "cannot find nm_test_var in $nlist" >&5
6196 fi
6197 else
6198 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6199 fi
6200 else
6201 echo "$progname: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6203 fi
6204 rm -rf conftest* conftst*
6205
6206 # Do not use the global_symbol_pipe unless it works.
6207 if test "$pipe_works" = yes; then
6208 break
6209 else
6210 lt_cv_sys_global_symbol_pipe=
6211 fi
6212done
6213
6214fi
6215
6216if test -z "$lt_cv_sys_global_symbol_pipe"; then
6217 lt_cv_sys_global_symbol_to_cdecl=
6218fi
6219if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006221$as_echo "failed" >&6; }
6222else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006224$as_echo "ok" >&6; }
6225fi
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248# Check whether --enable-libtool-lock was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006249if test "${enable_libtool_lock+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006250 enableval=$enable_libtool_lock;
6251fi
6252
6253test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6254
6255# Some flags need to be propagated to the compiler or linker for good
6256# libtool support.
6257case $host in
6258ia64-*-hpux*)
6259 # Find out which ABI we are using.
6260 echo 'int i;' > conftest.$ac_ext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006262 (eval $ac_compile) 2>&5
6263 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006266 case `/usr/bin/file conftest.$ac_objext` in
6267 *ELF-32*)
6268 HPUX_IA64_MODE="32"
6269 ;;
6270 *ELF-64*)
6271 HPUX_IA64_MODE="64"
6272 ;;
6273 esac
6274 fi
6275 rm -rf conftest*
6276 ;;
6277*-*-irix6*)
6278 # Find out which ABI we are using.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006279 echo '#line 6279 "configure"' > conftest.$ac_ext
6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006281 (eval $ac_compile) 2>&5
6282 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006285 if test "$lt_cv_prog_gnu_ld" = yes; then
6286 case `/usr/bin/file conftest.$ac_objext` in
6287 *32-bit*)
6288 LD="${LD-ld} -melf32bsmip"
6289 ;;
6290 *N32*)
6291 LD="${LD-ld} -melf32bmipn32"
6292 ;;
6293 *64-bit*)
6294 LD="${LD-ld} -melf64bmip"
6295 ;;
6296 esac
6297 else
6298 case `/usr/bin/file conftest.$ac_objext` in
6299 *32-bit*)
6300 LD="${LD-ld} -32"
6301 ;;
6302 *N32*)
6303 LD="${LD-ld} -n32"
6304 ;;
6305 *64-bit*)
6306 LD="${LD-ld} -64"
6307 ;;
6308 esac
6309 fi
6310 fi
6311 rm -rf conftest*
6312 ;;
6313
6314x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6315s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6316 # Find out which ABI we are using.
6317 echo 'int i;' > conftest.$ac_ext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006319 (eval $ac_compile) 2>&5
6320 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006323 case `/usr/bin/file conftest.o` in
6324 *32-bit*)
6325 case $host in
6326 x86_64-*kfreebsd*-gnu)
6327 LD="${LD-ld} -m elf_i386_fbsd"
6328 ;;
6329 x86_64-*linux*)
6330 LD="${LD-ld} -m elf_i386"
6331 ;;
6332 ppc64-*linux*|powerpc64-*linux*)
6333 LD="${LD-ld} -m elf32ppclinux"
6334 ;;
6335 s390x-*linux*)
6336 LD="${LD-ld} -m elf_s390"
6337 ;;
6338 sparc64-*linux*)
6339 LD="${LD-ld} -m elf32_sparc"
6340 ;;
6341 esac
6342 ;;
6343 *64-bit*)
6344 case $host in
6345 x86_64-*kfreebsd*-gnu)
6346 LD="${LD-ld} -m elf_x86_64_fbsd"
6347 ;;
6348 x86_64-*linux*)
6349 LD="${LD-ld} -m elf_x86_64"
6350 ;;
6351 ppc*-*linux*|powerpc*-*linux*)
6352 LD="${LD-ld} -m elf64ppc"
6353 ;;
6354 s390*-*linux*|s390*-*tpf*)
6355 LD="${LD-ld} -m elf64_s390"
6356 ;;
6357 sparc*-*linux*)
6358 LD="${LD-ld} -m elf64_sparc"
6359 ;;
6360 esac
6361 ;;
6362 esac
6363 fi
6364 rm -rf conftest*
6365 ;;
6366
6367*-*-sco3.2v5*)
6368 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6369 SAVE_CFLAGS="$CFLAGS"
6370 CFLAGS="$CFLAGS -belf"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006372$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006373if test "${lt_cv_cc_needs_belf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006374 $as_echo_n "(cached) " >&6
6375else
6376 ac_ext=c
6377ac_cpp='$CPP $CPPFLAGS'
6378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006383/* end confdefs.h. */
6384
6385int
6386main ()
6387{
6388
6389 ;
6390 return 0;
6391}
6392_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006393if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006394 lt_cv_cc_needs_belf=yes
6395else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006396 lt_cv_cc_needs_belf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006397fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006398rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006400 ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
6406fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006408$as_echo "$lt_cv_cc_needs_belf" >&6; }
6409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6411 CFLAGS="$SAVE_CFLAGS"
6412 fi
6413 ;;
6414sparc*-*solaris*)
6415 # Find out which ABI we are using.
6416 echo 'int i;' > conftest.$ac_ext
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006418 (eval $ac_compile) 2>&5
6419 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006422 case `/usr/bin/file conftest.o` in
6423 *64-bit*)
6424 case $lt_cv_prog_gnu_ld in
6425 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6426 *)
6427 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6428 LD="${LD-ld} -64"
6429 fi
6430 ;;
6431 esac
6432 ;;
6433 esac
6434 fi
6435 rm -rf conftest*
6436 ;;
6437esac
6438
6439need_locks="$enable_libtool_lock"
6440
6441
6442 case $host_os in
6443 rhapsody* | darwin*)
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6446set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006448$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006449if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006450 $as_echo_n "(cached) " >&6
6451else
6452 if test -n "$DSYMUTIL"; then
6453 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006460 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006464 break 2
6465 fi
6466done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006467 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006468IFS=$as_save_IFS
6469
6470fi
6471fi
6472DSYMUTIL=$ac_cv_prog_DSYMUTIL
6473if test -n "$DSYMUTIL"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006475$as_echo "$DSYMUTIL" >&6; }
6476else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006478$as_echo "no" >&6; }
6479fi
6480
6481
6482fi
6483if test -z "$ac_cv_prog_DSYMUTIL"; then
6484 ac_ct_DSYMUTIL=$DSYMUTIL
6485 # Extract the first word of "dsymutil", so it can be a program name with args.
6486set dummy dsymutil; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006488$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006489if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006490 $as_echo_n "(cached) " >&6
6491else
6492 if test -n "$ac_ct_DSYMUTIL"; then
6493 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006500 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006504 break 2
6505 fi
6506done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006507 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006508IFS=$as_save_IFS
6509
6510fi
6511fi
6512ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6513if test -n "$ac_ct_DSYMUTIL"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006515$as_echo "$ac_ct_DSYMUTIL" >&6; }
6516else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006518$as_echo "no" >&6; }
6519fi
6520
6521 if test "x$ac_ct_DSYMUTIL" = x; then
6522 DSYMUTIL=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528ac_tool_warned=yes ;;
6529esac
6530 DSYMUTIL=$ac_ct_DSYMUTIL
6531 fi
6532else
6533 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6534fi
6535
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6538set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006540$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006541if test "${ac_cv_prog_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006542 $as_echo_n "(cached) " >&6
6543else
6544 if test -n "$NMEDIT"; then
6545 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6546else
6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548for as_dir in $PATH
6549do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006552 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006556 break 2
6557 fi
6558done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006559 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006560IFS=$as_save_IFS
6561
6562fi
6563fi
6564NMEDIT=$ac_cv_prog_NMEDIT
6565if test -n "$NMEDIT"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006567$as_echo "$NMEDIT" >&6; }
6568else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006570$as_echo "no" >&6; }
6571fi
6572
6573
6574fi
6575if test -z "$ac_cv_prog_NMEDIT"; then
6576 ac_ct_NMEDIT=$NMEDIT
6577 # Extract the first word of "nmedit", so it can be a program name with args.
6578set dummy nmedit; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006580$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006581if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006582 $as_echo_n "(cached) " >&6
6583else
6584 if test -n "$ac_ct_NMEDIT"; then
6585 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6586else
6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006592 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006596 break 2
6597 fi
6598done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006599 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006600IFS=$as_save_IFS
6601
6602fi
6603fi
6604ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6605if test -n "$ac_ct_NMEDIT"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006607$as_echo "$ac_ct_NMEDIT" >&6; }
6608else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006610$as_echo "no" >&6; }
6611fi
6612
6613 if test "x$ac_ct_NMEDIT" = x; then
6614 NMEDIT=":"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620ac_tool_warned=yes ;;
6621esac
6622 NMEDIT=$ac_ct_NMEDIT
6623 fi
6624else
6625 NMEDIT="$ac_cv_prog_NMEDIT"
6626fi
6627
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6630set dummy ${ac_tool_prefix}lipo; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006632$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006633if test "${ac_cv_prog_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006634 $as_echo_n "(cached) " >&6
6635else
6636 if test -n "$LIPO"; then
6637 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6638else
6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006644 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006648 break 2
6649 fi
6650done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006651 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006652IFS=$as_save_IFS
6653
6654fi
6655fi
6656LIPO=$ac_cv_prog_LIPO
6657if test -n "$LIPO"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006659$as_echo "$LIPO" >&6; }
6660else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006662$as_echo "no" >&6; }
6663fi
6664
6665
6666fi
6667if test -z "$ac_cv_prog_LIPO"; then
6668 ac_ct_LIPO=$LIPO
6669 # Extract the first word of "lipo", so it can be a program name with args.
6670set dummy lipo; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006672$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006673if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006674 $as_echo_n "(cached) " >&6
6675else
6676 if test -n "$ac_ct_LIPO"; then
6677 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6678else
6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006684 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_ac_ct_LIPO="lipo"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006688 break 2
6689 fi
6690done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006691 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006692IFS=$as_save_IFS
6693
6694fi
6695fi
6696ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6697if test -n "$ac_ct_LIPO"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006699$as_echo "$ac_ct_LIPO" >&6; }
6700else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006702$as_echo "no" >&6; }
6703fi
6704
6705 if test "x$ac_ct_LIPO" = x; then
6706 LIPO=":"
6707 else
6708 case $cross_compiling:$ac_tool_warned in
6709yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712ac_tool_warned=yes ;;
6713esac
6714 LIPO=$ac_ct_LIPO
6715 fi
6716else
6717 LIPO="$ac_cv_prog_LIPO"
6718fi
6719
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6722set dummy ${ac_tool_prefix}otool; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006724$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006725if test "${ac_cv_prog_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006726 $as_echo_n "(cached) " >&6
6727else
6728 if test -n "$OTOOL"; then
6729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006736 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006740 break 2
6741 fi
6742done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006743 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006744IFS=$as_save_IFS
6745
6746fi
6747fi
6748OTOOL=$ac_cv_prog_OTOOL
6749if test -n "$OTOOL"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006751$as_echo "$OTOOL" >&6; }
6752else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006754$as_echo "no" >&6; }
6755fi
6756
6757
6758fi
6759if test -z "$ac_cv_prog_OTOOL"; then
6760 ac_ct_OTOOL=$OTOOL
6761 # Extract the first word of "otool", so it can be a program name with args.
6762set dummy otool; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006764$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006765if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006766 $as_echo_n "(cached) " >&6
6767else
6768 if test -n "$ac_ct_OTOOL"; then
6769 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006776 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_OTOOL="otool"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006780 break 2
6781 fi
6782done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006783 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006784IFS=$as_save_IFS
6785
6786fi
6787fi
6788ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6789if test -n "$ac_ct_OTOOL"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006791$as_echo "$ac_ct_OTOOL" >&6; }
6792else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006794$as_echo "no" >&6; }
6795fi
6796
6797 if test "x$ac_ct_OTOOL" = x; then
6798 OTOOL=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804ac_tool_warned=yes ;;
6805esac
6806 OTOOL=$ac_ct_OTOOL
6807 fi
6808else
6809 OTOOL="$ac_cv_prog_OTOOL"
6810fi
6811
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6814set dummy ${ac_tool_prefix}otool64; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006816$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006817if test "${ac_cv_prog_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006818 $as_echo_n "(cached) " >&6
6819else
6820 if test -n "$OTOOL64"; then
6821 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6822else
6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824for as_dir in $PATH
6825do
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006828 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006832 break 2
6833 fi
6834done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006835 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006836IFS=$as_save_IFS
6837
6838fi
6839fi
6840OTOOL64=$ac_cv_prog_OTOOL64
6841if test -n "$OTOOL64"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006843$as_echo "$OTOOL64" >&6; }
6844else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006846$as_echo "no" >&6; }
6847fi
6848
6849
6850fi
6851if test -z "$ac_cv_prog_OTOOL64"; then
6852 ac_ct_OTOOL64=$OTOOL64
6853 # Extract the first word of "otool64", so it can be a program name with args.
6854set dummy otool64; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006856$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006857if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006858 $as_echo_n "(cached) " >&6
6859else
6860 if test -n "$ac_ct_OTOOL64"; then
6861 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006868 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_prog_ac_ct_OTOOL64="otool64"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006872 break 2
6873 fi
6874done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006875 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006876IFS=$as_save_IFS
6877
6878fi
6879fi
6880ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6881if test -n "$ac_ct_OTOOL64"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006883$as_echo "$ac_ct_OTOOL64" >&6; }
6884else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006886$as_echo "no" >&6; }
6887fi
6888
6889 if test "x$ac_ct_OTOOL64" = x; then
6890 OTOOL64=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896ac_tool_warned=yes ;;
6897esac
6898 OTOOL64=$ac_ct_OTOOL64
6899 fi
6900else
6901 OTOOL64="$ac_cv_prog_OTOOL64"
6902fi
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006931$as_echo_n "checking for -single_module linker flag... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006932if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006933 $as_echo_n "(cached) " >&6
6934else
6935 lt_cv_apple_cc_single_mod=no
6936 if test -z "${LT_MULTI_MODULE}"; then
6937 # By default we will add the -single_module flag. You can override
6938 # by either setting the environment variable LT_MULTI_MODULE
6939 # non-empty at configure time, or by adding -multi_module to the
6940 # link flags.
6941 rm -rf libconftest.dylib*
6942 echo "int foo(void){return 1;}" > conftest.c
6943 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944-dynamiclib -Wl,-single_module conftest.c" >&5
6945 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6947 _lt_result=$?
6948 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6949 lt_cv_apple_cc_single_mod=yes
6950 else
6951 cat conftest.err >&5
6952 fi
6953 rm -rf libconftest.dylib*
6954 rm -f conftest.*
6955 fi
6956fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006958$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006960$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006961if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006962 $as_echo_n "(cached) " >&6
6963else
6964 lt_cv_ld_exported_symbols_list=no
6965 save_LDFLAGS=$LDFLAGS
6966 echo "_main" > conftest.sym
6967 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006969/* end confdefs.h. */
6970
6971int
6972main ()
6973{
6974
6975 ;
6976 return 0;
6977}
6978_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006979if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006980 lt_cv_ld_exported_symbols_list=yes
6981else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006982 lt_cv_ld_exported_symbols_list=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006983fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006984rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006986 LDFLAGS="$save_LDFLAGS"
6987
6988fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01006989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006990$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6991 case $host_os in
6992 rhapsody* | darwin1.[012])
6993 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6994 darwin1.*)
6995 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6996 darwin*) # darwin 5.x on
6997 # if running on 10.5 or later, the deployment target defaults
6998 # to the OS version, if on x86, and 10.4, the deployment
6999 # target defaults to 10.4. Don't you love it?
7000 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7001 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7003 10.[012]*)
7004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7005 10.*)
7006 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7007 esac
7008 ;;
7009 esac
7010 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7011 _lt_dar_single_mod='$single_module'
7012 fi
7013 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7014 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7015 else
7016 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7017 fi
7018 if test "$DSYMUTIL" != ":"; then
7019 _lt_dsymutil='~$DSYMUTIL $lib || :'
7020 else
7021 _lt_dsymutil=
7022 fi
7023 ;;
7024 esac
7025
Scott James Remnant65f683d2009-07-14 13:05:17 +01007026for ac_header in dlfcn.h
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007027do :
7028 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7029"
7030if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007031 cat >>confdefs.h <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007032#define HAVE_DLFCN_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +01007033_ACEOF
7034
7035fi
7036
7037done
7038
7039
7040
7041# Set options
7042
7043
7044
7045 enable_dlopen=no
7046
7047
7048 enable_win32_dll=no
7049
7050
7051 # Check whether --enable-shared was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007052if test "${enable_shared+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007053 enableval=$enable_shared; p=${PACKAGE-default}
7054 case $enableval in
7055 yes) enable_shared=yes ;;
7056 no) enable_shared=no ;;
7057 *)
7058 enable_shared=no
7059 # Look at the argument we got. We use all the common list separators.
7060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7061 for pkg in $enableval; do
7062 IFS="$lt_save_ifs"
7063 if test "X$pkg" = "X$p"; then
7064 enable_shared=yes
7065 fi
7066 done
7067 IFS="$lt_save_ifs"
7068 ;;
7069 esac
7070else
7071 enable_shared=yes
7072fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082 # Check whether --enable-static was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007083if test "${enable_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007084 enableval=$enable_static; p=${PACKAGE-default}
7085 case $enableval in
7086 yes) enable_static=yes ;;
7087 no) enable_static=no ;;
7088 *)
7089 enable_static=no
7090 # Look at the argument we got. We use all the common list separators.
7091 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7092 for pkg in $enableval; do
7093 IFS="$lt_save_ifs"
7094 if test "X$pkg" = "X$p"; then
7095 enable_static=yes
7096 fi
7097 done
7098 IFS="$lt_save_ifs"
7099 ;;
7100 esac
7101else
7102 enable_static=yes
7103fi
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114# Check whether --with-pic was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007115if test "${with_pic+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007116 withval=$with_pic; pic_mode="$withval"
7117else
7118 pic_mode=default
7119fi
7120
7121
7122test -z "$pic_mode" && pic_mode=default
7123
7124
7125
7126
7127
7128
7129
7130 # Check whether --enable-fast-install was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007131if test "${enable_fast_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007132 enableval=$enable_fast_install; p=${PACKAGE-default}
7133 case $enableval in
7134 yes) enable_fast_install=yes ;;
7135 no) enable_fast_install=no ;;
7136 *)
7137 enable_fast_install=no
7138 # Look at the argument we got. We use all the common list separators.
7139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7140 for pkg in $enableval; do
7141 IFS="$lt_save_ifs"
7142 if test "X$pkg" = "X$p"; then
7143 enable_fast_install=yes
7144 fi
7145 done
7146 IFS="$lt_save_ifs"
7147 ;;
7148 esac
7149else
7150 enable_fast_install=yes
7151fi
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163# This can be used to rebuild libtool when needed
7164LIBTOOL_DEPS="$ltmain"
7165
7166# Always use our own libtool.
7167LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193test -z "$LN_S" && LN_S="ln -s"
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208if test -n "${ZSH_VERSION+set}" ; then
7209 setopt NO_GLOB_SUBST
7210fi
7211
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007213$as_echo_n "checking for objdir... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007214if test "${lt_cv_objdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007215 $as_echo_n "(cached) " >&6
7216else
7217 rm -f .libs 2>/dev/null
7218mkdir .libs 2>/dev/null
7219if test -d .libs; then
7220 lt_cv_objdir=.libs
7221else
7222 # MS-DOS does not allow filenames that begin with a dot.
7223 lt_cv_objdir=_libs
7224fi
7225rmdir .libs 2>/dev/null
7226fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007228$as_echo "$lt_cv_objdir" >&6; }
7229objdir=$lt_cv_objdir
7230
7231
7232
7233
7234
7235cat >>confdefs.h <<_ACEOF
7236#define LT_OBJDIR "$lt_cv_objdir/"
7237_ACEOF
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255case $host_os in
7256aix3*)
7257 # AIX sometimes has problems with the GCC collect2 program. For some
7258 # reason, if we set the COLLECT_NAMES environment variable, the problems
7259 # vanish in a puff of smoke.
7260 if test "X${COLLECT_NAMES+set}" != Xset; then
7261 COLLECT_NAMES=
7262 export COLLECT_NAMES
7263 fi
7264 ;;
7265esac
7266
7267# Sed substitution that helps us do robust quoting. It backslashifies
7268# metacharacters that are still active within double-quoted strings.
7269sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7270
7271# Same as above, but do not quote variable references.
7272double_quote_subst='s/\(["`\\]\)/\\\1/g'
7273
7274# Sed substitution to delay expansion of an escaped shell variable in a
7275# double_quote_subst'ed string.
7276delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7277
7278# Sed substitution to delay expansion of an escaped single quote.
7279delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7280
7281# Sed substitution to avoid accidental globbing in evaled expressions
7282no_glob_subst='s/\*/\\\*/g'
7283
7284# Global variables:
7285ofile=libtool
7286can_build_shared=yes
7287
7288# All known linkers require a `.a' archive for static linking (except MSVC,
7289# which needs '.lib').
7290libext=a
7291
7292with_gnu_ld="$lt_cv_prog_gnu_ld"
7293
7294old_CC="$CC"
7295old_CFLAGS="$CFLAGS"
7296
7297# Set sane defaults for various variables
7298test -z "$CC" && CC=cc
7299test -z "$LTCC" && LTCC=$CC
7300test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7301test -z "$LD" && LD=ld
7302test -z "$ac_objext" && ac_objext=o
7303
7304for cc_temp in $compiler""; do
7305 case $cc_temp in
7306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7308 \-*) ;;
7309 *) break;;
7310 esac
7311done
7312cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7313
7314
7315# Only perform the check for file, if the check method requires it
7316test -z "$MAGIC_CMD" && MAGIC_CMD=file
7317case $deplibs_check_method in
7318file_magic*)
7319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007321$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007322if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007323 $as_echo_n "(cached) " >&6
7324else
7325 case $MAGIC_CMD in
7326[\\/*] | ?:[\\/]*)
7327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7328 ;;
7329*)
7330 lt_save_MAGIC_CMD="$MAGIC_CMD"
7331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7333 for ac_dir in $ac_dummy; do
7334 IFS="$lt_save_ifs"
7335 test -z "$ac_dir" && ac_dir=.
7336 if test -f $ac_dir/${ac_tool_prefix}file; then
7337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7338 if test -n "$file_magic_test_file"; then
7339 case $deplibs_check_method in
7340 "file_magic "*)
7341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7344 $EGREP "$file_magic_regex" > /dev/null; then
7345 :
7346 else
7347 cat <<_LT_EOF 1>&2
7348
7349*** Warning: the command libtool uses to detect shared libraries,
7350*** $file_magic_cmd, produces output that libtool cannot recognize.
7351*** The result is that libtool may fail to recognize shared libraries
7352*** as such. This will affect the creation of libtool libraries that
7353*** depend on shared libraries, but programs linked with such libtool
7354*** libraries will work regardless of this problem. Nevertheless, you
7355*** may want to report the problem to your system manager and/or to
7356*** bug-libtool@gnu.org
7357
7358_LT_EOF
7359 fi ;;
7360 esac
7361 fi
7362 break
7363 fi
7364 done
7365 IFS="$lt_save_ifs"
7366 MAGIC_CMD="$lt_save_MAGIC_CMD"
7367 ;;
7368esac
7369fi
7370
7371MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7372if test -n "$MAGIC_CMD"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007374$as_echo "$MAGIC_CMD" >&6; }
7375else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007377$as_echo "no" >&6; }
7378fi
7379
7380
7381
7382
7383
7384if test -z "$lt_cv_path_MAGIC_CMD"; then
7385 if test -n "$ac_tool_prefix"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007387$as_echo_n "checking for file... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007388if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007389 $as_echo_n "(cached) " >&6
7390else
7391 case $MAGIC_CMD in
7392[\\/*] | ?:[\\/]*)
7393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7394 ;;
7395*)
7396 lt_save_MAGIC_CMD="$MAGIC_CMD"
7397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7399 for ac_dir in $ac_dummy; do
7400 IFS="$lt_save_ifs"
7401 test -z "$ac_dir" && ac_dir=.
7402 if test -f $ac_dir/file; then
7403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7404 if test -n "$file_magic_test_file"; then
7405 case $deplibs_check_method in
7406 "file_magic "*)
7407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7410 $EGREP "$file_magic_regex" > /dev/null; then
7411 :
7412 else
7413 cat <<_LT_EOF 1>&2
7414
7415*** Warning: the command libtool uses to detect shared libraries,
7416*** $file_magic_cmd, produces output that libtool cannot recognize.
7417*** The result is that libtool may fail to recognize shared libraries
7418*** as such. This will affect the creation of libtool libraries that
7419*** depend on shared libraries, but programs linked with such libtool
7420*** libraries will work regardless of this problem. Nevertheless, you
7421*** may want to report the problem to your system manager and/or to
7422*** bug-libtool@gnu.org
7423
7424_LT_EOF
7425 fi ;;
7426 esac
7427 fi
7428 break
7429 fi
7430 done
7431 IFS="$lt_save_ifs"
7432 MAGIC_CMD="$lt_save_MAGIC_CMD"
7433 ;;
7434esac
7435fi
7436
7437MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7438if test -n "$MAGIC_CMD"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007440$as_echo "$MAGIC_CMD" >&6; }
7441else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007443$as_echo "no" >&6; }
7444fi
7445
7446
7447 else
7448 MAGIC_CMD=:
7449 fi
7450fi
7451
7452 fi
7453 ;;
7454esac
7455
7456# Use C for the default configuration in the libtool script
7457
7458lt_save_CC="$CC"
7459ac_ext=c
7460ac_cpp='$CPP $CPPFLAGS'
7461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7463ac_compiler_gnu=$ac_cv_c_compiler_gnu
7464
7465
7466# Source file extension for C test sources.
7467ac_ext=c
7468
7469# Object file extension for compiled C test sources.
7470objext=o
7471objext=$objext
7472
7473# Code to be used in simple compile tests
7474lt_simple_compile_test_code="int some_variable = 0;"
7475
7476# Code to be used in simple link tests
7477lt_simple_link_test_code='int main(){return(0);}'
7478
7479
7480
7481
7482
7483
7484
7485# If no C compiler was specified, use CC.
7486LTCC=${LTCC-"$CC"}
7487
7488# If no C compiler flags were specified, use CFLAGS.
7489LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7490
7491# Allow CC to be a program name with arguments.
7492compiler=$CC
7493
7494# Save the default compiler, since it gets overwritten when the other
7495# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7496compiler_DEFAULT=$CC
7497
7498# save warnings/boilerplate of simple test code
7499ac_outfile=conftest.$ac_objext
7500echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7502_lt_compiler_boilerplate=`cat conftest.err`
7503$RM conftest*
7504
7505ac_outfile=conftest.$ac_objext
7506echo "$lt_simple_link_test_code" >conftest.$ac_ext
7507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508_lt_linker_boilerplate=`cat conftest.err`
7509$RM -r conftest*
7510
7511
7512## CAVEAT EMPTOR:
7513## There is no encapsulation within the following macros, do not change
7514## the running order or otherwise move them around unless you know exactly
7515## what you are doing...
7516if test -n "$compiler"; then
7517
7518lt_prog_compiler_no_builtin_flag=
7519
7520if test "$GCC" = yes; then
7521 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7522
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007524$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007525if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007526 $as_echo_n "(cached) " >&6
7527else
7528 lt_cv_prog_compiler_rtti_exceptions=no
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-fno-rtti -fno-exceptions"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 # The option is referenced via a variable to avoid confusing sed.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007541 (eval echo "\"\$as_me:7541: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007542 (eval "$lt_compile" 2>conftest.err)
7543 ac_status=$?
7544 cat conftest.err >&5
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007545 echo "$as_me:7545: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007546 if (exit $ac_status) && test -s "$ac_outfile"; then
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings other than the usual output.
7549 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_rtti_exceptions=yes
7553 fi
7554 fi
7555 $RM conftest*
7556
7557fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007559$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7560
7561if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7563else
7564 :
7565fi
7566
7567fi
7568
7569
7570
7571
7572
7573
7574 lt_prog_compiler_wl=
7575lt_prog_compiler_pic=
7576lt_prog_compiler_static=
7577
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007579$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7580
7581 if test "$GCC" = yes; then
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_static='-static'
7584
7585 case $host_os in
7586 aix*)
7587 # All AIX code is PIC.
7588 if test "$host_cpu" = ia64; then
7589 # AIX 5 now supports IA64 processor
7590 lt_prog_compiler_static='-Bstatic'
7591 fi
7592 ;;
7593
7594 amigaos*)
7595 case $host_cpu in
7596 powerpc)
7597 # see comment about AmigaOS4 .so support
7598 lt_prog_compiler_pic='-fPIC'
7599 ;;
7600 m68k)
7601 # FIXME: we need at least 68020 code to build shared libraries, but
7602 # adding the `-m68020' flag to GCC prevents building anything better,
7603 # like `-m68040'.
7604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7605 ;;
7606 esac
7607 ;;
7608
7609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7610 # PIC is the default for these OSes.
7611 ;;
7612
7613 mingw* | cygwin* | pw32* | os2* | cegcc*)
7614 # This hack is so that the source file can tell whether it is being
7615 # built for inclusion in a dll (and should export symbols for example).
7616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7617 # (--disable-auto-import) libraries
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7619 ;;
7620
7621 darwin* | rhapsody*)
7622 # PIC is the default on this platform
7623 # Common symbols not allowed in MH_DYLIB files
7624 lt_prog_compiler_pic='-fno-common'
7625 ;;
7626
7627 hpux*)
7628 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7629 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7630 # sets the default TLS model and affects inlining.
7631 case $host_cpu in
7632 hppa*64*)
7633 # +Z the default
7634 ;;
7635 *)
7636 lt_prog_compiler_pic='-fPIC'
7637 ;;
7638 esac
7639 ;;
7640
7641 interix[3-9]*)
7642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7643 # Instead, we relocate shared libraries at runtime.
7644 ;;
7645
7646 msdosdjgpp*)
7647 # Just because we use GCC doesn't mean we suddenly get shared libraries
7648 # on systems that don't support them.
7649 lt_prog_compiler_can_build_shared=no
7650 enable_shared=no
7651 ;;
7652
7653 *nto* | *qnx*)
7654 # QNX uses GNU C++, but need to define -shared option too, otherwise
7655 # it will coredump.
7656 lt_prog_compiler_pic='-fPIC -shared'
7657 ;;
7658
7659 sysv4*MP*)
7660 if test -d /usr/nec; then
7661 lt_prog_compiler_pic=-Kconform_pic
7662 fi
7663 ;;
7664
7665 *)
7666 lt_prog_compiler_pic='-fPIC'
7667 ;;
7668 esac
7669 else
7670 # PORTME Check for flag to pass linker flags through the system compiler.
7671 case $host_os in
7672 aix*)
7673 lt_prog_compiler_wl='-Wl,'
7674 if test "$host_cpu" = ia64; then
7675 # AIX 5 now supports IA64 processor
7676 lt_prog_compiler_static='-Bstatic'
7677 else
7678 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7679 fi
7680 ;;
7681
7682 mingw* | cygwin* | pw32* | os2* | cegcc*)
7683 # This hack is so that the source file can tell whether it is being
7684 # built for inclusion in a dll (and should export symbols for example).
7685 lt_prog_compiler_pic='-DDLL_EXPORT'
7686 ;;
7687
7688 hpux9* | hpux10* | hpux11*)
7689 lt_prog_compiler_wl='-Wl,'
7690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7691 # not for PA HP-UX.
7692 case $host_cpu in
7693 hppa*64*|ia64*)
7694 # +Z the default
7695 ;;
7696 *)
7697 lt_prog_compiler_pic='+Z'
7698 ;;
7699 esac
7700 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7701 lt_prog_compiler_static='${wl}-a ${wl}archive'
7702 ;;
7703
7704 irix5* | irix6* | nonstopux*)
7705 lt_prog_compiler_wl='-Wl,'
7706 # PIC (with -KPIC) is the default.
7707 lt_prog_compiler_static='-non_shared'
7708 ;;
7709
7710 linux* | k*bsd*-gnu)
7711 case $cc_basename in
7712 # old Intel for x86_64 which still supported -KPIC.
7713 ecc*)
7714 lt_prog_compiler_wl='-Wl,'
7715 lt_prog_compiler_pic='-KPIC'
7716 lt_prog_compiler_static='-static'
7717 ;;
7718 # icc used to be incompatible with GCC.
7719 # ICC 10 doesn't accept -KPIC any more.
7720 icc* | ifort*)
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='-fPIC'
7723 lt_prog_compiler_static='-static'
7724 ;;
7725 # Lahey Fortran 8.1.
7726 lf95*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='--shared'
7729 lt_prog_compiler_static='--static'
7730 ;;
7731 pgcc* | pgf77* | pgf90* | pgf95*)
7732 # Portland Group compilers (*not* the Pentium gcc compiler,
7733 # which looks to be a dead project)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='-fpic'
7736 lt_prog_compiler_static='-Bstatic'
7737 ;;
7738 ccc*)
7739 lt_prog_compiler_wl='-Wl,'
7740 # All Alpha code is PIC.
7741 lt_prog_compiler_static='-non_shared'
7742 ;;
7743 xl*)
7744 # IBM XL C 8.0/Fortran 10.1 on PPC
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='-qpic'
7747 lt_prog_compiler_static='-qstaticlink'
7748 ;;
7749 *)
7750 case `$CC -V 2>&1 | sed 5q` in
7751 *Sun\ C*)
7752 # Sun C 5.9
7753 lt_prog_compiler_pic='-KPIC'
7754 lt_prog_compiler_static='-Bstatic'
7755 lt_prog_compiler_wl='-Wl,'
7756 ;;
7757 *Sun\ F*)
7758 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7759 lt_prog_compiler_pic='-KPIC'
7760 lt_prog_compiler_static='-Bstatic'
7761 lt_prog_compiler_wl=''
7762 ;;
7763 esac
7764 ;;
7765 esac
7766 ;;
7767
7768 newsos6)
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-Bstatic'
7771 ;;
7772
7773 *nto* | *qnx*)
7774 # QNX uses GNU C++, but need to define -shared option too, otherwise
7775 # it will coredump.
7776 lt_prog_compiler_pic='-fPIC -shared'
7777 ;;
7778
7779 osf3* | osf4* | osf5*)
7780 lt_prog_compiler_wl='-Wl,'
7781 # All OSF/1 code is PIC.
7782 lt_prog_compiler_static='-non_shared'
7783 ;;
7784
7785 rdos*)
7786 lt_prog_compiler_static='-non_shared'
7787 ;;
7788
7789 solaris*)
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7792 case $cc_basename in
7793 f77* | f90* | f95*)
7794 lt_prog_compiler_wl='-Qoption ld ';;
7795 *)
7796 lt_prog_compiler_wl='-Wl,';;
7797 esac
7798 ;;
7799
7800 sunos4*)
7801 lt_prog_compiler_wl='-Qoption ld '
7802 lt_prog_compiler_pic='-PIC'
7803 lt_prog_compiler_static='-Bstatic'
7804 ;;
7805
7806 sysv4 | sysv4.2uw2* | sysv4.3*)
7807 lt_prog_compiler_wl='-Wl,'
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7810 ;;
7811
7812 sysv4*MP*)
7813 if test -d /usr/nec ;then
7814 lt_prog_compiler_pic='-Kconform_pic'
7815 lt_prog_compiler_static='-Bstatic'
7816 fi
7817 ;;
7818
7819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_pic='-KPIC'
7822 lt_prog_compiler_static='-Bstatic'
7823 ;;
7824
7825 unicos*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_can_build_shared=no
7828 ;;
7829
7830 uts4*)
7831 lt_prog_compiler_pic='-pic'
7832 lt_prog_compiler_static='-Bstatic'
7833 ;;
7834
7835 *)
7836 lt_prog_compiler_can_build_shared=no
7837 ;;
7838 esac
7839 fi
7840
7841case $host_os in
7842 # For platforms which do not support PIC, -DPIC is meaningless:
7843 *djgpp*)
7844 lt_prog_compiler_pic=
7845 ;;
7846 *)
7847 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7848 ;;
7849esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007851$as_echo "$lt_prog_compiler_pic" >&6; }
7852
7853
7854
7855
7856
7857
7858#
7859# Check to make sure the PIC flag actually works.
7860#
7861if test -n "$lt_prog_compiler_pic"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007863$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007864if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007865 $as_echo_n "(cached) " >&6
7866else
7867 lt_cv_prog_compiler_pic_works=no
7868 ac_outfile=conftest.$ac_objext
7869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7870 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7871 # Insert the option either (1) after the last *FLAGS variable, or
7872 # (2) before a word containing "conftest.", or (3) at the end.
7873 # Note that $ac_compile itself does not contain backslashes and begins
7874 # with a dollar sign (not a hyphen), so the echo should work correctly.
7875 # The option is referenced via a variable to avoid confusing sed.
7876 lt_compile=`echo "$ac_compile" | $SED \
7877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7879 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007880 (eval echo "\"\$as_me:7880: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007881 (eval "$lt_compile" 2>conftest.err)
7882 ac_status=$?
7883 cat conftest.err >&5
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007884 echo "$as_me:7884: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007885 if (exit $ac_status) && test -s "$ac_outfile"; then
7886 # The compiler can only warn and ignore the option if not recognized
7887 # So say no if there are warnings other than the usual output.
7888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7891 lt_cv_prog_compiler_pic_works=yes
7892 fi
7893 fi
7894 $RM conftest*
7895
7896fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007898$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7899
7900if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7901 case $lt_prog_compiler_pic in
7902 "" | " "*) ;;
7903 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7904 esac
7905else
7906 lt_prog_compiler_pic=
7907 lt_prog_compiler_can_build_shared=no
7908fi
7909
7910fi
7911
7912
7913
7914
7915
7916
7917#
7918# Check to make sure the static flag actually works.
7919#
7920wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007922$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007923if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007924 $as_echo_n "(cached) " >&6
7925else
7926 lt_cv_prog_compiler_static_works=no
7927 save_LDFLAGS="$LDFLAGS"
7928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7931 # The linker can only warn and ignore the option if not recognized
7932 # So say no if there are warnings
7933 if test -s conftest.err; then
7934 # Append any errors to the config.log.
7935 cat conftest.err 1>&5
7936 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7938 if diff conftest.exp conftest.er2 >/dev/null; then
7939 lt_cv_prog_compiler_static_works=yes
7940 fi
7941 else
7942 lt_cv_prog_compiler_static_works=yes
7943 fi
7944 fi
7945 $RM -r conftest*
7946 LDFLAGS="$save_LDFLAGS"
7947
7948fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007950$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7951
7952if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7953 :
7954else
7955 lt_prog_compiler_static=
7956fi
7957
7958
7959
7960
7961
7962
7963
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007965$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007966if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007967 $as_echo_n "(cached) " >&6
7968else
7969 lt_cv_prog_compiler_c_o=no
7970 $RM -r conftest 2>/dev/null
7971 mkdir conftest
7972 cd conftest
7973 mkdir out
7974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975
7976 lt_compiler_flag="-o out/conftest2.$ac_objext"
7977 # Insert the option either (1) after the last *FLAGS variable, or
7978 # (2) before a word containing "conftest.", or (3) at the end.
7979 # Note that $ac_compile itself does not contain backslashes and begins
7980 # with a dollar sign (not a hyphen), so the echo should work correctly.
7981 lt_compile=`echo "$ac_compile" | $SED \
7982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007985 (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007986 (eval "$lt_compile" 2>out/conftest.err)
7987 ac_status=$?
7988 cat out/conftest.err >&5
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01007989 echo "$as_me:7989: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7991 then
7992 # The compiler can only warn and ignore the option if not recognized
7993 # So say no if there are warnings
7994 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_c_o=yes
7998 fi
7999 fi
8000 chmod u+w . 2>&5
8001 $RM conftest*
8002 # SGI C++ compiler will create directory out/ii_files/ for
8003 # template instantiation
8004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8005 $RM out/* && rmdir out
8006 cd ..
8007 $RM -r conftest
8008 $RM conftest*
8009
8010fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008012$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8013
8014
8015
8016
8017
8018
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008020$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008021if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008022 $as_echo_n "(cached) " >&6
8023else
8024 lt_cv_prog_compiler_c_o=no
8025 $RM -r conftest 2>/dev/null
8026 mkdir conftest
8027 cd conftest
8028 mkdir out
8029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8030
8031 lt_compiler_flag="-o out/conftest2.$ac_objext"
8032 # Insert the option either (1) after the last *FLAGS variable, or
8033 # (2) before a word containing "conftest.", or (3) at the end.
8034 # Note that $ac_compile itself does not contain backslashes and begins
8035 # with a dollar sign (not a hyphen), so the echo should work correctly.
8036 lt_compile=`echo "$ac_compile" | $SED \
8037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8039 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008040 (eval echo "\"\$as_me:8040: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008041 (eval "$lt_compile" 2>out/conftest.err)
8042 ac_status=$?
8043 cat out/conftest.err >&5
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008044 echo "$as_me:8044: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8046 then
8047 # The compiler can only warn and ignore the option if not recognized
8048 # So say no if there are warnings
8049 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8052 lt_cv_prog_compiler_c_o=yes
8053 fi
8054 fi
8055 chmod u+w . 2>&5
8056 $RM conftest*
8057 # SGI C++ compiler will create directory out/ii_files/ for
8058 # template instantiation
8059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8060 $RM out/* && rmdir out
8061 cd ..
8062 $RM -r conftest
8063 $RM conftest*
8064
8065fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008067$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8068
8069
8070
8071
8072hard_links="nottested"
8073if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8074 # do not overwrite the value of need_locks provided by the user
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008076$as_echo_n "checking if we can lock with hard links... " >&6; }
8077 hard_links=yes
8078 $RM conftest*
8079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8080 touch conftest.a
8081 ln conftest.a conftest.b 2>&5 || hard_links=no
8082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008084$as_echo "$hard_links" >&6; }
8085 if test "$hard_links" = no; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008087$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8088 need_locks=warn
8089 fi
8090else
8091 need_locks=no
8092fi
8093
8094
8095
8096
8097
8098
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008100$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8101
8102 runpath_var=
8103 allow_undefined_flag=
8104 always_export_symbols=no
8105 archive_cmds=
8106 archive_expsym_cmds=
8107 compiler_needs_object=no
8108 enable_shared_with_static_runtimes=no
8109 export_dynamic_flag_spec=
8110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8111 hardcode_automatic=no
8112 hardcode_direct=no
8113 hardcode_direct_absolute=no
8114 hardcode_libdir_flag_spec=
8115 hardcode_libdir_flag_spec_ld=
8116 hardcode_libdir_separator=
8117 hardcode_minus_L=no
8118 hardcode_shlibpath_var=unsupported
8119 inherit_rpath=no
8120 link_all_deplibs=unknown
8121 module_cmds=
8122 module_expsym_cmds=
8123 old_archive_from_new_cmds=
8124 old_archive_from_expsyms_cmds=
8125 thread_safe_flag_spec=
8126 whole_archive_flag_spec=
8127 # include_expsyms should be a list of space-separated symbols to be *always*
8128 # included in the symbol list
8129 include_expsyms=
8130 # exclude_expsyms can be an extended regexp of symbols to exclude
8131 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8132 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8133 # as well as any symbol that contains `d'.
8134 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8135 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8136 # platforms (ab)use it in PIC code, but their linkers get confused if
8137 # the symbol is explicitly referenced. Since portable code cannot
8138 # rely on this symbol name, it's probably fine to never include it in
8139 # preloaded symbol tables.
8140 # Exclude shared library initialization/finalization symbols.
8141 extract_expsyms_cmds=
8142
8143 case $host_os in
8144 cygwin* | mingw* | pw32* | cegcc*)
8145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8146 # When not using gcc, we currently assume that we are using
8147 # Microsoft Visual C++.
8148 if test "$GCC" != yes; then
8149 with_gnu_ld=no
8150 fi
8151 ;;
8152 interix*)
8153 # we just hope/assume this is gcc and not c89 (= MSVC++)
8154 with_gnu_ld=yes
8155 ;;
8156 openbsd*)
8157 with_gnu_ld=no
8158 ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008159 linux* | k*bsd*-gnu)
8160 link_all_deplibs=no
8161 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01008162 esac
8163
8164 ld_shlibs=yes
8165 if test "$with_gnu_ld" = yes; then
8166 # If archive_cmds runs LD, not CC, wlarc should be empty
8167 wlarc='${wl}'
8168
8169 # Set some defaults for GNU ld with shared library support. These
8170 # are reset later if shared libraries are not supported. Putting them
8171 # here allows them to be overridden if necessary.
8172 runpath_var=LD_RUN_PATH
8173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8174 export_dynamic_flag_spec='${wl}--export-dynamic'
8175 # ancient GNU ld didn't support --whole-archive et. al.
8176 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8177 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8178 else
8179 whole_archive_flag_spec=
8180 fi
8181 supports_anon_versioning=no
8182 case `$LD -v 2>&1` in
8183 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8186 *\ 2.11.*) ;; # other 2.11 versions
8187 *) supports_anon_versioning=yes ;;
8188 esac
8189
8190 # See if GNU ld supports shared libraries.
8191 case $host_os in
8192 aix[3-9]*)
8193 # On AIX/PPC, the GNU linker is very broken
8194 if test "$host_cpu" != ia64; then
8195 ld_shlibs=no
8196 cat <<_LT_EOF 1>&2
8197
8198*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8199*** to be unable to reliably create shared libraries on AIX.
8200*** Therefore, libtool is disabling shared libraries support. If you
8201*** really care for shared libraries, you may want to modify your PATH
8202*** so that a non-GNU linker is found, and then restart.
8203
8204_LT_EOF
8205 fi
8206 ;;
8207
8208 amigaos*)
8209 case $host_cpu in
8210 powerpc)
8211 # see comment about AmigaOS4 .so support
8212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8213 archive_expsym_cmds=''
8214 ;;
8215 m68k)
8216 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)'
8217 hardcode_libdir_flag_spec='-L$libdir'
8218 hardcode_minus_L=yes
8219 ;;
8220 esac
8221 ;;
8222
8223 beos*)
8224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8225 allow_undefined_flag=unsupported
8226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8227 # support --undefined. This deserves some investigation. FIXME
8228 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229 else
8230 ld_shlibs=no
8231 fi
8232 ;;
8233
8234 cygwin* | mingw* | pw32* | cegcc*)
8235 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8236 # as there is no search path for DLLs.
8237 hardcode_libdir_flag_spec='-L$libdir'
8238 allow_undefined_flag=unsupported
8239 always_export_symbols=no
8240 enable_shared_with_static_runtimes=yes
8241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8242
8243 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8245 # If the export-symbols file already is a .def file (1st line
8246 # is EXPORTS), use it as is; otherwise, prepend...
8247 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8248 cp $export_symbols $output_objdir/$soname.def;
8249 else
8250 echo EXPORTS > $output_objdir/$soname.def;
8251 cat $export_symbols >> $output_objdir/$soname.def;
8252 fi~
8253 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8254 else
8255 ld_shlibs=no
8256 fi
8257 ;;
8258
8259 interix[3-9]*)
8260 hardcode_direct=no
8261 hardcode_shlibpath_var=no
8262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8263 export_dynamic_flag_spec='${wl}-E'
8264 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8265 # Instead, shared libraries are loaded at an image base (0x10000000 by
8266 # default) and relocated if they conflict, which is a slow very memory
8267 # consuming and fragmenting process. To avoid this, we pick a random,
8268 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8269 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8271 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'
8272 ;;
8273
8274 gnu* | linux* | tpf* | k*bsd*-gnu)
8275 tmp_diet=no
8276 if test "$host_os" = linux-dietlibc; then
8277 case $cc_basename in
8278 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8279 esac
8280 fi
8281 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8282 && test "$tmp_diet" = no
8283 then
8284 tmp_addflag=
8285 tmp_sharedflag='-shared'
8286 case $cc_basename,$host_cpu in
8287 pgcc*) # Portland Group C compiler
8288 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'
8289 tmp_addflag=' $pic_flag'
8290 ;;
8291 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8292 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'
8293 tmp_addflag=' $pic_flag -Mnomain' ;;
8294 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8295 tmp_addflag=' -i_dynamic' ;;
8296 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8297 tmp_addflag=' -i_dynamic -nofor_main' ;;
8298 ifc* | ifort*) # Intel Fortran compiler
8299 tmp_addflag=' -nofor_main' ;;
8300 lf95*) # Lahey Fortran 8.1
8301 whole_archive_flag_spec=
8302 tmp_sharedflag='--shared' ;;
8303 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8304 tmp_sharedflag='-qmkshrobj'
8305 tmp_addflag= ;;
8306 esac
8307 case `$CC -V 2>&1 | sed 5q` in
8308 *Sun\ C*) # Sun C 5.9
8309 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'
8310 compiler_needs_object=yes
8311 tmp_sharedflag='-G' ;;
8312 *Sun\ F*) # Sun Fortran 8.3
8313 tmp_sharedflag='-G' ;;
8314 esac
8315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8316
8317 if test "x$supports_anon_versioning" = xyes; then
8318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8320 echo "local: *; };" >> $output_objdir/$libname.ver~
8321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8322 fi
8323
8324 case $cc_basename in
8325 xlf*)
8326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8328 hardcode_libdir_flag_spec=
8329 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8330 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8331 if test "x$supports_anon_versioning" = xyes; then
8332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8334 echo "local: *; };" >> $output_objdir/$libname.ver~
8335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8336 fi
8337 ;;
8338 esac
8339 else
8340 ld_shlibs=no
8341 fi
8342 ;;
8343
8344 netbsd* | netbsdelf*-gnu)
8345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8347 wlarc=
8348 else
8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8351 fi
8352 ;;
8353
8354 solaris*)
8355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8356 ld_shlibs=no
8357 cat <<_LT_EOF 1>&2
8358
8359*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8360*** create shared libraries on Solaris systems. Therefore, libtool
8361*** is disabling shared libraries support. We urge you to upgrade GNU
8362*** binutils to release 2.9.1 or newer. Another option is to modify
8363*** your PATH or compiler configuration so that the native linker is
8364*** used, and then restart.
8365
8366_LT_EOF
8367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8370 else
8371 ld_shlibs=no
8372 fi
8373 ;;
8374
8375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8376 case `$LD -v 2>&1` in
8377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8378 ld_shlibs=no
8379 cat <<_LT_EOF 1>&2
8380
8381*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8382*** reliably create shared libraries on SCO systems. Therefore, libtool
8383*** is disabling shared libraries support. We urge you to upgrade GNU
8384*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8385*** your PATH or compiler configuration so that the native linker is
8386*** used, and then restart.
8387
8388_LT_EOF
8389 ;;
8390 *)
8391 # For security reasons, it is highly recommended that you always
8392 # use absolute paths for naming shared libraries, and exclude the
8393 # DT_RUNPATH tag from executables and libraries. But doing so
8394 # requires that you compile everything twice, which is a pain.
8395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8399 else
8400 ld_shlibs=no
8401 fi
8402 ;;
8403 esac
8404 ;;
8405
8406 sunos4*)
8407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408 wlarc=
8409 hardcode_direct=yes
8410 hardcode_shlibpath_var=no
8411 ;;
8412
8413 *)
8414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417 else
8418 ld_shlibs=no
8419 fi
8420 ;;
8421 esac
8422
8423 if test "$ld_shlibs" = no; then
8424 runpath_var=
8425 hardcode_libdir_flag_spec=
8426 export_dynamic_flag_spec=
8427 whole_archive_flag_spec=
8428 fi
8429 else
8430 # PORTME fill in a description of your system's linker (not GNU ld)
8431 case $host_os in
8432 aix3*)
8433 allow_undefined_flag=unsupported
8434 always_export_symbols=yes
8435 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'
8436 # Note: this linker hardcodes the directories in LIBPATH if there
8437 # are no directories specified by -L.
8438 hardcode_minus_L=yes
8439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8440 # Neither direct hardcoding nor static linking is supported with a
8441 # broken collect2.
8442 hardcode_direct=unsupported
8443 fi
8444 ;;
8445
8446 aix[4-9]*)
8447 if test "$host_cpu" = ia64; then
8448 # On IA64, the linker does run time linking by default, so we don't
8449 # have to do anything special.
8450 aix_use_runtimelinking=no
8451 exp_sym_flag='-Bexport'
8452 no_entry_flag=""
8453 else
8454 # If we're using GNU nm, then we don't want the "-C" option.
8455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8456 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8457 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'
8458 else
8459 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'
8460 fi
8461 aix_use_runtimelinking=no
8462
8463 # Test if we are trying to use run time linking or normal
8464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8465 # need to do runtime linking.
8466 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8467 for ld_flag in $LDFLAGS; do
8468 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8469 aix_use_runtimelinking=yes
8470 break
8471 fi
8472 done
8473 ;;
8474 esac
8475
8476 exp_sym_flag='-bexport'
8477 no_entry_flag='-bnoentry'
8478 fi
8479
8480 # When large executables or shared objects are built, AIX ld can
8481 # have problems creating the table of contents. If linking a library
8482 # or program results in "error TOC overflow" add -mminimal-toc to
8483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8485
8486 archive_cmds=''
8487 hardcode_direct=yes
8488 hardcode_direct_absolute=yes
8489 hardcode_libdir_separator=':'
8490 link_all_deplibs=yes
8491 file_list_spec='${wl}-f,'
8492
8493 if test "$GCC" = yes; then
8494 case $host_os in aix4.[012]|aix4.[012].*)
8495 # We only want to do this on AIX 4.2 and lower, the check
8496 # below for broken collect2 doesn't work under 4.3+
8497 collect2name=`${CC} -print-prog-name=collect2`
8498 if test -f "$collect2name" &&
8499 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8500 then
8501 # We have reworked collect2
8502 :
8503 else
8504 # We have old collect2
8505 hardcode_direct=unsupported
8506 # It fails to find uninstalled libraries when the uninstalled
8507 # path is not listed in the libpath. Setting hardcode_minus_L
8508 # to unsupported forces relinking
8509 hardcode_minus_L=yes
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_libdir_separator=
8512 fi
8513 ;;
8514 esac
8515 shared_flag='-shared'
8516 if test "$aix_use_runtimelinking" = yes; then
8517 shared_flag="$shared_flag "'${wl}-G'
8518 fi
8519 link_all_deplibs=no
8520 else
8521 # not using gcc
8522 if test "$host_cpu" = ia64; then
8523 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8524 # chokes on -Wl,-G. The following line is correct:
8525 shared_flag='-G'
8526 else
8527 if test "$aix_use_runtimelinking" = yes; then
8528 shared_flag='${wl}-G'
8529 else
8530 shared_flag='${wl}-bM:SRE'
8531 fi
8532 fi
8533 fi
8534
8535 export_dynamic_flag_spec='${wl}-bexpall'
8536 # It seems that -bexpall does not export symbols beginning with
8537 # underscore (_), so it is better to generate a list of symbols to export.
8538 always_export_symbols=yes
8539 if test "$aix_use_runtimelinking" = yes; then
8540 # Warning - without using the other runtime loading flags (-brtl),
8541 # -berok will link without error, but may produce a broken library.
8542 allow_undefined_flag='-berok'
8543 # Determine the default libpath from the value encoded in an
8544 # empty executable.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008546/* end confdefs.h. */
8547
8548int
8549main ()
8550{
8551
8552 ;
8553 return 0;
8554}
8555_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008556if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008557
8558lt_aix_libpath_sed='
8559 /Import File Strings/,/^$/ {
8560 /^0/ {
8561 s/^0 *\(.*\)$/\1/
8562 p
8563 }
8564 }'
8565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8566# Check for a 64-bit object if we didn't find anything.
8567if test -z "$aix_libpath"; then
8568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8569fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008570fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008571rm -f core conftest.err conftest.$ac_objext \
8572 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008573if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8574
8575 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8576 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"
8577 else
8578 if test "$host_cpu" = ia64; then
8579 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8580 allow_undefined_flag="-z nodefs"
8581 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"
8582 else
8583 # Determine the default libpath from the value encoded in an
8584 # empty executable.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008586/* end confdefs.h. */
8587
8588int
8589main ()
8590{
8591
8592 ;
8593 return 0;
8594}
8595_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008596if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008597
8598lt_aix_libpath_sed='
8599 /Import File Strings/,/^$/ {
8600 /^0/ {
8601 s/^0 *\(.*\)$/\1/
8602 p
8603 }
8604 }'
8605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8606# Check for a 64-bit object if we didn't find anything.
8607if test -z "$aix_libpath"; then
8608 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8609fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008610fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008611rm -f core conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008613if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8614
8615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616 # Warning - without using the other run time loading flags,
8617 # -berok will link without error, but may produce a broken library.
8618 no_undefined_flag=' ${wl}-bernotok'
8619 allow_undefined_flag=' ${wl}-berok'
8620 # Exported symbols can be pulled into shared objects from archives
8621 whole_archive_flag_spec='$convenience'
8622 archive_cmds_need_lc=yes
8623 # This is similar to how AIX traditionally builds its shared libraries.
8624 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'
8625 fi
8626 fi
8627 ;;
8628
8629 amigaos*)
8630 case $host_cpu in
8631 powerpc)
8632 # see comment about AmigaOS4 .so support
8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds=''
8635 ;;
8636 m68k)
8637 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)'
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 hardcode_minus_L=yes
8640 ;;
8641 esac
8642 ;;
8643
8644 bsdi[45]*)
8645 export_dynamic_flag_spec=-rdynamic
8646 ;;
8647
8648 cygwin* | mingw* | pw32* | cegcc*)
8649 # When not using gcc, we currently assume that we are using
8650 # Microsoft Visual C++.
8651 # hardcode_libdir_flag_spec is actually meaningless, as there is
8652 # no search path for DLLs.
8653 hardcode_libdir_flag_spec=' '
8654 allow_undefined_flag=unsupported
8655 # Tell ltmain to make .lib files, not .a files.
8656 libext=lib
8657 # Tell ltmain to make .dll files, not .so files.
8658 shrext_cmds=".dll"
8659 # FIXME: Setting linknames here is a bad hack.
8660 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8661 # The linker will automatically build a .lib file if we build a DLL.
8662 old_archive_from_new_cmds='true'
8663 # FIXME: Should let the user specify the lib program.
8664 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8665 fix_srcfile_path='`cygpath -w "$srcfile"`'
8666 enable_shared_with_static_runtimes=yes
8667 ;;
8668
8669 darwin* | rhapsody*)
8670
8671
8672 archive_cmds_need_lc=no
8673 hardcode_direct=no
8674 hardcode_automatic=yes
8675 hardcode_shlibpath_var=unsupported
8676 whole_archive_flag_spec=''
8677 link_all_deplibs=yes
8678 allow_undefined_flag="$_lt_dar_allow_undefined"
8679 case $cc_basename in
8680 ifort*) _lt_dar_can_shared=yes ;;
8681 *) _lt_dar_can_shared=$GCC ;;
8682 esac
8683 if test "$_lt_dar_can_shared" = "yes"; then
8684 output_verbose_link_cmd=echo
8685 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8686 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8687 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}"
8688 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}"
8689
8690 else
8691 ld_shlibs=no
8692 fi
8693
8694 ;;
8695
8696 dgux*)
8697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_shlibpath_var=no
8700 ;;
8701
8702 freebsd1*)
8703 ld_shlibs=no
8704 ;;
8705
8706 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8707 # support. Future versions do this automatically, but an explicit c++rt0.o
8708 # does not break anything, and helps significantly (at the cost of a little
8709 # extra space).
8710 freebsd2.2*)
8711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8712 hardcode_libdir_flag_spec='-R$libdir'
8713 hardcode_direct=yes
8714 hardcode_shlibpath_var=no
8715 ;;
8716
8717 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8718 freebsd2*)
8719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_direct=yes
8721 hardcode_minus_L=yes
8722 hardcode_shlibpath_var=no
8723 ;;
8724
8725 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8726 freebsd* | dragonfly*)
8727 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8728 hardcode_libdir_flag_spec='-R$libdir'
8729 hardcode_direct=yes
8730 hardcode_shlibpath_var=no
8731 ;;
8732
8733 hpux9*)
8734 if test "$GCC" = yes; then
8735 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'
8736 else
8737 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'
8738 fi
8739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740 hardcode_libdir_separator=:
8741 hardcode_direct=yes
8742
8743 # hardcode_minus_L: Not really in the search PATH,
8744 # but as the default location of the library.
8745 hardcode_minus_L=yes
8746 export_dynamic_flag_spec='${wl}-E'
8747 ;;
8748
8749 hpux10*)
8750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8752 else
8753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8754 fi
8755 if test "$with_gnu_ld" = no; then
8756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8757 hardcode_libdir_flag_spec_ld='+b $libdir'
8758 hardcode_libdir_separator=:
8759 hardcode_direct=yes
8760 hardcode_direct_absolute=yes
8761 export_dynamic_flag_spec='${wl}-E'
8762 # hardcode_minus_L: Not really in the search PATH,
8763 # but as the default location of the library.
8764 hardcode_minus_L=yes
8765 fi
8766 ;;
8767
8768 hpux11*)
8769 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8770 case $host_cpu in
8771 hppa*64*)
8772 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773 ;;
8774 ia64*)
8775 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8776 ;;
8777 *)
8778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8779 ;;
8780 esac
8781 else
8782 case $host_cpu in
8783 hppa*64*)
8784 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8785 ;;
8786 ia64*)
8787 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8788 ;;
8789 *)
8790 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8791 ;;
8792 esac
8793 fi
8794 if test "$with_gnu_ld" = no; then
8795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8796 hardcode_libdir_separator=:
8797
8798 case $host_cpu in
8799 hppa*64*|ia64*)
8800 hardcode_direct=no
8801 hardcode_shlibpath_var=no
8802 ;;
8803 *)
8804 hardcode_direct=yes
8805 hardcode_direct_absolute=yes
8806 export_dynamic_flag_spec='${wl}-E'
8807
8808 # hardcode_minus_L: Not really in the search PATH,
8809 # but as the default location of the library.
8810 hardcode_minus_L=yes
8811 ;;
8812 esac
8813 fi
8814 ;;
8815
8816 irix5* | irix6* | nonstopux*)
8817 if test "$GCC" = yes; then
8818 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'
8819 # Try to use the -exported_symbol ld option, if it does not
8820 # work, assume that -exports_file does not work either and
8821 # implicitly export all symbols.
8822 save_LDFLAGS="$LDFLAGS"
8823 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h. */
Scott James Remnant65f683d2009-07-14 13:05:17 +01008826int foo(void) {}
8827_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008828if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008829 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'
8830
Scott James Remnant65f683d2009-07-14 13:05:17 +01008831fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008832rm -f core conftest.err conftest.$ac_objext \
8833 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008834 LDFLAGS="$save_LDFLAGS"
8835 else
8836 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'
8837 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'
8838 fi
8839 archive_cmds_need_lc='no'
8840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8841 hardcode_libdir_separator=:
8842 inherit_rpath=yes
8843 link_all_deplibs=yes
8844 ;;
8845
8846 netbsd* | netbsdelf*-gnu)
8847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8849 else
8850 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8851 fi
8852 hardcode_libdir_flag_spec='-R$libdir'
8853 hardcode_direct=yes
8854 hardcode_shlibpath_var=no
8855 ;;
8856
8857 newsos6)
8858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_direct=yes
8860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861 hardcode_libdir_separator=:
8862 hardcode_shlibpath_var=no
8863 ;;
8864
8865 *nto* | *qnx*)
8866 ;;
8867
8868 openbsd*)
8869 if test -f /usr/libexec/ld.so; then
8870 hardcode_direct=yes
8871 hardcode_shlibpath_var=no
8872 hardcode_direct_absolute=yes
8873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877 export_dynamic_flag_spec='${wl}-E'
8878 else
8879 case $host_os in
8880 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8882 hardcode_libdir_flag_spec='-R$libdir'
8883 ;;
8884 *)
8885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8886 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8887 ;;
8888 esac
8889 fi
8890 else
8891 ld_shlibs=no
8892 fi
8893 ;;
8894
8895 os2*)
8896 hardcode_libdir_flag_spec='-L$libdir'
8897 hardcode_minus_L=yes
8898 allow_undefined_flag=unsupported
8899 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'
8900 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8901 ;;
8902
8903 osf3*)
8904 if test "$GCC" = yes; then
8905 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8906 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'
8907 else
8908 allow_undefined_flag=' -expect_unresolved \*'
8909 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'
8910 fi
8911 archive_cmds_need_lc='no'
8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 hardcode_libdir_separator=:
8914 ;;
8915
8916 osf4* | osf5*) # as osf3* with the addition of -msym flag
8917 if test "$GCC" = yes; then
8918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8919 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'
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 else
8922 allow_undefined_flag=' -expect_unresolved \*'
8923 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'
8924 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~
8925 $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'
8926
8927 # Both c and cxx compiler support -rpath directly
8928 hardcode_libdir_flag_spec='-rpath $libdir'
8929 fi
8930 archive_cmds_need_lc='no'
8931 hardcode_libdir_separator=:
8932 ;;
8933
8934 solaris*)
8935 no_undefined_flag=' -z defs'
8936 if test "$GCC" = yes; then
8937 wlarc='${wl}'
8938 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8940 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8941 else
8942 case `$CC -V 2>&1` in
8943 *"Compilers 5.0"*)
8944 wlarc=''
8945 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8947 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8948 ;;
8949 *)
8950 wlarc='${wl}'
8951 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8953 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8954 ;;
8955 esac
8956 fi
8957 hardcode_libdir_flag_spec='-R$libdir'
8958 hardcode_shlibpath_var=no
8959 case $host_os in
8960 solaris2.[0-5] | solaris2.[0-5].*) ;;
8961 *)
8962 # The compiler driver will combine and reorder linker options,
8963 # but understands `-z linker_flag'. GCC discards it without `$wl',
8964 # but is careful enough not to reorder.
8965 # Supported since Solaris 2.6 (maybe 2.5.1?)
8966 if test "$GCC" = yes; then
8967 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8968 else
8969 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8970 fi
8971 ;;
8972 esac
8973 link_all_deplibs=yes
8974 ;;
8975
8976 sunos4*)
8977 if test "x$host_vendor" = xsequent; then
8978 # Use $CC to link under sequent, because it throws in some extra .o
8979 # files that make .init and .fini sections work.
8980 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8981 else
8982 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8983 fi
8984 hardcode_libdir_flag_spec='-L$libdir'
8985 hardcode_direct=yes
8986 hardcode_minus_L=yes
8987 hardcode_shlibpath_var=no
8988 ;;
8989
8990 sysv4)
8991 case $host_vendor in
8992 sni)
8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_direct=yes # is this really true???
8995 ;;
8996 siemens)
8997 ## LD is ld it makes a PLAMLIB
8998 ## CC just makes a GrossModule.
8999 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9000 reload_cmds='$CC -r -o $output$reload_objs'
9001 hardcode_direct=no
9002 ;;
9003 motorola)
9004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9005 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9006 ;;
9007 esac
9008 runpath_var='LD_RUN_PATH'
9009 hardcode_shlibpath_var=no
9010 ;;
9011
9012 sysv4.3*)
9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014 hardcode_shlibpath_var=no
9015 export_dynamic_flag_spec='-Bexport'
9016 ;;
9017
9018 sysv4*MP*)
9019 if test -d /usr/nec; then
9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021 hardcode_shlibpath_var=no
9022 runpath_var=LD_RUN_PATH
9023 hardcode_runpath_var=yes
9024 ld_shlibs=yes
9025 fi
9026 ;;
9027
9028 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9029 no_undefined_flag='${wl}-z,text'
9030 archive_cmds_need_lc=no
9031 hardcode_shlibpath_var=no
9032 runpath_var='LD_RUN_PATH'
9033
9034 if test "$GCC" = yes; then
9035 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9036 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 else
9038 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9040 fi
9041 ;;
9042
9043 sysv5* | sco3.2v5* | sco5v6*)
9044 # Note: We can NOT use -z defs as we might desire, because we do not
9045 # link with -lc, and that would cause any symbols used from libc to
9046 # always be unresolved, which means just about no library would
9047 # ever link correctly. If we're not using GNU ld we use -z text
9048 # though, which does catch some bad symbols but isn't as heavy-handed
9049 # as -z defs.
9050 no_undefined_flag='${wl}-z,text'
9051 allow_undefined_flag='${wl}-z,nodefs'
9052 archive_cmds_need_lc=no
9053 hardcode_shlibpath_var=no
9054 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9055 hardcode_libdir_separator=':'
9056 link_all_deplibs=yes
9057 export_dynamic_flag_spec='${wl}-Bexport'
9058 runpath_var='LD_RUN_PATH'
9059
9060 if test "$GCC" = yes; then
9061 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 else
9064 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 fi
9067 ;;
9068
9069 uts4*)
9070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 hardcode_shlibpath_var=no
9073 ;;
9074
9075 *)
9076 ld_shlibs=no
9077 ;;
9078 esac
9079
9080 if test x$host_vendor = xsni; then
9081 case $host in
9082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9083 export_dynamic_flag_spec='${wl}-Blargedynsym'
9084 ;;
9085 esac
9086 fi
9087 fi
9088
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009090$as_echo "$ld_shlibs" >&6; }
9091test "$ld_shlibs" = no && can_build_shared=no
9092
9093with_gnu_ld=$with_gnu_ld
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109#
9110# Do we need to explicitly link libc?
9111#
9112case "x$archive_cmds_need_lc" in
9113x|xyes)
9114 # Assume -lc should be added
9115 archive_cmds_need_lc=yes
9116
9117 if test "$enable_shared" = yes && test "$GCC" = yes; then
9118 case $archive_cmds in
9119 *'~'*)
9120 # FIXME: we may have to deal with multi-command sequences.
9121 ;;
9122 '$CC '*)
9123 # Test whether the compiler implicitly links with -lc since on some
9124 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9125 # to ld, don't add -lc before -lgcc.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009127$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9128 $RM conftest*
9129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009132 (eval $ac_compile) 2>&5
9133 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9135 test $ac_status = 0; } 2>conftest.err; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009136 soname=conftest
9137 lib=conftest
9138 libobjs=conftest.$ac_objext
9139 deplibs=
9140 wl=$lt_prog_compiler_wl
9141 pic_flag=$lt_prog_compiler_pic
9142 compiler_flags=-v
9143 linker_flags=-v
9144 verstring=
9145 output_objdir=.
9146 libname=conftest
9147 lt_save_allow_undefined_flag=$allow_undefined_flag
9148 allow_undefined_flag=
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009150 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9151 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9153 test $ac_status = 0; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01009154 then
9155 archive_cmds_need_lc=no
9156 else
9157 archive_cmds_need_lc=yes
9158 fi
9159 allow_undefined_flag=$lt_save_allow_undefined_flag
9160 else
9161 cat conftest.err 1>&5
9162 fi
9163 $RM conftest*
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009165$as_echo "$archive_cmds_need_lc" >&6; }
9166 ;;
9167 esac
9168 fi
9169 ;;
9170esac
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009329$as_echo_n "checking dynamic linker characteristics... " >&6; }
9330
9331if test "$GCC" = yes; then
9332 case $host_os in
9333 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9334 *) lt_awk_arg="/^libraries:/" ;;
9335 esac
9336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9337 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9338 # if the path contains ";" then we assume it to be the separator
9339 # otherwise default to the standard path separator (i.e. ":") - it is
9340 # assumed that no part of a normal pathname contains ";" but that should
9341 # okay in the real world where ";" in dirpaths is itself problematic.
9342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9343 else
9344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9345 fi
9346 # Ok, now we have the path, separated by spaces, we can step through it
9347 # and add multilib dir if necessary.
9348 lt_tmp_lt_search_path_spec=
9349 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9350 for lt_sys_path in $lt_search_path_spec; do
9351 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9352 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9353 else
9354 test -d "$lt_sys_path" && \
9355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9356 fi
9357 done
9358 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9359BEGIN {RS=" "; FS="/|\n";} {
9360 lt_foo="";
9361 lt_count=0;
9362 for (lt_i = NF; lt_i > 0; lt_i--) {
9363 if ($lt_i != "" && $lt_i != ".") {
9364 if ($lt_i == "..") {
9365 lt_count++;
9366 } else {
9367 if (lt_count == 0) {
9368 lt_foo="/" $lt_i lt_foo;
9369 } else {
9370 lt_count--;
9371 }
9372 }
9373 }
9374 }
9375 if (lt_foo != "") { lt_freq[lt_foo]++; }
9376 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9377}'`
9378 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9379else
9380 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9381fi
9382library_names_spec=
9383libname_spec='lib$name'
9384soname_spec=
9385shrext_cmds=".so"
9386postinstall_cmds=
9387postuninstall_cmds=
9388finish_cmds=
9389finish_eval=
9390shlibpath_var=
9391shlibpath_overrides_runpath=unknown
9392version_type=none
9393dynamic_linker="$host_os ld.so"
9394sys_lib_dlsearch_path_spec="/lib /usr/lib"
9395need_lib_prefix=unknown
9396hardcode_into_libs=no
9397
9398# when you set need_version to no, make sure it does not cause -set_version
9399# flags to be left without arguments
9400need_version=unknown
9401
9402case $host_os in
9403aix3*)
9404 version_type=linux
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9406 shlibpath_var=LIBPATH
9407
9408 # AIX 3 has no versioning support, so we append a major version to the name.
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 ;;
9411
9412aix[4-9]*)
9413 version_type=linux
9414 need_lib_prefix=no
9415 need_version=no
9416 hardcode_into_libs=yes
9417 if test "$host_cpu" = ia64; then
9418 # AIX 5 supports IA64
9419 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 else
9422 # With GCC up to 2.95.x, collect2 would create an import file
9423 # for dependence libraries. The import file would start with
9424 # the line `#! .'. This would cause the generated library to
9425 # depend on `.', always an invalid library. This was fixed in
9426 # development snapshots of GCC prior to 3.0.
9427 case $host_os in
9428 aix4 | aix4.[01] | aix4.[01].*)
9429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9430 echo ' yes '
9431 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9432 :
9433 else
9434 can_build_shared=no
9435 fi
9436 ;;
9437 esac
9438 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9439 # soname into executable. Probably we can add versioning support to
9440 # collect2, so additional links can be useful in future.
9441 if test "$aix_use_runtimelinking" = yes; then
9442 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9443 # instead of lib<name>.a to let people know that these are not
9444 # typical AIX shared libraries.
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9446 else
9447 # We preserve .a as extension for shared libraries through AIX4.2
9448 # and later when we are not doing run time linking.
9449 library_names_spec='${libname}${release}.a $libname.a'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 fi
9452 shlibpath_var=LIBPATH
9453 fi
9454 ;;
9455
9456amigaos*)
9457 case $host_cpu in
9458 powerpc)
9459 # Since July 2007 AmigaOS4 officially supports .so libraries.
9460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 ;;
9463 m68k)
9464 library_names_spec='$libname.ixlibrary $libname.a'
9465 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9466 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'
9467 ;;
9468 esac
9469 ;;
9470
9471beos*)
9472 library_names_spec='${libname}${shared_ext}'
9473 dynamic_linker="$host_os ld.so"
9474 shlibpath_var=LIBRARY_PATH
9475 ;;
9476
9477bsdi[45]*)
9478 version_type=linux
9479 need_version=no
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 soname_spec='${libname}${release}${shared_ext}$major'
9482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9483 shlibpath_var=LD_LIBRARY_PATH
9484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9486 # the default ld.so.conf also contains /usr/contrib/lib and
9487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9488 # libtool to hard-code these into programs
9489 ;;
9490
9491cygwin* | mingw* | pw32* | cegcc*)
9492 version_type=windows
9493 shrext_cmds=".dll"
9494 need_version=no
9495 need_lib_prefix=no
9496
9497 case $GCC,$host_os in
9498 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9499 library_names_spec='$libname.dll.a'
9500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9501 postinstall_cmds='base_file=`basename \${file}`~
9502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9503 dldir=$destdir/`dirname \$dlpath`~
9504 test -d \$dldir || mkdir -p \$dldir~
9505 $install_prog $dir/$dlname \$dldir/$dlname~
9506 chmod a+x \$dldir/$dlname~
9507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9509 fi'
9510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9511 dlpath=$dir/\$dldll~
9512 $RM \$dlpath'
9513 shlibpath_overrides_runpath=yes
9514
9515 case $host_os in
9516 cygwin*)
9517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9518 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9519 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9520 ;;
9521 mingw* | cegcc*)
9522 # MinGW DLLs use traditional 'lib' prefix
9523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9524 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9526 # It is most probably a Windows format PATH printed by
9527 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9528 # path with ; separators, and with drive letters. We can handle the
9529 # drive letters (cygwin fileutils understands them), so leave them,
9530 # especially as we might pass files found there to a mingw objdump,
9531 # which wouldn't understand a cygwinified path. Ahh.
9532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9533 else
9534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9535 fi
9536 ;;
9537 pw32*)
9538 # pw32 DLLs use 'pw' prefix rather than 'lib'
9539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9540 ;;
9541 esac
9542 ;;
9543
9544 *)
9545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9546 ;;
9547 esac
9548 dynamic_linker='Win32 ld.exe'
9549 # FIXME: first we should search . and the directory the executable is in
9550 shlibpath_var=PATH
9551 ;;
9552
9553darwin* | rhapsody*)
9554 dynamic_linker="$host_os dyld"
9555 version_type=darwin
9556 need_lib_prefix=no
9557 need_version=no
9558 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9559 soname_spec='${libname}${release}${major}$shared_ext'
9560 shlibpath_overrides_runpath=yes
9561 shlibpath_var=DYLD_LIBRARY_PATH
9562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9563
9564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9566 ;;
9567
9568dgux*)
9569 version_type=linux
9570 need_lib_prefix=no
9571 need_version=no
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 ;;
9576
9577freebsd1*)
9578 dynamic_linker=no
9579 ;;
9580
9581freebsd* | dragonfly*)
9582 # DragonFly does not have aout. When/if they implement a new
9583 # versioning mechanism, adjust this.
9584 if test -x /usr/bin/objformat; then
9585 objformat=`/usr/bin/objformat`
9586 else
9587 case $host_os in
9588 freebsd[123]*) objformat=aout ;;
9589 *) objformat=elf ;;
9590 esac
9591 fi
9592 version_type=freebsd-$objformat
9593 case $version_type in
9594 freebsd-elf*)
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9596 need_version=no
9597 need_lib_prefix=no
9598 ;;
9599 freebsd-*)
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9601 need_version=yes
9602 ;;
9603 esac
9604 shlibpath_var=LD_LIBRARY_PATH
9605 case $host_os in
9606 freebsd2*)
9607 shlibpath_overrides_runpath=yes
9608 ;;
9609 freebsd3.[01]* | freebsdelf3.[01]*)
9610 shlibpath_overrides_runpath=yes
9611 hardcode_into_libs=yes
9612 ;;
9613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9615 shlibpath_overrides_runpath=no
9616 hardcode_into_libs=yes
9617 ;;
9618 *) # from 4.6 on, and DragonFly
9619 shlibpath_overrides_runpath=yes
9620 hardcode_into_libs=yes
9621 ;;
9622 esac
9623 ;;
9624
9625gnu*)
9626 version_type=linux
9627 need_lib_prefix=no
9628 need_version=no
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 hardcode_into_libs=yes
9633 ;;
9634
9635hpux9* | hpux10* | hpux11*)
9636 # Give a soname corresponding to the major version so that dld.sl refuses to
9637 # link against other versions.
9638 version_type=sunos
9639 need_lib_prefix=no
9640 need_version=no
9641 case $host_cpu in
9642 ia64*)
9643 shrext_cmds='.so'
9644 hardcode_into_libs=yes
9645 dynamic_linker="$host_os dld.so"
9646 shlibpath_var=LD_LIBRARY_PATH
9647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 if test "X$HPUX_IA64_MODE" = X32; then
9651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9652 else
9653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9654 fi
9655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9656 ;;
9657 hppa*64*)
9658 shrext_cmds='.sl'
9659 hardcode_into_libs=yes
9660 dynamic_linker="$host_os dld.sl"
9661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9667 ;;
9668 *)
9669 shrext_cmds='.sl'
9670 dynamic_linker="$host_os dld.sl"
9671 shlibpath_var=SHLIB_PATH
9672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 ;;
9676 esac
9677 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9678 postinstall_cmds='chmod 555 $lib'
9679 ;;
9680
9681interix[3-9]*)
9682 version_type=linux
9683 need_lib_prefix=no
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 shlibpath_overrides_runpath=no
9690 hardcode_into_libs=yes
9691 ;;
9692
9693irix5* | irix6* | nonstopux*)
9694 case $host_os in
9695 nonstopux*) version_type=nonstopux ;;
9696 *)
9697 if test "$lt_cv_prog_gnu_ld" = yes; then
9698 version_type=linux
9699 else
9700 version_type=irix
9701 fi ;;
9702 esac
9703 need_lib_prefix=no
9704 need_version=no
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9707 case $host_os in
9708 irix5* | nonstopux*)
9709 libsuff= shlibsuff=
9710 ;;
9711 *)
9712 case $LD in # libtool.m4 will add one of these switches to LD
9713 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9714 libsuff= shlibsuff= libmagic=32-bit;;
9715 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9716 libsuff=32 shlibsuff=N32 libmagic=N32;;
9717 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9718 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9719 *) libsuff= shlibsuff= libmagic=never-match;;
9720 esac
9721 ;;
9722 esac
9723 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9724 shlibpath_overrides_runpath=no
9725 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9726 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9727 hardcode_into_libs=yes
9728 ;;
9729
9730# No shared lib support for Linux oldld, aout, or coff.
9731linux*oldld* | linux*aout* | linux*coff*)
9732 dynamic_linker=no
9733 ;;
9734
9735# This must be Linux ELF.
9736linux* | k*bsd*-gnu)
9737 version_type=linux
9738 need_lib_prefix=no
9739 need_version=no
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9743 shlibpath_var=LD_LIBRARY_PATH
9744 shlibpath_overrides_runpath=no
9745 # Some binutils ld are patched to set DT_RUNPATH
9746 save_LDFLAGS=$LDFLAGS
9747 save_libdir=$libdir
9748 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9749 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009751/* end confdefs.h. */
9752
9753int
9754main ()
9755{
9756
9757 ;
9758 return 0;
9759}
9760_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009761if ac_fn_c_try_link "$LINENO"; then :
9762 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01009763 shlibpath_overrides_runpath=yes
9764fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01009765fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009766rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009768 LDFLAGS=$save_LDFLAGS
9769 libdir=$save_libdir
9770
9771 # This implies no fast_install, which is unacceptable.
9772 # Some rework will be needed to allow for fast_install
9773 # before this can be enabled.
9774 hardcode_into_libs=yes
9775
9776 # Append ld.so.conf contents to the search path
9777 if test -f /etc/ld.so.conf; then
9778 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' ' '`
9779 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9780 fi
9781
9782 # We used to test for /lib/ld.so.1 and disable shared libraries on
9783 # powerpc, because MkLinux only supported shared libraries with the
9784 # GNU dynamic linker. Since this was broken with cross compilers,
9785 # most powerpc-linux boxes support dynamic linking these days and
9786 # people can always --disable-shared, the test was removed, and we
9787 # assume the GNU/Linux dynamic linker is in use.
9788 dynamic_linker='GNU/Linux ld.so'
9789 ;;
9790
9791netbsdelf*-gnu)
9792 version_type=linux
9793 need_lib_prefix=no
9794 need_version=no
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9796 soname_spec='${libname}${release}${shared_ext}$major'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=no
9799 hardcode_into_libs=yes
9800 dynamic_linker='NetBSD ld.elf_so'
9801 ;;
9802
9803netbsd*)
9804 version_type=sunos
9805 need_lib_prefix=no
9806 need_version=no
9807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9810 dynamic_linker='NetBSD (a.out) ld.so'
9811 else
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 dynamic_linker='NetBSD ld.elf_so'
9815 fi
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=yes
9818 hardcode_into_libs=yes
9819 ;;
9820
9821newsos6)
9822 version_type=linux
9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9826 ;;
9827
9828*nto* | *qnx*)
9829 version_type=qnx
9830 need_lib_prefix=no
9831 need_version=no
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 shlibpath_var=LD_LIBRARY_PATH
9835 shlibpath_overrides_runpath=no
9836 hardcode_into_libs=yes
9837 dynamic_linker='ldqnx.so'
9838 ;;
9839
9840openbsd*)
9841 version_type=sunos
9842 sys_lib_dlsearch_path_spec="/usr/lib"
9843 need_lib_prefix=no
9844 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9845 case $host_os in
9846 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9847 *) need_version=no ;;
9848 esac
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9853 case $host_os in
9854 openbsd2.[89] | openbsd2.[89].*)
9855 shlibpath_overrides_runpath=no
9856 ;;
9857 *)
9858 shlibpath_overrides_runpath=yes
9859 ;;
9860 esac
9861 else
9862 shlibpath_overrides_runpath=yes
9863 fi
9864 ;;
9865
9866os2*)
9867 libname_spec='$name'
9868 shrext_cmds=".dll"
9869 need_lib_prefix=no
9870 library_names_spec='$libname${shared_ext} $libname.a'
9871 dynamic_linker='OS/2 ld.exe'
9872 shlibpath_var=LIBPATH
9873 ;;
9874
9875osf3* | osf4* | osf5*)
9876 version_type=osf
9877 need_lib_prefix=no
9878 need_version=no
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9883 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9884 ;;
9885
9886rdos*)
9887 dynamic_linker=no
9888 ;;
9889
9890solaris*)
9891 version_type=linux
9892 need_lib_prefix=no
9893 need_version=no
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes
9898 hardcode_into_libs=yes
9899 # ldd complains unless libraries are executable
9900 postinstall_cmds='chmod +x $lib'
9901 ;;
9902
9903sunos4*)
9904 version_type=sunos
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes
9909 if test "$with_gnu_ld" = yes; then
9910 need_lib_prefix=no
9911 fi
9912 need_version=yes
9913 ;;
9914
9915sysv4 | sysv4.3*)
9916 version_type=linux
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 case $host_vendor in
9921 sni)
9922 shlibpath_overrides_runpath=no
9923 need_lib_prefix=no
9924 runpath_var=LD_RUN_PATH
9925 ;;
9926 siemens)
9927 need_lib_prefix=no
9928 ;;
9929 motorola)
9930 need_lib_prefix=no
9931 need_version=no
9932 shlibpath_overrides_runpath=no
9933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9934 ;;
9935 esac
9936 ;;
9937
9938sysv4*MP*)
9939 if test -d /usr/nec ;then
9940 version_type=linux
9941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9942 soname_spec='$libname${shared_ext}.$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 fi
9945 ;;
9946
9947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9948 version_type=freebsd-elf
9949 need_lib_prefix=no
9950 need_version=no
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=yes
9955 hardcode_into_libs=yes
9956 if test "$with_gnu_ld" = yes; then
9957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9958 else
9959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9960 case $host_os in
9961 sco3.2v5*)
9962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9963 ;;
9964 esac
9965 fi
9966 sys_lib_dlsearch_path_spec='/usr/lib'
9967 ;;
9968
9969tpf*)
9970 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 shlibpath_var=LD_LIBRARY_PATH
9976 shlibpath_overrides_runpath=no
9977 hardcode_into_libs=yes
9978 ;;
9979
9980uts4*)
9981 version_type=linux
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 ;;
9986
9987*)
9988 dynamic_linker=no
9989 ;;
9990esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01009991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009992$as_echo "$dynamic_linker" >&6; }
9993test "$dynamic_linker" = no && can_build_shared=no
9994
9995variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9996if test "$GCC" = yes; then
9997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9998fi
9999
10000if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10001 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10002fi
10003if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10004 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10005fi
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010094$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10095hardcode_action=
10096if test -n "$hardcode_libdir_flag_spec" ||
10097 test -n "$runpath_var" ||
10098 test "X$hardcode_automatic" = "Xyes" ; then
10099
10100 # We can hardcode non-existent directories.
10101 if test "$hardcode_direct" != no &&
10102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10103 # have to relink, otherwise we might link with an installed library
10104 # when we should be linking with a yet-to-be-installed one
10105 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10106 test "$hardcode_minus_L" != no; then
10107 # Linking always hardcodes the temporary library directory.
10108 hardcode_action=relink
10109 else
10110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10111 hardcode_action=immediate
10112 fi
10113else
10114 # We cannot hardcode anything, or else we can only hardcode existing
10115 # directories.
10116 hardcode_action=unsupported
10117fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010119$as_echo "$hardcode_action" >&6; }
10120
10121if test "$hardcode_action" = relink ||
10122 test "$inherit_rpath" = yes; then
10123 # Fast installation is not supported
10124 enable_fast_install=no
10125elif test "$shlibpath_overrides_runpath" = yes ||
10126 test "$enable_shared" = no; then
10127 # Fast installation is not necessary
10128 enable_fast_install=needless
10129fi
10130
10131
10132
10133
10134
10135
10136 if test "x$enable_dlopen" != xyes; then
10137 enable_dlopen=unknown
10138 enable_dlopen_self=unknown
10139 enable_dlopen_self_static=unknown
10140else
10141 lt_cv_dlopen=no
10142 lt_cv_dlopen_libs=
10143
10144 case $host_os in
10145 beos*)
10146 lt_cv_dlopen="load_add_on"
10147 lt_cv_dlopen_libs=
10148 lt_cv_dlopen_self=yes
10149 ;;
10150
10151 mingw* | pw32* | cegcc*)
10152 lt_cv_dlopen="LoadLibrary"
10153 lt_cv_dlopen_libs=
10154 ;;
10155
10156 cygwin*)
10157 lt_cv_dlopen="dlopen"
10158 lt_cv_dlopen_libs=
10159 ;;
10160
10161 darwin*)
10162 # if libdl is installed we need to link against it
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010164$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010165if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010166 $as_echo_n "(cached) " >&6
10167else
10168 ac_check_lib_save_LIBS=$LIBS
10169LIBS="-ldl $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010171/* end confdefs.h. */
10172
10173/* Override any GCC internal prototype to avoid an error.
10174 Use char because int might match the return type of a GCC
10175 builtin and then its argument prototype would still apply. */
10176#ifdef __cplusplus
10177extern "C"
10178#endif
10179char dlopen ();
10180int
10181main ()
10182{
10183return dlopen ();
10184 ;
10185 return 0;
10186}
10187_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010188if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010189 ac_cv_lib_dl_dlopen=yes
10190else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010191 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010192fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010193rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010195LIBS=$ac_check_lib_save_LIBS
10196fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010198$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010199if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10201else
10202
10203 lt_cv_dlopen="dyld"
10204 lt_cv_dlopen_libs=
10205 lt_cv_dlopen_self=yes
10206
10207fi
10208
10209 ;;
10210
10211 *)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010212 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10213if test "x$ac_cv_func_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010214 lt_cv_dlopen="shl_load"
10215else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010217$as_echo_n "checking for shl_load in -ldld... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010218if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010219 $as_echo_n "(cached) " >&6
10220else
10221 ac_check_lib_save_LIBS=$LIBS
10222LIBS="-ldld $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010224/* end confdefs.h. */
10225
10226/* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10229#ifdef __cplusplus
10230extern "C"
10231#endif
10232char shl_load ();
10233int
10234main ()
10235{
10236return shl_load ();
10237 ;
10238 return 0;
10239}
10240_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010241if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010242 ac_cv_lib_dld_shl_load=yes
10243else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010244 ac_cv_lib_dld_shl_load=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010245fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010246rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010248LIBS=$ac_check_lib_save_LIBS
10249fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010251$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010252if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010253 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10254else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010255 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10256if test "x$ac_cv_func_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010257 lt_cv_dlopen="dlopen"
10258else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010260$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010261if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010262 $as_echo_n "(cached) " >&6
10263else
10264 ac_check_lib_save_LIBS=$LIBS
10265LIBS="-ldl $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010267/* end confdefs.h. */
10268
10269/* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272#ifdef __cplusplus
10273extern "C"
10274#endif
10275char dlopen ();
10276int
10277main ()
10278{
10279return dlopen ();
10280 ;
10281 return 0;
10282}
10283_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010284if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010285 ac_cv_lib_dl_dlopen=yes
10286else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010287 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010288fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010289rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010291LIBS=$ac_check_lib_save_LIBS
10292fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010294$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010295if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10297else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010299$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010300if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010301 $as_echo_n "(cached) " >&6
10302else
10303 ac_check_lib_save_LIBS=$LIBS
10304LIBS="-lsvld $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010306/* end confdefs.h. */
10307
10308/* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311#ifdef __cplusplus
10312extern "C"
10313#endif
10314char dlopen ();
10315int
10316main ()
10317{
10318return dlopen ();
10319 ;
10320 return 0;
10321}
10322_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010323if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010324 ac_cv_lib_svld_dlopen=yes
10325else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010326 ac_cv_lib_svld_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010327fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010328rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010330LIBS=$ac_check_lib_save_LIBS
10331fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010333$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010334if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10336else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010338$as_echo_n "checking for dld_link in -ldld... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010339if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010340 $as_echo_n "(cached) " >&6
10341else
10342 ac_check_lib_save_LIBS=$LIBS
10343LIBS="-ldld $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010345/* end confdefs.h. */
10346
10347/* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10350#ifdef __cplusplus
10351extern "C"
10352#endif
10353char dld_link ();
10354int
10355main ()
10356{
10357return dld_link ();
10358 ;
10359 return 0;
10360}
10361_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010362if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010363 ac_cv_lib_dld_dld_link=yes
10364else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010365 ac_cv_lib_dld_dld_link=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010366fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010367rm -f core conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010369LIBS=$ac_check_lib_save_LIBS
10370fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010372$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010373if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010374 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10375fi
10376
10377
10378fi
10379
10380
10381fi
10382
10383
10384fi
10385
10386
10387fi
10388
10389
10390fi
10391
10392 ;;
10393 esac
10394
10395 if test "x$lt_cv_dlopen" != xno; then
10396 enable_dlopen=yes
10397 else
10398 enable_dlopen=no
10399 fi
10400
10401 case $lt_cv_dlopen in
10402 dlopen)
10403 save_CPPFLAGS="$CPPFLAGS"
10404 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10405
10406 save_LDFLAGS="$LDFLAGS"
10407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10408
10409 save_LIBS="$LIBS"
10410 LIBS="$lt_cv_dlopen_libs $LIBS"
10411
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010413$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010414if test "${lt_cv_dlopen_self+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010415 $as_echo_n "(cached) " >&6
10416else
10417 if test "$cross_compiling" = yes; then :
10418 lt_cv_dlopen_self=cross
10419else
10420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10421 lt_status=$lt_dlunknown
10422 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010423#line 10423 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010424#include "confdefs.h"
10425
10426#if HAVE_DLFCN_H
10427#include <dlfcn.h>
10428#endif
10429
10430#include <stdio.h>
10431
10432#ifdef RTLD_GLOBAL
10433# define LT_DLGLOBAL RTLD_GLOBAL
10434#else
10435# ifdef DL_GLOBAL
10436# define LT_DLGLOBAL DL_GLOBAL
10437# else
10438# define LT_DLGLOBAL 0
10439# endif
10440#endif
10441
10442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10443 find out it does not work in some platform. */
10444#ifndef LT_DLLAZY_OR_NOW
10445# ifdef RTLD_LAZY
10446# define LT_DLLAZY_OR_NOW RTLD_LAZY
10447# else
10448# ifdef DL_LAZY
10449# define LT_DLLAZY_OR_NOW DL_LAZY
10450# else
10451# ifdef RTLD_NOW
10452# define LT_DLLAZY_OR_NOW RTLD_NOW
10453# else
10454# ifdef DL_NOW
10455# define LT_DLLAZY_OR_NOW DL_NOW
10456# else
10457# define LT_DLLAZY_OR_NOW 0
10458# endif
10459# endif
10460# endif
10461# endif
10462#endif
10463
10464void fnord() { int i=42;}
10465int main ()
10466{
10467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10468 int status = $lt_dlunknown;
10469
10470 if (self)
10471 {
10472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10474 /* dlclose (self); */
10475 }
10476 else
10477 puts (dlerror ());
10478
10479 return status;
10480}
10481_LT_EOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010483 (eval $ac_link) 2>&5
10484 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010487 (./conftest; exit; ) >&5 2>/dev/null
10488 lt_status=$?
10489 case x$lt_status in
10490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10493 esac
10494 else :
10495 # compilation failed
10496 lt_cv_dlopen_self=no
10497 fi
10498fi
10499rm -fr conftest*
10500
10501
10502fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010504$as_echo "$lt_cv_dlopen_self" >&6; }
10505
10506 if test "x$lt_cv_dlopen_self" = xyes; then
10507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010509$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010510if test "${lt_cv_dlopen_self_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010511 $as_echo_n "(cached) " >&6
10512else
10513 if test "$cross_compiling" = yes; then :
10514 lt_cv_dlopen_self_static=cross
10515else
10516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10517 lt_status=$lt_dlunknown
10518 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010519#line 10519 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010520#include "confdefs.h"
10521
10522#if HAVE_DLFCN_H
10523#include <dlfcn.h>
10524#endif
10525
10526#include <stdio.h>
10527
10528#ifdef RTLD_GLOBAL
10529# define LT_DLGLOBAL RTLD_GLOBAL
10530#else
10531# ifdef DL_GLOBAL
10532# define LT_DLGLOBAL DL_GLOBAL
10533# else
10534# define LT_DLGLOBAL 0
10535# endif
10536#endif
10537
10538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10539 find out it does not work in some platform. */
10540#ifndef LT_DLLAZY_OR_NOW
10541# ifdef RTLD_LAZY
10542# define LT_DLLAZY_OR_NOW RTLD_LAZY
10543# else
10544# ifdef DL_LAZY
10545# define LT_DLLAZY_OR_NOW DL_LAZY
10546# else
10547# ifdef RTLD_NOW
10548# define LT_DLLAZY_OR_NOW RTLD_NOW
10549# else
10550# ifdef DL_NOW
10551# define LT_DLLAZY_OR_NOW DL_NOW
10552# else
10553# define LT_DLLAZY_OR_NOW 0
10554# endif
10555# endif
10556# endif
10557# endif
10558#endif
10559
10560void fnord() { int i=42;}
10561int main ()
10562{
10563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10564 int status = $lt_dlunknown;
10565
10566 if (self)
10567 {
10568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10570 /* dlclose (self); */
10571 }
10572 else
10573 puts (dlerror ());
10574
10575 return status;
10576}
10577_LT_EOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010579 (eval $ac_link) 2>&5
10580 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10582 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010583 (./conftest; exit; ) >&5 2>/dev/null
10584 lt_status=$?
10585 case x$lt_status in
10586 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10587 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10588 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10589 esac
10590 else :
10591 # compilation failed
10592 lt_cv_dlopen_self_static=no
10593 fi
10594fi
10595rm -fr conftest*
10596
10597
10598fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010600$as_echo "$lt_cv_dlopen_self_static" >&6; }
10601 fi
10602
10603 CPPFLAGS="$save_CPPFLAGS"
10604 LDFLAGS="$save_LDFLAGS"
10605 LIBS="$save_LIBS"
10606 ;;
10607 esac
10608
10609 case $lt_cv_dlopen_self in
10610 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10611 *) enable_dlopen_self=unknown ;;
10612 esac
10613
10614 case $lt_cv_dlopen_self_static in
10615 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10616 *) enable_dlopen_self_static=unknown ;;
10617 esac
10618fi
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636striplib=
10637old_striplib=
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010639$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10640if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10641 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10642 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010644$as_echo "yes" >&6; }
10645else
10646# FIXME - insert some real tests, host_os isn't really good enough
10647 case $host_os in
10648 darwin*)
10649 if test -n "$STRIP" ; then
10650 striplib="$STRIP -x"
10651 old_striplib="$STRIP -S"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010653$as_echo "yes" >&6; }
10654 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010656$as_echo "no" >&6; }
10657 fi
10658 ;;
10659 *)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010661$as_echo "no" >&6; }
10662 ;;
10663 esac
10664fi
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677 # Report which library types will actually be built
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010679$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010681$as_echo "$can_build_shared" >&6; }
10682
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010684$as_echo_n "checking whether to build shared libraries... " >&6; }
10685 test "$can_build_shared" = "no" && enable_shared=no
10686
10687 # On AIX, shared libraries and static libraries use the same namespace, and
10688 # are all built from PIC.
10689 case $host_os in
10690 aix3*)
10691 test "$enable_shared" = yes && enable_static=no
10692 if test -n "$RANLIB"; then
10693 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10694 postinstall_cmds='$RANLIB $lib'
10695 fi
10696 ;;
10697
10698 aix[4-9]*)
10699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10700 test "$enable_shared" = yes && enable_static=no
10701 fi
10702 ;;
10703 esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010705$as_echo "$enable_shared" >&6; }
10706
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010708$as_echo_n "checking whether to build static libraries... " >&6; }
10709 # Make sure either enable_shared or enable_static is yes.
10710 test "$enable_shared" = yes || enable_static=yes
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010712$as_echo "$enable_static" >&6; }
10713
10714
10715
10716
10717fi
10718ac_ext=c
10719ac_cpp='$CPP $CPPFLAGS'
10720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10722ac_compiler_gnu=$ac_cv_c_compiler_gnu
10723
10724CC="$lt_save_CC"
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738 ac_config_commands="$ac_config_commands libtool"
10739
10740
10741
10742
10743# Only expand once:
10744
10745
10746
10747
10748
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010750$as_echo_n "checking whether NLS is requested... " >&6; }
10751 # Check whether --enable-nls was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010752if test "${enable_nls+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010753 enableval=$enable_nls; USE_NLS=$enableval
10754else
10755 USE_NLS=yes
10756fi
10757
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010759$as_echo "$USE_NLS" >&6; }
10760
10761
10762
10763
10764
10765
10766# Prepare PATH_SEPARATOR.
10767# The user is always right.
10768if test "${PATH_SEPARATOR+set}" != set; then
10769 echo "#! /bin/sh" >conf$$.sh
10770 echo "exit 0" >>conf$$.sh
10771 chmod +x conf$$.sh
10772 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10773 PATH_SEPARATOR=';'
10774 else
10775 PATH_SEPARATOR=:
10776 fi
10777 rm -f conf$$.sh
10778fi
10779
10780# Find out how to test for executable files. Don't use a zero-byte file,
10781# as systems may use methods other than mode bits to determine executability.
10782cat >conf$$.file <<_ASEOF
10783#! /bin/sh
10784exit 0
10785_ASEOF
10786chmod +x conf$$.file
10787if test -x conf$$.file >/dev/null 2>&1; then
10788 ac_executable_p="test -x"
10789else
10790 ac_executable_p="test -f"
10791fi
10792rm -f conf$$.file
10793
10794# Extract the first word of "msgfmt", so it can be a program name with args.
10795set dummy msgfmt; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010797$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010798if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010799 $as_echo_n "(cached) " >&6
10800else
10801 case "$MSGFMT" in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10804 ;;
10805 *)
10806 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10807 for ac_dir in $PATH; do
10808 IFS="$ac_save_IFS"
10809 test -z "$ac_dir" && ac_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10812 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10813 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10814 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10815 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10816 break 2
10817 fi
10818 fi
10819 done
10820 done
10821 IFS="$ac_save_IFS"
10822 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10823 ;;
10824esac
10825fi
10826MSGFMT="$ac_cv_path_MSGFMT"
10827if test "$MSGFMT" != ":"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010829$as_echo "$MSGFMT" >&6; }
10830else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010832$as_echo "no" >&6; }
10833fi
10834
10835 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10836set dummy gmsgfmt; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010838$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010839if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010840 $as_echo_n "(cached) " >&6
10841else
10842 case $GMSGFMT in
10843 [\\/]* | ?:[\\/]*)
10844 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10845 ;;
10846 *)
10847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10848for as_dir in $PATH
10849do
10850 IFS=$as_save_IFS
10851 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010852 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010010853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10854 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010856 break 2
10857 fi
10858done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010859 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010010860IFS=$as_save_IFS
10861
10862 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10863 ;;
10864esac
10865fi
10866GMSGFMT=$ac_cv_path_GMSGFMT
10867if test -n "$GMSGFMT"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010869$as_echo "$GMSGFMT" >&6; }
10870else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010872$as_echo "no" >&6; }
10873fi
10874
10875
10876
10877 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10878 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10879 *) MSGFMT_015=$MSGFMT ;;
10880 esac
10881
10882 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10883 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10884 *) GMSGFMT_015=$GMSGFMT ;;
10885 esac
10886
10887
10888
10889# Prepare PATH_SEPARATOR.
10890# The user is always right.
10891if test "${PATH_SEPARATOR+set}" != set; then
10892 echo "#! /bin/sh" >conf$$.sh
10893 echo "exit 0" >>conf$$.sh
10894 chmod +x conf$$.sh
10895 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10896 PATH_SEPARATOR=';'
10897 else
10898 PATH_SEPARATOR=:
10899 fi
10900 rm -f conf$$.sh
10901fi
10902
10903# Find out how to test for executable files. Don't use a zero-byte file,
10904# as systems may use methods other than mode bits to determine executability.
10905cat >conf$$.file <<_ASEOF
10906#! /bin/sh
10907exit 0
10908_ASEOF
10909chmod +x conf$$.file
10910if test -x conf$$.file >/dev/null 2>&1; then
10911 ac_executable_p="test -x"
10912else
10913 ac_executable_p="test -f"
10914fi
10915rm -f conf$$.file
10916
10917# Extract the first word of "xgettext", so it can be a program name with args.
10918set dummy xgettext; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010920$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010921if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010922 $as_echo_n "(cached) " >&6
10923else
10924 case "$XGETTEXT" in
10925 [\\/]* | ?:[\\/]*)
10926 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10927 ;;
10928 *)
10929 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10930 for ac_dir in $PATH; do
10931 IFS="$ac_save_IFS"
10932 test -z "$ac_dir" && ac_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10935 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10936 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10937 (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
10938 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10939 break 2
10940 fi
10941 fi
10942 done
10943 done
10944 IFS="$ac_save_IFS"
10945 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10946 ;;
10947esac
10948fi
10949XGETTEXT="$ac_cv_path_XGETTEXT"
10950if test "$XGETTEXT" != ":"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010952$as_echo "$XGETTEXT" >&6; }
10953else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010955$as_echo "no" >&6; }
10956fi
10957
10958 rm -f messages.po
10959
10960 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10961 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10962 *) XGETTEXT_015=$XGETTEXT ;;
10963 esac
10964
10965
10966
10967# Prepare PATH_SEPARATOR.
10968# The user is always right.
10969if test "${PATH_SEPARATOR+set}" != set; then
10970 echo "#! /bin/sh" >conf$$.sh
10971 echo "exit 0" >>conf$$.sh
10972 chmod +x conf$$.sh
10973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10974 PATH_SEPARATOR=';'
10975 else
10976 PATH_SEPARATOR=:
10977 fi
10978 rm -f conf$$.sh
10979fi
10980
10981# Find out how to test for executable files. Don't use a zero-byte file,
10982# as systems may use methods other than mode bits to determine executability.
10983cat >conf$$.file <<_ASEOF
10984#! /bin/sh
10985exit 0
10986_ASEOF
10987chmod +x conf$$.file
10988if test -x conf$$.file >/dev/null 2>&1; then
10989 ac_executable_p="test -x"
10990else
10991 ac_executable_p="test -f"
10992fi
10993rm -f conf$$.file
10994
10995# Extract the first word of "msgmerge", so it can be a program name with args.
10996set dummy msgmerge; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010998$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010010999if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011000 $as_echo_n "(cached) " >&6
11001else
11002 case "$MSGMERGE" in
11003 [\\/]* | ?:[\\/]*)
11004 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11005 ;;
11006 *)
11007 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11008 for ac_dir in $PATH; do
11009 IFS="$ac_save_IFS"
11010 test -z "$ac_dir" && ac_dir=.
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11013 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11014 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11015 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11016 break 2
11017 fi
11018 fi
11019 done
11020 done
11021 IFS="$ac_save_IFS"
11022 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11023 ;;
11024esac
11025fi
11026MSGMERGE="$ac_cv_path_MSGMERGE"
11027if test "$MSGMERGE" != ":"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011029$as_echo "$MSGMERGE" >&6; }
11030else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011032$as_echo "no" >&6; }
11033fi
11034
11035
11036 test -n "$localedir" || localedir='${datadir}/locale'
11037
11038
11039 ac_config_commands="$ac_config_commands po-directories"
11040
11041
11042
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011044$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011045if test "${ac_cv_gnu_library_2+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011046 $as_echo_n "(cached) " >&6
11047else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011049/* end confdefs.h. */
11050
11051#include <features.h>
11052#ifdef __GNU_LIBRARY__
11053 #if (__GLIBC__ >= 2)
11054 Lucky GNU user
11055 #endif
11056#endif
11057
11058_ACEOF
11059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011060 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011061 ac_cv_gnu_library_2=yes
11062else
11063 ac_cv_gnu_library_2=no
11064fi
11065rm -f conftest*
11066
11067
11068
11069fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011071$as_echo "$ac_cv_gnu_library_2" >&6; }
11072
11073 GLIBC2="$ac_cv_gnu_library_2"
11074
11075
11076if test -n "$ac_tool_prefix"; then
11077 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11078set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011080$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011081if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011082 $as_echo_n "(cached) " >&6
11083else
11084 if test -n "$RANLIB"; then
11085 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11086else
11087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088for as_dir in $PATH
11089do
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011092 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11094 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011096 break 2
11097 fi
11098done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011099 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011100IFS=$as_save_IFS
11101
11102fi
11103fi
11104RANLIB=$ac_cv_prog_RANLIB
11105if test -n "$RANLIB"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011107$as_echo "$RANLIB" >&6; }
11108else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011110$as_echo "no" >&6; }
11111fi
11112
11113
11114fi
11115if test -z "$ac_cv_prog_RANLIB"; then
11116 ac_ct_RANLIB=$RANLIB
11117 # Extract the first word of "ranlib", so it can be a program name with args.
11118set dummy ranlib; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011120$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011121if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011122 $as_echo_n "(cached) " >&6
11123else
11124 if test -n "$ac_ct_RANLIB"; then
11125 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11126else
11127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128for as_dir in $PATH
11129do
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011132 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011136 break 2
11137 fi
11138done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011139 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011140IFS=$as_save_IFS
11141
11142fi
11143fi
11144ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11145if test -n "$ac_ct_RANLIB"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011147$as_echo "$ac_ct_RANLIB" >&6; }
11148else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011150$as_echo "no" >&6; }
11151fi
11152
11153 if test "x$ac_ct_RANLIB" = x; then
11154 RANLIB=":"
11155 else
11156 case $cross_compiling:$ac_tool_warned in
11157yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11160ac_tool_warned=yes ;;
11161esac
11162 RANLIB=$ac_ct_RANLIB
11163 fi
11164else
11165 RANLIB="$ac_cv_prog_RANLIB"
11166fi
11167
11168
11169
11170 CFLAG_VISIBILITY=
11171 HAVE_VISIBILITY=0
11172 if test -n "$GCC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011174$as_echo_n "checking for simple visibility declarations... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011175 if test "${gl_cv_cc_visibility+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011176 $as_echo_n "(cached) " >&6
11177else
11178
11179 gl_save_CFLAGS="$CFLAGS"
11180 CFLAGS="$CFLAGS -fvisibility=hidden"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011182/* end confdefs.h. */
11183extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11184 extern __attribute__((__visibility__("default"))) int exportedvar;
11185 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11186 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11187int
11188main ()
11189{
11190
11191 ;
11192 return 0;
11193}
11194_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011195if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011196 gl_cv_cc_visibility=yes
11197else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011198 gl_cv_cc_visibility=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011199fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 CFLAGS="$gl_save_CFLAGS"
11202fi
11203
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011205$as_echo "$gl_cv_cc_visibility" >&6; }
11206 if test $gl_cv_cc_visibility = yes; then
11207 CFLAG_VISIBILITY="-fvisibility=hidden"
11208 HAVE_VISIBILITY=1
11209 fi
11210 fi
11211
11212
11213
11214cat >>confdefs.h <<_ACEOF
11215#define HAVE_VISIBILITY $HAVE_VISIBILITY
11216_ACEOF
11217
11218
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011220$as_echo_n "checking for inline... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011221if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011222 $as_echo_n "(cached) " >&6
11223else
11224 ac_cv_c_inline=no
11225for ac_kw in inline __inline__ __inline; do
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011227/* end confdefs.h. */
11228#ifndef __cplusplus
11229typedef int foo_t;
11230static $ac_kw foo_t static_foo () {return 0; }
11231$ac_kw foo_t foo () {return 0; }
11232#endif
11233
11234_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011235if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011236 ac_cv_c_inline=$ac_kw
Scott James Remnant65f683d2009-07-14 13:05:17 +010011237fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 test "$ac_cv_c_inline" != no && break
11240done
11241
11242fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011244$as_echo "$ac_cv_c_inline" >&6; }
11245
Scott James Remnant65f683d2009-07-14 13:05:17 +010011246case $ac_cv_c_inline in
11247 inline | yes) ;;
11248 *)
11249 case $ac_cv_c_inline in
11250 no) ac_val=;;
11251 *) ac_val=$ac_cv_c_inline;;
11252 esac
11253 cat >>confdefs.h <<_ACEOF
11254#ifndef __cplusplus
11255#define inline $ac_val
11256#endif
11257_ACEOF
11258 ;;
11259esac
11260
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011261ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11262if test "x$ac_cv_type_size_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011263
Scott James Remnant65f683d2009-07-14 13:05:17 +010011264else
11265
11266cat >>confdefs.h <<_ACEOF
11267#define size_t unsigned int
11268_ACEOF
11269
11270fi
11271
11272
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011274$as_echo_n "checking for stdint.h... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011275if test "${gl_cv_header_stdint_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011276 $as_echo_n "(cached) " >&6
11277else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011279/* end confdefs.h. */
11280#include <sys/types.h>
11281#include <stdint.h>
11282int
11283main ()
11284{
11285uintmax_t i = (uintmax_t) -1; return !i;
11286 ;
11287 return 0;
11288}
11289_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011290if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011291 gl_cv_header_stdint_h=yes
11292else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011293 gl_cv_header_stdint_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011294fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011298$as_echo "$gl_cv_header_stdint_h" >&6; }
11299 if test $gl_cv_header_stdint_h = yes; then
11300
11301cat >>confdefs.h <<_ACEOF
11302#define HAVE_STDINT_H_WITH_UINTMAX 1
11303_ACEOF
11304
11305 fi
11306
11307# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11308# for constant arguments. Useless!
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011310$as_echo_n "checking for working alloca.h... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011311if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011312 $as_echo_n "(cached) " >&6
11313else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011315/* end confdefs.h. */
11316#include <alloca.h>
11317int
11318main ()
11319{
11320char *p = (char *) alloca (2 * sizeof (int));
11321 if (p) return 0;
11322 ;
11323 return 0;
11324}
11325_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011326if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011327 ac_cv_working_alloca_h=yes
11328else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011329 ac_cv_working_alloca_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011330fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011331rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011333fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011335$as_echo "$ac_cv_working_alloca_h" >&6; }
11336if test $ac_cv_working_alloca_h = yes; then
11337
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011338$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011339
11340fi
11341
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011343$as_echo_n "checking for alloca... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011344if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011345 $as_echo_n "(cached) " >&6
11346else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011348/* end confdefs.h. */
11349#ifdef __GNUC__
11350# define alloca __builtin_alloca
11351#else
11352# ifdef _MSC_VER
11353# include <malloc.h>
11354# define alloca _alloca
11355# else
11356# ifdef HAVE_ALLOCA_H
11357# include <alloca.h>
11358# else
11359# ifdef _AIX
11360 #pragma alloca
11361# else
11362# ifndef alloca /* predefined by HP cc +Olibcalls */
11363char *alloca ();
11364# endif
11365# endif
11366# endif
11367# endif
11368#endif
11369
11370int
11371main ()
11372{
11373char *p = (char *) alloca (1);
11374 if (p) return 0;
11375 ;
11376 return 0;
11377}
11378_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011379if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011380 ac_cv_func_alloca_works=yes
11381else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011382 ac_cv_func_alloca_works=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011383fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011384rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011386fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011388$as_echo "$ac_cv_func_alloca_works" >&6; }
11389
11390if test $ac_cv_func_alloca_works = yes; then
11391
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011392$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011393
11394else
11395 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11396# that cause trouble. Some versions do not even contain alloca or
11397# contain a buggy version. If you still want to use their alloca,
11398# use ar to extract alloca.o from them instead of compiling alloca.c.
11399
11400ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11401
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011402$as_echo "#define C_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011403
11404
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011406$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011407if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011408 $as_echo_n "(cached) " >&6
11409else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011411/* end confdefs.h. */
11412#if defined CRAY && ! defined CRAY2
11413webecray
11414#else
11415wenotbecray
11416#endif
11417
11418_ACEOF
11419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011420 $EGREP "webecray" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011421 ac_cv_os_cray=yes
11422else
11423 ac_cv_os_cray=no
11424fi
11425rm -f conftest*
11426
11427fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011429$as_echo "$ac_cv_os_cray" >&6; }
11430if test $ac_cv_os_cray = yes; then
11431 for ac_func in _getb67 GETB67 getb67; do
11432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11434eval as_val=\$$as_ac_var
11435 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011436
11437cat >>confdefs.h <<_ACEOF
11438#define CRAY_STACKSEG_END $ac_func
11439_ACEOF
11440
11441 break
11442fi
11443
11444 done
11445fi
11446
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011448$as_echo_n "checking stack direction for C alloca... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011449if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011450 $as_echo_n "(cached) " >&6
11451else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011452 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011453 ac_cv_c_stack_direction=0
11454else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011456/* end confdefs.h. */
11457$ac_includes_default
11458int
11459find_stack_direction ()
11460{
11461 static char *addr = 0;
11462 auto char dummy;
11463 if (addr == 0)
11464 {
11465 addr = &dummy;
11466 return find_stack_direction ();
11467 }
11468 else
11469 return (&dummy > addr) ? 1 : -1;
11470}
11471
11472int
11473main ()
11474{
11475 return find_stack_direction () < 0;
11476}
11477_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011478if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011479 ac_cv_c_stack_direction=1
11480else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011481 ac_cv_c_stack_direction=-1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011482fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11484 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011485fi
11486
Scott James Remnant65f683d2009-07-14 13:05:17 +010011487fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011489$as_echo "$ac_cv_c_stack_direction" >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010011490cat >>confdefs.h <<_ACEOF
11491#define STACK_DIRECTION $ac_cv_c_stack_direction
11492_ACEOF
11493
11494
11495fi
11496
Scott James Remnant65f683d2009-07-14 13:05:17 +010011497for ac_header in stdlib.h unistd.h
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011498do :
11499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11500ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11501eval as_val=\$$as_ac_Header
11502 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011503 cat >>confdefs.h <<_ACEOF
11504#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11505_ACEOF
11506
11507fi
11508
11509done
11510
Scott James Remnant65f683d2009-07-14 13:05:17 +010011511for ac_func in getpagesize
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011512do :
11513 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11514if test "x$ac_cv_func_getpagesize" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011515 cat >>confdefs.h <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011516#define HAVE_GETPAGESIZE 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011517_ACEOF
11518
11519fi
11520done
11521
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011523$as_echo_n "checking for working mmap... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011524if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011525 $as_echo_n "(cached) " >&6
11526else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011527 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011528 ac_cv_func_mmap_fixed_mapped=no
11529else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011531/* end confdefs.h. */
11532$ac_includes_default
11533/* malloc might have been renamed as rpl_malloc. */
11534#undef malloc
11535
11536/* Thanks to Mike Haertel and Jim Avera for this test.
11537 Here is a matrix of mmap possibilities:
11538 mmap private not fixed
11539 mmap private fixed at somewhere currently unmapped
11540 mmap private fixed at somewhere already mapped
11541 mmap shared not fixed
11542 mmap shared fixed at somewhere currently unmapped
11543 mmap shared fixed at somewhere already mapped
11544 For private mappings, we should verify that changes cannot be read()
11545 back from the file, nor mmap's back from the file at a different
11546 address. (There have been systems where private was not correctly
11547 implemented like the infamous i386 svr4.0, and systems where the
11548 VM page cache was not coherent with the file system buffer cache
11549 like early versions of FreeBSD and possibly contemporary NetBSD.)
11550 For shared mappings, we should conversely verify that changes get
11551 propagated back to all the places they're supposed to be.
11552
11553 Grep wants private fixed already mapped.
11554 The main things grep needs to know about mmap are:
11555 * does it exist and is it safe to write into the mmap'd area
11556 * how to use it (BSD variants) */
11557
11558#include <fcntl.h>
11559#include <sys/mman.h>
11560
11561#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11562char *malloc ();
11563#endif
11564
11565/* This mess was copied from the GNU getpagesize.h. */
11566#ifndef HAVE_GETPAGESIZE
11567/* Assume that all systems that can run configure have sys/param.h. */
11568# ifndef HAVE_SYS_PARAM_H
11569# define HAVE_SYS_PARAM_H 1
11570# endif
11571
11572# ifdef _SC_PAGESIZE
11573# define getpagesize() sysconf(_SC_PAGESIZE)
11574# else /* no _SC_PAGESIZE */
11575# ifdef HAVE_SYS_PARAM_H
11576# include <sys/param.h>
11577# ifdef EXEC_PAGESIZE
11578# define getpagesize() EXEC_PAGESIZE
11579# else /* no EXEC_PAGESIZE */
11580# ifdef NBPG
11581# define getpagesize() NBPG * CLSIZE
11582# ifndef CLSIZE
11583# define CLSIZE 1
11584# endif /* no CLSIZE */
11585# else /* no NBPG */
11586# ifdef NBPC
11587# define getpagesize() NBPC
11588# else /* no NBPC */
11589# ifdef PAGESIZE
11590# define getpagesize() PAGESIZE
11591# endif /* PAGESIZE */
11592# endif /* no NBPC */
11593# endif /* no NBPG */
11594# endif /* no EXEC_PAGESIZE */
11595# else /* no HAVE_SYS_PARAM_H */
11596# define getpagesize() 8192 /* punt totally */
11597# endif /* no HAVE_SYS_PARAM_H */
11598# endif /* no _SC_PAGESIZE */
11599
11600#endif /* no HAVE_GETPAGESIZE */
11601
11602int
11603main ()
11604{
11605 char *data, *data2, *data3;
11606 int i, pagesize;
11607 int fd;
11608
11609 pagesize = getpagesize ();
11610
11611 /* First, make a file with some known garbage in it. */
11612 data = (char *) malloc (pagesize);
11613 if (!data)
11614 return 1;
11615 for (i = 0; i < pagesize; ++i)
11616 *(data + i) = rand ();
11617 umask (0);
11618 fd = creat ("conftest.mmap", 0600);
11619 if (fd < 0)
11620 return 1;
11621 if (write (fd, data, pagesize) != pagesize)
11622 return 1;
11623 close (fd);
11624
11625 /* Next, try to mmap the file at a fixed address which already has
11626 something else allocated at it. If we can, also make sure that
11627 we see the same garbage. */
11628 fd = open ("conftest.mmap", O_RDWR);
11629 if (fd < 0)
11630 return 1;
11631 data2 = (char *) malloc (2 * pagesize);
11632 if (!data2)
11633 return 1;
11634 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11635 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11636 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11637 return 1;
11638 for (i = 0; i < pagesize; ++i)
11639 if (*(data + i) != *(data2 + i))
11640 return 1;
11641
11642 /* Finally, make sure that changes to the mapped area do not
11643 percolate back to the file as seen by read(). (This is a bug on
11644 some variants of i386 svr4.0.) */
11645 for (i = 0; i < pagesize; ++i)
11646 *(data2 + i) = *(data2 + i) + 1;
11647 data3 = (char *) malloc (pagesize);
11648 if (!data3)
11649 return 1;
11650 if (read (fd, data3, pagesize) != pagesize)
11651 return 1;
11652 for (i = 0; i < pagesize; ++i)
11653 if (*(data + i) != *(data3 + i))
11654 return 1;
11655 close (fd);
11656 return 0;
11657}
11658_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011659if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011660 ac_cv_func_mmap_fixed_mapped=yes
11661else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011662 ac_cv_func_mmap_fixed_mapped=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011663fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11665 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011666fi
11667
Scott James Remnant65f683d2009-07-14 13:05:17 +010011668fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011670$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11671if test $ac_cv_func_mmap_fixed_mapped = yes; then
11672
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011673$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011674
11675fi
11676rm -f conftest.mmap
11677
11678
11679
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011681$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011682if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011683 $as_echo_n "(cached) " >&6
11684else
11685
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011686 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011687
11688 # Guess based on the CPU.
11689 case "$host_cpu" in
11690 alpha* | i3456786 | m68k | s390*)
11691 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11692 *)
11693 gt_cv_int_divbyzero_sigfpe="guessing no";;
11694 esac
11695
11696else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011698/* end confdefs.h. */
11699
11700#include <stdlib.h>
11701#include <signal.h>
11702
11703static void
11704#ifdef __cplusplus
11705sigfpe_handler (int sig)
11706#else
11707sigfpe_handler (sig) int sig;
11708#endif
11709{
11710 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11711 exit (sig != SIGFPE);
11712}
11713
11714int x = 1;
11715int y = 0;
11716int z;
11717int nan;
11718
11719int main ()
11720{
11721 signal (SIGFPE, sigfpe_handler);
11722/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11723#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11724 signal (SIGTRAP, sigfpe_handler);
11725#endif
11726/* Linux/SPARC yields signal SIGILL. */
11727#if defined (__sparc__) && defined (__linux__)
11728 signal (SIGILL, sigfpe_handler);
11729#endif
11730
11731 z = x / y;
11732 nan = y / y;
11733 exit (1);
11734}
11735
11736_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011737if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011738 gt_cv_int_divbyzero_sigfpe=yes
11739else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011740 gt_cv_int_divbyzero_sigfpe=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011741fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11743 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011744fi
11745
11746
Scott James Remnant65f683d2009-07-14 13:05:17 +010011747fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011749$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11750 case "$gt_cv_int_divbyzero_sigfpe" in
11751 *yes) value=1;;
11752 *) value=0;;
11753 esac
11754
11755cat >>confdefs.h <<_ACEOF
11756#define INTDIV0_RAISES_SIGFPE $value
11757_ACEOF
11758
11759
11760
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011762$as_echo_n "checking for inttypes.h... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011763if test "${gl_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011764 $as_echo_n "(cached) " >&6
11765else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011767/* end confdefs.h. */
11768#include <sys/types.h>
11769#include <inttypes.h>
11770int
11771main ()
11772{
11773uintmax_t i = (uintmax_t) -1; return !i;
11774 ;
11775 return 0;
11776}
11777_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011778if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011779 gl_cv_header_inttypes_h=yes
11780else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011781 gl_cv_header_inttypes_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011782fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011786$as_echo "$gl_cv_header_inttypes_h" >&6; }
11787 if test $gl_cv_header_inttypes_h = yes; then
11788
11789cat >>confdefs.h <<_ACEOF
11790#define HAVE_INTTYPES_H_WITH_UINTMAX 1
11791_ACEOF
11792
11793 fi
11794
11795
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011797$as_echo_n "checking for unsigned long long int... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011798if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011799 $as_echo_n "(cached) " >&6
11800else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011802/* end confdefs.h. */
11803unsigned long long int ull = 18446744073709551615ULL;
11804 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11805 ? 1 : -1)];
11806 int i = 63;
11807int
11808main ()
11809{
11810unsigned long long int ullmax = 18446744073709551615ull;
11811 return (ull << 63 | ull >> 63 | ull << i | ull >> i
11812 | ullmax / ull | ullmax % ull);
11813 ;
11814 return 0;
11815}
11816_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011817if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011818 ac_cv_type_unsigned_long_long_int=yes
11819else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011820 ac_cv_type_unsigned_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011821fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011822rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011824fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011826$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11827 if test $ac_cv_type_unsigned_long_long_int = yes; then
11828
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011829$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011830
11831 fi
11832
11833
11834
11835 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
11836 if test $ac_cv_type_unsigned_long_long = yes; then
11837
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011838$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011839
11840 fi
11841
11842
11843
11844
11845 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11846
11847 test $ac_cv_type_unsigned_long_long = yes \
11848 && ac_type='unsigned long long' \
11849 || ac_type='unsigned long'
11850
11851cat >>confdefs.h <<_ACEOF
11852#define uintmax_t $ac_type
11853_ACEOF
11854
11855 else
11856
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011857$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011858
11859 fi
11860
11861
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011862 for ac_header in inttypes.h
11863do :
11864 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11865if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011866 cat >>confdefs.h <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011867#define HAVE_INTTYPES_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011868_ACEOF
11869
11870fi
11871
11872done
11873
11874 if test $ac_cv_header_inttypes_h = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011876$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011877if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011878 $as_echo_n "(cached) " >&6
11879else
11880
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011882/* end confdefs.h. */
11883#include <inttypes.h>
11884#ifdef PRId32
11885char *p = PRId32;
11886#endif
11887
11888int
11889main ()
11890{
11891
11892 ;
11893 return 0;
11894}
11895_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011896if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011897 gt_cv_inttypes_pri_broken=no
11898else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011899 gt_cv_inttypes_pri_broken=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010011900fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902
11903fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011905$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11906 fi
11907 if test "$gt_cv_inttypes_pri_broken" = yes; then
11908
11909cat >>confdefs.h <<_ACEOF
11910#define PRI_MACROS_BROKEN 1
11911_ACEOF
11912
11913 PRI_MACROS_BROKEN=1
11914 else
11915 PRI_MACROS_BROKEN=0
11916 fi
11917
11918
11919
11920
11921
11922 # Check whether --enable-threads was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011923if test "${enable_threads+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011924 enableval=$enable_threads; gl_use_threads=$enableval
11925else
11926 case "$host_os" in
11927 osf*) gl_use_threads=no ;;
11928 *) gl_use_threads=yes ;;
11929 esac
11930
11931fi
11932
11933 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
11934 # For using <pthread.h>:
11935 case "$host_os" in
11936 osf*)
11937 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
11938 # groks <pthread.h>. cc also understands the flag -pthread, but
11939 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
11940 # 2. putting a flag into CPPFLAGS that has an effect on the linker
11941 # causes the AC_TRY_LINK test below to succeed unexpectedly,
11942 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
11943 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11944 ;;
11945 esac
11946 # Some systems optimize for single-threaded programs by default, and
11947 # need special flags to disable these optimizations. For example, the
11948 # definition of 'errno' in <errno.h>.
11949 case "$host_os" in
11950 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
11951 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
11952 esac
11953 fi
11954
11955
11956
11957
11958
11959 if test "X$prefix" = "XNONE"; then
11960 acl_final_prefix="$ac_default_prefix"
11961 else
11962 acl_final_prefix="$prefix"
11963 fi
11964 if test "X$exec_prefix" = "XNONE"; then
11965 acl_final_exec_prefix='${prefix}'
11966 else
11967 acl_final_exec_prefix="$exec_prefix"
11968 fi
11969 acl_save_prefix="$prefix"
11970 prefix="$acl_final_prefix"
11971 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11972 prefix="$acl_save_prefix"
11973
11974
11975# Check whether --with-gnu-ld was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011976if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11978else
11979 with_gnu_ld=no
11980fi
11981
11982# Prepare PATH_SEPARATOR.
11983# The user is always right.
11984if test "${PATH_SEPARATOR+set}" != set; then
11985 echo "#! /bin/sh" >conf$$.sh
11986 echo "exit 0" >>conf$$.sh
11987 chmod +x conf$$.sh
11988 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11989 PATH_SEPARATOR=';'
11990 else
11991 PATH_SEPARATOR=:
11992 fi
11993 rm -f conf$$.sh
11994fi
11995ac_prog=ld
11996if test "$GCC" = yes; then
11997 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010011998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011999$as_echo_n "checking for ld used by GCC... " >&6; }
12000 case $host in
12001 *-*-mingw*)
12002 # gcc leaves a trailing carriage return which upsets mingw
12003 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12004 *)
12005 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12006 esac
12007 case $ac_prog in
12008 # Accept absolute paths.
12009 [\\/]* | [A-Za-z]:[\\/]*)
12010 re_direlt='/[^/][^/]*/\.\./'
12011 # Canonicalize the path of ld
12012 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12013 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12014 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12015 done
12016 test -z "$LD" && LD="$ac_prog"
12017 ;;
12018 "")
12019 # If it fails, then pretend we aren't using GCC.
12020 ac_prog=ld
12021 ;;
12022 *)
12023 # If it is relative, then search for the first ld in PATH.
12024 with_gnu_ld=unknown
12025 ;;
12026 esac
12027elif test "$with_gnu_ld" = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012029$as_echo_n "checking for GNU ld... " >&6; }
12030else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012032$as_echo_n "checking for non-GNU ld... " >&6; }
12033fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012034if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012035 $as_echo_n "(cached) " >&6
12036else
12037 if test -z "$LD"; then
12038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12039 for ac_dir in $PATH; do
12040 test -z "$ac_dir" && ac_dir=.
12041 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12042 acl_cv_path_LD="$ac_dir/$ac_prog"
12043 # Check to see if the program is GNU ld. I'd rather use --version,
12044 # but apparently some GNU ld's only accept -v.
12045 # Break only if it was the GNU/non-GNU ld that we prefer.
12046 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12047 *GNU* | *'with BFD'*)
12048 test "$with_gnu_ld" != no && break ;;
12049 *)
12050 test "$with_gnu_ld" != yes && break ;;
12051 esac
12052 fi
12053 done
12054 IFS="$ac_save_ifs"
12055else
12056 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12057fi
12058fi
12059
12060LD="$acl_cv_path_LD"
12061if test -n "$LD"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012063$as_echo "$LD" >&6; }
12064else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012066$as_echo "no" >&6; }
12067fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012068test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012070$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012071if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012072 $as_echo_n "(cached) " >&6
12073else
12074 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12075case `$LD -v 2>&1 </dev/null` in
12076*GNU* | *'with BFD'*)
12077 acl_cv_prog_gnu_ld=yes ;;
12078*)
12079 acl_cv_prog_gnu_ld=no ;;
12080esac
12081fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012083$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12084with_gnu_ld=$acl_cv_prog_gnu_ld
12085
12086
12087
12088
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012090$as_echo_n "checking for shared library run path origin... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012091if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012092 $as_echo_n "(cached) " >&6
12093else
12094
12095 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12096 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12097 . ./conftest.sh
12098 rm -f ./conftest.sh
12099 acl_cv_rpath=done
12100
12101fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012103$as_echo "$acl_cv_rpath" >&6; }
12104 wl="$acl_cv_wl"
12105 libext="$acl_cv_libext"
12106 shlibext="$acl_cv_shlibext"
12107 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12108 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12109 hardcode_direct="$acl_cv_hardcode_direct"
12110 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12111 # Check whether --enable-rpath was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012112if test "${enable_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012113 enableval=$enable_rpath; :
12114else
12115 enable_rpath=yes
12116fi
12117
12118
12119
12120 acl_libdirstem=lib
12121 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12122 if test -n "$searchpath"; then
12123 acl_save_IFS="${IFS= }"; IFS=":"
12124 for searchdir in $searchpath; do
12125 if test -d "$searchdir"; then
12126 case "$searchdir" in
12127 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12128 *) searchdir=`cd "$searchdir" && pwd`
12129 case "$searchdir" in
12130 */lib64 ) acl_libdirstem=lib64 ;;
12131 esac ;;
12132 esac
12133 fi
12134 done
12135 IFS="$acl_save_IFS"
12136 fi
12137
12138
12139
12140 gl_threads_api=none
12141 LIBTHREAD=
12142 LTLIBTHREAD=
12143 LIBMULTITHREAD=
12144 LTLIBMULTITHREAD=
12145 if test "$gl_use_threads" != no; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012147$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12148 gl_have_weak=no
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012150/* end confdefs.h. */
12151extern void xyzzy ();
12152#pragma weak xyzzy
12153int
12154main ()
12155{
12156xyzzy();
12157 ;
12158 return 0;
12159}
12160_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012161if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012162 gl_have_weak=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012163fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012164rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012167$as_echo "$gl_have_weak" >&6; }
12168 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12169 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12170 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012171 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12172if test "x$ac_cv_header_pthread_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012173 gl_have_pthread_h=yes
12174else
12175 gl_have_pthread_h=no
12176fi
12177
12178
12179 if test "$gl_have_pthread_h" = yes; then
12180 # Other possible tests:
12181 # -lpthreads (FSU threads, PCthreads)
12182 # -lgthreads
12183 gl_have_pthread=
12184 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12185 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12186 # the second one only in libpthread, and lock.c needs it.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012188/* end confdefs.h. */
12189#include <pthread.h>
12190int
12191main ()
12192{
12193pthread_mutex_lock((pthread_mutex_t*)0);
12194 pthread_mutexattr_init((pthread_mutexattr_t*)0);
12195 ;
12196 return 0;
12197}
12198_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012199if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012200 gl_have_pthread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012201fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012202rm -f core conftest.err conftest.$ac_objext \
12203 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012204 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12205 # since it is defined as a macro on OSF/1.)
12206 if test -n "$gl_have_pthread"; then
12207 # The program links fine without libpthread. But it may actually
12208 # need to link with libpthread in order to create multiple threads.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012210$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012211if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012212 $as_echo_n "(cached) " >&6
12213else
12214 ac_check_lib_save_LIBS=$LIBS
12215LIBS="-lpthread $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012217/* end confdefs.h. */
12218
12219/* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222#ifdef __cplusplus
12223extern "C"
12224#endif
12225char pthread_kill ();
12226int
12227main ()
12228{
12229return pthread_kill ();
12230 ;
12231 return 0;
12232}
12233_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012234if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012235 ac_cv_lib_pthread_pthread_kill=yes
12236else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012237 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012238fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012239rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012241LIBS=$ac_check_lib_save_LIBS
12242fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012244$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012245if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012246 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12247 # On Solaris and HP-UX, most pthread functions exist also in libc.
12248 # Therefore pthread_in_use() needs to actually try to create a
12249 # thread: pthread_create from libc will fail, whereas
12250 # pthread_create will actually create a thread.
12251 case "$host_os" in
12252 solaris* | hpux*)
12253
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012254$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012255
12256 esac
12257
12258fi
12259
12260 else
12261 # Some library is needed. Try libpthread and libc_r.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012263$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012264if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012265 $as_echo_n "(cached) " >&6
12266else
12267 ac_check_lib_save_LIBS=$LIBS
12268LIBS="-lpthread $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012270/* end confdefs.h. */
12271
12272/* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12275#ifdef __cplusplus
12276extern "C"
12277#endif
12278char pthread_kill ();
12279int
12280main ()
12281{
12282return pthread_kill ();
12283 ;
12284 return 0;
12285}
12286_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012287if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012288 ac_cv_lib_pthread_pthread_kill=yes
12289else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012290 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012291fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012292rm -f core conftest.err conftest.$ac_objext \
12293 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012294LIBS=$ac_check_lib_save_LIBS
12295fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012297$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012298if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012299 gl_have_pthread=yes
12300 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
12301 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12302fi
12303
12304 if test -z "$gl_have_pthread"; then
12305 # For FreeBSD 4.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012307$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012308if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012309 $as_echo_n "(cached) " >&6
12310else
12311 ac_check_lib_save_LIBS=$LIBS
12312LIBS="-lc_r $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012314/* end confdefs.h. */
12315
12316/* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12319#ifdef __cplusplus
12320extern "C"
12321#endif
12322char pthread_kill ();
12323int
12324main ()
12325{
12326return pthread_kill ();
12327 ;
12328 return 0;
12329}
12330_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012331if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012332 ac_cv_lib_c_r_pthread_kill=yes
12333else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012334 ac_cv_lib_c_r_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012335fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012336rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012338LIBS=$ac_check_lib_save_LIBS
12339fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012341$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012342if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012343 gl_have_pthread=yes
12344 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12345 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12346fi
12347
12348 fi
12349 fi
12350 if test -n "$gl_have_pthread"; then
12351 gl_threads_api=posix
12352
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012353$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012354
12355 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12356 if test $gl_have_weak = yes; then
12357
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012358$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012359
12360 LIBTHREAD=
12361 LTLIBTHREAD=
12362 fi
12363 fi
12364 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
12365 # pthread_rwlock_* functions.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012366 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
12367"
12368if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012369
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012370$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012371
12372fi
12373
12374 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012376/* end confdefs.h. */
12377#include <pthread.h>
12378int
12379main ()
12380{
12381#if __FreeBSD__ == 4
12382error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
12383#else
12384int x = (int)PTHREAD_MUTEX_RECURSIVE;
12385return !x;
12386#endif
12387 ;
12388 return 0;
12389}
12390_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012391if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012392
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012393$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012394
12395fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010012396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 fi
12398 fi
12399 fi
12400 if test -z "$gl_have_pthread"; then
12401 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12402 gl_have_solaristhread=
12403 gl_save_LIBS="$LIBS"
12404 LIBS="$LIBS -lthread"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012406/* end confdefs.h. */
12407#include <thread.h>
12408#include <synch.h>
12409int
12410main ()
12411{
12412thr_self();
12413 ;
12414 return 0;
12415}
12416_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012417if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012418 gl_have_solaristhread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012419fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012420rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012422 LIBS="$gl_save_LIBS"
12423 if test -n "$gl_have_solaristhread"; then
12424 gl_threads_api=solaris
12425 LIBTHREAD=-lthread
12426 LTLIBTHREAD=-lthread
12427 LIBMULTITHREAD="$LIBTHREAD"
12428 LTLIBMULTITHREAD="$LTLIBTHREAD"
12429
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012430$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012431
12432 if test $gl_have_weak = yes; then
12433
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012434$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012435
12436 LIBTHREAD=
12437 LTLIBTHREAD=
12438 fi
12439 fi
12440 fi
12441 fi
12442 if test "$gl_use_threads" = pth; then
12443 gl_save_CPPFLAGS="$CPPFLAGS"
12444
12445
12446
12447
12448
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012450$as_echo_n "checking how to link with libpth... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012451if test "${ac_cv_libpth_libs+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012452 $as_echo_n "(cached) " >&6
12453else
12454
12455
12456
12457
12458 use_additional=yes
12459
12460 acl_save_prefix="$prefix"
12461 prefix="$acl_final_prefix"
12462 acl_save_exec_prefix="$exec_prefix"
12463 exec_prefix="$acl_final_exec_prefix"
12464
12465 eval additional_includedir=\"$includedir\"
12466 eval additional_libdir=\"$libdir\"
12467
12468 exec_prefix="$acl_save_exec_prefix"
12469 prefix="$acl_save_prefix"
12470
12471
12472# Check whether --with-libpth-prefix was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012473if test "${with_libpth_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012474 withval=$with_libpth_prefix;
12475 if test "X$withval" = "Xno"; then
12476 use_additional=no
12477 else
12478 if test "X$withval" = "X"; then
12479
12480 acl_save_prefix="$prefix"
12481 prefix="$acl_final_prefix"
12482 acl_save_exec_prefix="$exec_prefix"
12483 exec_prefix="$acl_final_exec_prefix"
12484
12485 eval additional_includedir=\"$includedir\"
12486 eval additional_libdir=\"$libdir\"
12487
12488 exec_prefix="$acl_save_exec_prefix"
12489 prefix="$acl_save_prefix"
12490
12491 else
12492 additional_includedir="$withval/include"
12493 additional_libdir="$withval/$acl_libdirstem"
12494 fi
12495 fi
12496
12497fi
12498
12499 LIBPTH=
12500 LTLIBPTH=
12501 INCPTH=
12502 rpathdirs=
12503 ltrpathdirs=
12504 names_already_handled=
12505 names_next_round='pth '
12506 while test -n "$names_next_round"; do
12507 names_this_round="$names_next_round"
12508 names_next_round=
12509 for name in $names_this_round; do
12510 already_handled=
12511 for n in $names_already_handled; do
12512 if test "$n" = "$name"; then
12513 already_handled=yes
12514 break
12515 fi
12516 done
12517 if test -z "$already_handled"; then
12518 names_already_handled="$names_already_handled $name"
12519 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12520 eval value=\"\$HAVE_LIB$uppername\"
12521 if test -n "$value"; then
12522 if test "$value" = yes; then
12523 eval value=\"\$LIB$uppername\"
12524 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12525 eval value=\"\$LTLIB$uppername\"
12526 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12527 else
12528 :
12529 fi
12530 else
12531 found_dir=
12532 found_la=
12533 found_so=
12534 found_a=
12535 if test $use_additional = yes; then
12536 if test -n "$shlibext" \
12537 && { test -f "$additional_libdir/lib$name.$shlibext" \
12538 || { test "$shlibext" = dll \
12539 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12540 found_dir="$additional_libdir"
12541 if test -f "$additional_libdir/lib$name.$shlibext"; then
12542 found_so="$additional_libdir/lib$name.$shlibext"
12543 else
12544 found_so="$additional_libdir/lib$name.dll.a"
12545 fi
12546 if test -f "$additional_libdir/lib$name.la"; then
12547 found_la="$additional_libdir/lib$name.la"
12548 fi
12549 else
12550 if test -f "$additional_libdir/lib$name.$libext"; then
12551 found_dir="$additional_libdir"
12552 found_a="$additional_libdir/lib$name.$libext"
12553 if test -f "$additional_libdir/lib$name.la"; then
12554 found_la="$additional_libdir/lib$name.la"
12555 fi
12556 fi
12557 fi
12558 fi
12559 if test "X$found_dir" = "X"; then
12560 for x in $LDFLAGS $LTLIBPTH; do
12561
12562 acl_save_prefix="$prefix"
12563 prefix="$acl_final_prefix"
12564 acl_save_exec_prefix="$exec_prefix"
12565 exec_prefix="$acl_final_exec_prefix"
12566 eval x=\"$x\"
12567 exec_prefix="$acl_save_exec_prefix"
12568 prefix="$acl_save_prefix"
12569
12570 case "$x" in
12571 -L*)
12572 dir=`echo "X$x" | sed -e 's/^X-L//'`
12573 if test -n "$shlibext" \
12574 && { test -f "$dir/lib$name.$shlibext" \
12575 || { test "$shlibext" = dll \
12576 && test -f "$dir/lib$name.dll.a"; }; }; then
12577 found_dir="$dir"
12578 if test -f "$dir/lib$name.$shlibext"; then
12579 found_so="$dir/lib$name.$shlibext"
12580 else
12581 found_so="$dir/lib$name.dll.a"
12582 fi
12583 if test -f "$dir/lib$name.la"; then
12584 found_la="$dir/lib$name.la"
12585 fi
12586 else
12587 if test -f "$dir/lib$name.$libext"; then
12588 found_dir="$dir"
12589 found_a="$dir/lib$name.$libext"
12590 if test -f "$dir/lib$name.la"; then
12591 found_la="$dir/lib$name.la"
12592 fi
12593 fi
12594 fi
12595 ;;
12596 esac
12597 if test "X$found_dir" != "X"; then
12598 break
12599 fi
12600 done
12601 fi
12602 if test "X$found_dir" != "X"; then
12603 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12604 if test "X$found_so" != "X"; then
12605 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12606 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12607 else
12608 haveit=
12609 for x in $ltrpathdirs; do
12610 if test "X$x" = "X$found_dir"; then
12611 haveit=yes
12612 break
12613 fi
12614 done
12615 if test -z "$haveit"; then
12616 ltrpathdirs="$ltrpathdirs $found_dir"
12617 fi
12618 if test "$hardcode_direct" = yes; then
12619 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12620 else
12621 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12622 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12623 haveit=
12624 for x in $rpathdirs; do
12625 if test "X$x" = "X$found_dir"; then
12626 haveit=yes
12627 break
12628 fi
12629 done
12630 if test -z "$haveit"; then
12631 rpathdirs="$rpathdirs $found_dir"
12632 fi
12633 else
12634 haveit=
12635 for x in $LDFLAGS $LIBPTH; do
12636
12637 acl_save_prefix="$prefix"
12638 prefix="$acl_final_prefix"
12639 acl_save_exec_prefix="$exec_prefix"
12640 exec_prefix="$acl_final_exec_prefix"
12641 eval x=\"$x\"
12642 exec_prefix="$acl_save_exec_prefix"
12643 prefix="$acl_save_prefix"
12644
12645 if test "X$x" = "X-L$found_dir"; then
12646 haveit=yes
12647 break
12648 fi
12649 done
12650 if test -z "$haveit"; then
12651 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12652 fi
12653 if test "$hardcode_minus_L" != no; then
12654 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12655 else
12656 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12657 fi
12658 fi
12659 fi
12660 fi
12661 else
12662 if test "X$found_a" != "X"; then
12663 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12664 else
12665 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12666 fi
12667 fi
12668 additional_includedir=
12669 case "$found_dir" in
12670 */$acl_libdirstem | */$acl_libdirstem/)
12671 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12672 additional_includedir="$basedir/include"
12673 ;;
12674 esac
12675 if test "X$additional_includedir" != "X"; then
12676 if test "X$additional_includedir" != "X/usr/include"; then
12677 haveit=
12678 if test "X$additional_includedir" = "X/usr/local/include"; then
12679 if test -n "$GCC"; then
12680 case $host_os in
12681 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12682 esac
12683 fi
12684 fi
12685 if test -z "$haveit"; then
12686 for x in $CPPFLAGS $INCPTH; do
12687
12688 acl_save_prefix="$prefix"
12689 prefix="$acl_final_prefix"
12690 acl_save_exec_prefix="$exec_prefix"
12691 exec_prefix="$acl_final_exec_prefix"
12692 eval x=\"$x\"
12693 exec_prefix="$acl_save_exec_prefix"
12694 prefix="$acl_save_prefix"
12695
12696 if test "X$x" = "X-I$additional_includedir"; then
12697 haveit=yes
12698 break
12699 fi
12700 done
12701 if test -z "$haveit"; then
12702 if test -d "$additional_includedir"; then
12703 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12704 fi
12705 fi
12706 fi
12707 fi
12708 fi
12709 if test -n "$found_la"; then
12710 save_libdir="$libdir"
12711 case "$found_la" in
12712 */* | *\\*) . "$found_la" ;;
12713 *) . "./$found_la" ;;
12714 esac
12715 libdir="$save_libdir"
12716 for dep in $dependency_libs; do
12717 case "$dep" in
12718 -L*)
12719 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12720 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12721 haveit=
12722 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12723 if test -n "$GCC"; then
12724 case $host_os in
12725 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12726 esac
12727 fi
12728 fi
12729 if test -z "$haveit"; then
12730 haveit=
12731 for x in $LDFLAGS $LIBPTH; do
12732
12733 acl_save_prefix="$prefix"
12734 prefix="$acl_final_prefix"
12735 acl_save_exec_prefix="$exec_prefix"
12736 exec_prefix="$acl_final_exec_prefix"
12737 eval x=\"$x\"
12738 exec_prefix="$acl_save_exec_prefix"
12739 prefix="$acl_save_prefix"
12740
12741 if test "X$x" = "X-L$additional_libdir"; then
12742 haveit=yes
12743 break
12744 fi
12745 done
12746 if test -z "$haveit"; then
12747 if test -d "$additional_libdir"; then
12748 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12749 fi
12750 fi
12751 haveit=
12752 for x in $LDFLAGS $LTLIBPTH; do
12753
12754 acl_save_prefix="$prefix"
12755 prefix="$acl_final_prefix"
12756 acl_save_exec_prefix="$exec_prefix"
12757 exec_prefix="$acl_final_exec_prefix"
12758 eval x=\"$x\"
12759 exec_prefix="$acl_save_exec_prefix"
12760 prefix="$acl_save_prefix"
12761
12762 if test "X$x" = "X-L$additional_libdir"; then
12763 haveit=yes
12764 break
12765 fi
12766 done
12767 if test -z "$haveit"; then
12768 if test -d "$additional_libdir"; then
12769 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12770 fi
12771 fi
12772 fi
12773 fi
12774 ;;
12775 -R*)
12776 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12777 if test "$enable_rpath" != no; then
12778 haveit=
12779 for x in $rpathdirs; do
12780 if test "X$x" = "X$dir"; then
12781 haveit=yes
12782 break
12783 fi
12784 done
12785 if test -z "$haveit"; then
12786 rpathdirs="$rpathdirs $dir"
12787 fi
12788 haveit=
12789 for x in $ltrpathdirs; do
12790 if test "X$x" = "X$dir"; then
12791 haveit=yes
12792 break
12793 fi
12794 done
12795 if test -z "$haveit"; then
12796 ltrpathdirs="$ltrpathdirs $dir"
12797 fi
12798 fi
12799 ;;
12800 -l*)
12801 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12802 ;;
12803 *.la)
12804 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12805 ;;
12806 *)
12807 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12808 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12809 ;;
12810 esac
12811 done
12812 fi
12813 else
12814 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12815 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12816 fi
12817 fi
12818 fi
12819 done
12820 done
12821 if test "X$rpathdirs" != "X"; then
12822 if test -n "$hardcode_libdir_separator"; then
12823 alldirs=
12824 for found_dir in $rpathdirs; do
12825 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12826 done
12827 acl_save_libdir="$libdir"
12828 libdir="$alldirs"
12829 eval flag=\"$hardcode_libdir_flag_spec\"
12830 libdir="$acl_save_libdir"
12831 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12832 else
12833 for found_dir in $rpathdirs; do
12834 acl_save_libdir="$libdir"
12835 libdir="$found_dir"
12836 eval flag=\"$hardcode_libdir_flag_spec\"
12837 libdir="$acl_save_libdir"
12838 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12839 done
12840 fi
12841 fi
12842 if test "X$ltrpathdirs" != "X"; then
12843 for found_dir in $ltrpathdirs; do
12844 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12845 done
12846 fi
12847
12848 ac_cv_libpth_libs="$LIBPTH"
12849 ac_cv_libpth_ltlibs="$LTLIBPTH"
12850 ac_cv_libpth_cppflags="$INCPTH"
12851
12852fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012854$as_echo "$ac_cv_libpth_libs" >&6; }
12855 LIBPTH="$ac_cv_libpth_libs"
12856 LTLIBPTH="$ac_cv_libpth_ltlibs"
12857 INCPTH="$ac_cv_libpth_cppflags"
12858
12859 for element in $INCPTH; do
12860 haveit=
12861 for x in $CPPFLAGS; do
12862
12863 acl_save_prefix="$prefix"
12864 prefix="$acl_final_prefix"
12865 acl_save_exec_prefix="$exec_prefix"
12866 exec_prefix="$acl_final_exec_prefix"
12867 eval x=\"$x\"
12868 exec_prefix="$acl_save_exec_prefix"
12869 prefix="$acl_save_prefix"
12870
12871 if test "X$x" = "X$element"; then
12872 haveit=yes
12873 break
12874 fi
12875 done
12876 if test -z "$haveit"; then
12877 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12878 fi
12879 done
12880
12881
12882
12883 HAVE_LIBPTH=yes
12884
12885
12886
12887 gl_have_pth=
12888 gl_save_LIBS="$LIBS"
12889 LIBS="$LIBS -lpth"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012891/* end confdefs.h. */
12892#include <pth.h>
12893int
12894main ()
12895{
12896pth_self();
12897 ;
12898 return 0;
12899}
12900_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012901if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012902 gl_have_pth=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012903fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012904rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012906 LIBS="$gl_save_LIBS"
12907 if test -n "$gl_have_pth"; then
12908 gl_threads_api=pth
12909 LIBTHREAD="$LIBPTH"
12910 LTLIBTHREAD="$LTLIBPTH"
12911 LIBMULTITHREAD="$LIBTHREAD"
12912 LTLIBMULTITHREAD="$LTLIBTHREAD"
12913
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012914$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012915
12916 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12917 if test $gl_have_weak = yes; then
12918
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012919$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012920
12921 LIBTHREAD=
12922 LTLIBTHREAD=
12923 fi
12924 fi
12925 else
12926 CPPFLAGS="$gl_save_CPPFLAGS"
12927 fi
12928 fi
12929 if test -z "$gl_have_pthread"; then
12930 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
12931 if { case "$host_os" in
12932 mingw*) true;;
12933 *) false;;
12934 esac
12935 }; then
12936 gl_threads_api=win32
12937
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012938$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012939
12940 fi
12941 fi
12942 fi
12943 fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012945$as_echo_n "checking for multithread API to use... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012947$as_echo "$gl_threads_api" >&6; }
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967 use_additional=yes
12968
12969 acl_save_prefix="$prefix"
12970 prefix="$acl_final_prefix"
12971 acl_save_exec_prefix="$exec_prefix"
12972 exec_prefix="$acl_final_exec_prefix"
12973
12974 eval additional_includedir=\"$includedir\"
12975 eval additional_libdir=\"$libdir\"
12976
12977 exec_prefix="$acl_save_exec_prefix"
12978 prefix="$acl_save_prefix"
12979
12980
12981# Check whether --with-libiconv-prefix was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010012982if test "${with_libiconv_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012983 withval=$with_libiconv_prefix;
12984 if test "X$withval" = "Xno"; then
12985 use_additional=no
12986 else
12987 if test "X$withval" = "X"; then
12988
12989 acl_save_prefix="$prefix"
12990 prefix="$acl_final_prefix"
12991 acl_save_exec_prefix="$exec_prefix"
12992 exec_prefix="$acl_final_exec_prefix"
12993
12994 eval additional_includedir=\"$includedir\"
12995 eval additional_libdir=\"$libdir\"
12996
12997 exec_prefix="$acl_save_exec_prefix"
12998 prefix="$acl_save_prefix"
12999
13000 else
13001 additional_includedir="$withval/include"
13002 additional_libdir="$withval/$acl_libdirstem"
13003 fi
13004 fi
13005
13006fi
13007
13008 LIBICONV=
13009 LTLIBICONV=
13010 INCICONV=
13011 rpathdirs=
13012 ltrpathdirs=
13013 names_already_handled=
13014 names_next_round='iconv '
13015 while test -n "$names_next_round"; do
13016 names_this_round="$names_next_round"
13017 names_next_round=
13018 for name in $names_this_round; do
13019 already_handled=
13020 for n in $names_already_handled; do
13021 if test "$n" = "$name"; then
13022 already_handled=yes
13023 break
13024 fi
13025 done
13026 if test -z "$already_handled"; then
13027 names_already_handled="$names_already_handled $name"
13028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13029 eval value=\"\$HAVE_LIB$uppername\"
13030 if test -n "$value"; then
13031 if test "$value" = yes; then
13032 eval value=\"\$LIB$uppername\"
13033 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13034 eval value=\"\$LTLIB$uppername\"
13035 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13036 else
13037 :
13038 fi
13039 else
13040 found_dir=
13041 found_la=
13042 found_so=
13043 found_a=
13044 if test $use_additional = yes; then
13045 if test -n "$shlibext" \
13046 && { test -f "$additional_libdir/lib$name.$shlibext" \
13047 || { test "$shlibext" = dll \
13048 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13049 found_dir="$additional_libdir"
13050 if test -f "$additional_libdir/lib$name.$shlibext"; then
13051 found_so="$additional_libdir/lib$name.$shlibext"
13052 else
13053 found_so="$additional_libdir/lib$name.dll.a"
13054 fi
13055 if test -f "$additional_libdir/lib$name.la"; then
13056 found_la="$additional_libdir/lib$name.la"
13057 fi
13058 else
13059 if test -f "$additional_libdir/lib$name.$libext"; then
13060 found_dir="$additional_libdir"
13061 found_a="$additional_libdir/lib$name.$libext"
13062 if test -f "$additional_libdir/lib$name.la"; then
13063 found_la="$additional_libdir/lib$name.la"
13064 fi
13065 fi
13066 fi
13067 fi
13068 if test "X$found_dir" = "X"; then
13069 for x in $LDFLAGS $LTLIBICONV; do
13070
13071 acl_save_prefix="$prefix"
13072 prefix="$acl_final_prefix"
13073 acl_save_exec_prefix="$exec_prefix"
13074 exec_prefix="$acl_final_exec_prefix"
13075 eval x=\"$x\"
13076 exec_prefix="$acl_save_exec_prefix"
13077 prefix="$acl_save_prefix"
13078
13079 case "$x" in
13080 -L*)
13081 dir=`echo "X$x" | sed -e 's/^X-L//'`
13082 if test -n "$shlibext" \
13083 && { test -f "$dir/lib$name.$shlibext" \
13084 || { test "$shlibext" = dll \
13085 && test -f "$dir/lib$name.dll.a"; }; }; then
13086 found_dir="$dir"
13087 if test -f "$dir/lib$name.$shlibext"; then
13088 found_so="$dir/lib$name.$shlibext"
13089 else
13090 found_so="$dir/lib$name.dll.a"
13091 fi
13092 if test -f "$dir/lib$name.la"; then
13093 found_la="$dir/lib$name.la"
13094 fi
13095 else
13096 if test -f "$dir/lib$name.$libext"; then
13097 found_dir="$dir"
13098 found_a="$dir/lib$name.$libext"
13099 if test -f "$dir/lib$name.la"; then
13100 found_la="$dir/lib$name.la"
13101 fi
13102 fi
13103 fi
13104 ;;
13105 esac
13106 if test "X$found_dir" != "X"; then
13107 break
13108 fi
13109 done
13110 fi
13111 if test "X$found_dir" != "X"; then
13112 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13113 if test "X$found_so" != "X"; then
13114 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13115 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13116 else
13117 haveit=
13118 for x in $ltrpathdirs; do
13119 if test "X$x" = "X$found_dir"; then
13120 haveit=yes
13121 break
13122 fi
13123 done
13124 if test -z "$haveit"; then
13125 ltrpathdirs="$ltrpathdirs $found_dir"
13126 fi
13127 if test "$hardcode_direct" = yes; then
13128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13129 else
13130 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13131 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13132 haveit=
13133 for x in $rpathdirs; do
13134 if test "X$x" = "X$found_dir"; then
13135 haveit=yes
13136 break
13137 fi
13138 done
13139 if test -z "$haveit"; then
13140 rpathdirs="$rpathdirs $found_dir"
13141 fi
13142 else
13143 haveit=
13144 for x in $LDFLAGS $LIBICONV; do
13145
13146 acl_save_prefix="$prefix"
13147 prefix="$acl_final_prefix"
13148 acl_save_exec_prefix="$exec_prefix"
13149 exec_prefix="$acl_final_exec_prefix"
13150 eval x=\"$x\"
13151 exec_prefix="$acl_save_exec_prefix"
13152 prefix="$acl_save_prefix"
13153
13154 if test "X$x" = "X-L$found_dir"; then
13155 haveit=yes
13156 break
13157 fi
13158 done
13159 if test -z "$haveit"; then
13160 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13161 fi
13162 if test "$hardcode_minus_L" != no; then
13163 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13164 else
13165 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13166 fi
13167 fi
13168 fi
13169 fi
13170 else
13171 if test "X$found_a" != "X"; then
13172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13173 else
13174 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13175 fi
13176 fi
13177 additional_includedir=
13178 case "$found_dir" in
13179 */$acl_libdirstem | */$acl_libdirstem/)
13180 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13181 additional_includedir="$basedir/include"
13182 ;;
13183 esac
13184 if test "X$additional_includedir" != "X"; then
13185 if test "X$additional_includedir" != "X/usr/include"; then
13186 haveit=
13187 if test "X$additional_includedir" = "X/usr/local/include"; then
13188 if test -n "$GCC"; then
13189 case $host_os in
13190 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13191 esac
13192 fi
13193 fi
13194 if test -z "$haveit"; then
13195 for x in $CPPFLAGS $INCICONV; do
13196
13197 acl_save_prefix="$prefix"
13198 prefix="$acl_final_prefix"
13199 acl_save_exec_prefix="$exec_prefix"
13200 exec_prefix="$acl_final_exec_prefix"
13201 eval x=\"$x\"
13202 exec_prefix="$acl_save_exec_prefix"
13203 prefix="$acl_save_prefix"
13204
13205 if test "X$x" = "X-I$additional_includedir"; then
13206 haveit=yes
13207 break
13208 fi
13209 done
13210 if test -z "$haveit"; then
13211 if test -d "$additional_includedir"; then
13212 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13213 fi
13214 fi
13215 fi
13216 fi
13217 fi
13218 if test -n "$found_la"; then
13219 save_libdir="$libdir"
13220 case "$found_la" in
13221 */* | *\\*) . "$found_la" ;;
13222 *) . "./$found_la" ;;
13223 esac
13224 libdir="$save_libdir"
13225 for dep in $dependency_libs; do
13226 case "$dep" in
13227 -L*)
13228 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13229 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13230 haveit=
13231 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13232 if test -n "$GCC"; then
13233 case $host_os in
13234 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13235 esac
13236 fi
13237 fi
13238 if test -z "$haveit"; then
13239 haveit=
13240 for x in $LDFLAGS $LIBICONV; do
13241
13242 acl_save_prefix="$prefix"
13243 prefix="$acl_final_prefix"
13244 acl_save_exec_prefix="$exec_prefix"
13245 exec_prefix="$acl_final_exec_prefix"
13246 eval x=\"$x\"
13247 exec_prefix="$acl_save_exec_prefix"
13248 prefix="$acl_save_prefix"
13249
13250 if test "X$x" = "X-L$additional_libdir"; then
13251 haveit=yes
13252 break
13253 fi
13254 done
13255 if test -z "$haveit"; then
13256 if test -d "$additional_libdir"; then
13257 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13258 fi
13259 fi
13260 haveit=
13261 for x in $LDFLAGS $LTLIBICONV; do
13262
13263 acl_save_prefix="$prefix"
13264 prefix="$acl_final_prefix"
13265 acl_save_exec_prefix="$exec_prefix"
13266 exec_prefix="$acl_final_exec_prefix"
13267 eval x=\"$x\"
13268 exec_prefix="$acl_save_exec_prefix"
13269 prefix="$acl_save_prefix"
13270
13271 if test "X$x" = "X-L$additional_libdir"; then
13272 haveit=yes
13273 break
13274 fi
13275 done
13276 if test -z "$haveit"; then
13277 if test -d "$additional_libdir"; then
13278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13279 fi
13280 fi
13281 fi
13282 fi
13283 ;;
13284 -R*)
13285 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13286 if test "$enable_rpath" != no; then
13287 haveit=
13288 for x in $rpathdirs; do
13289 if test "X$x" = "X$dir"; then
13290 haveit=yes
13291 break
13292 fi
13293 done
13294 if test -z "$haveit"; then
13295 rpathdirs="$rpathdirs $dir"
13296 fi
13297 haveit=
13298 for x in $ltrpathdirs; do
13299 if test "X$x" = "X$dir"; then
13300 haveit=yes
13301 break
13302 fi
13303 done
13304 if test -z "$haveit"; then
13305 ltrpathdirs="$ltrpathdirs $dir"
13306 fi
13307 fi
13308 ;;
13309 -l*)
13310 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13311 ;;
13312 *.la)
13313 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13314 ;;
13315 *)
13316 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13317 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13318 ;;
13319 esac
13320 done
13321 fi
13322 else
13323 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13324 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13325 fi
13326 fi
13327 fi
13328 done
13329 done
13330 if test "X$rpathdirs" != "X"; then
13331 if test -n "$hardcode_libdir_separator"; then
13332 alldirs=
13333 for found_dir in $rpathdirs; do
13334 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13335 done
13336 acl_save_libdir="$libdir"
13337 libdir="$alldirs"
13338 eval flag=\"$hardcode_libdir_flag_spec\"
13339 libdir="$acl_save_libdir"
13340 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13341 else
13342 for found_dir in $rpathdirs; do
13343 acl_save_libdir="$libdir"
13344 libdir="$found_dir"
13345 eval flag=\"$hardcode_libdir_flag_spec\"
13346 libdir="$acl_save_libdir"
13347 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13348 done
13349 fi
13350 fi
13351 if test "X$ltrpathdirs" != "X"; then
13352 for found_dir in $ltrpathdirs; do
13353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13354 done
13355 fi
13356
13357
13358
13359
13360
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013362/* end confdefs.h. */
13363int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13364int
13365main ()
13366{
13367
13368 ;
13369 return 0;
13370}
13371_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013372if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013373
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013374$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013375
13376fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013377rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013379
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013380 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
13381do :
13382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13383ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13384eval as_val=\$$as_ac_Header
13385 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013386 cat >>confdefs.h <<_ACEOF
13387#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13388_ACEOF
13389
13390fi
13391
13392done
13393
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013394 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
Scott James Remnant65f683d2009-07-14 13:05:17 +010013395 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
13396 argz_next __fsetlocking
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013397do :
13398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13399ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13400eval as_val=\$$as_ac_var
13401 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013402 cat >>confdefs.h <<_ACEOF
13403#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13404_ACEOF
13405
13406fi
13407done
13408
13409
13410
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013412$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013413if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013414 $as_echo_n "(cached) " >&6
13415else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013417/* end confdefs.h. */
13418#include <stdio.h>
13419int
13420main ()
13421{
13422
13423#ifndef feof_unlocked
13424 char *p = (char *) feof_unlocked;
13425#endif
13426
13427 ;
13428 return 0;
13429}
13430_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013431if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013432 ac_cv_have_decl_feof_unlocked=yes
13433else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013434 ac_cv_have_decl_feof_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013435fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013439$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
13440 if test $ac_cv_have_decl_feof_unlocked = yes; then
13441 gt_value=1
13442 else
13443 gt_value=0
13444 fi
13445
13446cat >>confdefs.h <<_ACEOF
13447#define HAVE_DECL_FEOF_UNLOCKED $gt_value
13448_ACEOF
13449
13450
13451
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013453$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013454if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013455 $as_echo_n "(cached) " >&6
13456else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013458/* end confdefs.h. */
13459#include <stdio.h>
13460int
13461main ()
13462{
13463
13464#ifndef fgets_unlocked
13465 char *p = (char *) fgets_unlocked;
13466#endif
13467
13468 ;
13469 return 0;
13470}
13471_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013472if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013473 ac_cv_have_decl_fgets_unlocked=yes
13474else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013475 ac_cv_have_decl_fgets_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013476fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13478fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013480$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
13481 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13482 gt_value=1
13483 else
13484 gt_value=0
13485 fi
13486
13487cat >>confdefs.h <<_ACEOF
13488#define HAVE_DECL_FGETS_UNLOCKED $gt_value
13489_ACEOF
13490
13491
13492
13493
13494
13495
13496
13497
13498 am_save_CPPFLAGS="$CPPFLAGS"
13499
13500 for element in $INCICONV; do
13501 haveit=
13502 for x in $CPPFLAGS; do
13503
13504 acl_save_prefix="$prefix"
13505 prefix="$acl_final_prefix"
13506 acl_save_exec_prefix="$exec_prefix"
13507 exec_prefix="$acl_final_exec_prefix"
13508 eval x=\"$x\"
13509 exec_prefix="$acl_save_exec_prefix"
13510 prefix="$acl_save_prefix"
13511
13512 if test "X$x" = "X$element"; then
13513 haveit=yes
13514 break
13515 fi
13516 done
13517 if test -z "$haveit"; then
13518 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13519 fi
13520 done
13521
13522
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013524$as_echo_n "checking for iconv... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013525if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013526 $as_echo_n "(cached) " >&6
13527else
13528
13529 am_cv_func_iconv="no, consider installing GNU libiconv"
13530 am_cv_lib_iconv=no
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013532/* end confdefs.h. */
13533#include <stdlib.h>
13534#include <iconv.h>
13535int
13536main ()
13537{
13538iconv_t cd = iconv_open("","");
13539 iconv(cd,NULL,NULL,NULL,NULL);
13540 iconv_close(cd);
13541 ;
13542 return 0;
13543}
13544_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013545if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013546 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013547fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013548rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013550 if test "$am_cv_func_iconv" != yes; then
13551 am_save_LIBS="$LIBS"
13552 LIBS="$LIBS $LIBICONV"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013554/* end confdefs.h. */
13555#include <stdlib.h>
13556#include <iconv.h>
13557int
13558main ()
13559{
13560iconv_t cd = iconv_open("","");
13561 iconv(cd,NULL,NULL,NULL,NULL);
13562 iconv_close(cd);
13563 ;
13564 return 0;
13565}
13566_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013567if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013568 am_cv_lib_iconv=yes
13569 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013570fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013571rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013573 LIBS="$am_save_LIBS"
13574 fi
13575
13576fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013578$as_echo "$am_cv_func_iconv" >&6; }
13579 if test "$am_cv_func_iconv" = yes; then
13580
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013581$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013582
13583 fi
13584 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013586$as_echo_n "checking how to link with libiconv... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013588$as_echo "$LIBICONV" >&6; }
13589 else
13590 CPPFLAGS="$am_save_CPPFLAGS"
13591 LIBICONV=
13592 LTLIBICONV=
13593 fi
13594
13595
13596
13597 if test "$am_cv_func_iconv" = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013599$as_echo_n "checking for iconv declaration... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013600 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013601 $as_echo_n "(cached) " >&6
13602else
13603
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013605/* end confdefs.h. */
13606
13607#include <stdlib.h>
13608#include <iconv.h>
13609extern
13610#ifdef __cplusplus
13611"C"
13612#endif
13613#if defined(__STDC__) || defined(__cplusplus)
13614size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13615#else
13616size_t iconv();
13617#endif
13618
13619int
13620main ()
13621{
13622
13623 ;
13624 return 0;
13625}
13626_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013627if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013628 am_cv_proto_iconv_arg1=""
13629else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013630 am_cv_proto_iconv_arg1="const"
Scott James Remnant65f683d2009-07-14 13:05:17 +010013631fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633 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);"
13634fi
13635
13636 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Scott James Remnant65f683d2009-07-14 13:05:17 +010013638 }$am_cv_proto_iconv" >&5
13639$as_echo "${ac_t:-
13640 }$am_cv_proto_iconv" >&6; }
13641
13642cat >>confdefs.h <<_ACEOF
13643#define ICONV_CONST $am_cv_proto_iconv_arg1
13644_ACEOF
13645
13646 fi
13647
13648
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013650$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013651if test "${gt_cv_nl_locale_name+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013652 $as_echo_n "(cached) " >&6
13653else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013655/* end confdefs.h. */
13656#include <langinfo.h>
13657#include <locale.h>
13658int
13659main ()
13660{
13661char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
13662 ;
13663 return 0;
13664}
13665_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013666if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013667 gt_cv_nl_locale_name=yes
13668else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013669 gt_cv_nl_locale_name=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013670fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013671rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013673
13674fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013676$as_echo "$gt_cv_nl_locale_name" >&6; }
13677 if test $gt_cv_nl_locale_name = yes; then
13678
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013679$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013680
13681 fi
13682
13683 for ac_prog in bison
13684do
13685 # Extract the first word of "$ac_prog", so it can be a program name with args.
13686set dummy $ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013688$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013689if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013690 $as_echo_n "(cached) " >&6
13691else
13692 if test -n "$INTLBISON"; then
13693 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13694else
13695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696for as_dir in $PATH
13697do
13698 IFS=$as_save_IFS
13699 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013700 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010013701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13702 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013704 break 2
13705 fi
13706done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013707 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010013708IFS=$as_save_IFS
13709
13710fi
13711fi
13712INTLBISON=$ac_cv_prog_INTLBISON
13713if test -n "$INTLBISON"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013715$as_echo "$INTLBISON" >&6; }
13716else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013718$as_echo "no" >&6; }
13719fi
13720
13721
13722 test -n "$INTLBISON" && break
13723done
13724
13725 if test -z "$INTLBISON"; then
13726 ac_verc_fail=yes
13727 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013729$as_echo_n "checking version of bison... " >&6; }
13730 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13731 case $ac_prog_version in
13732 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13733 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13734 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13735 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13736 esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013738$as_echo "$ac_prog_version" >&6; }
13739 fi
13740 if test $ac_verc_fail = yes; then
13741 INTLBISON=:
13742 fi
13743
13744
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013746$as_echo_n "checking for long long int... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013747if test "${ac_cv_type_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013748 $as_echo_n "(cached) " >&6
13749else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013751/* end confdefs.h. */
13752long long int ll = 9223372036854775807ll;
13753 long long int nll = -9223372036854775807LL;
13754 typedef int a[((-9223372036854775807LL < 0
13755 && 0 < 9223372036854775807ll)
13756 ? 1 : -1)];
13757 int i = 63;
13758int
13759main ()
13760{
13761long long int llmax = 9223372036854775807ll;
13762 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13763 | (llmax / ll) | (llmax % ll));
13764 ;
13765 return 0;
13766}
13767_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013768if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013769 ac_cv_type_long_long_int=yes
13770else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013771 ac_cv_type_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013772fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013773rm -f core conftest.err conftest.$ac_objext \
13774 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013775fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013777$as_echo "$ac_cv_type_long_long_int" >&6; }
13778 if test $ac_cv_type_long_long_int = yes; then
13779
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013780$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013781
13782 fi
13783
13784
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013786$as_echo_n "checking for long double... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013787if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013788 $as_echo_n "(cached) " >&6
13789else
13790 if test "$GCC" = yes; then
13791 gt_cv_c_long_double=yes
13792 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013794/* end confdefs.h. */
13795
13796 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
13797 long double foo = 0.0;
13798 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13799 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
13800
13801int
13802main ()
13803{
13804
13805 ;
13806 return 0;
13807}
13808_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013809if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013810 gt_cv_c_long_double=yes
13811else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013812 gt_cv_c_long_double=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013813fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 fi
13816fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013818$as_echo "$gt_cv_c_long_double" >&6; }
13819 if test $gt_cv_c_long_double = yes; then
13820
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013821$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013822
13823 fi
13824
13825
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013827$as_echo_n "checking for wchar_t... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013828if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013829 $as_echo_n "(cached) " >&6
13830else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013832/* end confdefs.h. */
13833#include <stddef.h>
13834 wchar_t foo = (wchar_t)'\0';
13835int
13836main ()
13837{
13838
13839 ;
13840 return 0;
13841}
13842_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013843if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013844 gt_cv_c_wchar_t=yes
13845else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013846 gt_cv_c_wchar_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013847fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13849fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013851$as_echo "$gt_cv_c_wchar_t" >&6; }
13852 if test $gt_cv_c_wchar_t = yes; then
13853
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013854$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013855
13856 fi
13857
13858
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013860$as_echo_n "checking for wint_t... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013861if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013862 $as_echo_n "(cached) " >&6
13863else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013865/* end confdefs.h. */
13866#include <wchar.h>
13867 wint_t foo = (wchar_t)'\0';
13868int
13869main ()
13870{
13871
13872 ;
13873 return 0;
13874}
13875_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013876if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013877 gt_cv_c_wint_t=yes
13878else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013879 gt_cv_c_wint_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013880fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013884$as_echo "$gt_cv_c_wint_t" >&6; }
13885 if test $gt_cv_c_wint_t = yes; then
13886
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013887$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013888
13889 fi
13890
13891
13892
13893
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013895$as_echo_n "checking for intmax_t... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013896if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013897 $as_echo_n "(cached) " >&6
13898else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013900/* end confdefs.h. */
13901
13902#include <stddef.h>
13903#include <stdlib.h>
13904#if HAVE_STDINT_H_WITH_UINTMAX
13905#include <stdint.h>
13906#endif
13907#if HAVE_INTTYPES_H_WITH_UINTMAX
13908#include <inttypes.h>
13909#endif
13910
13911int
13912main ()
13913{
13914intmax_t x = -1;
13915 return !x;
13916 ;
13917 return 0;
13918}
13919_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013920if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013921 gt_cv_c_intmax_t=yes
13922else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013923 gt_cv_c_intmax_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013924fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013928$as_echo "$gt_cv_c_intmax_t" >&6; }
13929 if test $gt_cv_c_intmax_t = yes; then
13930
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013931$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013932
13933 fi
13934
13935
13936
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013938$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013939if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013940 $as_echo_n "(cached) " >&6
13941else
13942
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013943 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013944
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013946/* end confdefs.h. */
13947
13948#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
13949 notposix
13950#endif
13951
13952_ACEOF
13953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013954 $EGREP "notposix" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013955 gt_cv_func_printf_posix="guessing no"
13956else
13957 gt_cv_func_printf_posix="guessing yes"
13958fi
13959rm -f conftest*
13960
13961
13962else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013964/* end confdefs.h. */
13965
13966#include <stdio.h>
13967#include <string.h>
13968/* The string "%2$d %1$d", with dollar characters protected from the shell's
13969 dollar expansion (possibly an autoconf bug). */
13970static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
13971static char buf[100];
13972int main ()
13973{
13974 sprintf (buf, format, 33, 55);
13975 return (strcmp (buf, "55 33") != 0);
13976}
13977_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013978if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013979 gt_cv_func_printf_posix=yes
13980else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013981 gt_cv_func_printf_posix=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013982fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13984 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013985fi
13986
13987
Scott James Remnant65f683d2009-07-14 13:05:17 +010013988fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013990$as_echo "$gt_cv_func_printf_posix" >&6; }
13991 case $gt_cv_func_printf_posix in
13992 *yes)
13993
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010013994$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013995
13996 ;;
13997 esac
13998
13999
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014001$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014002if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014003 $as_echo_n "(cached) " >&6
14004else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014006/* end confdefs.h. */
14007
14008#include <features.h>
14009#ifdef __GNU_LIBRARY__
14010 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14011 Lucky GNU user
14012 #endif
14013#endif
14014
14015_ACEOF
14016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014017 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014018 ac_cv_gnu_library_2_1=yes
14019else
14020 ac_cv_gnu_library_2_1=no
14021fi
14022rm -f conftest*
14023
14024
14025
14026fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014028$as_echo "$ac_cv_gnu_library_2_1" >&6; }
14029
14030 GLIBC21="$ac_cv_gnu_library_2_1"
14031
14032
14033
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014034 for ac_header in stdint.h
14035do :
14036 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14037if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014038 cat >>confdefs.h <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014039#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014040_ACEOF
14041
14042fi
14043
14044done
14045
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014047$as_echo_n "checking for SIZE_MAX... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014048 if test "${gl_cv_size_max+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014049 $as_echo_n "(cached) " >&6
14050else
14051
14052 gl_cv_size_max=
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014054/* end confdefs.h. */
14055
14056#include <limits.h>
14057#if HAVE_STDINT_H
14058#include <stdint.h>
14059#endif
14060#ifdef SIZE_MAX
14061Found it
14062#endif
14063
14064_ACEOF
14065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014066 $EGREP "Found it" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014067 gl_cv_size_max=yes
14068fi
14069rm -f conftest*
14070
14071 if test -z "$gl_cv_size_max"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014072 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
14073#include <limits.h>"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014074
Scott James Remnant65f683d2009-07-14 13:05:17 +010014075else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014076 size_t_bits_minus_1=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014077fi
14078
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014079
14080 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14081
Scott James Remnant65f683d2009-07-14 13:05:17 +010014082else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014083 fits_in_uint=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014084fi
14085
Scott James Remnant65f683d2009-07-14 13:05:17 +010014086
14087 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14088 if test $fits_in_uint = 1; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014090/* end confdefs.h. */
14091#include <stddef.h>
14092 extern size_t foo;
14093 extern unsigned long foo;
14094
14095int
14096main ()
14097{
14098
14099 ;
14100 return 0;
14101}
14102_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014103if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014104 fits_in_uint=0
Scott James Remnant65f683d2009-07-14 13:05:17 +010014105fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 fi
14108 if test $fits_in_uint = 1; then
14109 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14110 else
14111 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14112 fi
14113 else
14114 gl_cv_size_max='((size_t)~(size_t)0)'
14115 fi
14116 fi
14117
14118fi
14119
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014121$as_echo "$gl_cv_size_max" >&6; }
14122 if test "$gl_cv_size_max" != yes; then
14123
14124cat >>confdefs.h <<_ACEOF
14125#define SIZE_MAX $gl_cv_size_max
14126_ACEOF
14127
14128 fi
14129
14130
14131
14132
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014133 for ac_header in stdint.h
14134do :
14135 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14136if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014137 cat >>confdefs.h <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014138#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014139_ACEOF
14140
14141fi
14142
14143done
14144
14145
14146
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014148$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014149if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014150 $as_echo_n "(cached) " >&6
14151else
14152 gt_save_LIBS="$LIBS"
14153 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014155/* end confdefs.h. */
14156#include <CoreFoundation/CFPreferences.h>
14157int
14158main ()
14159{
14160CFPreferencesCopyAppValue(NULL, NULL)
14161 ;
14162 return 0;
14163}
14164_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014165if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014166 gt_cv_func_CFPreferencesCopyAppValue=yes
14167else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014168 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014169fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014170rm -f core conftest.err conftest.$ac_objext \
14171 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014172 LIBS="$gt_save_LIBS"
14173fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014175$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14176 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14177
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014178$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014179
14180 fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014182$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014183if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014184 $as_echo_n "(cached) " >&6
14185else
14186 gt_save_LIBS="$LIBS"
14187 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014189/* end confdefs.h. */
14190#include <CoreFoundation/CFLocale.h>
14191int
14192main ()
14193{
14194CFLocaleCopyCurrent();
14195 ;
14196 return 0;
14197}
14198_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014199if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014200 gt_cv_func_CFLocaleCopyCurrent=yes
14201else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014202 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014203fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014204rm -f core conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014206 LIBS="$gt_save_LIBS"
14207fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014209$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14210 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14211
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014212$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014213
14214 fi
14215 INTL_MACOSX_LIBS=
14216 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14217 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14218 fi
14219
14220
14221
14222
14223
14224
14225
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014226 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14227if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014228
Scott James Remnant65f683d2009-07-14 13:05:17 +010014229else
14230
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014231$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014232
14233
14234fi
14235
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014236 for ac_header in stddef.h stdlib.h string.h
14237do :
14238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14239ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14240eval as_val=\$$as_ac_Header
14241 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014242 cat >>confdefs.h <<_ACEOF
14243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14244_ACEOF
14245
14246fi
14247
14248done
14249
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014250 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
14251do :
14252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14253ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14254eval as_val=\$$as_ac_var
14255 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014256 cat >>confdefs.h <<_ACEOF
14257#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14258_ACEOF
14259
14260fi
14261done
14262
14263
14264
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014266$as_echo_n "checking whether _snprintf is declared... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014267if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014268 $as_echo_n "(cached) " >&6
14269else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014271/* end confdefs.h. */
14272#include <stdio.h>
14273int
14274main ()
14275{
14276
14277#ifndef _snprintf
14278 char *p = (char *) _snprintf;
14279#endif
14280
14281 ;
14282 return 0;
14283}
14284_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014285if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014286 ac_cv_have_decl__snprintf=yes
14287else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014288 ac_cv_have_decl__snprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014289fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014293$as_echo "$ac_cv_have_decl__snprintf" >&6; }
14294 if test $ac_cv_have_decl__snprintf = yes; then
14295 gt_value=1
14296 else
14297 gt_value=0
14298 fi
14299
14300cat >>confdefs.h <<_ACEOF
14301#define HAVE_DECL__SNPRINTF $gt_value
14302_ACEOF
14303
14304
14305
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014307$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014308if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014309 $as_echo_n "(cached) " >&6
14310else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014312/* end confdefs.h. */
14313#include <stdio.h>
14314int
14315main ()
14316{
14317
14318#ifndef _snwprintf
14319 char *p = (char *) _snwprintf;
14320#endif
14321
14322 ;
14323 return 0;
14324}
14325_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014326if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014327 ac_cv_have_decl__snwprintf=yes
14328else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014329 ac_cv_have_decl__snwprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014330fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014334$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
14335 if test $ac_cv_have_decl__snwprintf = yes; then
14336 gt_value=1
14337 else
14338 gt_value=0
14339 fi
14340
14341cat >>confdefs.h <<_ACEOF
14342#define HAVE_DECL__SNWPRINTF $gt_value
14343_ACEOF
14344
14345
14346
14347
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014349$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014350if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014351 $as_echo_n "(cached) " >&6
14352else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014354/* end confdefs.h. */
14355#include <stdio.h>
14356int
14357main ()
14358{
14359
14360#ifndef getc_unlocked
14361 char *p = (char *) getc_unlocked;
14362#endif
14363
14364 ;
14365 return 0;
14366}
14367_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014368if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014369 ac_cv_have_decl_getc_unlocked=yes
14370else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014371 ac_cv_have_decl_getc_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014372fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014376$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
14377 if test $ac_cv_have_decl_getc_unlocked = yes; then
14378 gt_value=1
14379 else
14380 gt_value=0
14381 fi
14382
14383cat >>confdefs.h <<_ACEOF
14384#define HAVE_DECL_GETC_UNLOCKED $gt_value
14385_ACEOF
14386
14387
14388
14389 case $gt_cv_func_printf_posix in
14390 *yes) HAVE_POSIX_PRINTF=1 ;;
14391 *) HAVE_POSIX_PRINTF=0 ;;
14392 esac
14393
14394 if test "$ac_cv_func_asprintf" = yes; then
14395 HAVE_ASPRINTF=1
14396 else
14397 HAVE_ASPRINTF=0
14398 fi
14399
14400 if test "$ac_cv_func_snprintf" = yes; then
14401 HAVE_SNPRINTF=1
14402 else
14403 HAVE_SNPRINTF=0
14404 fi
14405
14406 if test "$ac_cv_func_wprintf" = yes; then
14407 HAVE_WPRINTF=1
14408 else
14409 HAVE_WPRINTF=0
14410 fi
14411
14412
14413
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014415$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014416if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014417 $as_echo_n "(cached) " >&6
14418else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014420/* end confdefs.h. */
14421#include <langinfo.h>
14422int
14423main ()
14424{
14425char* cs = nl_langinfo(CODESET); return !cs;
14426 ;
14427 return 0;
14428}
14429_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014430if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014431 am_cv_langinfo_codeset=yes
14432else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014433 am_cv_langinfo_codeset=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014434fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014435rm -f core conftest.err conftest.$ac_objext \
14436 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014437
14438fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014440$as_echo "$am_cv_langinfo_codeset" >&6; }
14441 if test $am_cv_langinfo_codeset = yes; then
14442
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014443$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014444
14445 fi
14446
14447
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014449$as_echo_n "checking for LC_MESSAGES... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014450if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014451 $as_echo_n "(cached) " >&6
14452else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014454/* end confdefs.h. */
14455#include <locale.h>
14456int
14457main ()
14458{
14459return LC_MESSAGES
14460 ;
14461 return 0;
14462}
14463_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014464if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014465 gt_cv_val_LC_MESSAGES=yes
14466else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014467 gt_cv_val_LC_MESSAGES=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014468fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014469rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014471fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014473$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
14474 if test $gt_cv_val_LC_MESSAGES = yes; then
14475
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014476$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014477
14478 fi
14479
14480
14481 if test "$enable_shared" = yes; then
14482 case "$host_os" in
14483 cygwin*) is_woe32dll=yes ;;
14484 *) is_woe32dll=no ;;
14485 esac
14486 else
14487 is_woe32dll=no
14488 fi
14489 WOE32DLL=$is_woe32dll
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014517$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014518if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014519 $as_echo_n "(cached) " >&6
14520else
14521 gt_save_LIBS="$LIBS"
14522 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014524/* end confdefs.h. */
14525#include <CoreFoundation/CFPreferences.h>
14526int
14527main ()
14528{
14529CFPreferencesCopyAppValue(NULL, NULL)
14530 ;
14531 return 0;
14532}
14533_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014534if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014535 gt_cv_func_CFPreferencesCopyAppValue=yes
14536else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014537 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014538fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014539rm -f core conftest.err conftest.$ac_objext \
14540 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014541 LIBS="$gt_save_LIBS"
14542fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014544$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14545 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14546
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014547$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014548
14549 fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014551$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014552if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014553 $as_echo_n "(cached) " >&6
14554else
14555 gt_save_LIBS="$LIBS"
14556 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014558/* end confdefs.h. */
14559#include <CoreFoundation/CFLocale.h>
14560int
14561main ()
14562{
14563CFLocaleCopyCurrent();
14564 ;
14565 return 0;
14566}
14567_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014568if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014569 gt_cv_func_CFLocaleCopyCurrent=yes
14570else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014571 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014572fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014573rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014575 LIBS="$gt_save_LIBS"
14576fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014578$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14579 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14580
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014581$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014582
14583 fi
14584 INTL_MACOSX_LIBS=
14585 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14586 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14587 fi
14588
14589
14590
14591
14592
14593
14594 BUILD_INCLUDED_LIBINTL=no
14595 USE_INCLUDED_LIBINTL=no
14596
14597 LIBINTL=
14598 LTLIBINTL=
14599 POSUB=
14600
14601 case " $gt_needs " in
14602 *" need-formatstring-macros "*) gt_api_version=3 ;;
14603 *" need-ngettext "*) gt_api_version=2 ;;
14604 *) gt_api_version=1 ;;
14605 esac
14606 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14607 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14608
14609 if test "$USE_NLS" = "yes"; then
14610 gt_use_preinstalled_gnugettext=no
14611
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014613$as_echo_n "checking whether included gettext is requested... " >&6; }
14614
14615# Check whether --with-included-gettext was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014616if test "${with_included_gettext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014617 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14618else
14619 nls_cv_force_use_gnu_gettext=no
14620fi
14621
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014623$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14624
14625 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14626 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14627
14628
14629 if test $gt_api_version -ge 3; then
14630 gt_revision_test_code='
14631#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14632#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14633#endif
14634typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14635'
14636 else
14637 gt_revision_test_code=
14638 fi
14639 if test $gt_api_version -ge 2; then
14640 gt_expression_test_code=' + * ngettext ("", "", 0)'
14641 else
14642 gt_expression_test_code=
14643 fi
14644
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014646$as_echo_n "checking for GNU gettext in libc... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014647if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014648 $as_echo_n "(cached) " >&6
14649else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014651/* end confdefs.h. */
14652#include <libintl.h>
14653$gt_revision_test_code
14654extern int _nl_msg_cat_cntr;
14655extern int *_nl_domain_bindings;
14656int
14657main ()
14658{
14659bindtextdomain ("", "");
14660return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14661 ;
14662 return 0;
14663}
14664_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014665if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014666 eval "$gt_func_gnugettext_libc=yes"
14667else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014668 eval "$gt_func_gnugettext_libc=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010014669fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014670rm -f core conftest.err conftest.$ac_objext \
14671 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014672fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014673eval ac_res=\$$gt_func_gnugettext_libc
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014675$as_echo "$ac_res" >&6; }
14676
14677 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14678
14679
14680
14681
14682 use_additional=yes
14683
14684 acl_save_prefix="$prefix"
14685 prefix="$acl_final_prefix"
14686 acl_save_exec_prefix="$exec_prefix"
14687 exec_prefix="$acl_final_exec_prefix"
14688
14689 eval additional_includedir=\"$includedir\"
14690 eval additional_libdir=\"$libdir\"
14691
14692 exec_prefix="$acl_save_exec_prefix"
14693 prefix="$acl_save_prefix"
14694
14695
14696# Check whether --with-libintl-prefix was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010014697if test "${with_libintl_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014698 withval=$with_libintl_prefix;
14699 if test "X$withval" = "Xno"; then
14700 use_additional=no
14701 else
14702 if test "X$withval" = "X"; then
14703
14704 acl_save_prefix="$prefix"
14705 prefix="$acl_final_prefix"
14706 acl_save_exec_prefix="$exec_prefix"
14707 exec_prefix="$acl_final_exec_prefix"
14708
14709 eval additional_includedir=\"$includedir\"
14710 eval additional_libdir=\"$libdir\"
14711
14712 exec_prefix="$acl_save_exec_prefix"
14713 prefix="$acl_save_prefix"
14714
14715 else
14716 additional_includedir="$withval/include"
14717 additional_libdir="$withval/$acl_libdirstem"
14718 fi
14719 fi
14720
14721fi
14722
14723 LIBINTL=
14724 LTLIBINTL=
14725 INCINTL=
14726 rpathdirs=
14727 ltrpathdirs=
14728 names_already_handled=
14729 names_next_round='intl '
14730 while test -n "$names_next_round"; do
14731 names_this_round="$names_next_round"
14732 names_next_round=
14733 for name in $names_this_round; do
14734 already_handled=
14735 for n in $names_already_handled; do
14736 if test "$n" = "$name"; then
14737 already_handled=yes
14738 break
14739 fi
14740 done
14741 if test -z "$already_handled"; then
14742 names_already_handled="$names_already_handled $name"
14743 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14744 eval value=\"\$HAVE_LIB$uppername\"
14745 if test -n "$value"; then
14746 if test "$value" = yes; then
14747 eval value=\"\$LIB$uppername\"
14748 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14749 eval value=\"\$LTLIB$uppername\"
14750 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14751 else
14752 :
14753 fi
14754 else
14755 found_dir=
14756 found_la=
14757 found_so=
14758 found_a=
14759 if test $use_additional = yes; then
14760 if test -n "$shlibext" \
14761 && { test -f "$additional_libdir/lib$name.$shlibext" \
14762 || { test "$shlibext" = dll \
14763 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14764 found_dir="$additional_libdir"
14765 if test -f "$additional_libdir/lib$name.$shlibext"; then
14766 found_so="$additional_libdir/lib$name.$shlibext"
14767 else
14768 found_so="$additional_libdir/lib$name.dll.a"
14769 fi
14770 if test -f "$additional_libdir/lib$name.la"; then
14771 found_la="$additional_libdir/lib$name.la"
14772 fi
14773 else
14774 if test -f "$additional_libdir/lib$name.$libext"; then
14775 found_dir="$additional_libdir"
14776 found_a="$additional_libdir/lib$name.$libext"
14777 if test -f "$additional_libdir/lib$name.la"; then
14778 found_la="$additional_libdir/lib$name.la"
14779 fi
14780 fi
14781 fi
14782 fi
14783 if test "X$found_dir" = "X"; then
14784 for x in $LDFLAGS $LTLIBINTL; do
14785
14786 acl_save_prefix="$prefix"
14787 prefix="$acl_final_prefix"
14788 acl_save_exec_prefix="$exec_prefix"
14789 exec_prefix="$acl_final_exec_prefix"
14790 eval x=\"$x\"
14791 exec_prefix="$acl_save_exec_prefix"
14792 prefix="$acl_save_prefix"
14793
14794 case "$x" in
14795 -L*)
14796 dir=`echo "X$x" | sed -e 's/^X-L//'`
14797 if test -n "$shlibext" \
14798 && { test -f "$dir/lib$name.$shlibext" \
14799 || { test "$shlibext" = dll \
14800 && test -f "$dir/lib$name.dll.a"; }; }; then
14801 found_dir="$dir"
14802 if test -f "$dir/lib$name.$shlibext"; then
14803 found_so="$dir/lib$name.$shlibext"
14804 else
14805 found_so="$dir/lib$name.dll.a"
14806 fi
14807 if test -f "$dir/lib$name.la"; then
14808 found_la="$dir/lib$name.la"
14809 fi
14810 else
14811 if test -f "$dir/lib$name.$libext"; then
14812 found_dir="$dir"
14813 found_a="$dir/lib$name.$libext"
14814 if test -f "$dir/lib$name.la"; then
14815 found_la="$dir/lib$name.la"
14816 fi
14817 fi
14818 fi
14819 ;;
14820 esac
14821 if test "X$found_dir" != "X"; then
14822 break
14823 fi
14824 done
14825 fi
14826 if test "X$found_dir" != "X"; then
14827 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14828 if test "X$found_so" != "X"; then
14829 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14830 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14831 else
14832 haveit=
14833 for x in $ltrpathdirs; do
14834 if test "X$x" = "X$found_dir"; then
14835 haveit=yes
14836 break
14837 fi
14838 done
14839 if test -z "$haveit"; then
14840 ltrpathdirs="$ltrpathdirs $found_dir"
14841 fi
14842 if test "$hardcode_direct" = yes; then
14843 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14844 else
14845 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14846 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14847 haveit=
14848 for x in $rpathdirs; do
14849 if test "X$x" = "X$found_dir"; then
14850 haveit=yes
14851 break
14852 fi
14853 done
14854 if test -z "$haveit"; then
14855 rpathdirs="$rpathdirs $found_dir"
14856 fi
14857 else
14858 haveit=
14859 for x in $LDFLAGS $LIBINTL; do
14860
14861 acl_save_prefix="$prefix"
14862 prefix="$acl_final_prefix"
14863 acl_save_exec_prefix="$exec_prefix"
14864 exec_prefix="$acl_final_exec_prefix"
14865 eval x=\"$x\"
14866 exec_prefix="$acl_save_exec_prefix"
14867 prefix="$acl_save_prefix"
14868
14869 if test "X$x" = "X-L$found_dir"; then
14870 haveit=yes
14871 break
14872 fi
14873 done
14874 if test -z "$haveit"; then
14875 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14876 fi
14877 if test "$hardcode_minus_L" != no; then
14878 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14879 else
14880 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14881 fi
14882 fi
14883 fi
14884 fi
14885 else
14886 if test "X$found_a" != "X"; then
14887 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14888 else
14889 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14890 fi
14891 fi
14892 additional_includedir=
14893 case "$found_dir" in
14894 */$acl_libdirstem | */$acl_libdirstem/)
14895 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14896 additional_includedir="$basedir/include"
14897 ;;
14898 esac
14899 if test "X$additional_includedir" != "X"; then
14900 if test "X$additional_includedir" != "X/usr/include"; then
14901 haveit=
14902 if test "X$additional_includedir" = "X/usr/local/include"; then
14903 if test -n "$GCC"; then
14904 case $host_os in
14905 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14906 esac
14907 fi
14908 fi
14909 if test -z "$haveit"; then
14910 for x in $CPPFLAGS $INCINTL; do
14911
14912 acl_save_prefix="$prefix"
14913 prefix="$acl_final_prefix"
14914 acl_save_exec_prefix="$exec_prefix"
14915 exec_prefix="$acl_final_exec_prefix"
14916 eval x=\"$x\"
14917 exec_prefix="$acl_save_exec_prefix"
14918 prefix="$acl_save_prefix"
14919
14920 if test "X$x" = "X-I$additional_includedir"; then
14921 haveit=yes
14922 break
14923 fi
14924 done
14925 if test -z "$haveit"; then
14926 if test -d "$additional_includedir"; then
14927 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14928 fi
14929 fi
14930 fi
14931 fi
14932 fi
14933 if test -n "$found_la"; then
14934 save_libdir="$libdir"
14935 case "$found_la" in
14936 */* | *\\*) . "$found_la" ;;
14937 *) . "./$found_la" ;;
14938 esac
14939 libdir="$save_libdir"
14940 for dep in $dependency_libs; do
14941 case "$dep" in
14942 -L*)
14943 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14944 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14945 haveit=
14946 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14947 if test -n "$GCC"; then
14948 case $host_os in
14949 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14950 esac
14951 fi
14952 fi
14953 if test -z "$haveit"; then
14954 haveit=
14955 for x in $LDFLAGS $LIBINTL; do
14956
14957 acl_save_prefix="$prefix"
14958 prefix="$acl_final_prefix"
14959 acl_save_exec_prefix="$exec_prefix"
14960 exec_prefix="$acl_final_exec_prefix"
14961 eval x=\"$x\"
14962 exec_prefix="$acl_save_exec_prefix"
14963 prefix="$acl_save_prefix"
14964
14965 if test "X$x" = "X-L$additional_libdir"; then
14966 haveit=yes
14967 break
14968 fi
14969 done
14970 if test -z "$haveit"; then
14971 if test -d "$additional_libdir"; then
14972 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14973 fi
14974 fi
14975 haveit=
14976 for x in $LDFLAGS $LTLIBINTL; do
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 eval x=\"$x\"
14983 exec_prefix="$acl_save_exec_prefix"
14984 prefix="$acl_save_prefix"
14985
14986 if test "X$x" = "X-L$additional_libdir"; then
14987 haveit=yes
14988 break
14989 fi
14990 done
14991 if test -z "$haveit"; then
14992 if test -d "$additional_libdir"; then
14993 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14994 fi
14995 fi
14996 fi
14997 fi
14998 ;;
14999 -R*)
15000 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15001 if test "$enable_rpath" != no; then
15002 haveit=
15003 for x in $rpathdirs; do
15004 if test "X$x" = "X$dir"; then
15005 haveit=yes
15006 break
15007 fi
15008 done
15009 if test -z "$haveit"; then
15010 rpathdirs="$rpathdirs $dir"
15011 fi
15012 haveit=
15013 for x in $ltrpathdirs; do
15014 if test "X$x" = "X$dir"; then
15015 haveit=yes
15016 break
15017 fi
15018 done
15019 if test -z "$haveit"; then
15020 ltrpathdirs="$ltrpathdirs $dir"
15021 fi
15022 fi
15023 ;;
15024 -l*)
15025 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15026 ;;
15027 *.la)
15028 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15029 ;;
15030 *)
15031 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15032 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15033 ;;
15034 esac
15035 done
15036 fi
15037 else
15038 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15039 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15040 fi
15041 fi
15042 fi
15043 done
15044 done
15045 if test "X$rpathdirs" != "X"; then
15046 if test -n "$hardcode_libdir_separator"; then
15047 alldirs=
15048 for found_dir in $rpathdirs; do
15049 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15050 done
15051 acl_save_libdir="$libdir"
15052 libdir="$alldirs"
15053 eval flag=\"$hardcode_libdir_flag_spec\"
15054 libdir="$acl_save_libdir"
15055 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15056 else
15057 for found_dir in $rpathdirs; do
15058 acl_save_libdir="$libdir"
15059 libdir="$found_dir"
15060 eval flag=\"$hardcode_libdir_flag_spec\"
15061 libdir="$acl_save_libdir"
15062 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15063 done
15064 fi
15065 fi
15066 if test "X$ltrpathdirs" != "X"; then
15067 for found_dir in $ltrpathdirs; do
15068 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15069 done
15070 fi
15071
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015073$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015074if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015075 $as_echo_n "(cached) " >&6
15076else
15077 gt_save_CPPFLAGS="$CPPFLAGS"
15078 CPPFLAGS="$CPPFLAGS $INCINTL"
15079 gt_save_LIBS="$LIBS"
15080 LIBS="$LIBS $LIBINTL"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015082/* end confdefs.h. */
15083#include <libintl.h>
15084$gt_revision_test_code
15085extern int _nl_msg_cat_cntr;
15086extern
15087#ifdef __cplusplus
15088"C"
15089#endif
15090const char *_nl_expand_alias (const char *);
15091int
15092main ()
15093{
15094bindtextdomain ("", "");
15095return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15096 ;
15097 return 0;
15098}
15099_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015100if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015101 eval "$gt_func_gnugettext_libintl=yes"
15102else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015103 eval "$gt_func_gnugettext_libintl=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015104fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015105rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015107 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15108 LIBS="$LIBS $LIBICONV"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015110/* end confdefs.h. */
15111#include <libintl.h>
15112$gt_revision_test_code
15113extern int _nl_msg_cat_cntr;
15114extern
15115#ifdef __cplusplus
15116"C"
15117#endif
15118const char *_nl_expand_alias (const char *);
15119int
15120main ()
15121{
15122bindtextdomain ("", "");
15123return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15124 ;
15125 return 0;
15126}
15127_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015128if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015129 LIBINTL="$LIBINTL $LIBICONV"
15130 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15131 eval "$gt_func_gnugettext_libintl=yes"
15132
Scott James Remnant65f683d2009-07-14 13:05:17 +010015133fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015134rm -f core conftest.err conftest.$ac_objext \
15135 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015136 fi
15137 CPPFLAGS="$gt_save_CPPFLAGS"
15138 LIBS="$gt_save_LIBS"
15139fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015140eval ac_res=\$$gt_func_gnugettext_libintl
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015142$as_echo "$ac_res" >&6; }
15143 fi
15144
15145 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15146 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15147 && test "$PACKAGE" != gettext-runtime \
15148 && test "$PACKAGE" != gettext-tools; }; then
15149 gt_use_preinstalled_gnugettext=yes
15150 else
15151 LIBINTL=
15152 LTLIBINTL=
15153 INCINTL=
15154 fi
15155
15156
15157 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15158 nls_cv_use_gnu_gettext=yes
15159 fi
15160 fi
15161
15162 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15163 BUILD_INCLUDED_LIBINTL=yes
15164 USE_INCLUDED_LIBINTL=yes
15165 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
15166 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
15167 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15168 fi
15169
15170 CATOBJEXT=
15171 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15172 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15173 CATOBJEXT=.gmo
15174 fi
15175
15176
15177 if test -n "$INTL_MACOSX_LIBS"; then
15178 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15179 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15180 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15181 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15182 fi
15183 fi
15184
15185 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15186 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15187
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015188$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015189
15190 else
15191 USE_NLS=no
15192 fi
15193 fi
15194
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015196$as_echo_n "checking whether to use NLS... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015198$as_echo "$USE_NLS" >&6; }
15199 if test "$USE_NLS" = "yes"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015201$as_echo_n "checking where the gettext function comes from... " >&6; }
15202 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15203 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15204 gt_source="external libintl"
15205 else
15206 gt_source="libc"
15207 fi
15208 else
15209 gt_source="included intl directory"
15210 fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015212$as_echo "$gt_source" >&6; }
15213 fi
15214
15215 if test "$USE_NLS" = "yes"; then
15216
15217 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15218 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015220$as_echo_n "checking how to link with libintl... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015222$as_echo "$LIBINTL" >&6; }
15223
15224 for element in $INCINTL; do
15225 haveit=
15226 for x in $CPPFLAGS; do
15227
15228 acl_save_prefix="$prefix"
15229 prefix="$acl_final_prefix"
15230 acl_save_exec_prefix="$exec_prefix"
15231 exec_prefix="$acl_final_exec_prefix"
15232 eval x=\"$x\"
15233 exec_prefix="$acl_save_exec_prefix"
15234 prefix="$acl_save_prefix"
15235
15236 if test "X$x" = "X$element"; then
15237 haveit=yes
15238 break
15239 fi
15240 done
15241 if test -z "$haveit"; then
15242 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15243 fi
15244 done
15245
15246 fi
15247
15248
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015249$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015250
15251
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015252$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015253
15254 fi
15255
15256 POSUB=po
15257 fi
15258
15259
15260 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
15261 BUILD_INCLUDED_LIBINTL=yes
15262 fi
15263
15264
15265
15266
15267
15268 nls_cv_header_intl=
15269 nls_cv_header_libgt=
15270
15271 DATADIRNAME=share
15272
15273
15274 INSTOBJEXT=.mo
15275
15276
15277 GENCAT=gencat
15278
15279
15280 INTLOBJS=
15281 if test "$USE_INCLUDED_LIBINTL" = yes; then
15282 INTLOBJS="\$(GETTOBJS)"
15283 fi
15284
15285
15286 INTL_LIBTOOL_SUFFIX_PREFIX=
15287
15288
15289
15290 INTLLIBS="$LIBINTL"
15291
15292
15293
15294
15295
15296
15297
15298# Checks for programs.
15299ac_ext=c
15300ac_cpp='$CPP $CPPFLAGS'
15301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15303ac_compiler_gnu=$ac_cv_c_compiler_gnu
15304if test -n "$ac_tool_prefix"; then
15305 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15306set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015308$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015309if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015310 $as_echo_n "(cached) " >&6
15311else
15312 if test -n "$CC"; then
15313 ac_cv_prog_CC="$CC" # Let the user override the test.
15314else
15315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15316for as_dir in $PATH
15317do
15318 IFS=$as_save_IFS
15319 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015320 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015324 break 2
15325 fi
15326done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015327 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015328IFS=$as_save_IFS
15329
15330fi
15331fi
15332CC=$ac_cv_prog_CC
15333if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015335$as_echo "$CC" >&6; }
15336else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015338$as_echo "no" >&6; }
15339fi
15340
15341
15342fi
15343if test -z "$ac_cv_prog_CC"; then
15344 ac_ct_CC=$CC
15345 # Extract the first word of "gcc", so it can be a program name with args.
15346set dummy gcc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015348$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015349if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015350 $as_echo_n "(cached) " >&6
15351else
15352 if test -n "$ac_ct_CC"; then
15353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15354else
15355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15356for as_dir in $PATH
15357do
15358 IFS=$as_save_IFS
15359 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015360 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15362 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015364 break 2
15365 fi
15366done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015367 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015368IFS=$as_save_IFS
15369
15370fi
15371fi
15372ac_ct_CC=$ac_cv_prog_ac_ct_CC
15373if test -n "$ac_ct_CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015375$as_echo "$ac_ct_CC" >&6; }
15376else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015378$as_echo "no" >&6; }
15379fi
15380
15381 if test "x$ac_ct_CC" = x; then
15382 CC=""
15383 else
15384 case $cross_compiling:$ac_tool_warned in
15385yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15388ac_tool_warned=yes ;;
15389esac
15390 CC=$ac_ct_CC
15391 fi
15392else
15393 CC="$ac_cv_prog_CC"
15394fi
15395
15396if test -z "$CC"; then
15397 if test -n "$ac_tool_prefix"; then
15398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15399set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015401$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015402if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015403 $as_echo_n "(cached) " >&6
15404else
15405 if test -n "$CC"; then
15406 ac_cv_prog_CC="$CC" # Let the user override the test.
15407else
15408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15409for as_dir in $PATH
15410do
15411 IFS=$as_save_IFS
15412 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015413 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15415 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015417 break 2
15418 fi
15419done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015420 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015421IFS=$as_save_IFS
15422
15423fi
15424fi
15425CC=$ac_cv_prog_CC
15426if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015428$as_echo "$CC" >&6; }
15429else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015431$as_echo "no" >&6; }
15432fi
15433
15434
15435 fi
15436fi
15437if test -z "$CC"; then
15438 # Extract the first word of "cc", so it can be a program name with args.
15439set dummy cc; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015441$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015442if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015443 $as_echo_n "(cached) " >&6
15444else
15445 if test -n "$CC"; then
15446 ac_cv_prog_CC="$CC" # Let the user override the test.
15447else
15448 ac_prog_rejected=no
15449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15450for as_dir in $PATH
15451do
15452 IFS=$as_save_IFS
15453 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015454 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15457 ac_prog_rejected=yes
15458 continue
15459 fi
15460 ac_cv_prog_CC="cc"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015462 break 2
15463 fi
15464done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015465 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015466IFS=$as_save_IFS
15467
15468if test $ac_prog_rejected = yes; then
15469 # We found a bogon in the path, so make sure we never use it.
15470 set dummy $ac_cv_prog_CC
15471 shift
15472 if test $# != 0; then
15473 # We chose a different compiler from the bogus one.
15474 # However, it has the same basename, so the bogon will be chosen
15475 # first if we set CC to just the basename; use the full file name.
15476 shift
15477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15478 fi
15479fi
15480fi
15481fi
15482CC=$ac_cv_prog_CC
15483if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015485$as_echo "$CC" >&6; }
15486else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015488$as_echo "no" >&6; }
15489fi
15490
15491
15492fi
15493if test -z "$CC"; then
15494 if test -n "$ac_tool_prefix"; then
15495 for ac_prog in cl.exe
15496 do
15497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015500$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015501if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015502 $as_echo_n "(cached) " >&6
15503else
15504 if test -n "$CC"; then
15505 ac_cv_prog_CC="$CC" # Let the user override the test.
15506else
15507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508for as_dir in $PATH
15509do
15510 IFS=$as_save_IFS
15511 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015512 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015516 break 2
15517 fi
15518done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015519 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015520IFS=$as_save_IFS
15521
15522fi
15523fi
15524CC=$ac_cv_prog_CC
15525if test -n "$CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015527$as_echo "$CC" >&6; }
15528else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015530$as_echo "no" >&6; }
15531fi
15532
15533
15534 test -n "$CC" && break
15535 done
15536fi
15537if test -z "$CC"; then
15538 ac_ct_CC=$CC
15539 for ac_prog in cl.exe
15540do
15541 # Extract the first word of "$ac_prog", so it can be a program name with args.
15542set dummy $ac_prog; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015544$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015545if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015546 $as_echo_n "(cached) " >&6
15547else
15548 if test -n "$ac_ct_CC"; then
15549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15550else
15551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552for as_dir in $PATH
15553do
15554 IFS=$as_save_IFS
15555 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015556 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15558 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015560 break 2
15561 fi
15562done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015563 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015564IFS=$as_save_IFS
15565
15566fi
15567fi
15568ac_ct_CC=$ac_cv_prog_ac_ct_CC
15569if test -n "$ac_ct_CC"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015571$as_echo "$ac_ct_CC" >&6; }
15572else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015574$as_echo "no" >&6; }
15575fi
15576
15577
15578 test -n "$ac_ct_CC" && break
15579done
15580
15581 if test "x$ac_ct_CC" = x; then
15582 CC=""
15583 else
15584 case $cross_compiling:$ac_tool_warned in
15585yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15588ac_tool_warned=yes ;;
15589esac
15590 CC=$ac_ct_CC
15591 fi
15592fi
15593
15594fi
15595
15596
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015597test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015599as_fn_error "no acceptable C compiler found in \$PATH
15600See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010015601
15602# Provide some information about the compiler.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015603$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015604set X $ac_compile
15605ac_compiler=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015606for ac_option in --version -v -V -qversion; do
15607 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15613$as_echo "$ac_try_echo"; } >&5
15614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +010015615 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015616 if test -s conftest.err; then
15617 sed '10a\
15618... rest of stderr output deleted ...
15619 10q' conftest.err >conftest.er1
15620 cat conftest.er1 >&5
15621 rm -f conftest.er1 conftest.err
15622 fi
15623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15624 test $ac_status = 0; }
15625done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015626
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015628$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015629if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015630 $as_echo_n "(cached) " >&6
15631else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015633/* end confdefs.h. */
15634
15635int
15636main ()
15637{
15638#ifndef __GNUC__
15639 choke me
15640#endif
15641
15642 ;
15643 return 0;
15644}
15645_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015646if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015647 ac_compiler_gnu=yes
15648else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015649 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015650fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15652ac_cv_c_compiler_gnu=$ac_compiler_gnu
15653
15654fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015656$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15657if test $ac_compiler_gnu = yes; then
15658 GCC=yes
15659else
15660 GCC=
15661fi
15662ac_test_CFLAGS=${CFLAGS+set}
15663ac_save_CFLAGS=$CFLAGS
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015665$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015666if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015667 $as_echo_n "(cached) " >&6
15668else
15669 ac_save_c_werror_flag=$ac_c_werror_flag
15670 ac_c_werror_flag=yes
15671 ac_cv_prog_cc_g=no
15672 CFLAGS="-g"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015674/* end confdefs.h. */
15675
15676int
15677main ()
15678{
15679
15680 ;
15681 return 0;
15682}
15683_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015684if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015685 ac_cv_prog_cc_g=yes
15686else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015687 CFLAGS=""
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015689/* end confdefs.h. */
15690
15691int
15692main ()
15693{
15694
15695 ;
15696 return 0;
15697}
15698_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015699if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015700
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015701else
15702 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +010015703 CFLAGS="-g"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015705/* end confdefs.h. */
15706
15707int
15708main ()
15709{
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015715if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015716 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010015717fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 ac_c_werror_flag=$ac_save_c_werror_flag
15724fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015726$as_echo "$ac_cv_prog_cc_g" >&6; }
15727if test "$ac_test_CFLAGS" = set; then
15728 CFLAGS=$ac_save_CFLAGS
15729elif test $ac_cv_prog_cc_g = yes; then
15730 if test "$GCC" = yes; then
15731 CFLAGS="-g -O2"
15732 else
15733 CFLAGS="-g"
15734 fi
15735else
15736 if test "$GCC" = yes; then
15737 CFLAGS="-O2"
15738 else
15739 CFLAGS=
15740 fi
15741fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015743$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015744if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015745 $as_echo_n "(cached) " >&6
15746else
15747 ac_cv_prog_cc_c89=no
15748ac_save_CC=$CC
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015750/* end confdefs.h. */
15751#include <stdarg.h>
15752#include <stdio.h>
15753#include <sys/types.h>
15754#include <sys/stat.h>
15755/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15756struct buf { int x; };
15757FILE * (*rcsopen) (struct buf *, struct stat *, int);
15758static char *e (p, i)
15759 char **p;
15760 int i;
15761{
15762 return p[i];
15763}
15764static char *f (char * (*g) (char **, int), char **p, ...)
15765{
15766 char *s;
15767 va_list v;
15768 va_start (v,p);
15769 s = g (p, va_arg (v,int));
15770 va_end (v);
15771 return s;
15772}
15773
15774/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15775 function prototypes and stuff, but not '\xHH' hex character constants.
15776 These don't provoke an error unfortunately, instead are silently treated
15777 as 'x'. The following induces an error, until -std is added to get
15778 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15779 array size at least. It's necessary to write '\x00'==0 to get something
15780 that's true only with -std. */
15781int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15782
15783/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15784 inside strings and character constants. */
15785#define FOO(x) 'x'
15786int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15787
15788int test (int i, double x);
15789struct s1 {int (*f) (int a);};
15790struct s2 {int (*f) (double a);};
15791int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15792int argc;
15793char **argv;
15794int
15795main ()
15796{
15797return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15798 ;
15799 return 0;
15800}
15801_ACEOF
15802for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15803 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15804do
15805 CC="$ac_save_CC $ac_arg"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015806 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015807 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010015808fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015809rm -f core conftest.err conftest.$ac_objext
15810 test "x$ac_cv_prog_cc_c89" != "xno" && break
15811done
15812rm -f conftest.$ac_ext
15813CC=$ac_save_CC
15814
15815fi
15816# AC_CACHE_VAL
15817case "x$ac_cv_prog_cc_c89" in
15818 x)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015820$as_echo "none needed" >&6; } ;;
15821 xno)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015823$as_echo "unsupported" >&6; } ;;
15824 *)
15825 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015827$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15828esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015829if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015830
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015831fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015832
15833ac_ext=c
15834ac_cpp='$CPP $CPPFLAGS'
15835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15837ac_compiler_gnu=$ac_cv_c_compiler_gnu
15838
15839if test "x$CC" != xcc; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015841$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15842else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015844$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15845fi
15846set dummy $CC; ac_cc=`$as_echo "$2" |
15847 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015848if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015849 $as_echo_n "(cached) " >&6
15850else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015852/* end confdefs.h. */
15853
15854int
15855main ()
15856{
15857
15858 ;
15859 return 0;
15860}
15861_ACEOF
15862# Make sure it works both with $CC and with simple cc.
15863# We do the test twice because some compilers refuse to overwrite an
15864# existing .o file with -o, though they will create one.
15865ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15866rm -f conftest2.*
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015867if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15872$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015873 (eval "$ac_try") 2>&5
15874 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15876 test $ac_status = 0; } &&
15877 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15880esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15882$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015883 (eval "$ac_try") 2>&5
15884 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15886 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015887then
15888 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15889 if test "x$CC" != xcc; then
15890 # Test first that cc exists at all.
15891 if { ac_try='cc -c conftest.$ac_ext >&5'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015892 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15895esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15897$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015898 (eval "$ac_try") 2>&5
15899 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015902 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15903 rm -f conftest2.*
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015904 if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15907esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15909$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015910 (eval "$ac_try") 2>&5
15911 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15913 test $ac_status = 0; } &&
15914 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15917esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15919$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015920 (eval "$ac_try") 2>&5
15921 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15923 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015924 then
15925 # cc works too.
15926 :
15927 else
15928 # cc exists but doesn't like -o.
15929 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15930 fi
15931 fi
15932 fi
15933else
15934 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15935fi
15936rm -f core conftest*
15937
15938fi
15939if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015941$as_echo "yes" >&6; }
15942else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015944$as_echo "no" >&6; }
15945
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015946$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015947
15948fi
15949
15950# FIXME: we rely on the cache variable name because
15951# there is no other way.
15952set dummy $CC
15953am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15954eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15955if test "$am_t" != yes; then
15956 # Losing compiler, so override with the script.
15957 # FIXME: It is wrong to rewrite CC.
15958 # But if we don't then we get into trouble of one sort or another.
15959 # A longer-term fix would be to have automake use am__CC in this case,
15960 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15961 CC="$am_aux_dir/compile $CC"
15962fi
15963
15964
15965
15966# Checks for libraries.
15967
15968
15969
15970 if test "x$nih_install" = "xyes"; then
15971 INSTALL_NIH_TRUE=
15972 INSTALL_NIH_FALSE='#'
15973else
15974 INSTALL_NIH_TRUE='#'
15975 INSTALL_NIH_FALSE=
15976fi
15977
15978
15979
15980
15981if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15982 if test -n "$ac_tool_prefix"; then
15983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15984set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015986$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010015987if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015988 $as_echo_n "(cached) " >&6
15989else
15990 case $PKG_CONFIG in
15991 [\\/]* | ?:[\\/]*)
15992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15993 ;;
15994 *)
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996for as_dir in $PATH
15997do
15998 IFS=$as_save_IFS
15999 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016000 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016004 break 2
16005 fi
16006done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016007 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016008IFS=$as_save_IFS
16009
16010 ;;
16011esac
16012fi
16013PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16014if test -n "$PKG_CONFIG"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016016$as_echo "$PKG_CONFIG" >&6; }
16017else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016019$as_echo "no" >&6; }
16020fi
16021
16022
16023fi
16024if test -z "$ac_cv_path_PKG_CONFIG"; then
16025 ac_pt_PKG_CONFIG=$PKG_CONFIG
16026 # Extract the first word of "pkg-config", so it can be a program name with args.
16027set dummy pkg-config; ac_word=$2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016029$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016030if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016031 $as_echo_n "(cached) " >&6
16032else
16033 case $ac_pt_PKG_CONFIG in
16034 [\\/]* | ?:[\\/]*)
16035 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16036 ;;
16037 *)
16038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16039for as_dir in $PATH
16040do
16041 IFS=$as_save_IFS
16042 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016043 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16045 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016047 break 2
16048 fi
16049done
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016050 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016051IFS=$as_save_IFS
16052
16053 ;;
16054esac
16055fi
16056ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16057if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016059$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16060else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016062$as_echo "no" >&6; }
16063fi
16064
16065 if test "x$ac_pt_PKG_CONFIG" = x; then
16066 PKG_CONFIG=""
16067 else
16068 case $cross_compiling:$ac_tool_warned in
16069yes:)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16072ac_tool_warned=yes ;;
16073esac
16074 PKG_CONFIG=$ac_pt_PKG_CONFIG
16075 fi
16076else
16077 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16078fi
16079
16080fi
16081if test -n "$PKG_CONFIG"; then
16082 _pkg_min_version=0.22
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016084$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016087$as_echo "yes" >&6; }
16088 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016090$as_echo "no" >&6; }
16091 PKG_CONFIG=""
16092 fi
16093
16094fi
16095
16096# Checks for libraries
16097
16098nih_with_dbus=yes
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016099if test "x$nih_with_dbus" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016100
16101pkg_failed=no
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016103$as_echo_n "checking for DBUS... " >&6; }
16104
16105if test -n "$PKG_CONFIG"; then
16106 if test -n "$DBUS_CFLAGS"; then
16107 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16108 else
16109 if test -n "$PKG_CONFIG" && \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\""; } >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010016111 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016112 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16114 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016115 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016116else
16117 pkg_failed=yes
16118fi
16119 fi
16120else
16121 pkg_failed=untried
16122fi
16123if test -n "$PKG_CONFIG"; then
16124 if test -n "$DBUS_LIBS"; then
16125 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16126 else
16127 if test -n "$PKG_CONFIG" && \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\""; } >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010016129 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016130 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16132 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016133 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016134else
16135 pkg_failed=yes
16136fi
16137 fi
16138else
16139 pkg_failed=untried
16140fi
16141
16142
16143
16144if test $pkg_failed = yes; then
16145
16146if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16147 _pkg_short_errors_supported=yes
16148else
16149 _pkg_short_errors_supported=no
16150fi
16151 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016152 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 +010016153 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016154 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016155 fi
16156 # Put the nasty error message in config.log where it belongs
16157 echo "$DBUS_PKG_ERRORS" >&5
16158
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016159 as_fn_error "Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010016160
16161$DBUS_PKG_ERRORS
16162
16163Consider adjusting the PKG_CONFIG_PATH environment variable if you
16164installed software in a non-standard prefix.
16165
16166Alternatively, you may set the environment variables DBUS_CFLAGS
16167and DBUS_LIBS to avoid the need to call pkg-config.
16168See the pkg-config man page for more details.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016169" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016170elif test $pkg_failed = untried; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016173as_fn_error "The pkg-config script could not be found or is too old. Make sure it
Scott James Remnant65f683d2009-07-14 13:05:17 +010016174is in your PATH or set the PKG_CONFIG environment variable to the full
16175path to pkg-config.
16176
16177Alternatively, you may set the environment variables DBUS_CFLAGS
16178and DBUS_LIBS to avoid the need to call pkg-config.
16179See the pkg-config man page for more details.
16180
16181To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016182See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010016183else
16184 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16185 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016187$as_echo "yes" >&6; }
16188 :
16189fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016191$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016192if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016193 $as_echo_n "(cached) " >&6
16194else
16195 ac_check_lib_save_LIBS=$LIBS
16196LIBS="-lexpat $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016198/* end confdefs.h. */
16199
16200/* Override any GCC internal prototype to avoid an error.
16201 Use char because int might match the return type of a GCC
16202 builtin and then its argument prototype would still apply. */
16203#ifdef __cplusplus
16204extern "C"
16205#endif
16206char XML_ParserCreate ();
16207int
16208main ()
16209{
16210return XML_ParserCreate ();
16211 ;
16212 return 0;
16213}
16214_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016215if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016216 ac_cv_lib_expat_XML_ParserCreate=yes
16217else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016218 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016219fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016220rm -f core conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016222LIBS=$ac_check_lib_save_LIBS
16223fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016225$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016226if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016228$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016229if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016230 $as_echo_n "(cached) " >&6
16231else
16232 ac_check_lib_save_LIBS=$LIBS
16233LIBS="-lexpat $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016235/* end confdefs.h. */
16236
16237/* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
16240#ifdef __cplusplus
16241extern "C"
16242#endif
16243char XML_StopParser ();
16244int
16245main ()
16246{
16247return XML_StopParser ();
16248 ;
16249 return 0;
16250}
16251_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016252if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016253 ac_cv_lib_expat_XML_StopParser=yes
16254else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016255 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016256fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016257rm -f core conftest.err conftest.$ac_objext \
16258 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016259LIBS=$ac_check_lib_save_LIBS
16260fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016262$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016263if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016264 EXPAT_LIBS=-lexpat
16265
16266else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016267 as_fn_error "expat >= 2.0.0 required" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016268fi
16269
16270else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016271 as_fn_error "expat library not found" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016272fi
16273
16274else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016275 if test "x$nih_with_dbus" != "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016276
16277pkg_failed=no
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016279$as_echo_n "checking for DBUS... " >&6; }
16280
16281if test -n "$PKG_CONFIG"; then
16282 if test -n "$DBUS_CFLAGS"; then
16283 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16284 else
16285 if test -n "$PKG_CONFIG" && \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\""; } >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010016287 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016288 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16290 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016291 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016292else
16293 pkg_failed=yes
16294fi
16295 fi
16296else
16297 pkg_failed=untried
16298fi
16299if test -n "$PKG_CONFIG"; then
16300 if test -n "$DBUS_LIBS"; then
16301 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16302 else
16303 if test -n "$PKG_CONFIG" && \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.16\""; } >&5
Scott James Remnantd91d8522009-07-16 18:21:14 +010016305 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016306 ac_status=$?
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16308 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016309 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016310else
16311 pkg_failed=yes
16312fi
16313 fi
16314else
16315 pkg_failed=untried
16316fi
16317
16318
16319
16320if test $pkg_failed = yes; then
16321
16322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16323 _pkg_short_errors_supported=yes
16324else
16325 _pkg_short_errors_supported=no
16326fi
16327 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016328 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 +010016329 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016330 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016331 fi
16332 # Put the nasty error message in config.log where it belongs
16333 echo "$DBUS_PKG_ERRORS" >&5
16334
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016336$as_echo "no" >&6; }
16337 nih_have_dbus=no
16338elif test $pkg_failed = untried; then
16339 nih_have_dbus=no
16340else
16341 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16342 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016344$as_echo "yes" >&6; }
16345 :
16346fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016348$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016349if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016350 $as_echo_n "(cached) " >&6
16351else
16352 ac_check_lib_save_LIBS=$LIBS
16353LIBS="-lexpat $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016355/* end confdefs.h. */
16356
16357/* Override any GCC internal prototype to avoid an error.
16358 Use char because int might match the return type of a GCC
16359 builtin and then its argument prototype would still apply. */
16360#ifdef __cplusplus
16361extern "C"
16362#endif
16363char XML_ParserCreate ();
16364int
16365main ()
16366{
16367return XML_ParserCreate ();
16368 ;
16369 return 0;
16370}
16371_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016372if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016373 ac_cv_lib_expat_XML_ParserCreate=yes
16374else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016375 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016376fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016377rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016379LIBS=$ac_check_lib_save_LIBS
16380fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016382$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016383if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016385$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016386if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016387 $as_echo_n "(cached) " >&6
16388else
16389 ac_check_lib_save_LIBS=$LIBS
16390LIBS="-lexpat $LIBS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016392/* end confdefs.h. */
16393
16394/* Override any GCC internal prototype to avoid an error.
16395 Use char because int might match the return type of a GCC
16396 builtin and then its argument prototype would still apply. */
16397#ifdef __cplusplus
16398extern "C"
16399#endif
16400char XML_StopParser ();
16401int
16402main ()
16403{
16404return XML_StopParser ();
16405 ;
16406 return 0;
16407}
16408_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016409if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016410 ac_cv_lib_expat_XML_StopParser=yes
16411else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016412 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016413fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016414rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016416LIBS=$ac_check_lib_save_LIBS
16417fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016419$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016420if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016421 EXPAT_LIBS=-lexpat
16422
16423else
16424 nih_have_dbus=no
16425fi
16426
16427else
16428 nih_have_dbus=no
16429fi
16430
16431else
16432 nih_have_dbus=no
16433fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016434fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016435 if test "x$nih_have_dbus" != "xno"; then
16436 HAVE_DBUS_TRUE=
16437 HAVE_DBUS_FALSE='#'
16438else
16439 HAVE_DBUS_TRUE='#'
16440 HAVE_DBUS_FALSE=
16441fi
16442
16443
16444
16445# Checks for header files.
Scott James Remnant65f683d2009-07-14 13:05:17 +010016446for ac_header in valgrind/valgrind.h
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016447do :
16448 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16449if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016450 cat >>confdefs.h <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016451#define HAVE_VALGRIND_VALGRIND_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016452_ACEOF
16453
16454fi
16455
16456done
16457
16458
16459# Checks for typedefs, structures, and compiler characteristics.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016461$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016462if test "${ac_cv_prog_cc_c99+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016463 $as_echo_n "(cached) " >&6
16464else
16465 ac_cv_prog_cc_c99=no
16466ac_save_CC=$CC
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016468/* end confdefs.h. */
16469#include <stdarg.h>
16470#include <stdbool.h>
16471#include <stdlib.h>
16472#include <wchar.h>
16473#include <stdio.h>
16474
16475// Check varargs macros. These examples are taken from C99 6.10.3.5.
16476#define debug(...) fprintf (stderr, __VA_ARGS__)
16477#define showlist(...) puts (#__VA_ARGS__)
16478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16479static void
16480test_varargs_macros (void)
16481{
16482 int x = 1234;
16483 int y = 5678;
16484 debug ("Flag");
16485 debug ("X = %d\n", x);
16486 showlist (The first, second, and third items.);
16487 report (x>y, "x is %d but y is %d", x, y);
16488}
16489
16490// Check long long types.
16491#define BIG64 18446744073709551615ull
16492#define BIG32 4294967295ul
16493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16494#if !BIG_OK
16495 your preprocessor is broken;
16496#endif
16497#if BIG_OK
16498#else
16499 your preprocessor is broken;
16500#endif
16501static long long int bignum = -9223372036854775807LL;
16502static unsigned long long int ubignum = BIG64;
16503
16504struct incomplete_array
16505{
16506 int datasize;
16507 double data[];
16508};
16509
16510struct named_init {
16511 int number;
16512 const wchar_t *name;
16513 double average;
16514};
16515
16516typedef const char *ccp;
16517
16518static inline int
16519test_restrict (ccp restrict text)
16520{
16521 // See if C++-style comments work.
16522 // Iterate through items via the restricted pointer.
16523 // Also check for declarations in for loops.
16524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16525 continue;
16526 return 0;
16527}
16528
16529// Check varargs and va_copy.
16530static void
16531test_varargs (const char *format, ...)
16532{
16533 va_list args;
16534 va_start (args, format);
16535 va_list args_copy;
16536 va_copy (args_copy, args);
16537
16538 const char *str;
16539 int number;
16540 float fnumber;
16541
16542 while (*format)
16543 {
16544 switch (*format++)
16545 {
16546 case 's': // string
16547 str = va_arg (args_copy, const char *);
16548 break;
16549 case 'd': // int
16550 number = va_arg (args_copy, int);
16551 break;
16552 case 'f': // float
16553 fnumber = va_arg (args_copy, double);
16554 break;
16555 default:
16556 break;
16557 }
16558 }
16559 va_end (args_copy);
16560 va_end (args);
16561}
16562
16563int
16564main ()
16565{
16566
16567 // Check bool.
16568 _Bool success = false;
16569
16570 // Check restrict.
16571 if (test_restrict ("String literal") == 0)
16572 success = true;
16573 char *restrict newvar = "Another string";
16574
16575 // Check varargs.
16576 test_varargs ("s, d' f .", "string", 65, 34.234);
16577 test_varargs_macros ();
16578
16579 // Check flexible array members.
16580 struct incomplete_array *ia =
16581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16582 ia->datasize = 10;
16583 for (int i = 0; i < ia->datasize; ++i)
16584 ia->data[i] = i * 1.234;
16585
16586 // Check named initializers.
16587 struct named_init ni = {
16588 .number = 34,
16589 .name = L"Test wide string",
16590 .average = 543.34343,
16591 };
16592
16593 ni.number = 58;
16594
16595 int dynamic_array[ni.number];
16596 dynamic_array[ni.number - 1] = 543;
16597
16598 // work around unused variable warnings
16599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16600 || dynamic_array[ni.number - 1] != 543);
16601
16602 ;
16603 return 0;
16604}
16605_ACEOF
16606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
16607do
16608 CC="$ac_save_CC $ac_arg"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016609 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016610 ac_cv_prog_cc_c99=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010016611fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016612rm -f core conftest.err conftest.$ac_objext
16613 test "x$ac_cv_prog_cc_c99" != "xno" && break
16614done
16615rm -f conftest.$ac_ext
16616CC=$ac_save_CC
16617
16618fi
16619# AC_CACHE_VAL
16620case "x$ac_cv_prog_cc_c99" in
16621 x)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016623$as_echo "none needed" >&6; } ;;
16624 xno)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016626$as_echo "unsupported" >&6; } ;;
16627 *)
16628 CC="$CC $ac_cv_prog_cc_c99"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016630$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16631esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016632if test "x$ac_cv_prog_cc_c99" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016633
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016634fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016635
16636
16637# FIXME: we rely on the cache variable name because
16638# there is no other way.
16639set dummy $CC
16640am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16641eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16642if test "$am_t" != yes; then
16643 # Losing compiler, so override with the script.
16644 # FIXME: It is wrong to rewrite CC.
16645 # But if we don't then we get into trouble of one sort or another.
16646 # A longer-term fix would be to have automake use am__CC in this case,
16647 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16648 CC="$am_aux_dir/compile $CC"
16649fi
16650
16651
16652# Check whether --enable-threading was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016653if test "${enable_threading+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016654 enableval=$enable_threading;
16655else
16656 enable_threading=no
16657fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016658if test "x$enable_threading" != "xno" ; then :
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016660$as_echo_n "checking whether compiler supports __thread... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016661if test "${nih_cv_c_thread+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016662 $as_echo_n "(cached) " >&6
16663else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016665/* end confdefs.h. */
16666int __thread a;
16667int
16668main ()
16669{
16670
16671 ;
16672 return 0;
16673}
16674_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016675if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016676 nih_cv_c_thread=yes
16677else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016678 nih_cv_c_thread=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016679fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_c_thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016683$as_echo "$nih_cv_c_thread" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016684if test "x$nih_cv_c_thread" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016685
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016686$as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016687
16688fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016689else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016690 $as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016691
16692fi
16693
Scott James Remnant65f683d2009-07-14 13:05:17 +010016694# Other checks
16695# Check whether --enable-compiler-warnings was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016696if test "${enable_compiler_warnings+set}" = set; then :
16697 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then :
16698 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016699 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
16700fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016701 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016702 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
16703fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016704fi
16705
Scott James Remnant65f683d2009-07-14 13:05:17 +010016706fi
16707
16708# Check whether --enable-compiler-optimisations was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016709if test "${enable_compiler_optimisations+set}" = set; then :
16710 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016711 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16712 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16713fi
16714
Scott James Remnant65f683d2009-07-14 13:05:17 +010016715fi
16716
16717# Check whether --enable-compiler-coverage was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016718if test "${enable_compiler_coverage+set}" = set; then :
16719 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then :
16720 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016721 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
16722fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016723 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016724 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
16725fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016726fi
16727
Scott James Remnant65f683d2009-07-14 13:05:17 +010016728fi
16729
16730
16731# Check whether --enable-linker-optimisations was given.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016732if test "${enable_linker_optimisations+set}" = set; then :
16733 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016734 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
16735else
16736 LDFLAGS="$LDFLAGS -Wl,-O1"
16737fi
16738
Scott James Remnant65f683d2009-07-14 13:05:17 +010016739fi
16740
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version script argument" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016742$as_echo_n "checking for linker version script argument... " >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016743if test "${nih_cv_version_script+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016744 $as_echo_n "(cached) " >&6
16745else
16746 nih_cv_version_script=none
16747for nih_try_arg in "-Wl,--version-script"; do
16748 nih_old_libs="$LIBS"
16749 LIBS="$LIBS $nih_try_arg=conftest.ver"
16750
16751 cat >conftest.ver <<EOF
16752TEST {
16753 global:
16754 *;
16755};
16756EOF
16757
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016759/* end confdefs.h. */
16760
16761int
16762main ()
16763{
16764
16765 ;
16766 return 0;
16767}
16768_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016769if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016770
16771 rm -f conftest.ver
16772 LIBS="$nih_old_libs"
16773 nih_cv_version_script="$nih_try_arg"
16774 break
16775
Scott James Remnant65f683d2009-07-14 13:05:17 +010016776fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016777rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016779
16780 rm -f conftest.ver
16781 LIBS="$nih_old_libs"
16782done
16783fi
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_version_script" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016785$as_echo "$nih_cv_version_script" >&6; }
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016786if test "x$nih_cv_version_script" != "xnone"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016787 VERSION_SCRIPT_ARG=$nih_cv_version_script
16788
16789fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016790 if test "x$nih_cv_version_script" != "xnone"; then
16791 HAVE_VERSION_SCRIPT_ARG_TRUE=
16792 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
16793else
16794 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
16795 HAVE_VERSION_SCRIPT_ARG_FALSE=
16796fi
16797
16798
16799
16800
16801# Checks for header files.
16802
16803# Checks for typedefs, structures, and compiler characteristics.
16804
16805# Checks for library functions.
16806
16807# Other checks
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sbindir in PATH" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016809$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
16810eval upstart_sbindir=\"$sbindir\"
16811case $upstart_sbindir in
16812 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016814$as_echo "no" >&6; }
16815 ;;
16816 *)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016818$as_echo "yes" >&6; }
16819
16820cat >>confdefs.h <<_ACEOF
16821#define EXTRA_PATH "$upstart_sbindir"
16822_ACEOF
16823
16824 ;;
16825esac
16826
16827
16828ac_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"
16829
16830ac_config_headers="$ac_config_headers config.h"
16831
16832cat >confcache <<\_ACEOF
16833# This file is a shell script that caches the results of configure
16834# tests run on this system so they can be shared between configure
16835# scripts and configure runs, see configure's option --config-cache.
16836# It is not useful on other systems. If it contains results you don't
16837# want to keep, you may remove or edit it.
16838#
16839# config.status only pays attention to the cache file if you give it
16840# the --recheck option to rerun configure.
16841#
16842# `ac_cv_env_foo' variables (set or unset) will be overridden when
16843# loading this file, other *unset* `ac_cv_foo' will be assigned the
16844# following values.
16845
16846_ACEOF
16847
16848# The following way of writing the cache mishandles newlines in values,
16849# but we know of no workaround that is simple, portable, and efficient.
16850# So, we kill variables containing newlines.
16851# Ultrix sh set writes to stderr and can't be redirected directly,
16852# and sets the high bit in the cache file unless we assign to the vars.
16853(
16854 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16855 eval ac_val=\$$ac_var
16856 case $ac_val in #(
16857 *${as_nl}*)
16858 case $ac_var in #(
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016859 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016860$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16861 esac
16862 case $ac_var in #(
16863 _ | IFS | as_nl) ;; #(
16864 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016865 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010016866 esac ;;
16867 esac
16868 done
16869
16870 (set) 2>&1 |
16871 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16872 *${as_nl}ac_space=\ *)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016873 # `set' does not quote correctly, so add quotes: double-quote
16874 # substitution turns \\\\ into \\, and sed turns \\ into \.
Scott James Remnant65f683d2009-07-14 13:05:17 +010016875 sed -n \
16876 "s/'/'\\\\''/g;
16877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16878 ;; #(
16879 *)
16880 # `set' quotes correctly as required by POSIX, so do not add quotes.
16881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16882 ;;
16883 esac |
16884 sort
16885) |
16886 sed '
16887 /^ac_cv_env_/b end
16888 t clear
16889 :clear
16890 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16891 t end
16892 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16893 :end' >>confcache
16894if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16895 if test -w "$cache_file"; then
16896 test "x$cache_file" != "x/dev/null" &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016897 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016898$as_echo "$as_me: updating cache $cache_file" >&6;}
16899 cat confcache >$cache_file
16900 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016901 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016902$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16903 fi
16904fi
16905rm -f confcache
16906
16907test "x$prefix" = xNONE && prefix=$ac_default_prefix
16908# Let make expand exec_prefix.
16909test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16910
16911DEFS=-DHAVE_CONFIG_H
16912
16913ac_libobjs=
16914ac_ltlibobjs=
16915for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16916 # 1. Remove the extension, and $U if already installed.
16917 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16918 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16920 # will be set to the directory where LIBOBJS objects are built.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016921 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16922 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Scott James Remnant65f683d2009-07-14 13:05:17 +010016923done
16924LIBOBJS=$ac_libobjs
16925
16926LTLIBOBJS=$ac_ltlibobjs
16927
16928
16929if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016930 as_fn_error "conditional \"AMDEP\" was never defined.
16931Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016932fi
16933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016934 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16935Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016936fi
16937if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016938 as_fn_error "conditional \"INSTALL_NIH\" was never defined.
16939Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016940fi
16941if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016942 as_fn_error "conditional \"HAVE_DBUS\" was never defined.
16943Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016944fi
16945if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016946 as_fn_error "conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
16947Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016948fi
16949
16950: ${CONFIG_STATUS=./config.status}
16951ac_write_fail=0
16952ac_clean_files_save=$ac_clean_files
16953ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016954{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016955$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016956as_write_fail=0
16957cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016958#! $SHELL
16959# Generated by $as_me.
16960# Run this file to recreate the current configuration.
16961# Compiler output produced by configure, useful for debugging
16962# configure, is in config.log if it exists.
16963
16964debug=false
16965ac_cs_recheck=false
16966ac_cs_silent=false
Scott James Remnant65f683d2009-07-14 13:05:17 +010016967
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016968SHELL=\${CONFIG_SHELL-$SHELL}
16969export SHELL
16970_ASEOF
16971cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16972## -------------------- ##
16973## M4sh Initialization. ##
16974## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010016975
16976# Be more Bourne compatible
16977DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016978if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016979 emulate sh
16980 NULLCMD=:
16981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16982 # is contrary to our usage. Disable this feature.
16983 alias -g '${1+"$@"}'='"$@"'
16984 setopt NO_GLOB_SUBST
16985else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010016986 case `(set -o) 2>/dev/null` in #(
16987 *posix*) :
16988 set -o posix ;; #(
16989 *) :
16990 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010016991esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010016992fi
16993
16994
Scott James Remnant65f683d2009-07-14 13:05:17 +010016995as_nl='
16996'
16997export as_nl
16998# Printing a long string crashes Solaris 7 /usr/bin/printf.
16999as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17000as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17001as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017002# Prefer a ksh shell builtin over an external printf program on Solaris,
17003# but without wasting forks for bash or zsh.
17004if test -z "$BASH_VERSION$ZSH_VERSION" \
17005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17006 as_echo='print -r --'
17007 as_echo_n='print -rn --'
17008elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017009 as_echo='printf %s\n'
17010 as_echo_n='printf %s'
17011else
17012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17014 as_echo_n='/usr/ucb/echo -n'
17015 else
17016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17017 as_echo_n_body='eval
17018 arg=$1;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017019 case $arg in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017020 *"$as_nl"*)
17021 expr "X$arg" : "X\\(.*\\)$as_nl";
17022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17023 esac;
17024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17025 '
17026 export as_echo_n_body
17027 as_echo_n='sh -c $as_echo_n_body as_echo'
17028 fi
17029 export as_echo_body
17030 as_echo='sh -c $as_echo_body as_echo'
17031fi
17032
17033# The user is always right.
17034if test "${PATH_SEPARATOR+set}" != set; then
17035 PATH_SEPARATOR=:
17036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17038 PATH_SEPARATOR=';'
17039 }
17040fi
17041
Scott James Remnant65f683d2009-07-14 13:05:17 +010017042
17043# IFS
17044# We need space, tab and new line, in precisely that order. Quoting is
17045# there to prevent editors from complaining about space-tab.
17046# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17047# splitting by setting IFS to empty value.)
17048IFS=" "" $as_nl"
17049
17050# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017051case $0 in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017052 *[\\/]* ) as_myself=$0 ;;
17053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17054for as_dir in $PATH
17055do
17056 IFS=$as_save_IFS
17057 test -z "$as_dir" && as_dir=.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17059 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010017060IFS=$as_save_IFS
17061
17062 ;;
17063esac
17064# We did not find ourselves, most probably we were run as `sh COMMAND'
17065# in which case we are not to be found in the path.
17066if test "x$as_myself" = x; then
17067 as_myself=$0
17068fi
17069if test ! -f "$as_myself"; then
17070 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017071 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017072fi
17073
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017074# Unset variables that we do not need and which cause bugs (e.g. in
17075# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17076# suppresses any "Segmentation fault" message there. '((' could
17077# trigger a bug in pdksh 5.2.14.
17078for as_var in BASH_ENV ENV MAIL MAILPATH
17079do eval test x\${$as_var+set} = xset \
17080 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017081done
17082PS1='$ '
17083PS2='> '
17084PS4='+ '
17085
17086# NLS nuisances.
17087LC_ALL=C
17088export LC_ALL
17089LANGUAGE=C
17090export LANGUAGE
17091
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017092# CDPATH.
17093(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17094
17095
17096# as_fn_error ERROR [LINENO LOG_FD]
17097# ---------------------------------
17098# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17099# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17100# script with status $?, using 1 if that was 0.
17101as_fn_error ()
17102{
17103 as_status=$?; test $as_status -eq 0 && as_status=1
17104 if test "$3"; then
17105 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17106 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17107 fi
17108 $as_echo "$as_me: error: $1" >&2
17109 as_fn_exit $as_status
17110} # as_fn_error
17111
17112
17113# as_fn_set_status STATUS
17114# -----------------------
17115# Set $? to STATUS, without forking.
17116as_fn_set_status ()
17117{
17118 return $1
17119} # as_fn_set_status
17120
17121# as_fn_exit STATUS
17122# -----------------
17123# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17124as_fn_exit ()
17125{
17126 set +e
17127 as_fn_set_status $1
17128 exit $1
17129} # as_fn_exit
17130
17131# as_fn_unset VAR
17132# ---------------
17133# Portably unset VAR.
17134as_fn_unset ()
17135{
17136 { eval $1=; unset $1;}
17137}
17138as_unset=as_fn_unset
17139# as_fn_append VAR VALUE
17140# ----------------------
17141# Append the text in VALUE to the end of the definition contained in VAR. Take
17142# advantage of any shell optimizations that allow amortized linear growth over
17143# repeated appends, instead of the typical quadratic growth present in naive
17144# implementations.
17145if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17146 eval 'as_fn_append ()
17147 {
17148 eval $1+=\$2
17149 }'
17150else
17151 as_fn_append ()
17152 {
17153 eval $1=\$$1\$2
17154 }
17155fi # as_fn_append
17156
17157# as_fn_arith ARG...
17158# ------------------
17159# Perform arithmetic evaluation on the ARGs, and store the result in the
17160# global $as_val. Take advantage of shells that can avoid forks. The arguments
17161# must be portable across $(()) and expr.
17162if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17163 eval 'as_fn_arith ()
17164 {
17165 as_val=$(( $* ))
17166 }'
17167else
17168 as_fn_arith ()
17169 {
17170 as_val=`expr "$@" || test $? -eq 1`
17171 }
17172fi # as_fn_arith
17173
17174
Scott James Remnant65f683d2009-07-14 13:05:17 +010017175if expr a : '\(a\)' >/dev/null 2>&1 &&
17176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17177 as_expr=expr
17178else
17179 as_expr=false
17180fi
17181
17182if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17183 as_basename=basename
17184else
17185 as_basename=false
17186fi
17187
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017188if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17189 as_dirname=dirname
17190else
17191 as_dirname=false
17192fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017193
Scott James Remnant65f683d2009-07-14 13:05:17 +010017194as_me=`$as_basename -- "$0" ||
17195$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17196 X"$0" : 'X\(//\)$' \| \
17197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17198$as_echo X/"$0" |
17199 sed '/^.*\/\([^/][^/]*\)\/*$/{
17200 s//\1/
17201 q
17202 }
17203 /^X\/\(\/\/\)$/{
17204 s//\1/
17205 q
17206 }
17207 /^X\/\(\/\).*/{
17208 s//\1/
17209 q
17210 }
17211 s/.*/./; q'`
17212
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017213# Avoid depending upon Character Ranges.
17214as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17215as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17216as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17217as_cr_digits='0123456789'
17218as_cr_alnum=$as_cr_Letters$as_cr_digits
Scott James Remnant65f683d2009-07-14 13:05:17 +010017219
17220ECHO_C= ECHO_N= ECHO_T=
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017221case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017222-n*)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017223 case `echo 'xy\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010017224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017225 xy) ECHO_C='\c';;
17226 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17227 ECHO_T=' ';;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017228 esac;;
17229*)
17230 ECHO_N='-n';;
17231esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017232
17233rm -f conf$$ conf$$.exe conf$$.file
17234if test -d conf$$.dir; then
17235 rm -f conf$$.dir/conf$$.file
17236else
17237 rm -f conf$$.dir
17238 mkdir conf$$.dir 2>/dev/null
17239fi
17240if (echo >conf$$.file) 2>/dev/null; then
17241 if ln -s conf$$.file conf$$ 2>/dev/null; then
17242 as_ln_s='ln -s'
17243 # ... but there are two gotchas:
17244 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17245 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17246 # In both cases, we have to default to `cp -p'.
17247 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17248 as_ln_s='cp -p'
17249 elif ln conf$$.file conf$$ 2>/dev/null; then
17250 as_ln_s=ln
17251 else
17252 as_ln_s='cp -p'
17253 fi
17254else
17255 as_ln_s='cp -p'
17256fi
17257rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17258rmdir conf$$.dir 2>/dev/null
17259
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017260
17261# as_fn_mkdir_p
17262# -------------
17263# Create "$as_dir" as a directory, including parents if necessary.
17264as_fn_mkdir_p ()
17265{
17266
17267 case $as_dir in #(
17268 -*) as_dir=./$as_dir;;
17269 esac
17270 test -d "$as_dir" || eval $as_mkdir_p || {
17271 as_dirs=
17272 while :; do
17273 case $as_dir in #(
17274 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17275 *) as_qdir=$as_dir;;
17276 esac
17277 as_dirs="'$as_qdir' $as_dirs"
17278 as_dir=`$as_dirname -- "$as_dir" ||
17279$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$as_dir" : 'X\(//\)[^/]' \| \
17281 X"$as_dir" : 'X\(//\)$' \| \
17282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17283$as_echo X"$as_dir" |
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17285 s//\1/
17286 q
17287 }
17288 /^X\(\/\/\)[^/].*/{
17289 s//\1/
17290 q
17291 }
17292 /^X\(\/\/\)$/{
17293 s//\1/
17294 q
17295 }
17296 /^X\(\/\).*/{
17297 s//\1/
17298 q
17299 }
17300 s/.*/./; q'`
17301 test -d "$as_dir" && break
17302 done
17303 test -z "$as_dirs" || eval "mkdir $as_dirs"
17304 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17305
17306
17307} # as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010017308if mkdir -p . 2>/dev/null; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017309 as_mkdir_p='mkdir -p "$as_dir"'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017310else
17311 test -d ./-p && rmdir ./-p
17312 as_mkdir_p=false
17313fi
17314
17315if test -x / >/dev/null 2>&1; then
17316 as_test_x='test -x'
17317else
17318 if ls -dL / >/dev/null 2>&1; then
17319 as_ls_L_option=L
17320 else
17321 as_ls_L_option=
17322 fi
17323 as_test_x='
17324 eval sh -c '\''
17325 if test -d "$1"; then
17326 test -d "$1/.";
17327 else
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017328 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017329 -*)set "./$1";;
17330 esac;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017331 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017332 ???[sx]*):;;*)false;;esac;fi
17333 '\'' sh
17334 '
17335fi
17336as_executable_p=$as_test_x
17337
17338# Sed expression to map a string onto a valid CPP name.
17339as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17340
17341# Sed expression to map a string onto a valid variable name.
17342as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17343
17344
17345exec 6>&1
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017346## ----------------------------------- ##
17347## Main body of $CONFIG_STATUS script. ##
17348## ----------------------------------- ##
17349_ASEOF
17350test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017351
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17353# Save the log message, to keep $0 and so on meaningful, and to
Scott James Remnant65f683d2009-07-14 13:05:17 +010017354# report actual input values of CONFIG_FILES etc. instead of their
17355# values after options handling.
17356ac_log="
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017357This file was extended by upstart $as_me 0.6.3, which was
17358generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +010017359
17360 CONFIG_FILES = $CONFIG_FILES
17361 CONFIG_HEADERS = $CONFIG_HEADERS
17362 CONFIG_LINKS = $CONFIG_LINKS
17363 CONFIG_COMMANDS = $CONFIG_COMMANDS
17364 $ $0 $@
17365
17366on `(hostname || uname -n) 2>/dev/null | sed 1q`
17367"
17368
17369_ACEOF
17370
17371case $ac_config_files in *"
17372"*) set x $ac_config_files; shift; ac_config_files=$*;;
17373esac
17374
17375case $ac_config_headers in *"
17376"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17377esac
17378
17379
17380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17381# Files that config.status was made for.
17382config_files="$ac_config_files"
17383config_headers="$ac_config_headers"
17384config_commands="$ac_config_commands"
17385
17386_ACEOF
17387
17388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17389ac_cs_usage="\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017390\`$as_me' instantiates files and other configuration actions
17391from templates according to the current configuration. Unless the files
17392and actions are specified as TAGs, all are instantiated by default.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017393
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017394Usage: $0 [OPTION]... [TAG]...
Scott James Remnant65f683d2009-07-14 13:05:17 +010017395
17396 -h, --help print this help, then exit
17397 -V, --version print version number and configuration settings, then exit
17398 -q, --quiet, --silent
17399 do not print progress messages
17400 -d, --debug don't remove temporary files
17401 --recheck update $as_me by reconfiguring in the same conditions
17402 --file=FILE[:TEMPLATE]
17403 instantiate the configuration file FILE
17404 --header=FILE[:TEMPLATE]
17405 instantiate the configuration header FILE
17406
17407Configuration files:
17408$config_files
17409
17410Configuration headers:
17411$config_headers
17412
17413Configuration commands:
17414$config_commands
17415
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017416Report bugs to <upstart-devel@lists.ubuntu.com>."
Scott James Remnant65f683d2009-07-14 13:05:17 +010017417
17418_ACEOF
17419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17420ac_cs_version="\\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017421upstart config.status 0.6.3
17422configured by $0, generated by GNU Autoconf 2.64,
Scott James Remnant65f683d2009-07-14 13:05:17 +010017423 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17424
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017425Copyright (C) 2009 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017426This config.status script is free software; the Free Software Foundation
17427gives unlimited permission to copy, distribute and modify it."
17428
17429ac_pwd='$ac_pwd'
17430srcdir='$srcdir'
17431INSTALL='$INSTALL'
17432MKDIR_P='$MKDIR_P'
17433AWK='$AWK'
17434test -n "\$AWK" || AWK=awk
17435_ACEOF
17436
17437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17438# The default lists apply if the user does not specify any file.
17439ac_need_defaults=:
17440while test $# != 0
17441do
17442 case $1 in
17443 --*=*)
17444 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17445 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17446 ac_shift=:
17447 ;;
17448 *)
17449 ac_option=$1
17450 ac_optarg=$2
17451 ac_shift=shift
17452 ;;
17453 esac
17454
17455 case $ac_option in
17456 # Handling of the options.
17457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17458 ac_cs_recheck=: ;;
17459 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17460 $as_echo "$ac_cs_version"; exit ;;
17461 --debug | --debu | --deb | --de | --d | -d )
17462 debug=: ;;
17463 --file | --fil | --fi | --f )
17464 $ac_shift
17465 case $ac_optarg in
17466 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17467 esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017468 as_fn_append CONFIG_FILES " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017469 ac_need_defaults=false;;
17470 --header | --heade | --head | --hea )
17471 $ac_shift
17472 case $ac_optarg in
17473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17474 esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017476 ac_need_defaults=false;;
17477 --he | --h)
17478 # Conflict between --help and --header
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017479 as_fn_error "ambiguous option: \`$1'
17480Try \`$0 --help' for more information.";;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017481 --help | --hel | -h )
17482 $as_echo "$ac_cs_usage"; exit ;;
17483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17485 ac_cs_silent=: ;;
17486
17487 # This is an error.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017488 -*) as_fn_error "unrecognized option: \`$1'
17489Try \`$0 --help' for more information." ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017490
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017491 *) as_fn_append ac_config_targets " $1"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017492 ac_need_defaults=false ;;
17493
17494 esac
17495 shift
17496done
17497
17498ac_configure_extra_args=
17499
17500if $ac_cs_silent; then
17501 exec 6>/dev/null
17502 ac_configure_extra_args="$ac_configure_extra_args --silent"
17503fi
17504
17505_ACEOF
17506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17507if \$ac_cs_recheck; then
17508 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17509 shift
17510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17511 CONFIG_SHELL='$SHELL'
17512 export CONFIG_SHELL
17513 exec "\$@"
17514fi
17515
17516_ACEOF
17517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17518exec 5>>config.log
17519{
17520 echo
17521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17522## Running $as_me. ##
17523_ASBOX
17524 $as_echo "$ac_log"
17525} >&5
17526
17527_ACEOF
17528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17529#
17530# INIT-COMMANDS
17531#
17532AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17533
17534
17535# The HP-UX ksh and POSIX shell print the target directory to stdout
17536# if CDPATH is set.
17537(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17538
17539sed_quote_subst='$sed_quote_subst'
17540double_quote_subst='$double_quote_subst'
17541delay_variable_subst='$delay_variable_subst'
17542macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17543macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17544enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17545enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17546pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17547enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17548host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17549host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17550host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17551build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17552build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17553build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17554SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17555Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17556GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17557EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17558FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17559LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17560NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17561LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17562max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17563ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17564exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17565lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17566lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17567lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17568reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17569reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17570OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17571deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17572file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17573AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17574AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17575STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17576RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17577old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17578old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17579old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17580CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17581CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17582compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17583GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17584lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17585lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17586lt_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"`'
17587lt_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"`'
17588objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17589SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17590ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17591MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17592lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17593lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17594lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17595lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17596lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17597need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17598DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17599NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17600LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17601OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17602OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17603libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17604shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17605extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17606archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17607enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17608export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17609whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17610compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17611old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17612old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17613archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17614archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17615module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17616module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17617with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17618allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17619no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17620hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17621hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17622hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17623hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17624hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17625hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17626hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17627hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17628inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17629link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17630fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17631always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17632export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17633exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17634include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17635prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17636file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17637variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17638need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17639need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17640version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17641runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17642shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17643shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17644libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17645library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17646soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17647postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17648postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17649finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17650finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17651hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17652sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17653sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17654hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17655enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17656enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17657enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17658old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17659striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17660
17661LTCC='$LTCC'
17662LTCFLAGS='$LTCFLAGS'
17663compiler='$compiler_DEFAULT'
17664
17665# Quote evaled strings.
17666for var in SED \
17667GREP \
17668EGREP \
17669FGREP \
17670LD \
17671NM \
17672LN_S \
17673lt_SP2NL \
17674lt_NL2SP \
17675reload_flag \
17676OBJDUMP \
17677deplibs_check_method \
17678file_magic_cmd \
17679AR \
17680AR_FLAGS \
17681STRIP \
17682RANLIB \
17683CC \
17684CFLAGS \
17685compiler \
17686lt_cv_sys_global_symbol_pipe \
17687lt_cv_sys_global_symbol_to_cdecl \
17688lt_cv_sys_global_symbol_to_c_name_address \
17689lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17690SHELL \
17691ECHO \
17692lt_prog_compiler_no_builtin_flag \
17693lt_prog_compiler_wl \
17694lt_prog_compiler_pic \
17695lt_prog_compiler_static \
17696lt_cv_prog_compiler_c_o \
17697need_locks \
17698DSYMUTIL \
17699NMEDIT \
17700LIPO \
17701OTOOL \
17702OTOOL64 \
17703shrext_cmds \
17704export_dynamic_flag_spec \
17705whole_archive_flag_spec \
17706compiler_needs_object \
17707with_gnu_ld \
17708allow_undefined_flag \
17709no_undefined_flag \
17710hardcode_libdir_flag_spec \
17711hardcode_libdir_flag_spec_ld \
17712hardcode_libdir_separator \
17713fix_srcfile_path \
17714exclude_expsyms \
17715include_expsyms \
17716file_list_spec \
17717variables_saved_for_relink \
17718libname_spec \
17719library_names_spec \
17720soname_spec \
17721finish_eval \
17722old_striplib \
17723striplib; do
17724 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17725 *[\\\\\\\`\\"\\\$]*)
17726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17727 ;;
17728 *)
17729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17730 ;;
17731 esac
17732done
17733
17734# Double-quote double-evaled strings.
17735for var in reload_cmds \
17736old_postinstall_cmds \
17737old_postuninstall_cmds \
17738old_archive_cmds \
17739extract_expsyms_cmds \
17740old_archive_from_new_cmds \
17741old_archive_from_expsyms_cmds \
17742archive_cmds \
17743archive_expsym_cmds \
17744module_cmds \
17745module_expsym_cmds \
17746export_symbols_cmds \
17747prelink_cmds \
17748postinstall_cmds \
17749postuninstall_cmds \
17750finish_cmds \
17751sys_lib_search_path_spec \
17752sys_lib_dlsearch_path_spec; do
17753 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17754 *[\\\\\\\`\\"\\\$]*)
17755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17756 ;;
17757 *)
17758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17759 ;;
17760 esac
17761done
17762
17763# Fix-up fallback echo if it was mangled by the above quoting rules.
17764case \$lt_ECHO in
17765*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17766 ;;
17767esac
17768
17769ac_aux_dir='$ac_aux_dir'
17770xsi_shell='$xsi_shell'
17771lt_shell_append='$lt_shell_append'
17772
17773# See if we are running on zsh, and set the options which allow our
17774# commands through without removal of \ escapes INIT.
17775if test -n "\${ZSH_VERSION+set}" ; then
17776 setopt NO_GLOB_SUBST
17777fi
17778
17779
17780 PACKAGE='$PACKAGE'
17781 VERSION='$VERSION'
17782 TIMESTAMP='$TIMESTAMP'
17783 RM='$RM'
17784 ofile='$ofile'
17785
17786
17787
17788# Capture the value of obsolete ALL_LINGUAS because we need it to compute
17789 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17790 # from automake < 1.5.
17791 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17792 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17793 LINGUAS="${LINGUAS-%UNSET%}"
17794
17795
17796_ACEOF
17797
17798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799
17800# Handling of arguments.
17801for ac_config_target in $ac_config_targets
17802do
17803 case $ac_config_target in
17804 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17805 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17806 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17808 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17809 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17810 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
17811 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
17812 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
17813 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
17814 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
17815 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
17816 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
17817 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17818 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17819 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17820 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17821
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017822 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017823 esac
17824done
17825
17826
17827# If the user did not use the arguments to specify the items to instantiate,
17828# then the envvar interface is used. Set only those that are not.
17829# We use the long form for the default assignment because of an extremely
17830# bizarre bug on SunOS 4.1.3.
17831if $ac_need_defaults; then
17832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17834 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17835fi
17836
17837# Have a temporary directory for convenience. Make it in the build tree
17838# simply because there is no reason against having it here, and in addition,
17839# creating and moving files from /tmp can sometimes cause problems.
17840# Hook for its removal unless debugging.
17841# Note that there is a small window in which the directory will not be cleaned:
17842# after its creation but before its name has been assigned to `$tmp'.
17843$debug ||
17844{
17845 tmp=
17846 trap 'exit_status=$?
17847 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17848' 0
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017849 trap 'as_fn_exit 1' 1 2 13 15
Scott James Remnant65f683d2009-07-14 13:05:17 +010017850}
17851# Create a (secure) tmp directory for tmp files.
17852
17853{
17854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17855 test -n "$tmp" && test -d "$tmp"
17856} ||
17857{
17858 tmp=./conf$$-$RANDOM
17859 (umask 077 && mkdir "$tmp")
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017860} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017861
17862# Set up the scripts for CONFIG_FILES section.
17863# No need to generate them if there are no CONFIG_FILES.
17864# This happens for instance with `./config.status config.h'.
17865if test -n "$CONFIG_FILES"; then
17866
17867
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017868ac_cr=`echo X | tr X '\015'`
17869# On cygwin, bash can eat \r inside `` if the user requested igncr.
17870# But we know of no other shell where ac_cr would be empty at this
17871# point, so we can use a bashism as a fallback.
17872if test "x$ac_cr" = x; then
17873 eval ac_cr=\$\'\\r\'
17874fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017875ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17876if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017877 ac_cs_awk_cr='\r'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017878else
17879 ac_cs_awk_cr=$ac_cr
17880fi
17881
17882echo 'BEGIN {' >"$tmp/subs1.awk" &&
17883_ACEOF
17884
17885
17886{
17887 echo "cat >conf$$subs.awk <<_ACEOF" &&
17888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17889 echo "_ACEOF"
17890} >conf$$subs.sh ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017891 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017892ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17893ac_delim='%!_!# '
17894for ac_last_try in false false false false false :; do
17895 . ./conf$$subs.sh ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017896 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017897
17898 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17899 if test $ac_delim_n = $ac_delim_num; then
17900 break
17901 elif $ac_last_try; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017902 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017903 else
17904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17905 fi
17906done
17907rm -f conf$$subs.sh
17908
17909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17910cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17911_ACEOF
17912sed -n '
17913h
17914s/^/S["/; s/!.*/"]=/
17915p
17916g
17917s/^[^!]*!//
17918:repl
17919t repl
17920s/'"$ac_delim"'$//
17921t delim
17922:nl
17923h
17924s/\(.\{148\}\).*/\1/
17925t more1
17926s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17927p
17928n
17929b repl
17930:more1
17931s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17932p
17933g
17934s/.\{148\}//
17935t nl
17936:delim
17937h
17938s/\(.\{148\}\).*/\1/
17939t more2
17940s/["\\]/\\&/g; s/^/"/; s/$/"/
17941p
17942b
17943:more2
17944s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17945p
17946g
17947s/.\{148\}//
17948t delim
17949' <conf$$subs.awk | sed '
17950/^[^""]/{
17951 N
17952 s/\n//
17953}
17954' >>$CONFIG_STATUS || ac_write_fail=1
17955rm -f conf$$subs.awk
17956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17957_ACAWK
17958cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17959 for (key in S) S_is_set[key] = 1
17960 FS = ""
17961
17962}
17963{
17964 line = $ 0
17965 nfields = split(line, field, "@")
17966 substed = 0
17967 len = length(field[1])
17968 for (i = 2; i < nfields; i++) {
17969 key = field[i]
17970 keylen = length(key)
17971 if (S_is_set[key]) {
17972 value = S[key]
17973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17974 len += length(value) + length(field[++i])
17975 substed = 1
17976 } else
17977 len += 1 + keylen
17978 }
17979
17980 print line
17981}
17982
17983_ACAWK
17984_ACEOF
17985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17986if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17987 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17988else
17989 cat
17990fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017991 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017992_ACEOF
17993
17994# VPATH may cause trouble with some makes, so we remove $(srcdir),
17995# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17996# trailing colons and then remove the whole line if VPATH becomes empty
17997# (actually we leave an empty line to preserve line numbers).
17998if test "x$srcdir" = x.; then
17999 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18000s/:*\$(srcdir):*/:/
18001s/:*\${srcdir}:*/:/
18002s/:*@srcdir@:*/:/
18003s/^\([^=]*=[ ]*\):*/\1/
18004s/:*$//
18005s/^[^=]*=[ ]*$//
18006}'
18007fi
18008
18009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18010fi # test -n "$CONFIG_FILES"
18011
18012# Set up the scripts for CONFIG_HEADERS section.
18013# No need to generate them if there are no CONFIG_HEADERS.
18014# This happens for instance with `./config.status Makefile'.
18015if test -n "$CONFIG_HEADERS"; then
18016cat >"$tmp/defines.awk" <<\_ACAWK ||
18017BEGIN {
18018_ACEOF
18019
18020# Transform confdefs.h into an awk script `defines.awk', embedded as
18021# here-document in config.status, that substitutes the proper values into
18022# config.h.in to produce config.h.
18023
18024# Create a delimiter string that does not exist in confdefs.h, to ease
18025# handling of long lines.
18026ac_delim='%!_!# '
18027for ac_last_try in false false :; do
18028 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18029 if test -z "$ac_t"; then
18030 break
18031 elif $ac_last_try; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018032 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018033 else
18034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18035 fi
18036done
18037
18038# For the awk script, D is an array of macro values keyed by name,
18039# likewise P contains macro parameters if any. Preserve backslash
18040# newline sequences.
18041
18042ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18043sed -n '
18044s/.\{148\}/&'"$ac_delim"'/g
18045t rset
18046:rset
18047s/^[ ]*#[ ]*define[ ][ ]*/ /
18048t def
18049d
18050:def
18051s/\\$//
18052t bsnl
18053s/["\\]/\\&/g
18054s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18055D["\1"]=" \3"/p
18056s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18057d
18058:bsnl
18059s/["\\]/\\&/g
18060s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18061D["\1"]=" \3\\\\\\n"\\/p
18062t cont
18063s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18064t cont
18065d
18066:cont
18067n
18068s/.\{148\}/&'"$ac_delim"'/g
18069t clear
18070:clear
18071s/\\$//
18072t bsnlc
18073s/["\\]/\\&/g; s/^/"/; s/$/"/p
18074d
18075:bsnlc
18076s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18077b cont
18078' <confdefs.h | sed '
18079s/'"$ac_delim"'/"\\\
18080"/g' >>$CONFIG_STATUS || ac_write_fail=1
18081
18082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18083 for (key in D) D_is_set[key] = 1
18084 FS = ""
18085}
18086/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18087 line = \$ 0
18088 split(line, arg, " ")
18089 if (arg[1] == "#") {
18090 defundef = arg[2]
18091 mac1 = arg[3]
18092 } else {
18093 defundef = substr(arg[1], 2)
18094 mac1 = arg[2]
18095 }
18096 split(mac1, mac2, "(") #)
18097 macro = mac2[1]
18098 prefix = substr(line, 1, index(line, defundef) - 1)
18099 if (D_is_set[macro]) {
18100 # Preserve the white space surrounding the "#".
18101 print prefix "define", macro P[macro] D[macro]
18102 next
18103 } else {
18104 # Replace #undef with comments. This is necessary, for example,
18105 # in the case of _POSIX_SOURCE, which is predefined and required
18106 # on some systems where configure will not decide to define it.
18107 if (defundef == "undef") {
18108 print "/*", prefix defundef, macro, "*/"
18109 next
18110 }
18111 }
18112}
18113{ print }
18114_ACAWK
18115_ACEOF
18116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018117 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018118fi # test -n "$CONFIG_HEADERS"
18119
18120
18121eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18122shift
18123for ac_tag
18124do
18125 case $ac_tag in
18126 :[FHLC]) ac_mode=$ac_tag; continue;;
18127 esac
18128 case $ac_mode$ac_tag in
18129 :[FHL]*:*);;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018130 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018131 :[FH]-) ac_tag=-:-;;
18132 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18133 esac
18134 ac_save_IFS=$IFS
18135 IFS=:
18136 set x $ac_tag
18137 IFS=$ac_save_IFS
18138 shift
18139 ac_file=$1
18140 shift
18141
18142 case $ac_mode in
18143 :L) ac_source=$1;;
18144 :[FH])
18145 ac_file_inputs=
18146 for ac_f
18147 do
18148 case $ac_f in
18149 -) ac_f="$tmp/stdin";;
18150 *) # Look for the file first in the build tree, then in the source tree
18151 # (if the path is not absolute). The absolute path cannot be DOS-style,
18152 # because $ac_f cannot contain `:'.
18153 test -f "$ac_f" ||
18154 case $ac_f in
18155 [\\/$]*) false;;
18156 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18157 esac ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018158 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018159 esac
18160 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018161 as_fn_append ac_file_inputs " '$ac_f'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010018162 done
18163
18164 # Let's still pretend it is `configure' which instantiates (i.e., don't
18165 # use $as_me), people would be surprised to read:
18166 # /* config.h. Generated by config.status. */
18167 configure_input='Generated from '`
18168 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18169 `' by configure.'
18170 if test x"$ac_file" != x-; then
18171 configure_input="$ac_file. $configure_input"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018173$as_echo "$as_me: creating $ac_file" >&6;}
18174 fi
18175 # Neutralize special characters interpreted by sed in replacement strings.
18176 case $configure_input in #(
18177 *\&* | *\|* | *\\* )
18178 ac_sed_conf_input=`$as_echo "$configure_input" |
18179 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18180 *) ac_sed_conf_input=$configure_input;;
18181 esac
18182
18183 case $ac_tag in
18184 *:-:* | *:-) cat >"$tmp/stdin" \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018185 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018186 esac
18187 ;;
18188 esac
18189
18190 ac_dir=`$as_dirname -- "$ac_file" ||
18191$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18192 X"$ac_file" : 'X\(//\)[^/]' \| \
18193 X"$ac_file" : 'X\(//\)$' \| \
18194 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18195$as_echo X"$ac_file" |
18196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18197 s//\1/
18198 q
18199 }
18200 /^X\(\/\/\)[^/].*/{
18201 s//\1/
18202 q
18203 }
18204 /^X\(\/\/\)$/{
18205 s//\1/
18206 q
18207 }
18208 /^X\(\/\).*/{
18209 s//\1/
18210 q
18211 }
18212 s/.*/./; q'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018213 as_dir="$ac_dir"; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018214 ac_builddir=.
18215
18216case "$ac_dir" in
18217.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18218*)
18219 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18220 # A ".." for each directory in $ac_dir_suffix.
18221 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18222 case $ac_top_builddir_sub in
18223 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18224 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18225 esac ;;
18226esac
18227ac_abs_top_builddir=$ac_pwd
18228ac_abs_builddir=$ac_pwd$ac_dir_suffix
18229# for backward compatibility:
18230ac_top_builddir=$ac_top_build_prefix
18231
18232case $srcdir in
18233 .) # We are building in place.
18234 ac_srcdir=.
18235 ac_top_srcdir=$ac_top_builddir_sub
18236 ac_abs_top_srcdir=$ac_pwd ;;
18237 [\\/]* | ?:[\\/]* ) # Absolute name.
18238 ac_srcdir=$srcdir$ac_dir_suffix;
18239 ac_top_srcdir=$srcdir
18240 ac_abs_top_srcdir=$srcdir ;;
18241 *) # Relative name.
18242 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18243 ac_top_srcdir=$ac_top_build_prefix$srcdir
18244 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18245esac
18246ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18247
18248
18249 case $ac_mode in
18250 :F)
18251 #
18252 # CONFIG_FILE
18253 #
18254
18255 case $INSTALL in
18256 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18257 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18258 esac
18259 ac_MKDIR_P=$MKDIR_P
18260 case $MKDIR_P in
18261 [\\/$]* | ?:[\\/]* ) ;;
18262 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18263 esac
18264_ACEOF
18265
18266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18267# If the template does not know about datarootdir, expand it.
18268# FIXME: This hack should be removed a few years after 2.60.
18269ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant65f683d2009-07-14 13:05:17 +010018270ac_sed_dataroot='
18271/datarootdir/ {
18272 p
18273 q
18274}
18275/@datadir@/p
18276/@docdir@/p
18277/@infodir@/p
18278/@localedir@/p
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018279/@mandir@/p'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018280case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18281*datarootdir*) ac_datarootdir_seen=yes;;
18282*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018284$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18285_ACEOF
18286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18287 ac_datarootdir_hack='
18288 s&@datadir@&$datadir&g
18289 s&@docdir@&$docdir&g
18290 s&@infodir@&$infodir&g
18291 s&@localedir@&$localedir&g
18292 s&@mandir@&$mandir&g
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018293 s&\\\${datarootdir}&$datarootdir&g' ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018294esac
18295_ACEOF
18296
18297# Neutralize VPATH when `$srcdir' = `.'.
18298# Shell code in configure.ac might set extrasub.
18299# FIXME: do we really want to maintain this feature?
18300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18301ac_sed_extra="$ac_vpsub
18302$extrasub
18303_ACEOF
18304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18305:t
18306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18307s|@configure_input@|$ac_sed_conf_input|;t t
18308s&@top_builddir@&$ac_top_builddir_sub&;t t
18309s&@top_build_prefix@&$ac_top_build_prefix&;t t
18310s&@srcdir@&$ac_srcdir&;t t
18311s&@abs_srcdir@&$ac_abs_srcdir&;t t
18312s&@top_srcdir@&$ac_top_srcdir&;t t
18313s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18314s&@builddir@&$ac_builddir&;t t
18315s&@abs_builddir@&$ac_abs_builddir&;t t
18316s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18317s&@INSTALL@&$ac_INSTALL&;t t
18318s&@MKDIR_P@&$ac_MKDIR_P&;t t
18319$ac_datarootdir_hack
18320"
18321eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018322 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018323
18324test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18325 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18326 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018328which seems to be undefined. Please make sure it is defined." >&5
18329$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18330which seems to be undefined. Please make sure it is defined." >&2;}
18331
18332 rm -f "$tmp/stdin"
18333 case $ac_file in
18334 -) cat "$tmp/out" && rm -f "$tmp/out";;
18335 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18336 esac \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018337 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018338 ;;
18339 :H)
18340 #
18341 # CONFIG_HEADER
18342 #
18343 if test x"$ac_file" != x-; then
18344 {
18345 $as_echo "/* $configure_input */" \
18346 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18347 } >"$tmp/config.h" \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018348 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018349 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018350 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018351$as_echo "$as_me: $ac_file is unchanged" >&6;}
18352 else
18353 rm -f "$ac_file"
18354 mv "$tmp/config.h" "$ac_file" \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018355 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018356 fi
18357 else
18358 $as_echo "/* $configure_input */" \
18359 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018360 || as_fn_error "could not create -" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018361 fi
18362# Compute "$ac_file"'s index in $config_headers.
18363_am_arg="$ac_file"
18364_am_stamp_count=1
18365for _am_header in $config_headers :; do
18366 case $_am_header in
18367 $_am_arg | $_am_arg:* )
18368 break ;;
18369 * )
18370 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18371 esac
18372done
18373echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18374$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18375 X"$_am_arg" : 'X\(//\)[^/]' \| \
18376 X"$_am_arg" : 'X\(//\)$' \| \
18377 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18378$as_echo X"$_am_arg" |
18379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18380 s//\1/
18381 q
18382 }
18383 /^X\(\/\/\)[^/].*/{
18384 s//\1/
18385 q
18386 }
18387 /^X\(\/\/\)$/{
18388 s//\1/
18389 q
18390 }
18391 /^X\(\/\).*/{
18392 s//\1/
18393 q
18394 }
18395 s/.*/./; q'`/stamp-h$_am_stamp_count
18396 ;;
18397
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018398 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018399$as_echo "$as_me: executing $ac_file commands" >&6;}
18400 ;;
18401 esac
18402
18403
18404 case $ac_file$ac_mode in
18405 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18406 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18407 # are listed without --file. Let's play safe and only enable the eval
18408 # if we detect the quoting.
18409 case $CONFIG_FILES in
18410 *\'*) eval set x "$CONFIG_FILES" ;;
18411 *) set x $CONFIG_FILES ;;
18412 esac
18413 shift
18414 for mf
18415 do
18416 # Strip MF so we end up with the name of the file.
18417 mf=`echo "$mf" | sed -e 's/:.*$//'`
18418 # Check whether this is an Automake generated Makefile or not.
18419 # We used to match only the files named `Makefile.in', but
18420 # some people rename them; so instead we look at the file content.
18421 # Grep'ing the first line is not enough: some people post-process
18422 # each Makefile.in and add a new line on top of each file to say so.
18423 # Grep'ing the whole file is not good either: AIX grep has a line
18424 # limit of 2048, but all sed's we know have understand at least 4000.
18425 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18426 dirpart=`$as_dirname -- "$mf" ||
18427$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18428 X"$mf" : 'X\(//\)[^/]' \| \
18429 X"$mf" : 'X\(//\)$' \| \
18430 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18431$as_echo X"$mf" |
18432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18433 s//\1/
18434 q
18435 }
18436 /^X\(\/\/\)[^/].*/{
18437 s//\1/
18438 q
18439 }
18440 /^X\(\/\/\)$/{
18441 s//\1/
18442 q
18443 }
18444 /^X\(\/\).*/{
18445 s//\1/
18446 q
18447 }
18448 s/.*/./; q'`
18449 else
18450 continue
18451 fi
18452 # Extract the definition of DEPDIR, am__include, and am__quote
18453 # from the Makefile without running `make'.
18454 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18455 test -z "$DEPDIR" && continue
18456 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18457 test -z "am__include" && continue
18458 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18459 # When using ansi2knr, U may be empty or an underscore; expand it
18460 U=`sed -n 's/^U = //p' < "$mf"`
18461 # Find all dependency output files, they are included files with
18462 # $(DEPDIR) in their names. We invoke sed twice because it is the
18463 # simplest approach to changing $(DEPDIR) to its actual value in the
18464 # expansion.
18465 for file in `sed -n "
18466 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18467 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18468 # Make sure the directory exists.
18469 test -f "$dirpart/$file" && continue
18470 fdir=`$as_dirname -- "$file" ||
18471$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18472 X"$file" : 'X\(//\)[^/]' \| \
18473 X"$file" : 'X\(//\)$' \| \
18474 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18475$as_echo X"$file" |
18476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18477 s//\1/
18478 q
18479 }
18480 /^X\(\/\/\)[^/].*/{
18481 s//\1/
18482 q
18483 }
18484 /^X\(\/\/\)$/{
18485 s//\1/
18486 q
18487 }
18488 /^X\(\/\).*/{
18489 s//\1/
18490 q
18491 }
18492 s/.*/./; q'`
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010018493 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018494 # echo "creating $dirpart/$file"
18495 echo '# dummy' > "$dirpart/$file"
18496 done
18497 done
18498}
18499 ;;
18500 "libtool":C)
18501
18502 # See if we are running on zsh, and set the options which allow our
18503 # commands through without removal of \ escapes.
18504 if test -n "${ZSH_VERSION+set}" ; then
18505 setopt NO_GLOB_SUBST
18506 fi
18507
18508 cfgfile="${ofile}T"
18509 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18510 $RM "$cfgfile"
18511
18512 cat <<_LT_EOF >> "$cfgfile"
18513#! $SHELL
18514
18515# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18516# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18517# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18518# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18519#
18520# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18521# 2006, 2007, 2008 Free Software Foundation, Inc.
18522# Written by Gordon Matzigkeit, 1996
18523#
18524# This file is part of GNU Libtool.
18525#
18526# GNU Libtool is free software; you can redistribute it and/or
18527# modify it under the terms of the GNU General Public License as
18528# published by the Free Software Foundation; either version 2 of
18529# the License, or (at your option) any later version.
18530#
18531# As a special exception to the GNU General Public License,
18532# if you distribute this file as part of a program or library that
18533# is built using GNU Libtool, you may include this file under the
18534# same distribution terms that you use for the rest of that program.
18535#
18536# GNU Libtool is distributed in the hope that it will be useful,
18537# but WITHOUT ANY WARRANTY; without even the implied warranty of
18538# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18539# GNU General Public License for more details.
18540#
18541# You should have received a copy of the GNU General Public License
18542# along with GNU Libtool; see the file COPYING. If not, a copy
18543# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18544# obtained by writing to the Free Software Foundation, Inc.,
18545# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18546
18547
18548# The names of the tagged configurations supported by this script.
18549available_tags=""
18550
18551# ### BEGIN LIBTOOL CONFIG
18552
18553# Which release of libtool.m4 was used?
18554macro_version=$macro_version
18555macro_revision=$macro_revision
18556
18557# Whether or not to build shared libraries.
18558build_libtool_libs=$enable_shared
18559
18560# Whether or not to build static libraries.
18561build_old_libs=$enable_static
18562
18563# What type of objects to build.
18564pic_mode=$pic_mode
18565
18566# Whether or not to optimize for fast installation.
18567fast_install=$enable_fast_install
18568
18569# The host system.
18570host_alias=$host_alias
18571host=$host
18572host_os=$host_os
18573
18574# The build system.
18575build_alias=$build_alias
18576build=$build
18577build_os=$build_os
18578
18579# A sed program that does not truncate output.
18580SED=$lt_SED
18581
18582# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18583Xsed="\$SED -e 1s/^X//"
18584
18585# A grep program that handles long lines.
18586GREP=$lt_GREP
18587
18588# An ERE matcher.
18589EGREP=$lt_EGREP
18590
18591# A literal string matcher.
18592FGREP=$lt_FGREP
18593
18594# A BSD- or MS-compatible name lister.
18595NM=$lt_NM
18596
18597# Whether we need soft or hard links.
18598LN_S=$lt_LN_S
18599
18600# What is the maximum length of a command?
18601max_cmd_len=$max_cmd_len
18602
18603# Object file suffix (normally "o").
18604objext=$ac_objext
18605
18606# Executable file suffix (normally "").
18607exeext=$exeext
18608
18609# whether the shell understands "unset".
18610lt_unset=$lt_unset
18611
18612# turn spaces into newlines.
18613SP2NL=$lt_lt_SP2NL
18614
18615# turn newlines into spaces.
18616NL2SP=$lt_lt_NL2SP
18617
18618# How to create reloadable object files.
18619reload_flag=$lt_reload_flag
18620reload_cmds=$lt_reload_cmds
18621
18622# An object symbol dumper.
18623OBJDUMP=$lt_OBJDUMP
18624
18625# Method to check whether dependent libraries are shared objects.
18626deplibs_check_method=$lt_deplibs_check_method
18627
18628# Command to use when deplibs_check_method == "file_magic".
18629file_magic_cmd=$lt_file_magic_cmd
18630
18631# The archiver.
18632AR=$lt_AR
18633AR_FLAGS=$lt_AR_FLAGS
18634
18635# A symbol stripping program.
18636STRIP=$lt_STRIP
18637
18638# Commands used to install an old-style archive.
18639RANLIB=$lt_RANLIB
18640old_postinstall_cmds=$lt_old_postinstall_cmds
18641old_postuninstall_cmds=$lt_old_postuninstall_cmds
18642
18643# A C compiler.
18644LTCC=$lt_CC
18645
18646# LTCC compiler flags.
18647LTCFLAGS=$lt_CFLAGS
18648
18649# Take the output of nm and produce a listing of raw symbols and C names.
18650global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18651
18652# Transform the output of nm in a proper C declaration.
18653global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18654
18655# Transform the output of nm in a C name address pair.
18656global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18657
18658# Transform the output of nm in a C name address pair when lib prefix is needed.
18659global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18660
18661# The name of the directory that contains temporary libtool files.
18662objdir=$objdir
18663
18664# Shell to use when invoking shell scripts.
18665SHELL=$lt_SHELL
18666
18667# An echo program that does not interpret backslashes.
18668ECHO=$lt_ECHO
18669
18670# Used to examine libraries when file_magic_cmd begins with "file".
18671MAGIC_CMD=$MAGIC_CMD
18672
18673# Must we lock files when doing compilation?
18674need_locks=$lt_need_locks
18675
18676# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18677DSYMUTIL=$lt_DSYMUTIL
18678
18679# Tool to change global to local symbols on Mac OS X.
18680NMEDIT=$lt_NMEDIT
18681
18682# Tool to manipulate fat objects and archives on Mac OS X.
18683LIPO=$lt_LIPO
18684
18685# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18686OTOOL=$lt_OTOOL
18687
18688# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18689OTOOL64=$lt_OTOOL64
18690
18691# Old archive suffix (normally "a").
18692libext=$libext
18693
18694# Shared library suffix (normally ".so").
18695shrext_cmds=$lt_shrext_cmds
18696
18697# The commands to extract the exported symbol list from a shared archive.
18698extract_expsyms_cmds=$lt_extract_expsyms_cmds
18699
18700# Variables whose values should be saved in libtool wrapper scripts and
18701# restored at link time.
18702variables_saved_for_relink=$lt_variables_saved_for_relink
18703
18704# Do we need the "lib" prefix for modules?
18705need_lib_prefix=$need_lib_prefix
18706
18707# Do we need a version for libraries?
18708need_version=$need_version
18709
18710# Library versioning type.
18711version_type=$version_type
18712
18713# Shared library runtime path variable.
18714runpath_var=$runpath_var
18715
18716# Shared library path variable.
18717shlibpath_var=$shlibpath_var
18718
18719# Is shlibpath searched before the hard-coded library search path?
18720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18721
18722# Format of library name prefix.
18723libname_spec=$lt_libname_spec
18724
18725# List of archive names. First name is the real one, the rest are links.
18726# The last name is the one that the linker finds with -lNAME
18727library_names_spec=$lt_library_names_spec
18728
18729# The coded name of the library, if different from the real name.
18730soname_spec=$lt_soname_spec
18731
18732# Command to use after installation of a shared archive.
18733postinstall_cmds=$lt_postinstall_cmds
18734
18735# Command to use after uninstallation of a shared archive.
18736postuninstall_cmds=$lt_postuninstall_cmds
18737
18738# Commands used to finish a libtool library installation in a directory.
18739finish_cmds=$lt_finish_cmds
18740
18741# As "finish_cmds", except a single script fragment to be evaled but
18742# not shown.
18743finish_eval=$lt_finish_eval
18744
18745# Whether we should hardcode library paths into libraries.
18746hardcode_into_libs=$hardcode_into_libs
18747
18748# Compile-time system search path for libraries.
18749sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18750
18751# Run-time system search path for libraries.
18752sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18753
18754# Whether dlopen is supported.
18755dlopen_support=$enable_dlopen
18756
18757# Whether dlopen of programs is supported.
18758dlopen_self=$enable_dlopen_self
18759
18760# Whether dlopen of statically linked programs is supported.
18761dlopen_self_static=$enable_dlopen_self_static
18762
18763# Commands to strip libraries.
18764old_striplib=$lt_old_striplib
18765striplib=$lt_striplib
18766
18767
18768# The linker used to build libraries.
18769LD=$lt_LD
18770
18771# Commands used to build an old-style archive.
18772old_archive_cmds=$lt_old_archive_cmds
18773
18774# A language specific compiler.
18775CC=$lt_compiler
18776
18777# Is the compiler the GNU compiler?
18778with_gcc=$GCC
18779
18780# Compiler flag to turn off builtin functions.
18781no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18782
18783# How to pass a linker flag through the compiler.
18784wl=$lt_lt_prog_compiler_wl
18785
18786# Additional compiler flags for building library objects.
18787pic_flag=$lt_lt_prog_compiler_pic
18788
18789# Compiler flag to prevent dynamic linking.
18790link_static_flag=$lt_lt_prog_compiler_static
18791
18792# Does compiler simultaneously support -c and -o options?
18793compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18794
18795# Whether or not to add -lc for building shared libraries.
18796build_libtool_need_lc=$archive_cmds_need_lc
18797
18798# Whether or not to disallow shared libs when runtime libs are static.
18799allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18800
18801# Compiler flag to allow reflexive dlopens.
18802export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18803
18804# Compiler flag to generate shared objects directly from archives.
18805whole_archive_flag_spec=$lt_whole_archive_flag_spec
18806
18807# Whether the compiler copes with passing no objects directly.
18808compiler_needs_object=$lt_compiler_needs_object
18809
18810# Create an old-style archive from a shared archive.
18811old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18812
18813# Create a temporary old-style archive to link instead of a shared archive.
18814old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18815
18816# Commands used to build a shared archive.
18817archive_cmds=$lt_archive_cmds
18818archive_expsym_cmds=$lt_archive_expsym_cmds
18819
18820# Commands used to build a loadable module if different from building
18821# a shared archive.
18822module_cmds=$lt_module_cmds
18823module_expsym_cmds=$lt_module_expsym_cmds
18824
18825# Whether we are building with GNU ld or not.
18826with_gnu_ld=$lt_with_gnu_ld
18827
18828# Flag that allows shared libraries with undefined symbols to be built.
18829allow_undefined_flag=$lt_allow_undefined_flag
18830
18831# Flag that enforces no undefined symbols.
18832no_undefined_flag=$lt_no_undefined_flag
18833
18834# Flag to hardcode \$libdir into a binary during linking.
18835# This must work even if \$libdir does not exist
18836hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18837
18838# If ld is used when linking, flag to hardcode \$libdir into a binary
18839# during linking. This must work even if \$libdir does not exist.
18840hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18841
18842# Whether we need a single "-rpath" flag with a separated argument.
18843hardcode_libdir_separator=$lt_hardcode_libdir_separator
18844
18845# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18846# DIR into the resulting binary.
18847hardcode_direct=$hardcode_direct
18848
18849# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18850# DIR into the resulting binary and the resulting library dependency is
18851# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18852# library is relocated.
18853hardcode_direct_absolute=$hardcode_direct_absolute
18854
18855# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18856# into the resulting binary.
18857hardcode_minus_L=$hardcode_minus_L
18858
18859# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18860# into the resulting binary.
18861hardcode_shlibpath_var=$hardcode_shlibpath_var
18862
18863# Set to "yes" if building a shared library automatically hardcodes DIR
18864# into the library and all subsequent libraries and executables linked
18865# against it.
18866hardcode_automatic=$hardcode_automatic
18867
18868# Set to yes if linker adds runtime paths of dependent libraries
18869# to runtime path list.
18870inherit_rpath=$inherit_rpath
18871
18872# Whether libtool must link a program against all its dependency libraries.
18873link_all_deplibs=$link_all_deplibs
18874
18875# Fix the shell variable \$srcfile for the compiler.
18876fix_srcfile_path=$lt_fix_srcfile_path
18877
18878# Set to "yes" if exported symbols are required.
18879always_export_symbols=$always_export_symbols
18880
18881# The commands to list exported symbols.
18882export_symbols_cmds=$lt_export_symbols_cmds
18883
18884# Symbols that should not be listed in the preloaded symbols.
18885exclude_expsyms=$lt_exclude_expsyms
18886
18887# Symbols that must always be exported.
18888include_expsyms=$lt_include_expsyms
18889
18890# Commands necessary for linking programs (against libraries) with templates.
18891prelink_cmds=$lt_prelink_cmds
18892
18893# Specify filename containing input files.
18894file_list_spec=$lt_file_list_spec
18895
18896# How to hardcode a shared library path into an executable.
18897hardcode_action=$hardcode_action
18898
18899# ### END LIBTOOL CONFIG
18900
18901_LT_EOF
18902
18903 case $host_os in
18904 aix3*)
18905 cat <<\_LT_EOF >> "$cfgfile"
18906# AIX sometimes has problems with the GCC collect2 program. For some
18907# reason, if we set the COLLECT_NAMES environment variable, the problems
18908# vanish in a puff of smoke.
18909if test "X${COLLECT_NAMES+set}" != Xset; then
18910 COLLECT_NAMES=
18911 export COLLECT_NAMES
18912fi
18913_LT_EOF
18914 ;;
18915 esac
18916
18917
18918ltmain="$ac_aux_dir/ltmain.sh"
18919
18920
18921 # We use sed instead of cat because bash on DJGPP gets confused if
18922 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18923 # text mode, it properly converts lines to CR/LF. This bash problem
18924 # is reportedly fixed, but why not run on old versions too?
18925 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18926 || (rm -f "$cfgfile"; exit 1)
18927
18928 case $xsi_shell in
18929 yes)
18930 cat << \_LT_EOF >> "$cfgfile"
18931
18932# func_dirname file append nondir_replacement
18933# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18934# otherwise set result to NONDIR_REPLACEMENT.
18935func_dirname ()
18936{
18937 case ${1} in
18938 */*) func_dirname_result="${1%/*}${2}" ;;
18939 * ) func_dirname_result="${3}" ;;
18940 esac
18941}
18942
18943# func_basename file
18944func_basename ()
18945{
18946 func_basename_result="${1##*/}"
18947}
18948
18949# func_dirname_and_basename file append nondir_replacement
18950# perform func_basename and func_dirname in a single function
18951# call:
18952# dirname: Compute the dirname of FILE. If nonempty,
18953# add APPEND to the result, otherwise set result
18954# to NONDIR_REPLACEMENT.
18955# value returned in "$func_dirname_result"
18956# basename: Compute filename of FILE.
18957# value retuned in "$func_basename_result"
18958# Implementation must be kept synchronized with func_dirname
18959# and func_basename. For efficiency, we do not delegate to
18960# those functions but instead duplicate the functionality here.
18961func_dirname_and_basename ()
18962{
18963 case ${1} in
18964 */*) func_dirname_result="${1%/*}${2}" ;;
18965 * ) func_dirname_result="${3}" ;;
18966 esac
18967 func_basename_result="${1##*/}"
18968}
18969
18970# func_stripname prefix suffix name
18971# strip PREFIX and SUFFIX off of NAME.
18972# PREFIX and SUFFIX must not contain globbing or regex special
18973# characters, hashes, percent signs, but SUFFIX may contain a leading
18974# dot (in which case that matches only a dot).
18975func_stripname ()
18976{
18977 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18978 # positional parameters, so assign one to ordinary parameter first.
18979 func_stripname_result=${3}
18980 func_stripname_result=${func_stripname_result#"${1}"}
18981 func_stripname_result=${func_stripname_result%"${2}"}
18982}
18983
18984# func_opt_split
18985func_opt_split ()
18986{
18987 func_opt_split_opt=${1%%=*}
18988 func_opt_split_arg=${1#*=}
18989}
18990
18991# func_lo2o object
18992func_lo2o ()
18993{
18994 case ${1} in
18995 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18996 *) func_lo2o_result=${1} ;;
18997 esac
18998}
18999
19000# func_xform libobj-or-source
19001func_xform ()
19002{
19003 func_xform_result=${1%.*}.lo
19004}
19005
19006# func_arith arithmetic-term...
19007func_arith ()
19008{
19009 func_arith_result=$(( $* ))
19010}
19011
19012# func_len string
19013# STRING may not start with a hyphen.
19014func_len ()
19015{
19016 func_len_result=${#1}
19017}
19018
19019_LT_EOF
19020 ;;
19021 *) # Bourne compatible functions.
19022 cat << \_LT_EOF >> "$cfgfile"
19023
19024# func_dirname file append nondir_replacement
19025# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19026# otherwise set result to NONDIR_REPLACEMENT.
19027func_dirname ()
19028{
19029 # Extract subdirectory from the argument.
19030 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19031 if test "X$func_dirname_result" = "X${1}"; then
19032 func_dirname_result="${3}"
19033 else
19034 func_dirname_result="$func_dirname_result${2}"
19035 fi
19036}
19037
19038# func_basename file
19039func_basename ()
19040{
19041 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19042}
19043
19044
19045# func_stripname prefix suffix name
19046# strip PREFIX and SUFFIX off of NAME.
19047# PREFIX and SUFFIX must not contain globbing or regex special
19048# characters, hashes, percent signs, but SUFFIX may contain a leading
19049# dot (in which case that matches only a dot).
19050# func_strip_suffix prefix name
19051func_stripname ()
19052{
19053 case ${2} in
19054 .*) func_stripname_result=`$ECHO "X${3}" \
19055 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19056 *) func_stripname_result=`$ECHO "X${3}" \
19057 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19058 esac
19059}
19060
19061# sed scripts:
19062my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19063my_sed_long_arg='1s/^-[^=]*=//'
19064
19065# func_opt_split
19066func_opt_split ()
19067{
19068 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19069 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19070}
19071
19072# func_lo2o object
19073func_lo2o ()
19074{
19075 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19076}
19077
19078# func_xform libobj-or-source
19079func_xform ()
19080{
19081 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19082}
19083
19084# func_arith arithmetic-term...
19085func_arith ()
19086{
19087 func_arith_result=`expr "$@"`
19088}
19089
19090# func_len string
19091# STRING may not start with a hyphen.
19092func_len ()
19093{
19094 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19095}
19096
19097_LT_EOF
19098esac
19099
19100case $lt_shell_append in
19101 yes)
19102 cat << \_LT_EOF >> "$cfgfile"
19103
19104# func_append var value
19105# Append VALUE to the end of shell variable VAR.
19106func_append ()
19107{
19108 eval "$1+=\$2"
19109}
19110_LT_EOF
19111 ;;
19112 *)
19113 cat << \_LT_EOF >> "$cfgfile"
19114
19115# func_append var value
19116# Append VALUE to the end of shell variable VAR.
19117func_append ()
19118{
19119 eval "$1=\$$1\$2"
19120}
19121
19122_LT_EOF
19123 ;;
19124 esac
19125
19126
19127 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19128 || (rm -f "$cfgfile"; exit 1)
19129
19130 mv -f "$cfgfile" "$ofile" ||
19131 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19132 chmod +x "$ofile"
19133
19134 ;;
19135 "po-directories":C)
19136 for ac_file in $CONFIG_FILES; do
19137 # Support "outfile[:infile[:infile...]]"
19138 case "$ac_file" in
19139 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19140 esac
19141 # PO directories have a Makefile.in generated from Makefile.in.in.
19142 case "$ac_file" in */Makefile.in)
19143 # Adjust a relative srcdir.
19144 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19145 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19146 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19147 # In autoconf-2.13 it is called $ac_given_srcdir.
19148 # In autoconf-2.50 it is called $srcdir.
19149 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19150 case "$ac_given_srcdir" in
19151 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19152 /*) top_srcdir="$ac_given_srcdir" ;;
19153 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19154 esac
19155 # Treat a directory as a PO directory if and only if it has a
19156 # POTFILES.in file. This allows packages to have multiple PO
19157 # directories under different names or in different locations.
19158 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19159 rm -f "$ac_dir/POTFILES"
19160 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19161 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19162 POMAKEFILEDEPS="POTFILES.in"
19163 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19164 # on $ac_dir but don't depend on user-specified configuration
19165 # parameters.
19166 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19167 # The LINGUAS file contains the set of available languages.
19168 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19169 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19170 fi
19171 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19172 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19173 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19174 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19175 else
19176 # The set of available languages was given in configure.in.
19177 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19178 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19179 fi
19180 # Compute POFILES
19181 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19182 # Compute UPDATEPOFILES
19183 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19184 # Compute DUMMYPOFILES
19185 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19186 # Compute GMOFILES
19187 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19188 case "$ac_given_srcdir" in
19189 .) srcdirpre= ;;
19190 *) srcdirpre='$(srcdir)/' ;;
19191 esac
19192 POFILES=
19193 UPDATEPOFILES=
19194 DUMMYPOFILES=
19195 GMOFILES=
19196 for lang in $ALL_LINGUAS; do
19197 POFILES="$POFILES $srcdirpre$lang.po"
19198 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19199 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19200 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19201 done
19202 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19203 # environment variable.
19204 INST_LINGUAS=
19205 if test -n "$ALL_LINGUAS"; then
19206 for presentlang in $ALL_LINGUAS; do
19207 useit=no
19208 if test "%UNSET%" != "$LINGUAS"; then
19209 desiredlanguages="$LINGUAS"
19210 else
19211 desiredlanguages="$ALL_LINGUAS"
19212 fi
19213 for desiredlang in $desiredlanguages; do
19214 # Use the presentlang catalog if desiredlang is
19215 # a. equal to presentlang, or
19216 # b. a variant of presentlang (because in this case,
19217 # presentlang can be used as a fallback for messages
19218 # which are not translated in the desiredlang catalog).
19219 case "$desiredlang" in
19220 "$presentlang"*) useit=yes;;
19221 esac
19222 done
19223 if test $useit = yes; then
19224 INST_LINGUAS="$INST_LINGUAS $presentlang"
19225 fi
19226 done
19227 fi
19228 CATALOGS=
19229 if test -n "$INST_LINGUAS"; then
19230 for lang in $INST_LINGUAS; do
19231 CATALOGS="$CATALOGS $lang.gmo"
19232 done
19233 fi
19234 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19235 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"
19236 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19237 if test -f "$f"; then
19238 case "$f" in
19239 *.orig | *.bak | *~) ;;
19240 *) cat "$f" >> "$ac_dir/Makefile" ;;
19241 esac
19242 fi
19243 done
19244 fi
19245 ;;
19246 esac
19247 done ;;
19248
19249 esac
19250done # for ac_tag
19251
19252
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010019253as_fn_exit 0
Scott James Remnant65f683d2009-07-14 13:05:17 +010019254_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019255ac_clean_files=$ac_clean_files_save
19256
19257test $ac_write_fail = 0 ||
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010019258 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019259
19260
19261# configure is writing to config.log, and then calls config.status.
19262# config.status does its own redirection, appending to config.log.
19263# Unfortunately, on DOS this fails, as config.log is still kept open
19264# by configure, so config.status won't be able to write to it; its
19265# output is simply discarded. So we exec the FD to /dev/null,
19266# effectively closing config.log, so it can be properly (re)opened and
19267# appended to by config.status. When coming back to configure, we
19268# need to make the FD available again.
19269if test "$no_create" != yes; then
19270 ac_cs_success=:
19271 ac_config_status_args=
19272 test "$silent" = yes &&
19273 ac_config_status_args="$ac_config_status_args --quiet"
19274 exec 5>/dev/null
19275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19276 exec 5>>config.log
19277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19278 # would make configure fail if this is the last instruction.
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010019279 $ac_cs_success || as_fn_exit $?
Scott James Remnant65f683d2009-07-14 13:05:17 +010019280fi
19281if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010019282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019283$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19284fi
19285