blob: 49ca3902b216327b7b09597581681270c100e625 [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 Remnantfde82c92009-09-22 10:04:15 -07003# 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 Remnantfde82c92009-09-22 10:04:15 -07008# 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 Remnantfde82c92009-09-22 10:04:15 -070015## -------------------- ##
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 Remnantfde82c92009-09-22 10:04:15 -070021if 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 Remnantfde82c92009-09-22 10:04:15 -070029 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 Remnantfde82c92009-09-22 10:04:15 -070045# 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 Remnantfde82c92009-09-22 10:04:15 -070062 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 Remnantfde82c92009-09-22 10:04:15 -070094case $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 Remnantfde82c92009-09-22 10:04:15 -0700101 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 Remnantfde82c92009-09-22 10:04:15 -0700114 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +0100115fi
116
Scott James Remnantfde82c92009-09-22 10:04:15 -0700117# 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 Remnantfde82c92009-09-22 10:04:15 -0700135# 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 Remnantfde82c92009-09-22 10:04:15 -0700391if (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 Remnantfde82c92009-09-22 10:04:15 -0700416# 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 Remnantfde82c92009-09-22 10:04:15 -0700424 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 Remnantfde82c92009-09-22 10:04:15 -0700445 { $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 Remnantfde82c92009-09-22 10:04:15 -0700456case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +0100457-n*)
Scott James Remnantfde82c92009-09-22 10:04:15 -0700458 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 Remnantfde82c92009-09-22 10:04:15 -0700460 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 Remnantfde82c92009-09-22 10:04:15 -0700496 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 Remnantfde82c92009-09-22 10:04:15 -0700515 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +0100516 -*)set "./$1";;
517 esac;
Scott James Remnantfde82c92009-09-22 10:04:15 -0700518 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 Remnantfde82c92009-09-22 10:04:15 -0700706PACKAGE_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
Scott James Remnant2a66c572009-09-15 03:19:16 +0100748UDEV_LIBS
749UDEV_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100750HAVE_VERSION_SCRIPT_ARG_FALSE
751HAVE_VERSION_SCRIPT_ARG_TRUE
752VERSION_SCRIPT_ARG
753HAVE_DBUS_FALSE
754HAVE_DBUS_TRUE
755EXPAT_LIBS
756DBUS_LIBS
757DBUS_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100758INSTALL_NIH_FALSE
759INSTALL_NIH_TRUE
Scott James Remnant2a66c572009-09-15 03:19:16 +0100760PKG_CONFIG
Scott James Remnant65f683d2009-07-14 13:05:17 +0100761POSUB
762LTLIBINTL
763LIBINTL
764INTLLIBS
765INTL_LIBTOOL_SUFFIX_PREFIX
766INTLOBJS
767GENCAT
768INSTOBJEXT
769DATADIRNAME
770CATOBJEXT
771USE_INCLUDED_LIBINTL
772BUILD_INCLUDED_LIBINTL
773WOE32DLL
774HAVE_WPRINTF
775HAVE_SNPRINTF
776HAVE_ASPRINTF
777HAVE_POSIX_PRINTF
778INTL_MACOSX_LIBS
779GLIBC21
780INTLBISON
781LTLIBICONV
782LIBICONV
783LTLIBMULTITHREAD
784LIBMULTITHREAD
785LTLIBTHREAD
786LIBTHREAD
787LTLIBPTH
788LIBPTH
789PRI_MACROS_BROKEN
790ALLOCA
791HAVE_VISIBILITY
792CFLAG_VISIBILITY
793GLIBC2
794MSGMERGE
795XGETTEXT_015
796XGETTEXT
797GMSGFMT_015
798MSGFMT_015
799GMSGFMT
800MSGFMT
801USE_NLS
802OTOOL64
803OTOOL
804LIPO
805NMEDIT
806DSYMUTIL
807lt_ECHO
808RANLIB
809AR
810OBJDUMP
811LN_S
812NM
813ac_ct_DUMPBIN
814DUMPBIN
815LD
816FGREP
817SED
818host_os
819host_vendor
820host_cpu
821host
822build_os
823build_vendor
824build_cpu
825build
826LIBTOOL
827am__fastdepCC_FALSE
828am__fastdepCC_TRUE
829CCDEPMODE
830AMDEPBACKSLASH
831AMDEP_FALSE
832AMDEP_TRUE
833am__quote
834am__include
835DEPDIR
836am__untar
837am__tar
838AMTAR
839am__leading_dot
840SET_MAKE
841AWK
842mkdir_p
843MKDIR_P
844INSTALL_STRIP_PROGRAM
845STRIP
846install_sh
847MAKEINFO
848AUTOHEADER
849AUTOMAKE
850AUTOCONF
851ACLOCAL
852VERSION
853PACKAGE
854CYGPATH_W
855am__isrc
856INSTALL_DATA
857INSTALL_SCRIPT
858INSTALL_PROGRAM
859EGREP
860GREP
861CPP
862OBJEXT
863EXEEXT
864ac_ct_CC
865CPPFLAGS
866LDFLAGS
867CFLAGS
868CC
869target_alias
870host_alias
871build_alias
872LIBS
873ECHO_T
874ECHO_N
875ECHO_C
876DEFS
877PACKAGE_COPYRIGHT
878mandir
879localedir
880libdir
881psdir
882pdfdir
883dvidir
884htmldir
885infodir
886docdir
887oldincludedir
888includedir
889localstatedir
890sharedstatedir
891sysconfdir
892datadir
893datarootdir
894libexecdir
895sbindir
896bindir
897program_transform_name
898prefix
899exec_prefix
Scott James Remnantfde82c92009-09-22 10:04:15 -0700900PACKAGE_URL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100901PACKAGE_BUGREPORT
902PACKAGE_STRING
903PACKAGE_VERSION
904PACKAGE_TARNAME
905PACKAGE_NAME
906PATH_SEPARATOR
907SHELL'
908ac_subst_files=''
909ac_user_opts='
910enable_option_checking
911enable_dependency_tracking
912enable_shared
913enable_static
914with_pic
915enable_fast_install
916with_gnu_ld
917enable_libtool_lock
918enable_nls
919enable_threads
920enable_rpath
921with_libpth_prefix
922with_libiconv_prefix
923with_included_gettext
924with_libintl_prefix
925enable_threading
926enable_compiler_warnings
927enable_compiler_optimisations
928enable_compiler_coverage
929enable_linker_optimisations
930'
931 ac_precious_vars='build_alias
932host_alias
933target_alias
934CC
935CFLAGS
936LDFLAGS
937LIBS
938CPPFLAGS
939CPP
940PKG_CONFIG
941DBUS_CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100942DBUS_LIBS
943UDEV_CFLAGS
944UDEV_LIBS'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100945
946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950ac_unrecognized_opts=
951ac_unrecognized_sep=
952# The variables have the same names as the options, with
953# dashes changed to underlines.
954cache_file=/dev/null
955exec_prefix=NONE
956no_create=
957no_recursion=
958prefix=NONE
959program_prefix=NONE
960program_suffix=NONE
961program_transform_name=s,x,x,
962silent=
963site=
964srcdir=
965verbose=
966x_includes=NONE
967x_libraries=NONE
968
969# Installation directory options.
970# These are left unexpanded so users can "make install exec_prefix=/foo"
971# and all the variables that are supposed to be based on exec_prefix
972# by default will actually change.
973# Use braces instead of parens because sh, perl, etc. also accept them.
974# (The list follows the same order as the GNU Coding Standards.)
975bindir='${exec_prefix}/bin'
976sbindir='${exec_prefix}/sbin'
977libexecdir='${exec_prefix}/libexec'
978datarootdir='${prefix}/share'
979datadir='${datarootdir}'
980sysconfdir='${prefix}/etc'
981sharedstatedir='${prefix}/com'
982localstatedir='${prefix}/var'
983includedir='${prefix}/include'
984oldincludedir='/usr/include'
985docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
994
995ac_prev=
996ac_dashdash=
997for ac_option
998do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1010
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013 case $ac_dashdash$ac_option in
1014 --)
1015 ac_dashdash=yes ;;
1016
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1021
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1026
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1033
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1036
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1041
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1048
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001053 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058"enable_$ac_useropt"
1059"*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1074
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001079 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084"enable_$ac_useropt"
1085"*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001283 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288"with_$ac_useropt"
1289"*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1294
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001299 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1303 *"
1304"with_$ac_useropt"
1305"*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
Scott James Remnantfde82c92009-09-22 10:04:15 -07001329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330Try \`$0 --help' for more information."
Scott James Remnant65f683d2009-07-14 13:05:17 +01001331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
Scott James Remnantfde82c92009-09-22 10:04:15 -07001336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01001340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352done
1353
1354if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07001356 as_fn_error "missing argument to $ac_option"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001357fi
1358
1359if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07001362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1365fi
1366
1367# Check all directory arguments for consistency.
1368for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372do
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07001385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001386done
1387
1388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
1390# FIXME: To remove some day.
1391build=$build_alias
1392host=$host_alias
1393target=$target_alias
1394
1395# FIXME: To remove some day.
1396if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
1410
1411
1412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001415 as_fn_error "working directory cannot be determined"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001416test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001417 as_fn_error "pwd does not report name of working directory"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001418
1419
1420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1450 fi
1451else
1452 ac_srcdir_defaulted=no
1453fi
1454if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnantfde82c92009-09-22 10:04:15 -07001456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
Scott James Remnantfde82c92009-09-22 10:04:15 -07001460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001461 pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
1478
1479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001486\`configure' configures upstart 0.6.3 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539_ACEOF
1540
1541 cat <<\_ACEOF
1542
1543Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555 case $ac_init_help in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001556 short | recursive ) echo "Configuration of upstart 0.6.3:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001557 esac
1558 cat <<\_ACEOF
1559
1560Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-shared[=PKGS] build shared libraries [default=yes]
1567 --enable-static[=PKGS] build static libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --disable-nls do not use Native Language Support
1572 --enable-threads={posix|solaris|pth|win32}
1573 specify multithreading API
1574 --disable-threads build without multithread safety
1575 --disable-rpath do not hardcode runtime library paths
1576 --enable-threading Enable support for multi-threading
1577 --enable-compiler-warnings
1578 Enable additional compiler warnings
1579 --disable-compiler-optimisations
1580 Disable compiler optimisations
1581 --enable-compiler-coverage
1582 Enable generation of coverage data
1583 --disable-linker-optimisations
1584 Disable linker optimisations
1585
1586Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1592 --with-gnu-ld assume the C compiler uses GNU ld default=no
1593 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1594 --without-libpth-prefix don't search for libpth in includedir and libdir
1595 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1596 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1597 --with-included-gettext use the GNU gettext library included here
1598 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1599 --without-libintl-prefix don't search for libintl in includedir and libdir
1600
1601Some influential environment variables:
1602 CC C compiler command
1603 CFLAGS C compiler flags
1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1605 nonstandard directory <lib dir>
1606 LIBS libraries to pass to the linker, e.g. -l<library>
1607 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1608 you have headers in a nonstandard directory <include dir>
1609 CPP C preprocessor
1610 PKG_CONFIG path to pkg-config utility
1611 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1612 DBUS_LIBS linker flags for DBUS, overriding pkg-config
Scott James Remnant2a66c572009-09-15 03:19:16 +01001613 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1614 UDEV_LIBS linker flags for UDEV, overriding pkg-config
Scott James Remnant65f683d2009-07-14 13:05:17 +01001615
1616Use these variables to override the choices made by `configure' or to help
1617it to find libraries and programs with nonstandard names/locations.
1618
1619Report bugs to <upstart-devel@lists.ubuntu.com>.
1620_ACEOF
1621ac_status=$?
1622fi
1623
1624if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1630 ac_builddir=.
1631
1632case "$ac_dir" in
1633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634*)
1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642esac
1643ac_abs_top_builddir=$ac_pwd
1644ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645# for backward compatibility:
1646ac_top_builddir=$ac_top_build_prefix
1647
1648case $srcdir in
1649 .) # We are building in place.
1650 ac_srcdir=.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661esac
1662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1672 else
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1676 done
1677fi
1678
1679test -n "$ac_init_help" && exit $ac_status
1680if $ac_init_version; then
1681 cat <<\_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001682upstart configure 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -07001683generated by GNU Autoconf 2.64
Scott James Remnant65f683d2009-07-14 13:05:17 +01001684
1685Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnantfde82c92009-09-22 10:04:15 -070016862002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
1687Foundation, Inc.
1688
Scott James Remnant65f683d2009-07-14 13:05:17 +01001689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691
1692Copyright © 2009 Canonical Ltd.
1693_ACEOF
1694 exit
1695fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07001696
1697## ------------------------ ##
1698## Autoconf initialization. ##
1699## ------------------------ ##
1700
1701# ac_fn_c_try_compile LINENO
1702# --------------------------
1703# Try to compile conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_compile ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext
1708 if { { ac_try="$ac_compile"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_compile") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && {
1724 test -z "$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 } && test -s conftest.$ac_objext; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733fi
1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1735 return $ac_retval
1736
1737} # ac_fn_c_try_compile
1738
1739# ac_fn_c_try_cpp LINENO
1740# ----------------------
1741# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742ac_fn_c_try_cpp ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } >/dev/null && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770fi
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774} # ac_fn_c_try_cpp
1775
1776# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777# -------------------------------------------------------
1778# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779# the include files in INCLUDES and setting the cache variable VAR
1780# accordingly.
1781ac_fn_c_check_header_mongrel ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
1787if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793else
1794 # Is the header compilable?
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796$as_echo_n "checking $2 usability... " >&6; }
1797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 ac_header_compiler=yes
1804else
1805 ac_header_compiler=no
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809$as_echo "$ac_header_compiler" >&6; }
1810
1811# Is the header present?
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813$as_echo_n "checking $2 presence... " >&6; }
1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h. */
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_cpp "$LINENO"; then :
1819 ac_header_preproc=yes
1820else
1821 ac_header_preproc=no
1822fi
1823rm -f conftest.err conftest.$ac_ext
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825$as_echo "$ac_header_preproc" >&6; }
1826
1827# So? What about this header?
1828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829 yes:no: )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ;;
1835 no:yes:* )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1839$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1843$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846( cat <<\_ASBOX
1847## --------------------------------------------- ##
1848## Report this to upstart-devel@lists.ubuntu.com ##
1849## --------------------------------------------- ##
1850_ASBOX
1851 ) | sed "s/^/$as_me: WARNING: /" >&2
1852 ;;
1853esac
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 $as_echo_n "(cached) " >&6
1858else
1859 eval "$3=\$ac_header_compiler"
1860fi
1861eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864fi
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866
1867} # ac_fn_c_check_header_mongrel
1868
1869# ac_fn_c_try_run LINENO
1870# ----------------------
1871# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872# that executables *can* be run.
1873ac_fn_c_try_run ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_link"
1877case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880esac
1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882$as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>&5
1884 ac_status=$?
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887 { { case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_try") 2>&5
1894 ac_status=$?
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; }; }; then :
1897 ac_retval=0
1898else
1899 $as_echo "$as_me: program exited with status $ac_status" >&5
1900 $as_echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903 ac_retval=$ac_status
1904fi
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 return $ac_retval
1908
1909} # ac_fn_c_try_run
1910
1911# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912# -------------------------------------------------------
1913# Tests whether HEADER exists and can be compiled using the include files in
1914# INCLUDES, setting the cache variable VAR accordingly.
1915ac_fn_c_check_header_compile ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$4
1926#include <$2>
1927_ACEOF
1928if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$3=yes"
1930else
1931 eval "$3=no"
1932fi
1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940} # ac_fn_c_check_header_compile
1941
1942# ac_fn_c_try_link LINENO
1943# -----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded.
1945ac_fn_c_try_link ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 rm -f conftest.$ac_objext conftest$ac_exeext
1949 if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>conftest.err
1957 ac_status=$?
1958 if test -s conftest.err; then
1959 grep -v '^ *+' conftest.err >conftest.er1
1960 cat conftest.er1 >&5
1961 mv -f conftest.er1 conftest.err
1962 fi
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && {
1965 test -z "$ac_c_werror_flag" ||
1966 test ! -s conftest.err
1967 } && test -s conftest$ac_exeext && {
1968 test "$cross_compiling" = yes ||
1969 $as_test_x conftest$ac_exeext
1970 }; then :
1971 ac_retval=0
1972else
1973 $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=1
1977fi
1978 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980 # interfere with the next link command; also delete a directory that is
1981 # left behind by Apple's compiler. We do this before executing the actions.
1982 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 return $ac_retval
1985
1986} # ac_fn_c_try_link
1987
1988# ac_fn_c_check_func LINENO FUNC VAR
1989# ----------------------------------
1990# Tests whether FUNC exists, setting the cache variable VAR accordingly
1991ac_fn_c_check_func ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995$as_echo_n "checking for $2... " >&6; }
1996if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1997 $as_echo_n "(cached) " >&6
1998else
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2003#define $2 innocuous_$2
2004
2005/* System header to define __stub macros and hopefully few prototypes,
2006 which can conflict with char $2 (); below.
2007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2008 <limits.h> exists even on freestanding compilers. */
2009
2010#ifdef __STDC__
2011# include <limits.h>
2012#else
2013# include <assert.h>
2014#endif
2015
2016#undef $2
2017
2018/* Override any GCC internal prototype to avoid an error.
2019 Use char because int might match the return type of a GCC
2020 builtin and then its argument prototype would still apply. */
2021#ifdef __cplusplus
2022extern "C"
2023#endif
2024char $2 ();
2025/* The GNU C library defines this for functions which it implements
2026 to always fail with ENOSYS. Some functions are actually named
2027 something starting with __ and the normal name is an alias. */
2028#if defined __stub_$2 || defined __stub___$2
2029choke me
2030#endif
2031
2032int
2033main ()
2034{
2035return $2 ();
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_link "$LINENO"; then :
2041 eval "$3=yes"
2042else
2043 eval "$3=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext \
2046 conftest$ac_exeext conftest.$ac_ext
2047fi
2048eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053} # ac_fn_c_check_func
2054
2055# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056# -------------------------------------------
2057# Tests whether TYPE exists after having included INCLUDES, setting cache
2058# variable VAR accordingly.
2059ac_fn_c_check_type ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2066else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074if (sizeof ($2))
2075 return 0;
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087if (sizeof (($2)))
2088 return 0;
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
2094
2095else
2096 eval "$3=yes"
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104$as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107} # ac_fn_c_check_type
2108
2109# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2110# --------------------------------------------
2111# Tries to find the compile-time value of EXPR in a program that includes
2112# INCLUDES, setting VAR accordingly. Returns whether the value could be
2113# computed
2114ac_fn_c_compute_int ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if test "$cross_compiling" = yes; then
2118 # Depending upon the size, compute the lo and hi bounds.
2119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) >= 0)];
2126test_array [0] = 0
2127
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=0 ac_mid=0
2134 while :; do
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h. */
2137$4
2138int
2139main ()
2140{
2141static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2142test_array [0] = 0
2143
2144 ;
2145 return 0;
2146}
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_hi=$ac_mid; break
2150else
2151 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2152 if test $ac_lo -le $ac_mid; then
2153 ac_lo= ac_hi=
2154 break
2155 fi
2156 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160else
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162/* end confdefs.h. */
2163$4
2164int
2165main ()
2166{
2167static int test_array [1 - 2 * !(($2) < 0)];
2168test_array [0] = 0
2169
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=-1 ac_mid=-1
2176 while :; do
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h. */
2179$4
2180int
2181main ()
2182{
2183static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2184test_array [0] = 0
2185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
2192else
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2197 fi
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202else
2203 ac_lo= ac_hi=
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208# Binary search between lo and hi bounds.
2209while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214int
2215main ()
2216{
2217static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218test_array [0] = 0
2219
2220 ;
2221 return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225 ac_hi=$ac_mid
2226else
2227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230done
2231case $ac_lo in #((
2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2233'') ac_retval=1 ;;
2234esac
2235 else
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h. */
2238$4
2239static long int longval () { return $2; }
2240static unsigned long int ulongval () { return $2; }
2241#include <stdio.h>
2242#include <stdlib.h>
2243int
2244main ()
2245{
2246
2247 FILE *f = fopen ("conftest.val", "w");
2248 if (! f)
2249 return 1;
2250 if (($2) < 0)
2251 {
2252 long int i = longval ();
2253 if (i != ($2))
2254 return 1;
2255 fprintf (f, "%ld", i);
2256 }
2257 else
2258 {
2259 unsigned long int i = ulongval ();
2260 if (i != ($2))
2261 return 1;
2262 fprintf (f, "%lu", i);
2263 }
2264 /* Do not output a trailing newline, as this causes \r\n confusion
2265 on some platforms. */
2266 return ferror (f) || fclose (f) != 0;
2267
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_run "$LINENO"; then :
2273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2274else
2275 ac_retval=1
2276fi
2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2278 conftest.$ac_objext conftest.beam conftest.$ac_ext
2279rm -f conftest.val
2280
2281 fi
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2283 return $ac_retval
2284
2285} # ac_fn_c_compute_int
Scott James Remnant65f683d2009-07-14 13:05:17 +01002286cat >config.log <<_ACEOF
2287This file contains any messages produced by compilers while
2288running configure, to aid debugging if configure makes a mistake.
2289
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002290It was created by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -07002291generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +01002292
2293 $ $0 $@
2294
2295_ACEOF
2296exec 5>>config.log
2297{
2298cat <<_ASUNAME
2299## --------- ##
2300## Platform. ##
2301## --------- ##
2302
2303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2304uname -m = `(uname -m) 2>/dev/null || echo unknown`
2305uname -r = `(uname -r) 2>/dev/null || echo unknown`
2306uname -s = `(uname -s) 2>/dev/null || echo unknown`
2307uname -v = `(uname -v) 2>/dev/null || echo unknown`
2308
2309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2310/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2311
2312/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2313/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2315/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2316/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2317/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2318/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2319
2320_ASUNAME
2321
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002327 $as_echo "PATH: $as_dir"
2328 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002329IFS=$as_save_IFS
2330
2331} >&5
2332
2333cat >&5 <<_ACEOF
2334
2335
2336## ----------- ##
2337## Core tests. ##
2338## ----------- ##
2339
2340_ACEOF
2341
2342
2343# Keep a trace of the command line.
2344# Strip out --no-create and --no-recursion so they do not pile up.
2345# Strip out --silent because we don't want to record it for future runs.
2346# Also quote any args containing shell meta-characters.
2347# Make two passes to allow for proper duplicate-argument suppression.
2348ac_configure_args=
2349ac_configure_args0=
2350ac_configure_args1=
2351ac_must_keep_next=false
2352for ac_pass in 1 2
2353do
2354 for ac_arg
2355 do
2356 case $ac_arg in
2357 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2359 | -silent | --silent | --silen | --sile | --sil)
2360 continue ;;
2361 *\'*)
2362 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 esac
2364 case $ac_pass in
Scott James Remnantfde82c92009-09-22 10:04:15 -07002365 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002366 2)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002367 as_fn_append ac_configure_args1 " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002368 if test $ac_must_keep_next = true; then
2369 ac_must_keep_next=false # Got value, back to normal.
2370 else
2371 case $ac_arg in
2372 *=* | --config-cache | -C | -disable-* | --disable-* \
2373 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2374 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2375 | -with-* | --with-* | -without-* | --without-* | --x)
2376 case "$ac_configure_args0 " in
2377 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2378 esac
2379 ;;
2380 -* ) ac_must_keep_next=true ;;
2381 esac
2382 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002383 as_fn_append ac_configure_args " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002384 ;;
2385 esac
2386 done
2387done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002388{ ac_configure_args0=; unset ac_configure_args0;}
2389{ ac_configure_args1=; unset ac_configure_args1;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01002390
2391# When interrupted or exit'd, cleanup temporary files, and complete
2392# config.log. We remove comments because anyway the quotes in there
2393# would cause problems or look ugly.
2394# WARNING: Use '\'' to represent an apostrophe within the trap.
2395# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2396trap 'exit_status=$?
2397 # Save into config.log some information that might help in debugging.
2398 {
2399 echo
2400
2401 cat <<\_ASBOX
2402## ---------------- ##
2403## Cache variables. ##
2404## ---------------- ##
2405_ASBOX
2406 echo
2407 # The following way of writing the cache mishandles newlines in values,
2408(
2409 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2410 eval ac_val=\$$ac_var
2411 case $ac_val in #(
2412 *${as_nl}*)
2413 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002414 *_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 +01002415$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2416 esac
2417 case $ac_var in #(
2418 _ | IFS | as_nl) ;; #(
2419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002420 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002421 esac ;;
2422 esac
2423 done
2424 (set) 2>&1 |
2425 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2426 *${as_nl}ac_space=\ *)
2427 sed -n \
2428 "s/'\''/'\''\\\\'\'''\''/g;
2429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2430 ;; #(
2431 *)
2432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2433 ;;
2434 esac |
2435 sort
2436)
2437 echo
2438
2439 cat <<\_ASBOX
2440## ----------------- ##
2441## Output variables. ##
2442## ----------------- ##
2443_ASBOX
2444 echo
2445 for ac_var in $ac_subst_vars
2446 do
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2454
2455 if test -n "$ac_subst_files"; then
2456 cat <<\_ASBOX
2457## ------------------- ##
2458## File substitutions. ##
2459## ------------------- ##
2460_ASBOX
2461 echo
2462 for ac_var in $ac_subst_files
2463 do
2464 eval ac_val=\$$ac_var
2465 case $ac_val in
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 esac
2468 $as_echo "$ac_var='\''$ac_val'\''"
2469 done | sort
2470 echo
2471 fi
2472
2473 if test -s confdefs.h; then
2474 cat <<\_ASBOX
2475## ----------- ##
2476## confdefs.h. ##
2477## ----------- ##
2478_ASBOX
2479 echo
2480 cat confdefs.h
2481 echo
2482 fi
2483 test "$ac_signal" != 0 &&
2484 $as_echo "$as_me: caught signal $ac_signal"
2485 $as_echo "$as_me: exit $exit_status"
2486 } >&5
2487 rm -f core *.core core.conftest.* &&
2488 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489 exit $exit_status
2490' 0
2491for ac_signal in 1 2 13 15; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07002492 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Scott James Remnant65f683d2009-07-14 13:05:17 +01002493done
2494ac_signal=0
2495
2496# confdefs.h avoids OS command line length limits that DEFS can exceed.
2497rm -f -r conftest* confdefs.h
2498
Scott James Remnantfde82c92009-09-22 10:04:15 -07002499$as_echo "/* confdefs.h */" > confdefs.h
2500
Scott James Remnant65f683d2009-07-14 13:05:17 +01002501# Predefined preprocessor variables.
2502
2503cat >>confdefs.h <<_ACEOF
2504#define PACKAGE_NAME "$PACKAGE_NAME"
2505_ACEOF
2506
Scott James Remnant65f683d2009-07-14 13:05:17 +01002507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2509_ACEOF
2510
Scott James Remnant65f683d2009-07-14 13:05:17 +01002511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_VERSION "$PACKAGE_VERSION"
2513_ACEOF
2514
Scott James Remnant65f683d2009-07-14 13:05:17 +01002515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_STRING "$PACKAGE_STRING"
2517_ACEOF
2518
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002519cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002521_ACEOF
2522
Scott James Remnantfde82c92009-09-22 10:04:15 -07002523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_URL "$PACKAGE_URL"
2525_ACEOF
2526
Scott James Remnant65f683d2009-07-14 13:05:17 +01002527
2528# Let the site file select an alternate cache file if it wants to.
2529# Prefer an explicitly selected file to automatically selected ones.
2530ac_site_file1=NONE
2531ac_site_file2=NONE
2532if test -n "$CONFIG_SITE"; then
2533 ac_site_file1=$CONFIG_SITE
2534elif test "x$prefix" != xNONE; then
2535 ac_site_file1=$prefix/share/config.site
2536 ac_site_file2=$prefix/etc/config.site
2537else
2538 ac_site_file1=$ac_default_prefix/share/config.site
2539 ac_site_file2=$ac_default_prefix/etc/config.site
2540fi
2541for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2542do
2543 test "x$ac_site_file" = xNONE && continue
2544 if test -r "$ac_site_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002545 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002546$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2547 sed 's/^/| /' "$ac_site_file" >&5
2548 . "$ac_site_file"
2549 fi
2550done
2551
2552if test -r "$cache_file"; then
2553 # Some versions of bash will fail to source /dev/null (special
2554 # files actually), so we avoid doing that.
2555 if test -f "$cache_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002557$as_echo "$as_me: loading cache $cache_file" >&6;}
2558 case $cache_file in
2559 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2560 *) . "./$cache_file";;
2561 esac
2562 fi
2563else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002565$as_echo "$as_me: creating cache $cache_file" >&6;}
2566 >$cache_file
2567fi
2568
2569gt_needs="$gt_needs "
2570# Check that the precious variables saved in the cache have kept the same
2571# value.
2572ac_cache_corrupted=false
2573for ac_var in $ac_precious_vars; do
2574 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2575 eval ac_new_set=\$ac_env_${ac_var}_set
2576 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2577 eval ac_new_val=\$ac_env_${ac_var}_value
2578 case $ac_old_set,$ac_new_set in
2579 set,)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002580 { $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 +01002581$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,set)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002584 { $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 +01002585$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,);;
2588 *)
2589 if test "x$ac_old_val" != "x$ac_new_val"; then
2590 # differences in whitespace do not lead to failure.
2591 ac_old_val_w=`echo x $ac_old_val`
2592 ac_new_val_w=`echo x $ac_new_val`
2593 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002594 { $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 +01002595$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596 ac_cache_corrupted=:
2597 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002598 { $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 +01002599$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2600 eval $ac_var=\$ac_old_val
2601 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002602 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002603$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002604 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002605$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2606 fi;;
2607 esac
2608 # Pass precious variables to config.status.
2609 if test "$ac_new_set" = set; then
2610 case $ac_new_val in
2611 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2612 *) ac_arg=$ac_var=$ac_new_val ;;
2613 esac
2614 case " $ac_configure_args " in
2615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002616 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002617 esac
2618 fi
2619done
2620if $ac_cache_corrupted; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002623 { $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 +01002624$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002625 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002626fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002627## -------------------- ##
2628## Main body of script. ##
2629## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +01002630
2631ac_ext=c
2632ac_cpp='$CPP $CPPFLAGS'
2633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635ac_compiler_gnu=$ac_cv_c_compiler_gnu
2636
2637
2638
2639
2640
2641
Scott James Remnantfde82c92009-09-22 10:04:15 -07002642$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (C) 2009 Canonical Ltd.\"" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01002643 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2644
2645
2646
2647
2648
2649ac_ext=c
2650ac_cpp='$CPP $CPPFLAGS'
2651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2656set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002658$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002659if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002660 $as_echo_n "(cached) " >&6
2661else
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002670 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002674 break 2
2675 fi
2676done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002677 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002678IFS=$as_save_IFS
2679
2680fi
2681fi
2682CC=$ac_cv_prog_CC
2683if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002685$as_echo "$CC" >&6; }
2686else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002688$as_echo "no" >&6; }
2689fi
2690
2691
2692fi
2693if test -z "$ac_cv_prog_CC"; then
2694 ac_ct_CC=$CC
2695 # Extract the first word of "gcc", so it can be a program name with args.
2696set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002698$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002700 $as_echo_n "(cached) " >&6
2701else
2702 if test -n "$ac_ct_CC"; then
2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704else
2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002710 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002714 break 2
2715 fi
2716done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002717 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002718IFS=$as_save_IFS
2719
2720fi
2721fi
2722ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002725$as_echo "$ac_ct_CC" >&6; }
2726else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002728$as_echo "no" >&6; }
2729fi
2730
2731 if test "x$ac_ct_CC" = x; then
2732 CC=""
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002736{ $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 +01002737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738ac_tool_warned=yes ;;
2739esac
2740 CC=$ac_ct_CC
2741 fi
2742else
2743 CC="$ac_cv_prog_CC"
2744fi
2745
2746if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2749set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002751$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002752if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002753 $as_echo_n "(cached) " >&6
2754else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002763 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002767 break 2
2768 fi
2769done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002770 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002771IFS=$as_save_IFS
2772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002778$as_echo "$CC" >&6; }
2779else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002781$as_echo "no" >&6; }
2782fi
2783
2784
2785 fi
2786fi
2787if test -z "$CC"; then
2788 # Extract the first word of "cc", so it can be a program name with args.
2789set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002791$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002792if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002793 $as_echo_n "(cached) " >&6
2794else
2795 if test -n "$CC"; then
2796 ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798 ac_prog_rejected=no
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002804 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2807 ac_prog_rejected=yes
2808 continue
2809 fi
2810 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002812 break 2
2813 fi
2814done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002815 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002816IFS=$as_save_IFS
2817
2818if test $ac_prog_rejected = yes; then
2819 # We found a bogon in the path, so make sure we never use it.
2820 set dummy $ac_cv_prog_CC
2821 shift
2822 if test $# != 0; then
2823 # We chose a different compiler from the bogus one.
2824 # However, it has the same basename, so the bogon will be chosen
2825 # first if we set CC to just the basename; use the full file name.
2826 shift
2827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2828 fi
2829fi
2830fi
2831fi
2832CC=$ac_cv_prog_CC
2833if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002835$as_echo "$CC" >&6; }
2836else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002838$as_echo "no" >&6; }
2839fi
2840
2841
2842fi
2843if test -z "$CC"; then
2844 if test -n "$ac_tool_prefix"; then
2845 for ac_prog in cl.exe
2846 do
2847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002850$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002851if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002852 $as_echo_n "(cached) " >&6
2853else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002862 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002866 break 2
2867 fi
2868done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002869 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002870IFS=$as_save_IFS
2871
2872fi
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002877$as_echo "$CC" >&6; }
2878else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002880$as_echo "no" >&6; }
2881fi
2882
2883
2884 test -n "$CC" && break
2885 done
2886fi
2887if test -z "$CC"; then
2888 ac_ct_CC=$CC
2889 for ac_prog in cl.exe
2890do
2891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2892set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002894$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002895if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002896 $as_echo_n "(cached) " >&6
2897else
2898 if test -n "$ac_ct_CC"; then
2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002906 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002910 break 2
2911 fi
2912done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002913 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002914IFS=$as_save_IFS
2915
2916fi
2917fi
2918ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002921$as_echo "$ac_ct_CC" >&6; }
2922else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002924$as_echo "no" >&6; }
2925fi
2926
2927
2928 test -n "$ac_ct_CC" && break
2929done
2930
2931 if test "x$ac_ct_CC" = x; then
2932 CC=""
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002936{ $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 +01002937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938ac_tool_warned=yes ;;
2939esac
2940 CC=$ac_ct_CC
2941 fi
2942fi
2943
2944fi
2945
2946
Scott James Remnantfde82c92009-09-22 10:04:15 -07002947test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002949as_fn_error "no acceptable C compiler found in \$PATH
2950See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002951
2952# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002953$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002954set X $ac_compile
2955ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002956for ac_option in --version -v -V -qversion; do
2957 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07002962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963$as_echo "$ac_try_echo"; } >&5
2964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +01002965 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07002966 if test -s conftest.err; then
2967 sed '10a\
2968... rest of stderr output deleted ...
2969 10q' conftest.err >conftest.er1
2970 cat conftest.er1 >&5
2971 rm -f conftest.er1 conftest.err
2972 fi
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }
2975done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002976
Scott James Remnantfde82c92009-09-22 10:04:15 -07002977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01002978/* end confdefs.h. */
Scott James Remnantfde82c92009-09-22 10:04:15 -07002979#include <stdio.h>
Scott James Remnant65f683d2009-07-14 13:05:17 +01002980int
2981main ()
2982{
Scott James Remnantfde82c92009-09-22 10:04:15 -07002983FILE *f = fopen ("conftest.out", "w");
2984 return ferror (f) || fclose (f) != 0;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002985
2986 ;
2987 return 0;
2988}
2989_ACEOF
2990ac_clean_files_save=$ac_clean_files
Scott James Remnantfde82c92009-09-22 10:04:15 -07002991ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002992# Try to create an executable without -o first, disregard a.out.
2993# It will help us diagnose broken compilers, and finding out an intuition
2994# of exeext.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002996$as_echo_n "checking for C compiler default output file name... " >&6; }
2997ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2998
2999# The possible output files:
3000ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3001
3002ac_rmfiles=
3003for ac_file in $ac_files
3004do
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3007 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3008 esac
3009done
3010rm -f $ac_rmfiles
3011
Scott James Remnantfde82c92009-09-22 10:04:15 -07003012if { { ac_try="$ac_link_default"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3018$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003019 (eval "$ac_link_default") 2>&5
3020 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3022 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3024# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3025# in a Makefile. We should not override ac_cv_exeext if it was cached,
3026# so that the user can short-circuit this test for compilers unknown to
3027# Autoconf.
3028for ac_file in $ac_files ''
3029do
3030 test -f "$ac_file" || continue
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3033 ;;
3034 [ab].out )
3035 # We found the default executable, but exeext='' is most
3036 # certainly right.
3037 break;;
3038 *.* )
Scott James Remnantfde82c92009-09-22 10:04:15 -07003039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Scott James Remnant65f683d2009-07-14 13:05:17 +01003040 then :; else
3041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042 fi
3043 # We set ac_cv_exeext here because the later test for it is not
3044 # safe: cross compilers may not add the suffix if given an `-o'
3045 # argument, so we may need to know it at that point already.
3046 # Even if this section looks crufty: it has the advantage of
3047 # actually working.
3048 break;;
3049 * )
3050 break;;
3051 esac
3052done
3053test "$ac_cv_exeext" = no && ac_cv_exeext=
3054
3055else
3056 ac_file=''
3057fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003059$as_echo "$ac_file" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003060if test -z "$ac_file"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003061 $as_echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
Scott James Remnantfde82c92009-09-22 10:04:15 -07003064{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003066{ as_fn_set_status 77
3067as_fn_error "C compiler cannot create executables
3068See \`config.log' for more details." "$LINENO" 5; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003069fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003070ac_exeext=$ac_cv_exeext
3071
3072# Check that the compiler produces executables we can run. If not, either
3073# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003075$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003076# If not cross compiling, check that we can run a simple program.
3077if test "$cross_compiling" != yes; then
3078 if { ac_try='./$ac_file'
Scott James Remnantfde82c92009-09-22 10:04:15 -07003079 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +01003080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003085 (eval "$ac_try") 2>&5
3086 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003089 cross_compiling=no
3090 else
3091 if test "$cross_compiling" = maybe; then
3092 cross_compiling=yes
3093 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003096as_fn_error "cannot run C compiled programs.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003097If you meant to cross compile, use \`--host'.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003098See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003099 fi
3100 fi
3101fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003103$as_echo "yes" >&6; }
3104
Scott James Remnantfde82c92009-09-22 10:04:15 -07003105rm -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 +01003106ac_clean_files=$ac_clean_files_save
3107# Check that the compiler produces executables we can run. If not, either
3108# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003110$as_echo_n "checking whether we are cross compiling... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003112$as_echo "$cross_compiling" >&6; }
3113
Scott James Remnantfde82c92009-09-22 10:04:15 -07003114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003115$as_echo_n "checking for suffix of executables... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003116if { { ac_try="$ac_link"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003123 (eval "$ac_link") 2>&5
3124 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3128# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3129# work properly (i.e., refer to `conftest.exe'), while it won't with
3130# `rm'.
3131for ac_file in conftest.exe conftest conftest.*; do
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 break;;
3137 * ) break;;
3138 esac
3139done
3140else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003143as_fn_error "cannot compute suffix of executables: cannot compile and link
3144See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003145fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003146rm -f conftest$ac_cv_exeext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003148$as_echo "$ac_cv_exeext" >&6; }
3149
3150rm -f conftest.$ac_ext
3151EXEEXT=$ac_cv_exeext
3152ac_exeext=$EXEEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003154$as_echo_n "checking for suffix of object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003155if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003156 $as_echo_n "(cached) " >&6
3157else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003159/* end confdefs.h. */
3160
3161int
3162main ()
3163{
3164
3165 ;
3166 return 0;
3167}
3168_ACEOF
3169rm -f conftest.o conftest.obj
Scott James Remnantfde82c92009-09-22 10:04:15 -07003170if { { ac_try="$ac_compile"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003175eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003177 (eval "$ac_compile") 2>&5
3178 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003181 for ac_file in conftest.o conftest.obj conftest.*; do
3182 test -f "$ac_file" || continue;
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3186 break;;
3187 esac
3188done
3189else
3190 $as_echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
Scott James Remnantfde82c92009-09-22 10:04:15 -07003193{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003195as_fn_error "cannot compute suffix of object files: cannot compile
3196See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003197fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003198rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003201$as_echo "$ac_cv_objext" >&6; }
3202OBJEXT=$ac_cv_objext
3203ac_objext=$OBJEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003204{ $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 +01003205$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003206if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003207 $as_echo_n "(cached) " >&6
3208else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003210/* end confdefs.h. */
3211
3212int
3213main ()
3214{
3215#ifndef __GNUC__
3216 choke me
3217#endif
3218
3219 ;
3220 return 0;
3221}
3222_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003223if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003224 ac_compiler_gnu=yes
3225else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003226 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003227fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229ac_cv_c_compiler_gnu=$ac_compiler_gnu
3230
3231fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003233$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234if test $ac_compiler_gnu = yes; then
3235 GCC=yes
3236else
3237 GCC=
3238fi
3239ac_test_CFLAGS=${CFLAGS+set}
3240ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -07003241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003242$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003243if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003244 $as_echo_n "(cached) " >&6
3245else
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3248 ac_cv_prog_cc_g=no
3249 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003251/* end confdefs.h. */
3252
3253int
3254main ()
3255{
3256
3257 ;
3258 return 0;
3259}
3260_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003261if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003262 ac_cv_prog_cc_g=yes
3263else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003264 CFLAGS=""
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003266/* end confdefs.h. */
3267
3268int
3269main ()
3270{
3271
3272 ;
3273 return 0;
3274}
3275_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003276if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003277
Scott James Remnantfde82c92009-09-22 10:04:15 -07003278else
3279 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +01003280 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003282/* end confdefs.h. */
3283
3284int
3285main ()
3286{
3287
3288 ;
3289 return 0;
3290}
3291_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003292if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003293 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +01003294fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3301fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003303$as_echo "$ac_cv_prog_cc_g" >&6; }
3304if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS=$ac_save_CFLAGS
3306elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3308 CFLAGS="-g -O2"
3309 else
3310 CFLAGS="-g"
3311 fi
3312else
3313 if test "$GCC" = yes; then
3314 CFLAGS="-O2"
3315 else
3316 CFLAGS=
3317 fi
3318fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003320$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003321if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003322 $as_echo_n "(cached) " >&6
3323else
3324 ac_cv_prog_cc_c89=no
3325ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -07003326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003327/* end confdefs.h. */
3328#include <stdarg.h>
3329#include <stdio.h>
3330#include <sys/types.h>
3331#include <sys/stat.h>
3332/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3333struct buf { int x; };
3334FILE * (*rcsopen) (struct buf *, struct stat *, int);
3335static char *e (p, i)
3336 char **p;
3337 int i;
3338{
3339 return p[i];
3340}
3341static char *f (char * (*g) (char **, int), char **p, ...)
3342{
3343 char *s;
3344 va_list v;
3345 va_start (v,p);
3346 s = g (p, va_arg (v,int));
3347 va_end (v);
3348 return s;
3349}
3350
3351/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3352 function prototypes and stuff, but not '\xHH' hex character constants.
3353 These don't provoke an error unfortunately, instead are silently treated
3354 as 'x'. The following induces an error, until -std is added to get
3355 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3356 array size at least. It's necessary to write '\x00'==0 to get something
3357 that's true only with -std. */
3358int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359
3360/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3361 inside strings and character constants. */
3362#define FOO(x) 'x'
3363int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364
3365int test (int i, double x);
3366struct s1 {int (*f) (int a);};
3367struct s2 {int (*f) (double a);};
3368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3369int argc;
3370char **argv;
3371int
3372main ()
3373{
3374return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3380 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381do
3382 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003383 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003384 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +01003385fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003386rm -f core conftest.err conftest.$ac_objext
3387 test "x$ac_cv_prog_cc_c89" != "xno" && break
3388done
3389rm -f conftest.$ac_ext
3390CC=$ac_save_CC
3391
3392fi
3393# AC_CACHE_VAL
3394case "x$ac_cv_prog_cc_c89" in
3395 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003397$as_echo "none needed" >&6; } ;;
3398 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003400$as_echo "unsupported" >&6; } ;;
3401 *)
3402 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003404$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3405esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003406if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003407
Scott James Remnantfde82c92009-09-22 10:04:15 -07003408fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003409
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416
3417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnantfde82c92009-09-22 10:04:15 -07003422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003423$as_echo_n "checking how to run the C preprocessor... " >&6; }
3424# On Suns, sometimes $CPP names a directory.
3425if test -n "$CPP" && test -d "$CPP"; then
3426 CPP=
3427fi
3428if test -z "$CPP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003429 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003430 $as_echo_n "(cached) " >&6
3431else
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434 do
3435 ac_preproc_ok=false
3436for ac_c_preproc_warn_flag in '' yes
3437do
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003445/* end confdefs.h. */
3446#ifdef __STDC__
3447# include <limits.h>
3448#else
3449# include <assert.h>
3450#endif
3451 Syntax error
3452_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003453if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003454
Scott James Remnantfde82c92009-09-22 10:04:15 -07003455else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003456 # Broken: fails on valid input.
3457continue
3458fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003459rm -f conftest.err conftest.$ac_ext
3460
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003464/* end confdefs.h. */
3465#include <ac_nonexistent.h>
3466_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003467if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003468 # Broken: success on invalid input.
3469continue
3470else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003471 # Passes both tests.
3472ac_preproc_ok=:
3473break
3474fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003475rm -f conftest.err conftest.$ac_ext
3476
3477done
3478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003480if $ac_preproc_ok; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003481 break
3482fi
3483
3484 done
3485 ac_cv_prog_CPP=$CPP
3486
3487fi
3488 CPP=$ac_cv_prog_CPP
3489else
3490 ac_cv_prog_CPP=$CPP
3491fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003493$as_echo "$CPP" >&6; }
3494ac_preproc_ok=false
3495for ac_c_preproc_warn_flag in '' yes
3496do
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003504/* end confdefs.h. */
3505#ifdef __STDC__
3506# include <limits.h>
3507#else
3508# include <assert.h>
3509#endif
3510 Syntax error
3511_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003512if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003513
Scott James Remnantfde82c92009-09-22 10:04:15 -07003514else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003515 # Broken: fails on valid input.
3516continue
3517fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003518rm -f conftest.err conftest.$ac_ext
3519
3520 # OK, works on sane cases. Now check whether nonexistent headers
3521 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003523/* end confdefs.h. */
3524#include <ac_nonexistent.h>
3525_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003526if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003527 # Broken: success on invalid input.
3528continue
3529else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003530 # Passes both tests.
3531ac_preproc_ok=:
3532break
3533fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003534rm -f conftest.err conftest.$ac_ext
3535
3536done
3537# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3538rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003539if $ac_preproc_ok; then :
3540
Scott James Remnant65f683d2009-07-14 13:05:17 +01003541else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003544as_fn_error "C preprocessor \"$CPP\" fails sanity check
3545See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003546fi
3547
3548ac_ext=c
3549ac_cpp='$CPP $CPPFLAGS'
3550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553
3554
Scott James Remnantfde82c92009-09-22 10:04:15 -07003555{ $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 +01003556$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003557if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003558 $as_echo_n "(cached) " >&6
3559else
3560 if test -z "$GREP"; then
3561 ac_path_GREP_found=false
3562 # Loop through the user's path and test for each of PROGNAME-LIST
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003568 for ac_prog in grep ggrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3571 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3572# Check for GNU ac_path_GREP and select it if it is found.
3573 # Check for GNU $ac_path_GREP
3574case `"$ac_path_GREP" --version 2>&1` in
3575*GNU*)
3576 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3577*)
3578 ac_count=0
3579 $as_echo_n 0123456789 >"conftest.in"
3580 while :
3581 do
3582 cat "conftest.in" "conftest.in" >"conftest.tmp"
3583 mv "conftest.tmp" "conftest.in"
3584 cp "conftest.in" "conftest.nl"
3585 $as_echo 'GREP' >> "conftest.nl"
3586 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003588 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003589 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3590 # Best one so far, save it but keep looking for a better one
3591 ac_cv_path_GREP="$ac_path_GREP"
3592 ac_path_GREP_max=$ac_count
3593 fi
3594 # 10*(2^10) chars as input seems more than enough
3595 test $ac_count -gt 10 && break
3596 done
3597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3598esac
3599
3600 $ac_path_GREP_found && break 3
3601 done
3602 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003603 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003604IFS=$as_save_IFS
3605 if test -z "$ac_cv_path_GREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003606 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 +01003607 fi
3608else
3609 ac_cv_path_GREP=$GREP
3610fi
3611
3612fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003614$as_echo "$ac_cv_path_GREP" >&6; }
3615 GREP="$ac_cv_path_GREP"
3616
3617
Scott James Remnantfde82c92009-09-22 10:04:15 -07003618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003619$as_echo_n "checking for egrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003620if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003621 $as_echo_n "(cached) " >&6
3622else
3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3624 then ac_cv_path_EGREP="$GREP -E"
3625 else
3626 if test -z "$EGREP"; then
3627 ac_path_EGREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003634 for ac_prog in egrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3638# Check for GNU ac_path_EGREP and select it if it is found.
3639 # Check for GNU $ac_path_EGREP
3640case `"$ac_path_EGREP" --version 2>&1` in
3641*GNU*)
3642 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3643*)
3644 ac_count=0
3645 $as_echo_n 0123456789 >"conftest.in"
3646 while :
3647 do
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 $as_echo 'EGREP' >> "conftest.nl"
3652 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003654 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003655 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_EGREP="$ac_path_EGREP"
3658 ac_path_EGREP_max=$ac_count
3659 fi
3660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3662 done
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664esac
3665
3666 $ac_path_EGREP_found && break 3
3667 done
3668 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003669 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003670IFS=$as_save_IFS
3671 if test -z "$ac_cv_path_EGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003672 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 +01003673 fi
3674else
3675 ac_cv_path_EGREP=$EGREP
3676fi
3677
3678 fi
3679fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003681$as_echo "$ac_cv_path_EGREP" >&6; }
3682 EGREP="$ac_cv_path_EGREP"
3683
3684
Scott James Remnantfde82c92009-09-22 10:04:15 -07003685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003686$as_echo_n "checking for ANSI C header files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003687if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003688 $as_echo_n "(cached) " >&6
3689else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003691/* end confdefs.h. */
3692#include <stdlib.h>
3693#include <stdarg.h>
3694#include <string.h>
3695#include <float.h>
3696
3697int
3698main ()
3699{
3700
3701 ;
3702 return 0;
3703}
3704_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003705if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003706 ac_cv_header_stdc=yes
3707else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003708 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003709fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711
3712if test $ac_cv_header_stdc = yes; then
3713 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003715/* end confdefs.h. */
3716#include <string.h>
3717
3718_ACEOF
3719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003720 $EGREP "memchr" >/dev/null 2>&1; then :
3721
Scott James Remnant65f683d2009-07-14 13:05:17 +01003722else
3723 ac_cv_header_stdc=no
3724fi
3725rm -f conftest*
3726
3727fi
3728
3729if test $ac_cv_header_stdc = yes; then
3730 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003732/* end confdefs.h. */
3733#include <stdlib.h>
3734
3735_ACEOF
3736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003737 $EGREP "free" >/dev/null 2>&1; then :
3738
Scott James Remnant65f683d2009-07-14 13:05:17 +01003739else
3740 ac_cv_header_stdc=no
3741fi
3742rm -f conftest*
3743
3744fi
3745
3746if test $ac_cv_header_stdc = yes; then
3747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003748 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003749 :
3750else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003752/* end confdefs.h. */
3753#include <ctype.h>
3754#include <stdlib.h>
3755#if ((' ' & 0x0FF) == 0x020)
3756# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3757# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3758#else
3759# define ISLOWER(c) \
3760 (('a' <= (c) && (c) <= 'i') \
3761 || ('j' <= (c) && (c) <= 'r') \
3762 || ('s' <= (c) && (c) <= 'z'))
3763# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3764#endif
3765
3766#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3767int
3768main ()
3769{
3770 int i;
3771 for (i = 0; i < 256; i++)
3772 if (XOR (islower (i), ISLOWER (i))
3773 || toupper (i) != TOUPPER (i))
3774 return 2;
3775 return 0;
3776}
3777_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003778if ac_fn_c_try_run "$LINENO"; then :
3779
Scott James Remnant65f683d2009-07-14 13:05:17 +01003780else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003781 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003782fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3784 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003785fi
3786
Scott James Remnant65f683d2009-07-14 13:05:17 +01003787fi
3788fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003790$as_echo "$ac_cv_header_stdc" >&6; }
3791if test $ac_cv_header_stdc = yes; then
3792
Scott James Remnantfde82c92009-09-22 10:04:15 -07003793$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003794
3795fi
3796
3797# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003798for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3799 inttypes.h stdint.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07003800do :
3801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3802ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3803"
3804eval as_val=\$$as_ac_Header
3805 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003806 cat >>confdefs.h <<_ACEOF
3807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3808_ACEOF
3809
3810fi
3811
3812done
3813
3814
3815
Scott James Remnantfde82c92009-09-22 10:04:15 -07003816 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3817if test "x$ac_cv_header_minix_config_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003818 MINIX=yes
3819else
3820 MINIX=
3821fi
3822
3823
3824 if test "$MINIX" = yes; then
3825
Scott James Remnantfde82c92009-09-22 10:04:15 -07003826$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003827
3828
Scott James Remnantfde82c92009-09-22 10:04:15 -07003829$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003830
3831
Scott James Remnantfde82c92009-09-22 10:04:15 -07003832$as_echo "#define _MINIX 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003833
3834 fi
3835
3836
Scott James Remnantfde82c92009-09-22 10:04:15 -07003837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003838$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003839if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003840 $as_echo_n "(cached) " >&6
3841else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003843/* end confdefs.h. */
3844
3845# define __EXTENSIONS__ 1
3846 $ac_includes_default
3847int
3848main ()
3849{
3850
3851 ;
3852 return 0;
3853}
3854_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003855if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003856 ac_cv_safe_to_define___extensions__=yes
3857else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003858 ac_cv_safe_to_define___extensions__=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003859fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003863$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3864 test $ac_cv_safe_to_define___extensions__ = yes &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07003865 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003866
Scott James Remnantfde82c92009-09-22 10:04:15 -07003867 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003868
Scott James Remnantfde82c92009-09-22 10:04:15 -07003869 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003870
Scott James Remnantfde82c92009-09-22 10:04:15 -07003871 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003872
Scott James Remnantfde82c92009-09-22 10:04:15 -07003873 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3874
Scott James Remnant65f683d2009-07-14 13:05:17 +01003875
3876
3877
3878am__api_version='1.10'
3879
3880ac_aux_dir=
3881for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07003882 for ac_t in install-sh install.sh shtool; do
3883 if test -f "$ac_dir/$ac_t"; then
3884 ac_aux_dir=$ac_dir
3885 ac_install_sh="$ac_aux_dir/$ac_t -c"
3886 break 2
3887 fi
3888 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003889done
3890if test -z "$ac_aux_dir"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003891 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 +01003892fi
3893
3894# These three variables are undocumented and unsupported,
3895# and are intended to be withdrawn in a future Autoconf release.
3896# They can cause serious problems if a builder's source tree is in a directory
3897# whose full name contains unusual characters.
3898ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3899ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3900ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3901
3902
3903# Find a good install program. We prefer a C program (faster),
3904# so one script is as good as another. But avoid the broken or
3905# incompatible versions:
3906# SysV /etc/install, /usr/sbin/install
3907# SunOS /usr/etc/install
3908# IRIX /sbin/install
3909# AIX /bin/install
3910# AmigaOS /C/install, which installs bootblocks on floppy discs
3911# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3912# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3913# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3914# OS/2's system install, which has a completely different semantic
3915# ./install, which can be erroneously created by make from ./install.sh.
3916# Reject install programs that cannot install multiple files.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003918$as_echo_n "checking for a BSD-compatible install... " >&6; }
3919if test -z "$INSTALL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003920if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003921 $as_echo_n "(cached) " >&6
3922else
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003928 # Account for people who put trailing slashes in PATH elements.
3929case $as_dir/ in #((
3930 ./ | .// | /[cC]/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Scott James Remnantfde82c92009-09-22 10:04:15 -07003932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003933 /usr/ucb/* ) ;;
3934 *)
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3944 :
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3948 :
3949 else
3950 rm -rf conftest.one conftest.two conftest.dir
3951 echo one > conftest.one
3952 echo two > conftest.two
3953 mkdir conftest.dir
3954 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3955 test -s conftest.one && test -s conftest.two &&
3956 test -s conftest.dir/conftest.one &&
3957 test -s conftest.dir/conftest.two
3958 then
3959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3960 break 3
3961 fi
3962 fi
3963 fi
3964 done
3965 done
3966 ;;
3967esac
3968
Scott James Remnantfde82c92009-09-22 10:04:15 -07003969 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003970IFS=$as_save_IFS
3971
3972rm -rf conftest.one conftest.two conftest.dir
3973
3974fi
3975 if test "${ac_cv_path_install+set}" = set; then
3976 INSTALL=$ac_cv_path_install
3977 else
3978 # As a last resort, use the slow shell script. Don't cache a
3979 # value for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the value is a relative name.
3982 INSTALL=$ac_install_sh
3983 fi
3984fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003986$as_echo "$INSTALL" >&6; }
3987
3988# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989# It thinks the first close brace ends the variable substitution.
3990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991
3992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993
3994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995
Scott James Remnantfde82c92009-09-22 10:04:15 -07003996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003997$as_echo_n "checking whether build environment is sane... " >&6; }
3998# Just in case
3999sleep 1
4000echo timestamp > conftest.file
4001# Do `set' in a subshell so we don't clobber the current shell's
4002# arguments. Must try -L first in case configure is actually a
4003# symlink; some systems play weird games with the mod time of symlinks
4004# (eg FreeBSD returns the mod time of the symlink's containing
4005# directory).
4006if (
4007 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4008 if test "$*" = "X"; then
4009 # -L didn't work.
4010 set X `ls -t $srcdir/configure conftest.file`
4011 fi
4012 rm -f conftest.file
4013 if test "$*" != "X $srcdir/configure conftest.file" \
4014 && test "$*" != "X conftest.file $srcdir/configure"; then
4015
4016 # If neither matched, then we have a broken ls. This can happen
4017 # if, for instance, CONFIG_SHELL is bash and it inherits a
4018 # broken ls alias from the environment. This has actually
4019 # happened. Such a system could not be considered "sane".
Scott James Remnantfde82c92009-09-22 10:04:15 -07004020 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4021alias in your environment" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004022 fi
4023
4024 test "$2" = conftest.file
4025 )
4026then
4027 # Ok.
4028 :
4029else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004030 as_fn_error "newly created file is older than distributed files!
4031Check your system clock" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004032fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004034$as_echo "yes" >&6; }
4035test "$program_prefix" != NONE &&
4036 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4037# Use a double $ so make ignores it.
4038test "$program_suffix" != NONE &&
4039 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4040# Double any \ or $.
4041# By default was `s,x,x', remove it if useless.
4042ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4043program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4044
4045# expand $ac_aux_dir to an absolute path
4046am_aux_dir=`cd $ac_aux_dir && pwd`
4047
4048test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4049# Use eval to expand $SHELL
4050if eval "$MISSING --run true"; then
4051 am_missing_run="$MISSING --run "
4052else
4053 am_missing_run=
Scott James Remnantfde82c92009-09-22 10:04:15 -07004054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004055$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4056fi
4057
Scott James Remnantfde82c92009-09-22 10:04:15 -07004058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004059$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4060if test -z "$MKDIR_P"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004061 if test "${ac_cv_path_mkdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004062 $as_echo_n "(cached) " >&6
4063else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004069 for ac_prog in mkdir gmkdir; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4072 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4073 'mkdir (GNU coreutils) '* | \
4074 'mkdir (coreutils) '* | \
4075 'mkdir (fileutils) '4.1*)
4076 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4077 break 3;;
4078 esac
4079 done
4080 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004081 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004082IFS=$as_save_IFS
4083
4084fi
4085
4086 if test "${ac_cv_path_mkdir+set}" = set; then
4087 MKDIR_P="$ac_cv_path_mkdir -p"
4088 else
4089 # As a last resort, use the slow shell script. Don't cache a
4090 # value for MKDIR_P within a source directory, because that will
4091 # break other packages using the cache if that directory is
4092 # removed, or if the value is a relative name.
4093 test -d ./--version && rmdir ./--version
4094 MKDIR_P="$ac_install_sh -d"
4095 fi
4096fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004098$as_echo "$MKDIR_P" >&6; }
4099
4100mkdir_p="$MKDIR_P"
4101case $mkdir_p in
4102 [\\/$]* | ?:[\\/]*) ;;
4103 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4104esac
4105
4106for ac_prog in gawk mawk nawk awk
4107do
4108 # Extract the first word of "$ac_prog", so it can be a program name with args.
4109set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004111$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004112if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004113 $as_echo_n "(cached) " >&6
4114else
4115 if test -n "$AWK"; then
4116 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004123 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_AWK="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004127 break 2
4128 fi
4129done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004130 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004131IFS=$as_save_IFS
4132
4133fi
4134fi
4135AWK=$ac_cv_prog_AWK
4136if test -n "$AWK"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004138$as_echo "$AWK" >&6; }
4139else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004141$as_echo "no" >&6; }
4142fi
4143
4144
4145 test -n "$AWK" && break
4146done
4147
Scott James Remnantfde82c92009-09-22 10:04:15 -07004148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004149$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4150set x ${MAKE-make}
4151ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07004152if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004153 $as_echo_n "(cached) " >&6
4154else
4155 cat >conftest.make <<\_ACEOF
4156SHELL = /bin/sh
4157all:
4158 @echo '@@@%%%=$(MAKE)=@@@%%%'
4159_ACEOF
4160# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4161case `${MAKE-make} -f conftest.make 2>/dev/null` in
4162 *@@@%%%=?*=@@@%%%*)
4163 eval ac_cv_prog_make_${ac_make}_set=yes;;
4164 *)
4165 eval ac_cv_prog_make_${ac_make}_set=no;;
4166esac
4167rm -f conftest.make
4168fi
4169if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004171$as_echo "yes" >&6; }
4172 SET_MAKE=
4173else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004175$as_echo "no" >&6; }
4176 SET_MAKE="MAKE=${MAKE-make}"
4177fi
4178
4179rm -rf .tst 2>/dev/null
4180mkdir .tst 2>/dev/null
4181if test -d .tst; then
4182 am__leading_dot=.
4183else
4184 am__leading_dot=_
4185fi
4186rmdir .tst 2>/dev/null
4187
4188DEPDIR="${am__leading_dot}deps"
4189
4190ac_config_commands="$ac_config_commands depfiles"
4191
4192
4193am_make=${MAKE-make}
4194cat > confinc << 'END'
4195am__doit:
4196 @echo done
4197.PHONY: am__doit
4198END
4199# If we don't find an include directive, just comment out the code.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004200{ $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 +01004201$as_echo_n "checking for style of include used by $am_make... " >&6; }
4202am__include="#"
4203am__quote=
4204_am_result=none
4205# First try GNU make style include.
4206echo "include confinc" > confmf
4207# We grep out `Entering directory' and `Leaving directory'
4208# messages which can occur if `w' ends up in MAKEFLAGS.
4209# In particular we don't look at `^make:' because GNU make might
4210# be invoked under some other name (usually "gmake"), in which
4211# case it prints its new name instead of `make'.
4212if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4213 am__include=include
4214 am__quote=
4215 _am_result=GNU
4216fi
4217# Now try BSD make style include.
4218if test "$am__include" = "#"; then
4219 echo '.include "confinc"' > confmf
4220 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4221 am__include=.include
4222 am__quote="\""
4223 _am_result=BSD
4224 fi
4225fi
4226
4227
Scott James Remnantfde82c92009-09-22 10:04:15 -07004228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004229$as_echo "$_am_result" >&6; }
4230rm -f confinc confmf
4231
4232# Check whether --enable-dependency-tracking was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004233if test "${enable_dependency_tracking+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004234 enableval=$enable_dependency_tracking;
4235fi
4236
4237if test "x$enable_dependency_tracking" != xno; then
4238 am_depcomp="$ac_aux_dir/depcomp"
4239 AMDEPBACKSLASH='\'
4240fi
4241 if test "x$enable_dependency_tracking" != xno; then
4242 AMDEP_TRUE=
4243 AMDEP_FALSE='#'
4244else
4245 AMDEP_TRUE='#'
4246 AMDEP_FALSE=
4247fi
4248
4249
4250if test "`cd $srcdir && pwd`" != "`pwd`"; then
4251 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4252 # is not polluted with repeated "-I."
4253 am__isrc=' -I$(srcdir)'
4254 # test to see if srcdir already configured
4255 if test -f $srcdir/config.status; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004256 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004257 fi
4258fi
4259
4260# test whether we have cygpath
4261if test -z "$CYGPATH_W"; then
4262 if (cygpath --version) >/dev/null 2>/dev/null; then
4263 CYGPATH_W='cygpath -w'
4264 else
4265 CYGPATH_W=echo
4266 fi
4267fi
4268
4269
4270# Define the identity of the package.
4271 PACKAGE='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004272 VERSION='0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004273
4274
4275cat >>confdefs.h <<_ACEOF
4276#define PACKAGE "$PACKAGE"
4277_ACEOF
4278
4279
4280cat >>confdefs.h <<_ACEOF
4281#define VERSION "$VERSION"
4282_ACEOF
4283
4284# Some tools Automake needs.
4285
4286ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4287
4288
4289AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4290
4291
4292AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4293
4294
4295AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4296
4297
4298MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4299
4300install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4301
4302# Installed binaries are usually stripped using `strip' when the user
4303# run `make install-strip'. However `strip' might not be the right
4304# tool to use in cross-compilation environments, therefore Automake
4305# will honor the `STRIP' environment variable to overrule this program.
4306if test "$cross_compiling" != no; then
4307 if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4309set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004311$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004312if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$STRIP"; then
4316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004323 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004327 break 2
4328 fi
4329done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004330 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004331IFS=$as_save_IFS
4332
4333fi
4334fi
4335STRIP=$ac_cv_prog_STRIP
4336if test -n "$STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004338$as_echo "$STRIP" >&6; }
4339else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004341$as_echo "no" >&6; }
4342fi
4343
4344
4345fi
4346if test -z "$ac_cv_prog_STRIP"; then
4347 ac_ct_STRIP=$STRIP
4348 # Extract the first word of "strip", so it can be a program name with args.
4349set dummy strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004351$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004353 $as_echo_n "(cached) " >&6
4354else
4355 if test -n "$ac_ct_STRIP"; then
4356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004363 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004367 break 2
4368 fi
4369done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004370 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004371IFS=$as_save_IFS
4372
4373fi
4374fi
4375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4376if test -n "$ac_ct_STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004378$as_echo "$ac_ct_STRIP" >&6; }
4379else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004381$as_echo "no" >&6; }
4382fi
4383
4384 if test "x$ac_ct_STRIP" = x; then
4385 STRIP=":"
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07004389{ $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 +01004390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4391ac_tool_warned=yes ;;
4392esac
4393 STRIP=$ac_ct_STRIP
4394 fi
4395else
4396 STRIP="$ac_cv_prog_STRIP"
4397fi
4398
4399fi
4400INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4401
4402# We need awk for the "check" target. The system "awk" is bad on
4403# some platforms.
4404# Always define AMTAR for backward compatibility.
4405
4406AMTAR=${AMTAR-"${am_missing_run}tar"}
4407
4408am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4409
4410
4411
4412
4413depcc="$CC" am_compiler_list=
4414
Scott James Remnantfde82c92009-09-22 10:04:15 -07004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004416$as_echo_n "checking dependency style of $depcc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004417if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004418 $as_echo_n "(cached) " >&6
4419else
4420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4421 # We make a subdir and do the tests there. Otherwise we can end up
4422 # making bogus files that we don't know about and never remove. For
4423 # instance it was reported that on HP-UX the gcc test will end up
4424 # making a dummy file named `D' -- because `-MD' means `put the output
4425 # in D'.
4426 mkdir conftest.dir
4427 # Copy depcomp to subdir because otherwise we won't find it if we're
4428 # using a relative directory.
4429 cp "$am_depcomp" conftest.dir
4430 cd conftest.dir
4431 # We will build objects and dependencies in a subdirectory because
4432 # it helps to detect inapplicable dependency modes. For instance
4433 # both Tru64's cc and ICC support -MD to output dependencies as a
4434 # side effect of compilation, but ICC will put the dependencies in
4435 # the current directory while Tru64 will put them in the object
4436 # directory.
4437 mkdir sub
4438
4439 am_cv_CC_dependencies_compiler_type=none
4440 if test "$am_compiler_list" = ""; then
4441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442 fi
4443 for depmode in $am_compiler_list; do
4444 # Setup a source with many dependencies, because some compilers
4445 # like to wrap large dependency lists on column 80 (with \), and
4446 # we should not choose a depcomp mode which is confused by this.
4447 #
4448 # We need to recreate these files for each test, as the compiler may
4449 # overwrite some of them when testing with obscure command lines.
4450 # This happens at least with the AIX C compiler.
4451 : > sub/conftest.c
4452 for i in 1 2 3 4 5 6; do
4453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4454 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4455 # Solaris 8's {/usr,}/bin/sh.
4456 touch sub/conftst$i.h
4457 done
4458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4459
4460 case $depmode in
4461 nosideeffect)
4462 # after this tag, mechanisms are not by side-effect, so they'll
4463 # only be used when explicitly requested
4464 if test "x$enable_dependency_tracking" = xyes; then
4465 continue
4466 else
4467 break
4468 fi
4469 ;;
4470 none) break ;;
4471 esac
4472 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4473 # mode. It turns out that the SunPro C++ compiler does not properly
4474 # handle `-M -o', and we need to detect this.
4475 if depmode=$depmode \
4476 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4479 >/dev/null 2>conftest.err &&
4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484 # icc doesn't choke on unknown options, it will just issue warnings
4485 # or remarks (even with -Werror). So we grep stderr for any message
4486 # that says an option was ignored or not supported.
4487 # When given -MP, icc 7.0 and 7.1 complain thusly:
4488 # icc: Command line warning: ignoring option '-M'; no argument required
4489 # The diagnosis changed in icc 8.0:
4490 # icc: Command line remark: option '-MP' not supported
4491 if (grep 'ignoring option' conftest.err ||
4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493 am_cv_CC_dependencies_compiler_type=$depmode
4494 break
4495 fi
4496 fi
4497 done
4498
4499 cd ..
4500 rm -rf conftest.dir
4501else
4502 am_cv_CC_dependencies_compiler_type=none
4503fi
4504
4505fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004507$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4508CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4509
4510 if
4511 test "x$enable_dependency_tracking" != xno \
4512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4513 am__fastdepCC_TRUE=
4514 am__fastdepCC_FALSE='#'
4515else
4516 am__fastdepCC_TRUE='#'
4517 am__fastdepCC_FALSE=
4518fi
4519
4520
4521
4522
4523
4524case `pwd` in
4525 *\ * | *\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -07004526 { $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 +01004527$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4528esac
4529
4530
4531
4532macro_version='2.2.6'
4533macro_revision='1.3012'
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547ltmain="$ac_aux_dir/ltmain.sh"
4548
4549# Make sure we can run config.sub.
4550$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004551 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004552
Scott James Remnantfde82c92009-09-22 10:04:15 -07004553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004554$as_echo_n "checking build system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004555if test "${ac_cv_build+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004556 $as_echo_n "(cached) " >&6
4557else
4558 ac_build_alias=$build_alias
4559test "x$ac_build_alias" = x &&
4560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4561test "x$ac_build_alias" = x &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07004562 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004563ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004564 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004565
4566fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004568$as_echo "$ac_cv_build" >&6; }
4569case $ac_cv_build in
4570*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004571*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004572esac
4573build=$ac_cv_build
4574ac_save_IFS=$IFS; IFS='-'
4575set x $ac_cv_build
4576shift
4577build_cpu=$1
4578build_vendor=$2
4579shift; shift
4580# Remember, the first character of IFS is used to create $*,
4581# except with old shells:
4582build_os=$*
4583IFS=$ac_save_IFS
4584case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4585
4586
Scott James Remnantfde82c92009-09-22 10:04:15 -07004587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004588$as_echo_n "checking host system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004589if test "${ac_cv_host+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004590 $as_echo_n "(cached) " >&6
4591else
4592 if test "x$host_alias" = x; then
4593 ac_cv_host=$ac_cv_build
4594else
4595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004596 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004597fi
4598
4599fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004601$as_echo "$ac_cv_host" >&6; }
4602case $ac_cv_host in
4603*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004604*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004605esac
4606host=$ac_cv_host
4607ac_save_IFS=$IFS; IFS='-'
4608set x $ac_cv_host
4609shift
4610host_cpu=$1
4611host_vendor=$2
4612shift; shift
4613# Remember, the first character of IFS is used to create $*,
4614# except with old shells:
4615host_os=$*
4616IFS=$ac_save_IFS
4617case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4618
4619
Scott James Remnantfde82c92009-09-22 10:04:15 -07004620{ $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 +01004621$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004622if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004623 $as_echo_n "(cached) " >&6
4624else
4625 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4626 for ac_i in 1 2 3 4 5 6 7; do
4627 ac_script="$ac_script$as_nl$ac_script"
4628 done
4629 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Scott James Remnantfde82c92009-09-22 10:04:15 -07004630 { ac_script=; unset ac_script;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01004631 if test -z "$SED"; then
4632 ac_path_SED_found=false
4633 # Loop through the user's path and test for each of PROGNAME-LIST
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635for as_dir in $PATH
4636do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004639 for ac_prog in sed gsed; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4642 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4643# Check for GNU ac_path_SED and select it if it is found.
4644 # Check for GNU $ac_path_SED
4645case `"$ac_path_SED" --version 2>&1` in
4646*GNU*)
4647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4648*)
4649 ac_count=0
4650 $as_echo_n 0123456789 >"conftest.in"
4651 while :
4652 do
4653 cat "conftest.in" "conftest.in" >"conftest.tmp"
4654 mv "conftest.tmp" "conftest.in"
4655 cp "conftest.in" "conftest.nl"
4656 $as_echo '' >> "conftest.nl"
4657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004659 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004660 if test $ac_count -gt ${ac_path_SED_max-0}; then
4661 # Best one so far, save it but keep looking for a better one
4662 ac_cv_path_SED="$ac_path_SED"
4663 ac_path_SED_max=$ac_count
4664 fi
4665 # 10*(2^10) chars as input seems more than enough
4666 test $ac_count -gt 10 && break
4667 done
4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669esac
4670
4671 $ac_path_SED_found && break 3
4672 done
4673 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004674 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004675IFS=$as_save_IFS
4676 if test -z "$ac_cv_path_SED"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004677 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004678 fi
4679else
4680 ac_cv_path_SED=$SED
4681fi
4682
4683fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004685$as_echo "$ac_cv_path_SED" >&6; }
4686 SED="$ac_cv_path_SED"
4687 rm -f conftest.sed
4688
4689test -z "$SED" && SED=sed
4690Xsed="$SED -e 1s/^X//"
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
Scott James Remnantfde82c92009-09-22 10:04:15 -07004702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004703$as_echo_n "checking for fgrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004704if test "${ac_cv_path_FGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004705 $as_echo_n "(cached) " >&6
4706else
4707 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4708 then ac_cv_path_FGREP="$GREP -F"
4709 else
4710 if test -z "$FGREP"; then
4711 ac_path_FGREP_found=false
4712 # Loop through the user's path and test for each of PROGNAME-LIST
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004718 for ac_prog in fgrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4721 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4722# Check for GNU ac_path_FGREP and select it if it is found.
4723 # Check for GNU $ac_path_FGREP
4724case `"$ac_path_FGREP" --version 2>&1` in
4725*GNU*)
4726 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4727*)
4728 ac_count=0
4729 $as_echo_n 0123456789 >"conftest.in"
4730 while :
4731 do
4732 cat "conftest.in" "conftest.in" >"conftest.tmp"
4733 mv "conftest.tmp" "conftest.in"
4734 cp "conftest.in" "conftest.nl"
4735 $as_echo 'FGREP' >> "conftest.nl"
4736 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004738 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004739 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4740 # Best one so far, save it but keep looking for a better one
4741 ac_cv_path_FGREP="$ac_path_FGREP"
4742 ac_path_FGREP_max=$ac_count
4743 fi
4744 # 10*(2^10) chars as input seems more than enough
4745 test $ac_count -gt 10 && break
4746 done
4747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4748esac
4749
4750 $ac_path_FGREP_found && break 3
4751 done
4752 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004753 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004754IFS=$as_save_IFS
4755 if test -z "$ac_cv_path_FGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004756 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 +01004757 fi
4758else
4759 ac_cv_path_FGREP=$FGREP
4760fi
4761
4762 fi
4763fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004765$as_echo "$ac_cv_path_FGREP" >&6; }
4766 FGREP="$ac_cv_path_FGREP"
4767
4768
4769test -z "$GREP" && GREP=grep
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004790if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4792else
4793 with_gnu_ld=no
4794fi
4795
4796ac_prog=ld
4797if test "$GCC" = yes; then
4798 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004800$as_echo_n "checking for ld used by $CC... " >&6; }
4801 case $host in
4802 *-*-mingw*)
4803 # gcc leaves a trailing carriage return which upsets mingw
4804 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4805 *)
4806 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4807 esac
4808 case $ac_prog in
4809 # Accept absolute paths.
4810 [\\/]* | ?:[\\/]*)
4811 re_direlt='/[^/][^/]*/\.\./'
4812 # Canonicalize the pathname of ld
4813 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4814 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4815 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4816 done
4817 test -z "$LD" && LD="$ac_prog"
4818 ;;
4819 "")
4820 # If it fails, then pretend we aren't using GCC.
4821 ac_prog=ld
4822 ;;
4823 *)
4824 # If it is relative, then search for the first ld in PATH.
4825 with_gnu_ld=unknown
4826 ;;
4827 esac
4828elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004830$as_echo_n "checking for GNU ld... " >&6; }
4831else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004833$as_echo_n "checking for non-GNU ld... " >&6; }
4834fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004835if test "${lt_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004836 $as_echo_n "(cached) " >&6
4837else
4838 if test -z "$LD"; then
4839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4840 for ac_dir in $PATH; do
4841 IFS="$lt_save_ifs"
4842 test -z "$ac_dir" && ac_dir=.
4843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4844 lt_cv_path_LD="$ac_dir/$ac_prog"
4845 # Check to see if the program is GNU ld. I'd rather use --version,
4846 # but apparently some variants of GNU ld only accept -v.
4847 # Break only if it was the GNU/non-GNU ld that we prefer.
4848 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4849 *GNU* | *'with BFD'*)
4850 test "$with_gnu_ld" != no && break
4851 ;;
4852 *)
4853 test "$with_gnu_ld" != yes && break
4854 ;;
4855 esac
4856 fi
4857 done
4858 IFS="$lt_save_ifs"
4859else
4860 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4861fi
4862fi
4863
4864LD="$lt_cv_path_LD"
4865if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004867$as_echo "$LD" >&6; }
4868else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004870$as_echo "no" >&6; }
4871fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004872test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004874$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004875if test "${lt_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004876 $as_echo_n "(cached) " >&6
4877else
4878 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4879case `$LD -v 2>&1 </dev/null` in
4880*GNU* | *'with BFD'*)
4881 lt_cv_prog_gnu_ld=yes
4882 ;;
4883*)
4884 lt_cv_prog_gnu_ld=no
4885 ;;
4886esac
4887fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004889$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4890with_gnu_ld=$lt_cv_prog_gnu_ld
4891
4892
4893
4894
4895
4896
4897
4898
4899
Scott James Remnantfde82c92009-09-22 10:04:15 -07004900{ $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 +01004901$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004902if test "${lt_cv_path_NM+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004903 $as_echo_n "(cached) " >&6
4904else
4905 if test -n "$NM"; then
4906 # Let the user override the test.
4907 lt_cv_path_NM="$NM"
4908else
4909 lt_nm_to_check="${ac_tool_prefix}nm"
4910 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4911 lt_nm_to_check="$lt_nm_to_check nm"
4912 fi
4913 for lt_tmp_nm in $lt_nm_to_check; do
4914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4915 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4916 IFS="$lt_save_ifs"
4917 test -z "$ac_dir" && ac_dir=.
4918 tmp_nm="$ac_dir/$lt_tmp_nm"
4919 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4920 # Check to see if the nm accepts a BSD-compat flag.
4921 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4922 # nm: unknown option "B" ignored
4923 # Tru64's nm complains that /dev/null is an invalid object file
4924 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4925 */dev/null* | *'Invalid file or object type'*)
4926 lt_cv_path_NM="$tmp_nm -B"
4927 break
4928 ;;
4929 *)
4930 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4931 */dev/null*)
4932 lt_cv_path_NM="$tmp_nm -p"
4933 break
4934 ;;
4935 *)
4936 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4937 continue # so that we can try to find one that supports BSD flags
4938 ;;
4939 esac
4940 ;;
4941 esac
4942 fi
4943 done
4944 IFS="$lt_save_ifs"
4945 done
4946 : ${lt_cv_path_NM=no}
4947fi
4948fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004950$as_echo "$lt_cv_path_NM" >&6; }
4951if test "$lt_cv_path_NM" != "no"; then
4952 NM="$lt_cv_path_NM"
4953else
4954 # Didn't find any BSD compatible name lister, look for dumpbin.
4955 if test -n "$ac_tool_prefix"; then
4956 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4957 do
4958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004961$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004962if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004963 $as_echo_n "(cached) " >&6
4964else
4965 if test -n "$DUMPBIN"; then
4966 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4967else
4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004973 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004977 break 2
4978 fi
4979done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004980 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004981IFS=$as_save_IFS
4982
4983fi
4984fi
4985DUMPBIN=$ac_cv_prog_DUMPBIN
4986if test -n "$DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004988$as_echo "$DUMPBIN" >&6; }
4989else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004991$as_echo "no" >&6; }
4992fi
4993
4994
4995 test -n "$DUMPBIN" && break
4996 done
4997fi
4998if test -z "$DUMPBIN"; then
4999 ac_ct_DUMPBIN=$DUMPBIN
5000 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5001do
5002 # Extract the first word of "$ac_prog", so it can be a program name with args.
5003set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005005$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005006if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005007 $as_echo_n "(cached) " >&6
5008else
5009 if test -n "$ac_ct_DUMPBIN"; then
5010 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005017 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005021 break 2
5022 fi
5023done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005024 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005025IFS=$as_save_IFS
5026
5027fi
5028fi
5029ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5030if test -n "$ac_ct_DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005032$as_echo "$ac_ct_DUMPBIN" >&6; }
5033else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005035$as_echo "no" >&6; }
5036fi
5037
5038
5039 test -n "$ac_ct_DUMPBIN" && break
5040done
5041
5042 if test "x$ac_ct_DUMPBIN" = x; then
5043 DUMPBIN=":"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005047{ $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 +01005048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051 DUMPBIN=$ac_ct_DUMPBIN
5052 fi
5053fi
5054
5055
5056 if test "$DUMPBIN" != ":"; then
5057 NM="$DUMPBIN"
5058 fi
5059fi
5060test -z "$NM" && NM=nm
5061
5062
5063
5064
5065
5066
Scott James Remnantfde82c92009-09-22 10:04:15 -07005067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005068$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005069if test "${lt_cv_nm_interface+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005070 $as_echo_n "(cached) " >&6
5071else
5072 lt_cv_nm_interface="BSD nm"
5073 echo "int some_variable = 0;" > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07005074 (eval echo "\"\$as_me:5074: $ac_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005075 (eval "$ac_compile" 2>conftest.err)
5076 cat conftest.err >&5
Scott James Remnantfde82c92009-09-22 10:04:15 -07005077 (eval echo "\"\$as_me:5077: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005078 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5079 cat conftest.err >&5
Scott James Remnantfde82c92009-09-22 10:04:15 -07005080 (eval echo "\"\$as_me:5080: output\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005081 cat conftest.out >&5
5082 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5083 lt_cv_nm_interface="MS dumpbin"
5084 fi
5085 rm -f conftest*
5086fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005088$as_echo "$lt_cv_nm_interface" >&6; }
5089
Scott James Remnantfde82c92009-09-22 10:04:15 -07005090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005091$as_echo_n "checking whether ln -s works... " >&6; }
5092LN_S=$as_ln_s
5093if test "$LN_S" = "ln -s"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005095$as_echo "yes" >&6; }
5096else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005098$as_echo "no, using $LN_S" >&6; }
5099fi
5100
5101# find the maximum length of command line arguments
Scott James Remnantfde82c92009-09-22 10:04:15 -07005102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005103$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005104if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005105 $as_echo_n "(cached) " >&6
5106else
5107 i=0
5108 teststring="ABCD"
5109
5110 case $build_os in
5111 msdosdjgpp*)
5112 # On DJGPP, this test can blow up pretty badly due to problems in libc
5113 # (any single argument exceeding 2000 bytes causes a buffer overrun
5114 # during glob expansion). Even if it were fixed, the result of this
5115 # check would be larger than it should be.
5116 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5117 ;;
5118
5119 gnu*)
5120 # Under GNU Hurd, this test is not required because there is
5121 # no limit to the length of command line arguments.
5122 # Libtool will interpret -1 as no limit whatsoever
5123 lt_cv_sys_max_cmd_len=-1;
5124 ;;
5125
5126 cygwin* | mingw* | cegcc*)
5127 # On Win9x/ME, this test blows up -- it succeeds, but takes
5128 # about 5 minutes as the teststring grows exponentially.
5129 # Worse, since 9x/ME are not pre-emptively multitasking,
5130 # you end up with a "frozen" computer, even though with patience
5131 # the test eventually succeeds (with a max line length of 256k).
5132 # Instead, let's just punt: use the minimum linelength reported by
5133 # all of the supported platforms: 8192 (on NT/2K/XP).
5134 lt_cv_sys_max_cmd_len=8192;
5135 ;;
5136
5137 amigaos*)
5138 # On AmigaOS with pdksh, this test takes hours, literally.
5139 # So we just punt and use a minimum line length of 8192.
5140 lt_cv_sys_max_cmd_len=8192;
5141 ;;
5142
5143 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5144 # This has been around since 386BSD, at least. Likely further.
5145 if test -x /sbin/sysctl; then
5146 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5147 elif test -x /usr/sbin/sysctl; then
5148 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5149 else
5150 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5151 fi
5152 # And add a safety zone
5153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5155 ;;
5156
5157 interix*)
5158 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5159 lt_cv_sys_max_cmd_len=196608
5160 ;;
5161
5162 osf*)
5163 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5164 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5165 # nice to cause kernel panics so lets avoid the loop below.
5166 # First set a reasonable default.
5167 lt_cv_sys_max_cmd_len=16384
5168 #
5169 if test -x /sbin/sysconfig; then
5170 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5171 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5172 esac
5173 fi
5174 ;;
5175 sco3.2v5*)
5176 lt_cv_sys_max_cmd_len=102400
5177 ;;
5178 sysv5* | sco5v6* | sysv4.2uw2*)
5179 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5180 if test -n "$kargmax"; then
5181 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5182 else
5183 lt_cv_sys_max_cmd_len=32768
5184 fi
5185 ;;
5186 *)
5187 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5188 if test -n "$lt_cv_sys_max_cmd_len"; then
5189 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5191 else
5192 # Make teststring a little bigger before we do anything with it.
5193 # a 1K string should be a reasonable start.
5194 for i in 1 2 3 4 5 6 7 8 ; do
5195 teststring=$teststring$teststring
5196 done
5197 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5198 # If test is not a shell built-in, we'll probably end up computing a
5199 # maximum length that is only half of the actual maximum length, but
5200 # we can't tell.
5201 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5202 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5203 test $i != 17 # 1/2 MB should be enough
5204 do
5205 i=`expr $i + 1`
5206 teststring=$teststring$teststring
5207 done
5208 # Only check the string length outside the loop.
5209 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5210 teststring=
5211 # Add a significant safety factor because C++ compilers can tack on
5212 # massive amounts of additional arguments before passing them to the
5213 # linker. It appears as though 1/2 is a usable value.
5214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5215 fi
5216 ;;
5217 esac
5218
5219fi
5220
5221if test -n $lt_cv_sys_max_cmd_len ; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005223$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5224else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005226$as_echo "none" >&6; }
5227fi
5228max_cmd_len=$lt_cv_sys_max_cmd_len
5229
5230
5231
5232
5233
5234
5235: ${CP="cp -f"}
5236: ${MV="mv -f"}
5237: ${RM="rm -f"}
5238
Scott James Remnantfde82c92009-09-22 10:04:15 -07005239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005240$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5241# Try some XSI features
5242xsi_shell=no
5243( _lt_dummy="a/b/c"
5244 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5245 = c,a/b,, \
5246 && eval 'test $(( 1 + 1 )) -eq 2 \
5247 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5248 && xsi_shell=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005250$as_echo "$xsi_shell" >&6; }
5251
5252
Scott James Remnantfde82c92009-09-22 10:04:15 -07005253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005254$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5255lt_shell_append=no
5256( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5257 >/dev/null 2>&1 \
5258 && lt_shell_append=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005260$as_echo "$lt_shell_append" >&6; }
5261
5262
5263if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5264 lt_unset=unset
5265else
5266 lt_unset=false
5267fi
5268
5269
5270
5271
5272
5273# test EBCDIC or ASCII
5274case `echo X|tr X '\101'` in
5275 A) # ASCII based system
5276 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5277 lt_SP2NL='tr \040 \012'
5278 lt_NL2SP='tr \015\012 \040\040'
5279 ;;
5280 *) # EBCDIC based system
5281 lt_SP2NL='tr \100 \n'
5282 lt_NL2SP='tr \r\n \100\100'
5283 ;;
5284esac
5285
5286
5287
5288
5289
5290
5291
5292
5293
Scott James Remnantfde82c92009-09-22 10:04:15 -07005294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005295$as_echo_n "checking for $LD option to reload object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005296if test "${lt_cv_ld_reload_flag+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005297 $as_echo_n "(cached) " >&6
5298else
5299 lt_cv_ld_reload_flag='-r'
5300fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005302$as_echo "$lt_cv_ld_reload_flag" >&6; }
5303reload_flag=$lt_cv_ld_reload_flag
5304case $reload_flag in
5305"" | " "*) ;;
5306*) reload_flag=" $reload_flag" ;;
5307esac
5308reload_cmds='$LD$reload_flag -o $output$reload_objs'
5309case $host_os in
5310 darwin*)
5311 if test "$GCC" = yes; then
5312 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5313 else
5314 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5315 fi
5316 ;;
5317esac
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327if test -n "$ac_tool_prefix"; then
5328 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5329set dummy ${ac_tool_prefix}objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005331$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005332if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005333 $as_echo_n "(cached) " >&6
5334else
5335 if test -n "$OBJDUMP"; then
5336 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5337else
5338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005343 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005347 break 2
5348 fi
5349done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005350 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005351IFS=$as_save_IFS
5352
5353fi
5354fi
5355OBJDUMP=$ac_cv_prog_OBJDUMP
5356if test -n "$OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005358$as_echo "$OBJDUMP" >&6; }
5359else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005361$as_echo "no" >&6; }
5362fi
5363
5364
5365fi
5366if test -z "$ac_cv_prog_OBJDUMP"; then
5367 ac_ct_OBJDUMP=$OBJDUMP
5368 # Extract the first word of "objdump", so it can be a program name with args.
5369set dummy objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005371$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005372if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005373 $as_echo_n "(cached) " >&6
5374else
5375 if test -n "$ac_ct_OBJDUMP"; then
5376 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5377else
5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005383 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005387 break 2
5388 fi
5389done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005390 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005391IFS=$as_save_IFS
5392
5393fi
5394fi
5395ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5396if test -n "$ac_ct_OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005398$as_echo "$ac_ct_OBJDUMP" >&6; }
5399else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005401$as_echo "no" >&6; }
5402fi
5403
5404 if test "x$ac_ct_OBJDUMP" = x; then
5405 OBJDUMP="false"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005409{ $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 +01005410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413 OBJDUMP=$ac_ct_OBJDUMP
5414 fi
5415else
5416 OBJDUMP="$ac_cv_prog_OBJDUMP"
5417fi
5418
5419test -z "$OBJDUMP" && OBJDUMP=objdump
5420
5421
5422
5423
5424
5425
5426
5427
5428
Scott James Remnantfde82c92009-09-22 10:04:15 -07005429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005430$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005431if test "${lt_cv_deplibs_check_method+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005432 $as_echo_n "(cached) " >&6
5433else
5434 lt_cv_file_magic_cmd='$MAGIC_CMD'
5435lt_cv_file_magic_test_file=
5436lt_cv_deplibs_check_method='unknown'
5437# Need to set the preceding variable on all platforms that support
5438# interlibrary dependencies.
5439# 'none' -- dependencies not supported.
5440# `unknown' -- same as none, but documents that we really don't know.
5441# 'pass_all' -- all dependencies passed with no checks.
5442# 'test_compile' -- check by making test program.
5443# 'file_magic [[regex]]' -- check by looking for files in library path
5444# which responds to the $file_magic_cmd with a given extended regex.
5445# If you have `file' or equivalent on your system and you're not sure
5446# whether `pass_all' will *always* work, you probably want this one.
5447
5448case $host_os in
5449aix[4-9]*)
5450 lt_cv_deplibs_check_method=pass_all
5451 ;;
5452
5453beos*)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456
5457bsdi[45]*)
5458 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5459 lt_cv_file_magic_cmd='/usr/bin/file -L'
5460 lt_cv_file_magic_test_file=/shlib/libc.so
5461 ;;
5462
5463cygwin*)
5464 # func_win32_libid is a shell function defined in ltmain.sh
5465 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5466 lt_cv_file_magic_cmd='func_win32_libid'
5467 ;;
5468
5469mingw* | pw32*)
5470 # Base MSYS/MinGW do not provide the 'file' command needed by
5471 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5472 # unless we find 'file', for example because we are cross-compiling.
5473 if ( file / ) >/dev/null 2>&1; then
5474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5475 lt_cv_file_magic_cmd='func_win32_libid'
5476 else
5477 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5478 lt_cv_file_magic_cmd='$OBJDUMP -f'
5479 fi
5480 ;;
5481
5482cegcc)
5483 # use the weaker test based on 'objdump'. See mingw*.
5484 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5485 lt_cv_file_magic_cmd='$OBJDUMP -f'
5486 ;;
5487
5488darwin* | rhapsody*)
5489 lt_cv_deplibs_check_method=pass_all
5490 ;;
5491
5492freebsd* | dragonfly*)
5493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494 case $host_cpu in
5495 i*86 )
5496 # Not sure whether the presence of OpenBSD here was a mistake.
5497 # Let's accept both of them until this is cleared up.
5498 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5499 lt_cv_file_magic_cmd=/usr/bin/file
5500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5501 ;;
5502 esac
5503 else
5504 lt_cv_deplibs_check_method=pass_all
5505 fi
5506 ;;
5507
5508gnu*)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512hpux10.20* | hpux11*)
5513 lt_cv_file_magic_cmd=/usr/bin/file
5514 case $host_cpu in
5515 ia64*)
5516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5518 ;;
5519 hppa*64*)
5520 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]'
5521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5522 ;;
5523 *)
5524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5525 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5526 ;;
5527 esac
5528 ;;
5529
5530interix[3-9]*)
5531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5533 ;;
5534
5535irix5* | irix6* | nonstopux*)
5536 case $LD in
5537 *-32|*"-32 ") libmagic=32-bit;;
5538 *-n32|*"-n32 ") libmagic=N32;;
5539 *-64|*"-64 ") libmagic=64-bit;;
5540 *) libmagic=never-match;;
5541 esac
5542 lt_cv_deplibs_check_method=pass_all
5543 ;;
5544
5545# This must be Linux ELF.
5546linux* | k*bsd*-gnu)
5547 lt_cv_deplibs_check_method=pass_all
5548 ;;
5549
5550netbsd* | netbsdelf*-gnu)
5551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553 else
5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5555 fi
5556 ;;
5557
5558newos6*)
5559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5560 lt_cv_file_magic_cmd=/usr/bin/file
5561 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5562 ;;
5563
5564*nto* | *qnx*)
5565 lt_cv_deplibs_check_method=pass_all
5566 ;;
5567
5568openbsd*)
5569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5571 else
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5573 fi
5574 ;;
5575
5576osf3* | osf4* | osf5*)
5577 lt_cv_deplibs_check_method=pass_all
5578 ;;
5579
5580rdos*)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583
5584solaris*)
5585 lt_cv_deplibs_check_method=pass_all
5586 ;;
5587
5588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5589 lt_cv_deplibs_check_method=pass_all
5590 ;;
5591
5592sysv4 | sysv4.3*)
5593 case $host_vendor in
5594 motorola)
5595 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]'
5596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5597 ;;
5598 ncr)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601 sequent)
5602 lt_cv_file_magic_cmd='/bin/file'
5603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5604 ;;
5605 sni)
5606 lt_cv_file_magic_cmd='/bin/file'
5607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5608 lt_cv_file_magic_test_file=/lib/libc.so
5609 ;;
5610 siemens)
5611 lt_cv_deplibs_check_method=pass_all
5612 ;;
5613 pc)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616 esac
5617 ;;
5618
5619tpf*)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622esac
5623
5624fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005626$as_echo "$lt_cv_deplibs_check_method" >&6; }
5627file_magic_cmd=$lt_cv_file_magic_cmd
5628deplibs_check_method=$lt_cv_deplibs_check_method
5629test -z "$deplibs_check_method" && deplibs_check_method=unknown
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005646$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005647if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005648 $as_echo_n "(cached) " >&6
5649else
5650 if test -n "$AR"; then
5651 ac_cv_prog_AR="$AR" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005658 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005662 break 2
5663 fi
5664done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005665 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005666IFS=$as_save_IFS
5667
5668fi
5669fi
5670AR=$ac_cv_prog_AR
5671if test -n "$AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005673$as_echo "$AR" >&6; }
5674else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005676$as_echo "no" >&6; }
5677fi
5678
5679
5680fi
5681if test -z "$ac_cv_prog_AR"; then
5682 ac_ct_AR=$AR
5683 # Extract the first word of "ar", so it can be a program name with args.
5684set dummy ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005686$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005687if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005688 $as_echo_n "(cached) " >&6
5689else
5690 if test -n "$ac_ct_AR"; then
5691 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005698 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005702 break 2
5703 fi
5704done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005705 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005706IFS=$as_save_IFS
5707
5708fi
5709fi
5710ac_ct_AR=$ac_cv_prog_ac_ct_AR
5711if test -n "$ac_ct_AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005713$as_echo "$ac_ct_AR" >&6; }
5714else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005716$as_echo "no" >&6; }
5717fi
5718
5719 if test "x$ac_ct_AR" = x; then
5720 AR="false"
5721 else
5722 case $cross_compiling:$ac_tool_warned in
5723yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005724{ $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 +01005725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726ac_tool_warned=yes ;;
5727esac
5728 AR=$ac_ct_AR
5729 fi
5730else
5731 AR="$ac_cv_prog_AR"
5732fi
5733
5734test -z "$AR" && AR=ar
5735test -z "$AR_FLAGS" && AR_FLAGS=cru
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5749set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005751$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005752if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005753 $as_echo_n "(cached) " >&6
5754else
5755 if test -n "$STRIP"; then
5756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005763 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005767 break 2
5768 fi
5769done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005770 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005771IFS=$as_save_IFS
5772
5773fi
5774fi
5775STRIP=$ac_cv_prog_STRIP
5776if test -n "$STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005778$as_echo "$STRIP" >&6; }
5779else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005781$as_echo "no" >&6; }
5782fi
5783
5784
5785fi
5786if test -z "$ac_cv_prog_STRIP"; then
5787 ac_ct_STRIP=$STRIP
5788 # Extract the first word of "strip", so it can be a program name with args.
5789set dummy strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005791$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005792if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005793 $as_echo_n "(cached) " >&6
5794else
5795 if test -n "$ac_ct_STRIP"; then
5796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005803 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005807 break 2
5808 fi
5809done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005810 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005811IFS=$as_save_IFS
5812
5813fi
5814fi
5815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5816if test -n "$ac_ct_STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005818$as_echo "$ac_ct_STRIP" >&6; }
5819else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005821$as_echo "no" >&6; }
5822fi
5823
5824 if test "x$ac_ct_STRIP" = x; then
5825 STRIP=":"
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005829{ $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 +01005830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5831ac_tool_warned=yes ;;
5832esac
5833 STRIP=$ac_ct_STRIP
5834 fi
5835else
5836 STRIP="$ac_cv_prog_STRIP"
5837fi
5838
5839test -z "$STRIP" && STRIP=:
5840
5841
5842
5843
5844
5845
5846if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5848set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005850$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005851if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005852 $as_echo_n "(cached) " >&6
5853else
5854 if test -n "$RANLIB"; then
5855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5856else
5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858for as_dir in $PATH
5859do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005862 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005866 break 2
5867 fi
5868done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005869 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005870IFS=$as_save_IFS
5871
5872fi
5873fi
5874RANLIB=$ac_cv_prog_RANLIB
5875if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005877$as_echo "$RANLIB" >&6; }
5878else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005880$as_echo "no" >&6; }
5881fi
5882
5883
5884fi
5885if test -z "$ac_cv_prog_RANLIB"; then
5886 ac_ct_RANLIB=$RANLIB
5887 # Extract the first word of "ranlib", so it can be a program name with args.
5888set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005890$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005891if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005892 $as_echo_n "(cached) " >&6
5893else
5894 if test -n "$ac_ct_RANLIB"; then
5895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005902 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005906 break 2
5907 fi
5908done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005909 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005910IFS=$as_save_IFS
5911
5912fi
5913fi
5914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5915if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005917$as_echo "$ac_ct_RANLIB" >&6; }
5918else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005920$as_echo "no" >&6; }
5921fi
5922
5923 if test "x$ac_ct_RANLIB" = x; then
5924 RANLIB=":"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005928{ $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 +01005929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5930ac_tool_warned=yes ;;
5931esac
5932 RANLIB=$ac_ct_RANLIB
5933 fi
5934else
5935 RANLIB="$ac_cv_prog_RANLIB"
5936fi
5937
5938test -z "$RANLIB" && RANLIB=:
5939
5940
5941
5942
5943
5944
5945# Determine commands to create old-style static archives.
5946old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5947old_postinstall_cmds='chmod 644 $oldlib'
5948old_postuninstall_cmds=
5949
5950if test -n "$RANLIB"; then
5951 case $host_os in
5952 openbsd*)
5953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5954 ;;
5955 *)
5956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5957 ;;
5958 esac
5959 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5960fi
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
5990
5991
5992
5993
5994
5995# If no C compiler was specified, use CC.
5996LTCC=${LTCC-"$CC"}
5997
5998# If no C compiler flags were specified, use CFLAGS.
5999LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6000
6001# Allow CC to be a program name with arguments.
6002compiler=$CC
6003
6004
6005# Check for command to grab the raw symbol name followed by C symbol from nm.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006006{ $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 +01006007$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006008if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006009 $as_echo_n "(cached) " >&6
6010else
6011
6012# These are sane defaults that work on at least a few old systems.
6013# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6014
6015# Character class describing NM global symbol codes.
6016symcode='[BCDEGRST]'
6017
6018# Regexp to match symbols that can be accessed directly from C.
6019sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6020
6021# Define system-specific variables.
6022case $host_os in
6023aix*)
6024 symcode='[BCDT]'
6025 ;;
6026cygwin* | mingw* | pw32* | cegcc*)
6027 symcode='[ABCDGISTW]'
6028 ;;
6029hpux*)
6030 if test "$host_cpu" = ia64; then
6031 symcode='[ABCDEGRST]'
6032 fi
6033 ;;
6034irix* | nonstopux*)
6035 symcode='[BCDEGRST]'
6036 ;;
6037osf*)
6038 symcode='[BCDEGQRST]'
6039 ;;
6040solaris*)
6041 symcode='[BDRT]'
6042 ;;
6043sco3.2v5*)
6044 symcode='[DT]'
6045 ;;
6046sysv4.2uw2*)
6047 symcode='[DT]'
6048 ;;
6049sysv5* | sco5v6* | unixware* | OpenUNIX*)
6050 symcode='[ABDT]'
6051 ;;
6052sysv4)
6053 symcode='[DFNSTU]'
6054 ;;
6055esac
6056
6057# If we're using GNU nm, then use its standard symbol codes.
6058case `$NM -V 2>&1` in
6059*GNU* | *'with BFD'*)
6060 symcode='[ABCDGIRSTW]' ;;
6061esac
6062
6063# Transform an extracted symbol line into a proper C declaration.
6064# Some systems (esp. on ia64) link data and code symbols differently,
6065# so use this general approach.
6066lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6067
6068# Transform an extracted symbol line into symbol name and symbol address
6069lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6070lt_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'"
6071
6072# Handle CRLF in mingw tool chain
6073opt_cr=
6074case $build_os in
6075mingw*)
6076 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6077 ;;
6078esac
6079
6080# Try without a prefix underscore, then with it.
6081for ac_symprfx in "" "_"; do
6082
6083 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6084 symxfrm="\\1 $ac_symprfx\\2 \\2"
6085
6086 # Write the raw and C identifiers.
6087 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6088 # Fake it for dumpbin and say T for any non-static function
6089 # and D for any global variable.
6090 # Also find C++ and __fastcall symbols from MSVC++,
6091 # which start with @ or ?.
6092 lt_cv_sys_global_symbol_pipe="$AWK '"\
6093" {last_section=section; section=\$ 3};"\
6094" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6095" \$ 0!~/External *\|/{next};"\
6096" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6097" {if(hide[section]) next};"\
6098" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6099" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6100" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6101" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6102" ' prfx=^$ac_symprfx"
6103 else
6104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6105 fi
6106
6107 # Check to see that the pipe works correctly.
6108 pipe_works=no
6109
6110 rm -f conftest*
6111 cat > conftest.$ac_ext <<_LT_EOF
6112#ifdef __cplusplus
6113extern "C" {
6114#endif
6115char nm_test_var;
6116void nm_test_func(void);
6117void nm_test_func(void){}
6118#ifdef __cplusplus
6119}
6120#endif
6121int main(){nm_test_var='a';nm_test_func();return(0);}
6122_LT_EOF
6123
Scott James Remnantfde82c92009-09-22 10:04:15 -07006124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006125 (eval $ac_compile) 2>&5
6126 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006129 # Now try to grab the symbols.
6130 nlist=conftest.nm
Scott James Remnantfde82c92009-09-22 10:04:15 -07006131 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 +01006132 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6133 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; } && test -s "$nlist"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006136 # Try sorting and uniquifying the output.
6137 if sort "$nlist" | uniq > "$nlist"T; then
6138 mv -f "$nlist"T "$nlist"
6139 else
6140 rm -f "$nlist"T
6141 fi
6142
6143 # Make sure that we snagged all the symbols we need.
6144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6146 cat <<_LT_EOF > conftest.$ac_ext
6147#ifdef __cplusplus
6148extern "C" {
6149#endif
6150
6151_LT_EOF
6152 # Now generate the symbol file.
6153 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6154
6155 cat <<_LT_EOF >> conftest.$ac_ext
6156
6157/* The mapping between symbol names and symbols. */
6158const struct {
6159 const char *name;
6160 void *address;
6161}
6162lt__PROGRAM__LTX_preloaded_symbols[] =
6163{
6164 { "@PROGRAM@", (void *) 0 },
6165_LT_EOF
6166 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6167 cat <<\_LT_EOF >> conftest.$ac_ext
6168 {0, (void *) 0}
6169};
6170
6171/* This works around a problem in FreeBSD linker */
6172#ifdef FREEBSD_WORKAROUND
6173static const void *lt_preloaded_setup() {
6174 return lt__PROGRAM__LTX_preloaded_symbols;
6175}
6176#endif
6177
6178#ifdef __cplusplus
6179}
6180#endif
6181_LT_EOF
6182 # Now try linking the two files.
6183 mv conftest.$ac_objext conftstm.$ac_objext
6184 lt_save_LIBS="$LIBS"
6185 lt_save_CFLAGS="$CFLAGS"
6186 LIBS="conftstm.$ac_objext"
6187 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006189 (eval $ac_link) 2>&5
6190 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006193 pipe_works=yes
6194 fi
6195 LIBS="$lt_save_LIBS"
6196 CFLAGS="$lt_save_CFLAGS"
6197 else
6198 echo "cannot find nm_test_func in $nlist" >&5
6199 fi
6200 else
6201 echo "cannot find nm_test_var in $nlist" >&5
6202 fi
6203 else
6204 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6205 fi
6206 else
6207 echo "$progname: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6209 fi
6210 rm -rf conftest* conftst*
6211
6212 # Do not use the global_symbol_pipe unless it works.
6213 if test "$pipe_works" = yes; then
6214 break
6215 else
6216 lt_cv_sys_global_symbol_pipe=
6217 fi
6218done
6219
6220fi
6221
6222if test -z "$lt_cv_sys_global_symbol_pipe"; then
6223 lt_cv_sys_global_symbol_to_cdecl=
6224fi
6225if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006227$as_echo "failed" >&6; }
6228else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006230$as_echo "ok" >&6; }
6231fi
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254# Check whether --enable-libtool-lock was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006255if test "${enable_libtool_lock+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006256 enableval=$enable_libtool_lock;
6257fi
6258
6259test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6260
6261# Some flags need to be propagated to the compiler or linker for good
6262# libtool support.
6263case $host in
6264ia64-*-hpux*)
6265 # Find out which ABI we are using.
6266 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006268 (eval $ac_compile) 2>&5
6269 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006272 case `/usr/bin/file conftest.$ac_objext` in
6273 *ELF-32*)
6274 HPUX_IA64_MODE="32"
6275 ;;
6276 *ELF-64*)
6277 HPUX_IA64_MODE="64"
6278 ;;
6279 esac
6280 fi
6281 rm -rf conftest*
6282 ;;
6283*-*-irix6*)
6284 # Find out which ABI we are using.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006285 echo '#line 6285 "configure"' > conftest.$ac_ext
6286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006287 (eval $ac_compile) 2>&5
6288 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6290 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006291 if test "$lt_cv_prog_gnu_ld" = yes; then
6292 case `/usr/bin/file conftest.$ac_objext` in
6293 *32-bit*)
6294 LD="${LD-ld} -melf32bsmip"
6295 ;;
6296 *N32*)
6297 LD="${LD-ld} -melf32bmipn32"
6298 ;;
6299 *64-bit*)
6300 LD="${LD-ld} -melf64bmip"
6301 ;;
6302 esac
6303 else
6304 case `/usr/bin/file conftest.$ac_objext` in
6305 *32-bit*)
6306 LD="${LD-ld} -32"
6307 ;;
6308 *N32*)
6309 LD="${LD-ld} -n32"
6310 ;;
6311 *64-bit*)
6312 LD="${LD-ld} -64"
6313 ;;
6314 esac
6315 fi
6316 fi
6317 rm -rf conftest*
6318 ;;
6319
6320x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6321s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6322 # Find out which ABI we are using.
6323 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006325 (eval $ac_compile) 2>&5
6326 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006329 case `/usr/bin/file conftest.o` in
6330 *32-bit*)
6331 case $host in
6332 x86_64-*kfreebsd*-gnu)
6333 LD="${LD-ld} -m elf_i386_fbsd"
6334 ;;
6335 x86_64-*linux*)
6336 LD="${LD-ld} -m elf_i386"
6337 ;;
6338 ppc64-*linux*|powerpc64-*linux*)
6339 LD="${LD-ld} -m elf32ppclinux"
6340 ;;
6341 s390x-*linux*)
6342 LD="${LD-ld} -m elf_s390"
6343 ;;
6344 sparc64-*linux*)
6345 LD="${LD-ld} -m elf32_sparc"
6346 ;;
6347 esac
6348 ;;
6349 *64-bit*)
6350 case $host in
6351 x86_64-*kfreebsd*-gnu)
6352 LD="${LD-ld} -m elf_x86_64_fbsd"
6353 ;;
6354 x86_64-*linux*)
6355 LD="${LD-ld} -m elf_x86_64"
6356 ;;
6357 ppc*-*linux*|powerpc*-*linux*)
6358 LD="${LD-ld} -m elf64ppc"
6359 ;;
6360 s390*-*linux*|s390*-*tpf*)
6361 LD="${LD-ld} -m elf64_s390"
6362 ;;
6363 sparc*-*linux*)
6364 LD="${LD-ld} -m elf64_sparc"
6365 ;;
6366 esac
6367 ;;
6368 esac
6369 fi
6370 rm -rf conftest*
6371 ;;
6372
6373*-*-sco3.2v5*)
6374 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6375 SAVE_CFLAGS="$CFLAGS"
6376 CFLAGS="$CFLAGS -belf"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006378$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006379if test "${lt_cv_cc_needs_belf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006380 $as_echo_n "(cached) " >&6
6381else
6382 ac_ext=c
6383ac_cpp='$CPP $CPPFLAGS'
6384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6386ac_compiler_gnu=$ac_cv_c_compiler_gnu
6387
Scott James Remnantfde82c92009-09-22 10:04:15 -07006388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006389/* end confdefs.h. */
6390
6391int
6392main ()
6393{
6394
6395 ;
6396 return 0;
6397}
6398_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07006399if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006400 lt_cv_cc_needs_belf=yes
6401else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006402 lt_cv_cc_needs_belf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006403fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006404rm -f core conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006406 ac_ext=c
6407ac_cpp='$CPP $CPPFLAGS'
6408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411
6412fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006414$as_echo "$lt_cv_cc_needs_belf" >&6; }
6415 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6416 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6417 CFLAGS="$SAVE_CFLAGS"
6418 fi
6419 ;;
6420sparc*-*solaris*)
6421 # Find out which ABI we are using.
6422 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006424 (eval $ac_compile) 2>&5
6425 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6427 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006428 case `/usr/bin/file conftest.o` in
6429 *64-bit*)
6430 case $lt_cv_prog_gnu_ld in
6431 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6432 *)
6433 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6434 LD="${LD-ld} -64"
6435 fi
6436 ;;
6437 esac
6438 ;;
6439 esac
6440 fi
6441 rm -rf conftest*
6442 ;;
6443esac
6444
6445need_locks="$enable_libtool_lock"
6446
6447
6448 case $host_os in
6449 rhapsody* | darwin*)
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6452set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006454$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006455if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006456 $as_echo_n "(cached) " >&6
6457else
6458 if test -n "$DSYMUTIL"; then
6459 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006466 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006470 break 2
6471 fi
6472done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006473 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006474IFS=$as_save_IFS
6475
6476fi
6477fi
6478DSYMUTIL=$ac_cv_prog_DSYMUTIL
6479if test -n "$DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006481$as_echo "$DSYMUTIL" >&6; }
6482else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006484$as_echo "no" >&6; }
6485fi
6486
6487
6488fi
6489if test -z "$ac_cv_prog_DSYMUTIL"; then
6490 ac_ct_DSYMUTIL=$DSYMUTIL
6491 # Extract the first word of "dsymutil", so it can be a program name with args.
6492set dummy dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006494$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006495if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006496 $as_echo_n "(cached) " >&6
6497else
6498 if test -n "$ac_ct_DSYMUTIL"; then
6499 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006506 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006510 break 2
6511 fi
6512done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006513 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006514IFS=$as_save_IFS
6515
6516fi
6517fi
6518ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6519if test -n "$ac_ct_DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006521$as_echo "$ac_ct_DSYMUTIL" >&6; }
6522else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006524$as_echo "no" >&6; }
6525fi
6526
6527 if test "x$ac_ct_DSYMUTIL" = x; then
6528 DSYMUTIL=":"
6529 else
6530 case $cross_compiling:$ac_tool_warned in
6531yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006532{ $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 +01006533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534ac_tool_warned=yes ;;
6535esac
6536 DSYMUTIL=$ac_ct_DSYMUTIL
6537 fi
6538else
6539 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6540fi
6541
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006546$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006547if test "${ac_cv_prog_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$NMEDIT"; then
6551 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006558 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006562 break 2
6563 fi
6564done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006565 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006566IFS=$as_save_IFS
6567
6568fi
6569fi
6570NMEDIT=$ac_cv_prog_NMEDIT
6571if test -n "$NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006573$as_echo "$NMEDIT" >&6; }
6574else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_NMEDIT"; then
6582 ac_ct_NMEDIT=$NMEDIT
6583 # Extract the first word of "nmedit", so it can be a program name with args.
6584set dummy nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006586$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006587if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006588 $as_echo_n "(cached) " >&6
6589else
6590 if test -n "$ac_ct_NMEDIT"; then
6591 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006598 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006602 break 2
6603 fi
6604done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006605 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6611if test -n "$ac_ct_NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006613$as_echo "$ac_ct_NMEDIT" >&6; }
6614else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006616$as_echo "no" >&6; }
6617fi
6618
6619 if test "x$ac_ct_NMEDIT" = x; then
6620 NMEDIT=":"
6621 else
6622 case $cross_compiling:$ac_tool_warned in
6623yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006624{ $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 +01006625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628 NMEDIT=$ac_ct_NMEDIT
6629 fi
6630else
6631 NMEDIT="$ac_cv_prog_NMEDIT"
6632fi
6633
6634 if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6636set dummy ${ac_tool_prefix}lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006638$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006639if test "${ac_cv_prog_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006640 $as_echo_n "(cached) " >&6
6641else
6642 if test -n "$LIPO"; then
6643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006650 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006654 break 2
6655 fi
6656done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006657 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006658IFS=$as_save_IFS
6659
6660fi
6661fi
6662LIPO=$ac_cv_prog_LIPO
6663if test -n "$LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006665$as_echo "$LIPO" >&6; }
6666else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006668$as_echo "no" >&6; }
6669fi
6670
6671
6672fi
6673if test -z "$ac_cv_prog_LIPO"; then
6674 ac_ct_LIPO=$LIPO
6675 # Extract the first word of "lipo", so it can be a program name with args.
6676set dummy lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006678$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006679if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006680 $as_echo_n "(cached) " >&6
6681else
6682 if test -n "$ac_ct_LIPO"; then
6683 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006690 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_prog_ac_ct_LIPO="lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006694 break 2
6695 fi
6696done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006697 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006698IFS=$as_save_IFS
6699
6700fi
6701fi
6702ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6703if test -n "$ac_ct_LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006705$as_echo "$ac_ct_LIPO" >&6; }
6706else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006708$as_echo "no" >&6; }
6709fi
6710
6711 if test "x$ac_ct_LIPO" = x; then
6712 LIPO=":"
6713 else
6714 case $cross_compiling:$ac_tool_warned in
6715yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006716{ $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 +01006717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718ac_tool_warned=yes ;;
6719esac
6720 LIPO=$ac_ct_LIPO
6721 fi
6722else
6723 LIPO="$ac_cv_prog_LIPO"
6724fi
6725
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6728set dummy ${ac_tool_prefix}otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006730$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006731if test "${ac_cv_prog_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006732 $as_echo_n "(cached) " >&6
6733else
6734 if test -n "$OTOOL"; then
6735 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006742 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006746 break 2
6747 fi
6748done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006749 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006750IFS=$as_save_IFS
6751
6752fi
6753fi
6754OTOOL=$ac_cv_prog_OTOOL
6755if test -n "$OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006757$as_echo "$OTOOL" >&6; }
6758else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006760$as_echo "no" >&6; }
6761fi
6762
6763
6764fi
6765if test -z "$ac_cv_prog_OTOOL"; then
6766 ac_ct_OTOOL=$OTOOL
6767 # Extract the first word of "otool", so it can be a program name with args.
6768set dummy otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006770$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006771if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006772 $as_echo_n "(cached) " >&6
6773else
6774 if test -n "$ac_ct_OTOOL"; then
6775 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006782 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_OTOOL="otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006786 break 2
6787 fi
6788done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006789 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006790IFS=$as_save_IFS
6791
6792fi
6793fi
6794ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6795if test -n "$ac_ct_OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006797$as_echo "$ac_ct_OTOOL" >&6; }
6798else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006800$as_echo "no" >&6; }
6801fi
6802
6803 if test "x$ac_ct_OTOOL" = x; then
6804 OTOOL=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006808{ $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 +01006809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
6812 OTOOL=$ac_ct_OTOOL
6813 fi
6814else
6815 OTOOL="$ac_cv_prog_OTOOL"
6816fi
6817
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6820set dummy ${ac_tool_prefix}otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006822$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006823if test "${ac_cv_prog_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$OTOOL64"; then
6827 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006834 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006838 break 2
6839 fi
6840done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006841 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006842IFS=$as_save_IFS
6843
6844fi
6845fi
6846OTOOL64=$ac_cv_prog_OTOOL64
6847if test -n "$OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006849$as_echo "$OTOOL64" >&6; }
6850else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006852$as_echo "no" >&6; }
6853fi
6854
6855
6856fi
6857if test -z "$ac_cv_prog_OTOOL64"; then
6858 ac_ct_OTOOL64=$OTOOL64
6859 # Extract the first word of "otool64", so it can be a program name with args.
6860set dummy otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006862$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006863if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006864 $as_echo_n "(cached) " >&6
6865else
6866 if test -n "$ac_ct_OTOOL64"; then
6867 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6868else
6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006874 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_OTOOL64="otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006878 break 2
6879 fi
6880done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006881 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006882IFS=$as_save_IFS
6883
6884fi
6885fi
6886ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6887if test -n "$ac_ct_OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006889$as_echo "$ac_ct_OTOOL64" >&6; }
6890else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006892$as_echo "no" >&6; }
6893fi
6894
6895 if test "x$ac_ct_OTOOL64" = x; then
6896 OTOOL64=":"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006900{ $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 +01006901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904 OTOOL64=$ac_ct_OTOOL64
6905 fi
6906else
6907 OTOOL64="$ac_cv_prog_OTOOL64"
6908fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
Scott James Remnantfde82c92009-09-22 10:04:15 -07006936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006937$as_echo_n "checking for -single_module linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006938if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006939 $as_echo_n "(cached) " >&6
6940else
6941 lt_cv_apple_cc_single_mod=no
6942 if test -z "${LT_MULTI_MODULE}"; then
6943 # By default we will add the -single_module flag. You can override
6944 # by either setting the environment variable LT_MULTI_MODULE
6945 # non-empty at configure time, or by adding -multi_module to the
6946 # link flags.
6947 rm -rf libconftest.dylib*
6948 echo "int foo(void){return 1;}" > conftest.c
6949 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950-dynamiclib -Wl,-single_module conftest.c" >&5
6951 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6952 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6953 _lt_result=$?
6954 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6955 lt_cv_apple_cc_single_mod=yes
6956 else
6957 cat conftest.err >&5
6958 fi
6959 rm -rf libconftest.dylib*
6960 rm -f conftest.*
6961 fi
6962fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006964$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006966$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006967if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006968 $as_echo_n "(cached) " >&6
6969else
6970 lt_cv_ld_exported_symbols_list=no
6971 save_LDFLAGS=$LDFLAGS
6972 echo "_main" > conftest.sym
6973 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006975/* end confdefs.h. */
6976
6977int
6978main ()
6979{
6980
6981 ;
6982 return 0;
6983}
6984_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07006985if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006986 lt_cv_ld_exported_symbols_list=yes
6987else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006988 lt_cv_ld_exported_symbols_list=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006989fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006990rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006992 LDFLAGS="$save_LDFLAGS"
6993
6994fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006996$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6997 case $host_os in
6998 rhapsody* | darwin1.[012])
6999 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7000 darwin1.*)
7001 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7002 darwin*) # darwin 5.x on
7003 # if running on 10.5 or later, the deployment target defaults
7004 # to the OS version, if on x86, and 10.4, the deployment
7005 # target defaults to 10.4. Don't you love it?
7006 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7007 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7008 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7009 10.[012]*)
7010 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7011 10.*)
7012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7013 esac
7014 ;;
7015 esac
7016 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7017 _lt_dar_single_mod='$single_module'
7018 fi
7019 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7020 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7021 else
7022 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7023 fi
7024 if test "$DSYMUTIL" != ":"; then
7025 _lt_dsymutil='~$DSYMUTIL $lib || :'
7026 else
7027 _lt_dsymutil=
7028 fi
7029 ;;
7030 esac
7031
Scott James Remnant65f683d2009-07-14 13:05:17 +01007032for ac_header in dlfcn.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07007033do :
7034 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7035"
7036if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007037 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007038#define HAVE_DLFCN_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +01007039_ACEOF
7040
7041fi
7042
7043done
7044
7045
7046
7047# Set options
7048
7049
7050
7051 enable_dlopen=no
7052
7053
7054 enable_win32_dll=no
7055
7056
7057 # Check whether --enable-shared was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007058if test "${enable_shared+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007059 enableval=$enable_shared; p=${PACKAGE-default}
7060 case $enableval in
7061 yes) enable_shared=yes ;;
7062 no) enable_shared=no ;;
7063 *)
7064 enable_shared=no
7065 # Look at the argument we got. We use all the common list separators.
7066 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7067 for pkg in $enableval; do
7068 IFS="$lt_save_ifs"
7069 if test "X$pkg" = "X$p"; then
7070 enable_shared=yes
7071 fi
7072 done
7073 IFS="$lt_save_ifs"
7074 ;;
7075 esac
7076else
7077 enable_shared=yes
7078fi
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088 # Check whether --enable-static was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007089if test "${enable_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007090 enableval=$enable_static; p=${PACKAGE-default}
7091 case $enableval in
7092 yes) enable_static=yes ;;
7093 no) enable_static=no ;;
7094 *)
7095 enable_static=no
7096 # Look at the argument we got. We use all the common list separators.
7097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7098 for pkg in $enableval; do
7099 IFS="$lt_save_ifs"
7100 if test "X$pkg" = "X$p"; then
7101 enable_static=yes
7102 fi
7103 done
7104 IFS="$lt_save_ifs"
7105 ;;
7106 esac
7107else
7108 enable_static=yes
7109fi
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120# Check whether --with-pic was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007121if test "${with_pic+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007122 withval=$with_pic; pic_mode="$withval"
7123else
7124 pic_mode=default
7125fi
7126
7127
7128test -z "$pic_mode" && pic_mode=default
7129
7130
7131
7132
7133
7134
7135
7136 # Check whether --enable-fast-install was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007137if test "${enable_fast_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007138 enableval=$enable_fast_install; p=${PACKAGE-default}
7139 case $enableval in
7140 yes) enable_fast_install=yes ;;
7141 no) enable_fast_install=no ;;
7142 *)
7143 enable_fast_install=no
7144 # Look at the argument we got. We use all the common list separators.
7145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7146 for pkg in $enableval; do
7147 IFS="$lt_save_ifs"
7148 if test "X$pkg" = "X$p"; then
7149 enable_fast_install=yes
7150 fi
7151 done
7152 IFS="$lt_save_ifs"
7153 ;;
7154 esac
7155else
7156 enable_fast_install=yes
7157fi
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169# This can be used to rebuild libtool when needed
7170LIBTOOL_DEPS="$ltmain"
7171
7172# Always use our own libtool.
7173LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199test -z "$LN_S" && LN_S="ln -s"
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214if test -n "${ZSH_VERSION+set}" ; then
7215 setopt NO_GLOB_SUBST
7216fi
7217
Scott James Remnantfde82c92009-09-22 10:04:15 -07007218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007219$as_echo_n "checking for objdir... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007220if test "${lt_cv_objdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007221 $as_echo_n "(cached) " >&6
7222else
7223 rm -f .libs 2>/dev/null
7224mkdir .libs 2>/dev/null
7225if test -d .libs; then
7226 lt_cv_objdir=.libs
7227else
7228 # MS-DOS does not allow filenames that begin with a dot.
7229 lt_cv_objdir=_libs
7230fi
7231rmdir .libs 2>/dev/null
7232fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007234$as_echo "$lt_cv_objdir" >&6; }
7235objdir=$lt_cv_objdir
7236
7237
7238
7239
7240
7241cat >>confdefs.h <<_ACEOF
7242#define LT_OBJDIR "$lt_cv_objdir/"
7243_ACEOF
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261case $host_os in
7262aix3*)
7263 # AIX sometimes has problems with the GCC collect2 program. For some
7264 # reason, if we set the COLLECT_NAMES environment variable, the problems
7265 # vanish in a puff of smoke.
7266 if test "X${COLLECT_NAMES+set}" != Xset; then
7267 COLLECT_NAMES=
7268 export COLLECT_NAMES
7269 fi
7270 ;;
7271esac
7272
7273# Sed substitution that helps us do robust quoting. It backslashifies
7274# metacharacters that are still active within double-quoted strings.
7275sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7276
7277# Same as above, but do not quote variable references.
7278double_quote_subst='s/\(["`\\]\)/\\\1/g'
7279
7280# Sed substitution to delay expansion of an escaped shell variable in a
7281# double_quote_subst'ed string.
7282delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7283
7284# Sed substitution to delay expansion of an escaped single quote.
7285delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7286
7287# Sed substitution to avoid accidental globbing in evaled expressions
7288no_glob_subst='s/\*/\\\*/g'
7289
7290# Global variables:
7291ofile=libtool
7292can_build_shared=yes
7293
7294# All known linkers require a `.a' archive for static linking (except MSVC,
7295# which needs '.lib').
7296libext=a
7297
7298with_gnu_ld="$lt_cv_prog_gnu_ld"
7299
7300old_CC="$CC"
7301old_CFLAGS="$CFLAGS"
7302
7303# Set sane defaults for various variables
7304test -z "$CC" && CC=cc
7305test -z "$LTCC" && LTCC=$CC
7306test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7307test -z "$LD" && LD=ld
7308test -z "$ac_objext" && ac_objext=o
7309
7310for cc_temp in $compiler""; do
7311 case $cc_temp in
7312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7314 \-*) ;;
7315 *) break;;
7316 esac
7317done
7318cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7319
7320
7321# Only perform the check for file, if the check method requires it
7322test -z "$MAGIC_CMD" && MAGIC_CMD=file
7323case $deplibs_check_method in
7324file_magic*)
7325 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007327$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007328if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007329 $as_echo_n "(cached) " >&6
7330else
7331 case $MAGIC_CMD in
7332[\\/*] | ?:[\\/]*)
7333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334 ;;
7335*)
7336 lt_save_MAGIC_CMD="$MAGIC_CMD"
7337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339 for ac_dir in $ac_dummy; do
7340 IFS="$lt_save_ifs"
7341 test -z "$ac_dir" && ac_dir=.
7342 if test -f $ac_dir/${ac_tool_prefix}file; then
7343 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7344 if test -n "$file_magic_test_file"; then
7345 case $deplibs_check_method in
7346 "file_magic "*)
7347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350 $EGREP "$file_magic_regex" > /dev/null; then
7351 :
7352 else
7353 cat <<_LT_EOF 1>&2
7354
7355*** Warning: the command libtool uses to detect shared libraries,
7356*** $file_magic_cmd, produces output that libtool cannot recognize.
7357*** The result is that libtool may fail to recognize shared libraries
7358*** as such. This will affect the creation of libtool libraries that
7359*** depend on shared libraries, but programs linked with such libtool
7360*** libraries will work regardless of this problem. Nevertheless, you
7361*** may want to report the problem to your system manager and/or to
7362*** bug-libtool@gnu.org
7363
7364_LT_EOF
7365 fi ;;
7366 esac
7367 fi
7368 break
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 MAGIC_CMD="$lt_save_MAGIC_CMD"
7373 ;;
7374esac
7375fi
7376
7377MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007380$as_echo "$MAGIC_CMD" >&6; }
7381else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007383$as_echo "no" >&6; }
7384fi
7385
7386
7387
7388
7389
7390if test -z "$lt_cv_path_MAGIC_CMD"; then
7391 if test -n "$ac_tool_prefix"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007393$as_echo_n "checking for file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007394if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007395 $as_echo_n "(cached) " >&6
7396else
7397 case $MAGIC_CMD in
7398[\\/*] | ?:[\\/]*)
7399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7400 ;;
7401*)
7402 lt_save_MAGIC_CMD="$MAGIC_CMD"
7403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405 for ac_dir in $ac_dummy; do
7406 IFS="$lt_save_ifs"
7407 test -z "$ac_dir" && ac_dir=.
7408 if test -f $ac_dir/file; then
7409 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7410 if test -n "$file_magic_test_file"; then
7411 case $deplibs_check_method in
7412 "file_magic "*)
7413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416 $EGREP "$file_magic_regex" > /dev/null; then
7417 :
7418 else
7419 cat <<_LT_EOF 1>&2
7420
7421*** Warning: the command libtool uses to detect shared libraries,
7422*** $file_magic_cmd, produces output that libtool cannot recognize.
7423*** The result is that libtool may fail to recognize shared libraries
7424*** as such. This will affect the creation of libtool libraries that
7425*** depend on shared libraries, but programs linked with such libtool
7426*** libraries will work regardless of this problem. Nevertheless, you
7427*** may want to report the problem to your system manager and/or to
7428*** bug-libtool@gnu.org
7429
7430_LT_EOF
7431 fi ;;
7432 esac
7433 fi
7434 break
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 MAGIC_CMD="$lt_save_MAGIC_CMD"
7439 ;;
7440esac
7441fi
7442
7443MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007446$as_echo "$MAGIC_CMD" >&6; }
7447else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007449$as_echo "no" >&6; }
7450fi
7451
7452
7453 else
7454 MAGIC_CMD=:
7455 fi
7456fi
7457
7458 fi
7459 ;;
7460esac
7461
7462# Use C for the default configuration in the libtool script
7463
7464lt_save_CC="$CC"
7465ac_ext=c
7466ac_cpp='$CPP $CPPFLAGS'
7467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
7471
7472# Source file extension for C test sources.
7473ac_ext=c
7474
7475# Object file extension for compiled C test sources.
7476objext=o
7477objext=$objext
7478
7479# Code to be used in simple compile tests
7480lt_simple_compile_test_code="int some_variable = 0;"
7481
7482# Code to be used in simple link tests
7483lt_simple_link_test_code='int main(){return(0);}'
7484
7485
7486
7487
7488
7489
7490
7491# If no C compiler was specified, use CC.
7492LTCC=${LTCC-"$CC"}
7493
7494# If no C compiler flags were specified, use CFLAGS.
7495LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7496
7497# Allow CC to be a program name with arguments.
7498compiler=$CC
7499
7500# Save the default compiler, since it gets overwritten when the other
7501# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7502compiler_DEFAULT=$CC
7503
7504# save warnings/boilerplate of simple test code
7505ac_outfile=conftest.$ac_objext
7506echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7507eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508_lt_compiler_boilerplate=`cat conftest.err`
7509$RM conftest*
7510
7511ac_outfile=conftest.$ac_objext
7512echo "$lt_simple_link_test_code" >conftest.$ac_ext
7513eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7514_lt_linker_boilerplate=`cat conftest.err`
7515$RM -r conftest*
7516
7517
7518## CAVEAT EMPTOR:
7519## There is no encapsulation within the following macros, do not change
7520## the running order or otherwise move them around unless you know exactly
7521## what you are doing...
7522if test -n "$compiler"; then
7523
7524lt_prog_compiler_no_builtin_flag=
7525
7526if test "$GCC" = yes; then
7527 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7528
Scott James Remnantfde82c92009-09-22 10:04:15 -07007529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007530$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007531if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007532 $as_echo_n "(cached) " >&6
7533else
7534 lt_cv_prog_compiler_rtti_exceptions=no
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7537 lt_compiler_flag="-fno-rtti -fno-exceptions"
7538 # Insert the option either (1) after the last *FLAGS variable, or
7539 # (2) before a word containing "conftest.", or (3) at the end.
7540 # Note that $ac_compile itself does not contain backslashes and begins
7541 # with a dollar sign (not a hyphen), so the echo should work correctly.
7542 # The option is referenced via a variable to avoid confusing sed.
7543 lt_compile=`echo "$ac_compile" | $SED \
7544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07007547 (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007548 (eval "$lt_compile" 2>conftest.err)
7549 ac_status=$?
7550 cat conftest.err >&5
Scott James Remnantfde82c92009-09-22 10:04:15 -07007551 echo "$as_me:7551: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007552 if (exit $ac_status) && test -s "$ac_outfile"; then
7553 # The compiler can only warn and ignore the option if not recognized
7554 # So say no if there are warnings other than the usual output.
7555 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558 lt_cv_prog_compiler_rtti_exceptions=yes
7559 fi
7560 fi
7561 $RM conftest*
7562
7563fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007565$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7566
7567if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7569else
7570 :
7571fi
7572
7573fi
7574
7575
7576
7577
7578
7579
7580 lt_prog_compiler_wl=
7581lt_prog_compiler_pic=
7582lt_prog_compiler_static=
7583
Scott James Remnantfde82c92009-09-22 10:04:15 -07007584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007585$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7586
7587 if test "$GCC" = yes; then
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_static='-static'
7590
7591 case $host_os in
7592 aix*)
7593 # All AIX code is PIC.
7594 if test "$host_cpu" = ia64; then
7595 # AIX 5 now supports IA64 processor
7596 lt_prog_compiler_static='-Bstatic'
7597 fi
7598 ;;
7599
7600 amigaos*)
7601 case $host_cpu in
7602 powerpc)
7603 # see comment about AmigaOS4 .so support
7604 lt_prog_compiler_pic='-fPIC'
7605 ;;
7606 m68k)
7607 # FIXME: we need at least 68020 code to build shared libraries, but
7608 # adding the `-m68020' flag to GCC prevents building anything better,
7609 # like `-m68040'.
7610 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7611 ;;
7612 esac
7613 ;;
7614
7615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7616 # PIC is the default for these OSes.
7617 ;;
7618
7619 mingw* | cygwin* | pw32* | os2* | cegcc*)
7620 # This hack is so that the source file can tell whether it is being
7621 # built for inclusion in a dll (and should export symbols for example).
7622 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7623 # (--disable-auto-import) libraries
7624 lt_prog_compiler_pic='-DDLL_EXPORT'
7625 ;;
7626
7627 darwin* | rhapsody*)
7628 # PIC is the default on this platform
7629 # Common symbols not allowed in MH_DYLIB files
7630 lt_prog_compiler_pic='-fno-common'
7631 ;;
7632
7633 hpux*)
7634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7636 # sets the default TLS model and affects inlining.
7637 case $host_cpu in
7638 hppa*64*)
7639 # +Z the default
7640 ;;
7641 *)
7642 lt_prog_compiler_pic='-fPIC'
7643 ;;
7644 esac
7645 ;;
7646
7647 interix[3-9]*)
7648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7649 # Instead, we relocate shared libraries at runtime.
7650 ;;
7651
7652 msdosdjgpp*)
7653 # Just because we use GCC doesn't mean we suddenly get shared libraries
7654 # on systems that don't support them.
7655 lt_prog_compiler_can_build_shared=no
7656 enable_shared=no
7657 ;;
7658
7659 *nto* | *qnx*)
7660 # QNX uses GNU C++, but need to define -shared option too, otherwise
7661 # it will coredump.
7662 lt_prog_compiler_pic='-fPIC -shared'
7663 ;;
7664
7665 sysv4*MP*)
7666 if test -d /usr/nec; then
7667 lt_prog_compiler_pic=-Kconform_pic
7668 fi
7669 ;;
7670
7671 *)
7672 lt_prog_compiler_pic='-fPIC'
7673 ;;
7674 esac
7675 else
7676 # PORTME Check for flag to pass linker flags through the system compiler.
7677 case $host_os in
7678 aix*)
7679 lt_prog_compiler_wl='-Wl,'
7680 if test "$host_cpu" = ia64; then
7681 # AIX 5 now supports IA64 processor
7682 lt_prog_compiler_static='-Bstatic'
7683 else
7684 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7685 fi
7686 ;;
7687
7688 mingw* | cygwin* | pw32* | os2* | cegcc*)
7689 # This hack is so that the source file can tell whether it is being
7690 # built for inclusion in a dll (and should export symbols for example).
7691 lt_prog_compiler_pic='-DDLL_EXPORT'
7692 ;;
7693
7694 hpux9* | hpux10* | hpux11*)
7695 lt_prog_compiler_wl='-Wl,'
7696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7697 # not for PA HP-UX.
7698 case $host_cpu in
7699 hppa*64*|ia64*)
7700 # +Z the default
7701 ;;
7702 *)
7703 lt_prog_compiler_pic='+Z'
7704 ;;
7705 esac
7706 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7707 lt_prog_compiler_static='${wl}-a ${wl}archive'
7708 ;;
7709
7710 irix5* | irix6* | nonstopux*)
7711 lt_prog_compiler_wl='-Wl,'
7712 # PIC (with -KPIC) is the default.
7713 lt_prog_compiler_static='-non_shared'
7714 ;;
7715
7716 linux* | k*bsd*-gnu)
7717 case $cc_basename in
7718 # old Intel for x86_64 which still supported -KPIC.
7719 ecc*)
7720 lt_prog_compiler_wl='-Wl,'
7721 lt_prog_compiler_pic='-KPIC'
7722 lt_prog_compiler_static='-static'
7723 ;;
7724 # icc used to be incompatible with GCC.
7725 # ICC 10 doesn't accept -KPIC any more.
7726 icc* | ifort*)
7727 lt_prog_compiler_wl='-Wl,'
7728 lt_prog_compiler_pic='-fPIC'
7729 lt_prog_compiler_static='-static'
7730 ;;
7731 # Lahey Fortran 8.1.
7732 lf95*)
7733 lt_prog_compiler_wl='-Wl,'
7734 lt_prog_compiler_pic='--shared'
7735 lt_prog_compiler_static='--static'
7736 ;;
7737 pgcc* | pgf77* | pgf90* | pgf95*)
7738 # Portland Group compilers (*not* the Pentium gcc compiler,
7739 # which looks to be a dead project)
7740 lt_prog_compiler_wl='-Wl,'
7741 lt_prog_compiler_pic='-fpic'
7742 lt_prog_compiler_static='-Bstatic'
7743 ;;
7744 ccc*)
7745 lt_prog_compiler_wl='-Wl,'
7746 # All Alpha code is PIC.
7747 lt_prog_compiler_static='-non_shared'
7748 ;;
7749 xl*)
7750 # IBM XL C 8.0/Fortran 10.1 on PPC
7751 lt_prog_compiler_wl='-Wl,'
7752 lt_prog_compiler_pic='-qpic'
7753 lt_prog_compiler_static='-qstaticlink'
7754 ;;
7755 *)
7756 case `$CC -V 2>&1 | sed 5q` in
7757 *Sun\ C*)
7758 # Sun C 5.9
7759 lt_prog_compiler_pic='-KPIC'
7760 lt_prog_compiler_static='-Bstatic'
7761 lt_prog_compiler_wl='-Wl,'
7762 ;;
7763 *Sun\ F*)
7764 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7765 lt_prog_compiler_pic='-KPIC'
7766 lt_prog_compiler_static='-Bstatic'
7767 lt_prog_compiler_wl=''
7768 ;;
7769 esac
7770 ;;
7771 esac
7772 ;;
7773
7774 newsos6)
7775 lt_prog_compiler_pic='-KPIC'
7776 lt_prog_compiler_static='-Bstatic'
7777 ;;
7778
7779 *nto* | *qnx*)
7780 # QNX uses GNU C++, but need to define -shared option too, otherwise
7781 # it will coredump.
7782 lt_prog_compiler_pic='-fPIC -shared'
7783 ;;
7784
7785 osf3* | osf4* | osf5*)
7786 lt_prog_compiler_wl='-Wl,'
7787 # All OSF/1 code is PIC.
7788 lt_prog_compiler_static='-non_shared'
7789 ;;
7790
7791 rdos*)
7792 lt_prog_compiler_static='-non_shared'
7793 ;;
7794
7795 solaris*)
7796 lt_prog_compiler_pic='-KPIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 case $cc_basename in
7799 f77* | f90* | f95*)
7800 lt_prog_compiler_wl='-Qoption ld ';;
7801 *)
7802 lt_prog_compiler_wl='-Wl,';;
7803 esac
7804 ;;
7805
7806 sunos4*)
7807 lt_prog_compiler_wl='-Qoption ld '
7808 lt_prog_compiler_pic='-PIC'
7809 lt_prog_compiler_static='-Bstatic'
7810 ;;
7811
7812 sysv4 | sysv4.2uw2* | sysv4.3*)
7813 lt_prog_compiler_wl='-Wl,'
7814 lt_prog_compiler_pic='-KPIC'
7815 lt_prog_compiler_static='-Bstatic'
7816 ;;
7817
7818 sysv4*MP*)
7819 if test -d /usr/nec ;then
7820 lt_prog_compiler_pic='-Kconform_pic'
7821 lt_prog_compiler_static='-Bstatic'
7822 fi
7823 ;;
7824
7825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7826 lt_prog_compiler_wl='-Wl,'
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7829 ;;
7830
7831 unicos*)
7832 lt_prog_compiler_wl='-Wl,'
7833 lt_prog_compiler_can_build_shared=no
7834 ;;
7835
7836 uts4*)
7837 lt_prog_compiler_pic='-pic'
7838 lt_prog_compiler_static='-Bstatic'
7839 ;;
7840
7841 *)
7842 lt_prog_compiler_can_build_shared=no
7843 ;;
7844 esac
7845 fi
7846
7847case $host_os in
7848 # For platforms which do not support PIC, -DPIC is meaningless:
7849 *djgpp*)
7850 lt_prog_compiler_pic=
7851 ;;
7852 *)
7853 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7854 ;;
7855esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07007856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007857$as_echo "$lt_prog_compiler_pic" >&6; }
7858
7859
7860
7861
7862
7863
7864#
7865# Check to make sure the PIC flag actually works.
7866#
7867if test -n "$lt_prog_compiler_pic"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007868 { $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 +01007869$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007870if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007871 $as_echo_n "(cached) " >&6
7872else
7873 lt_cv_prog_compiler_pic_works=no
7874 ac_outfile=conftest.$ac_objext
7875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7876 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7877 # Insert the option either (1) after the last *FLAGS variable, or
7878 # (2) before a word containing "conftest.", or (3) at the end.
7879 # Note that $ac_compile itself does not contain backslashes and begins
7880 # with a dollar sign (not a hyphen), so the echo should work correctly.
7881 # The option is referenced via a variable to avoid confusing sed.
7882 lt_compile=`echo "$ac_compile" | $SED \
7883 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7885 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07007886 (eval echo "\"\$as_me:7886: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007887 (eval "$lt_compile" 2>conftest.err)
7888 ac_status=$?
7889 cat conftest.err >&5
Scott James Remnantfde82c92009-09-22 10:04:15 -07007890 echo "$as_me:7890: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007891 if (exit $ac_status) && test -s "$ac_outfile"; then
7892 # The compiler can only warn and ignore the option if not recognized
7893 # So say no if there are warnings other than the usual output.
7894 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7896 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7897 lt_cv_prog_compiler_pic_works=yes
7898 fi
7899 fi
7900 $RM conftest*
7901
7902fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007904$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7905
7906if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7907 case $lt_prog_compiler_pic in
7908 "" | " "*) ;;
7909 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7910 esac
7911else
7912 lt_prog_compiler_pic=
7913 lt_prog_compiler_can_build_shared=no
7914fi
7915
7916fi
7917
7918
7919
7920
7921
7922
7923#
7924# Check to make sure the static flag actually works.
7925#
7926wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007927{ $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 +01007928$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007929if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007930 $as_echo_n "(cached) " >&6
7931else
7932 lt_cv_prog_compiler_static_works=no
7933 save_LDFLAGS="$LDFLAGS"
7934 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7935 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7936 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7937 # The linker can only warn and ignore the option if not recognized
7938 # So say no if there are warnings
7939 if test -s conftest.err; then
7940 # Append any errors to the config.log.
7941 cat conftest.err 1>&5
7942 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7944 if diff conftest.exp conftest.er2 >/dev/null; then
7945 lt_cv_prog_compiler_static_works=yes
7946 fi
7947 else
7948 lt_cv_prog_compiler_static_works=yes
7949 fi
7950 fi
7951 $RM -r conftest*
7952 LDFLAGS="$save_LDFLAGS"
7953
7954fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007956$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7957
7958if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7959 :
7960else
7961 lt_prog_compiler_static=
7962fi
7963
7964
7965
7966
7967
7968
7969
Scott James Remnantfde82c92009-09-22 10:04:15 -07007970 { $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 +01007971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007972if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007973 $as_echo_n "(cached) " >&6
7974else
7975 lt_cv_prog_compiler_c_o=no
7976 $RM -r conftest 2>/dev/null
7977 mkdir conftest
7978 cd conftest
7979 mkdir out
7980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981
7982 lt_compiler_flag="-o out/conftest2.$ac_objext"
7983 # Insert the option either (1) after the last *FLAGS variable, or
7984 # (2) before a word containing "conftest.", or (3) at the end.
7985 # Note that $ac_compile itself does not contain backslashes and begins
7986 # with a dollar sign (not a hyphen), so the echo should work correctly.
7987 lt_compile=`echo "$ac_compile" | $SED \
7988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07007991 (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007992 (eval "$lt_compile" 2>out/conftest.err)
7993 ac_status=$?
7994 cat out/conftest.err >&5
Scott James Remnantfde82c92009-09-22 10:04:15 -07007995 echo "$as_me:7995: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7997 then
7998 # The compiler can only warn and ignore the option if not recognized
7999 # So say no if there are warnings
8000 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8003 lt_cv_prog_compiler_c_o=yes
8004 fi
8005 fi
8006 chmod u+w . 2>&5
8007 $RM conftest*
8008 # SGI C++ compiler will create directory out/ii_files/ for
8009 # template instantiation
8010 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8011 $RM out/* && rmdir out
8012 cd ..
8013 $RM -r conftest
8014 $RM conftest*
8015
8016fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008018$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8019
8020
8021
8022
8023
8024
Scott James Remnantfde82c92009-09-22 10:04:15 -07008025 { $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 +01008026$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008027if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008028 $as_echo_n "(cached) " >&6
8029else
8030 lt_cv_prog_compiler_c_o=no
8031 $RM -r conftest 2>/dev/null
8032 mkdir conftest
8033 cd conftest
8034 mkdir out
8035 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8036
8037 lt_compiler_flag="-o out/conftest2.$ac_objext"
8038 # Insert the option either (1) after the last *FLAGS variable, or
8039 # (2) before a word containing "conftest.", or (3) at the end.
8040 # Note that $ac_compile itself does not contain backslashes and begins
8041 # with a dollar sign (not a hyphen), so the echo should work correctly.
8042 lt_compile=`echo "$ac_compile" | $SED \
8043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8045 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07008046 (eval echo "\"\$as_me:8046: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008047 (eval "$lt_compile" 2>out/conftest.err)
8048 ac_status=$?
8049 cat out/conftest.err >&5
Scott James Remnantfde82c92009-09-22 10:04:15 -07008050 echo "$as_me:8050: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008051 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8052 then
8053 # The compiler can only warn and ignore the option if not recognized
8054 # So say no if there are warnings
8055 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8056 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8057 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8058 lt_cv_prog_compiler_c_o=yes
8059 fi
8060 fi
8061 chmod u+w . 2>&5
8062 $RM conftest*
8063 # SGI C++ compiler will create directory out/ii_files/ for
8064 # template instantiation
8065 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8066 $RM out/* && rmdir out
8067 cd ..
8068 $RM -r conftest
8069 $RM conftest*
8070
8071fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008073$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8074
8075
8076
8077
8078hard_links="nottested"
8079if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8080 # do not overwrite the value of need_locks provided by the user
Scott James Remnantfde82c92009-09-22 10:04:15 -07008081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008082$as_echo_n "checking if we can lock with hard links... " >&6; }
8083 hard_links=yes
8084 $RM conftest*
8085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8086 touch conftest.a
8087 ln conftest.a conftest.b 2>&5 || hard_links=no
8088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Scott James Remnantfde82c92009-09-22 10:04:15 -07008089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008090$as_echo "$hard_links" >&6; }
8091 if test "$hard_links" = no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07008092 { $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 +01008093$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8094 need_locks=warn
8095 fi
8096else
8097 need_locks=no
8098fi
8099
8100
8101
8102
8103
8104
Scott James Remnantfde82c92009-09-22 10:04:15 -07008105 { $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 +01008106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8107
8108 runpath_var=
8109 allow_undefined_flag=
8110 always_export_symbols=no
8111 archive_cmds=
8112 archive_expsym_cmds=
8113 compiler_needs_object=no
8114 enable_shared_with_static_runtimes=no
8115 export_dynamic_flag_spec=
8116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8117 hardcode_automatic=no
8118 hardcode_direct=no
8119 hardcode_direct_absolute=no
8120 hardcode_libdir_flag_spec=
8121 hardcode_libdir_flag_spec_ld=
8122 hardcode_libdir_separator=
8123 hardcode_minus_L=no
8124 hardcode_shlibpath_var=unsupported
8125 inherit_rpath=no
8126 link_all_deplibs=unknown
8127 module_cmds=
8128 module_expsym_cmds=
8129 old_archive_from_new_cmds=
8130 old_archive_from_expsyms_cmds=
8131 thread_safe_flag_spec=
8132 whole_archive_flag_spec=
8133 # include_expsyms should be a list of space-separated symbols to be *always*
8134 # included in the symbol list
8135 include_expsyms=
8136 # exclude_expsyms can be an extended regexp of symbols to exclude
8137 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8138 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8139 # as well as any symbol that contains `d'.
8140 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8141 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8142 # platforms (ab)use it in PIC code, but their linkers get confused if
8143 # the symbol is explicitly referenced. Since portable code cannot
8144 # rely on this symbol name, it's probably fine to never include it in
8145 # preloaded symbol tables.
8146 # Exclude shared library initialization/finalization symbols.
8147 extract_expsyms_cmds=
8148
8149 case $host_os in
8150 cygwin* | mingw* | pw32* | cegcc*)
8151 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8152 # When not using gcc, we currently assume that we are using
8153 # Microsoft Visual C++.
8154 if test "$GCC" != yes; then
8155 with_gnu_ld=no
8156 fi
8157 ;;
8158 interix*)
8159 # we just hope/assume this is gcc and not c89 (= MSVC++)
8160 with_gnu_ld=yes
8161 ;;
8162 openbsd*)
8163 with_gnu_ld=no
8164 ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008165 linux* | k*bsd*-gnu)
8166 link_all_deplibs=no
8167 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01008168 esac
8169
8170 ld_shlibs=yes
8171 if test "$with_gnu_ld" = yes; then
8172 # If archive_cmds runs LD, not CC, wlarc should be empty
8173 wlarc='${wl}'
8174
8175 # Set some defaults for GNU ld with shared library support. These
8176 # are reset later if shared libraries are not supported. Putting them
8177 # here allows them to be overridden if necessary.
8178 runpath_var=LD_RUN_PATH
8179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8180 export_dynamic_flag_spec='${wl}--export-dynamic'
8181 # ancient GNU ld didn't support --whole-archive et. al.
8182 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8183 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8184 else
8185 whole_archive_flag_spec=
8186 fi
8187 supports_anon_versioning=no
8188 case `$LD -v 2>&1` in
8189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8192 *\ 2.11.*) ;; # other 2.11 versions
8193 *) supports_anon_versioning=yes ;;
8194 esac
8195
8196 # See if GNU ld supports shared libraries.
8197 case $host_os in
8198 aix[3-9]*)
8199 # On AIX/PPC, the GNU linker is very broken
8200 if test "$host_cpu" != ia64; then
8201 ld_shlibs=no
8202 cat <<_LT_EOF 1>&2
8203
8204*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8205*** to be unable to reliably create shared libraries on AIX.
8206*** Therefore, libtool is disabling shared libraries support. If you
8207*** really care for shared libraries, you may want to modify your PATH
8208*** so that a non-GNU linker is found, and then restart.
8209
8210_LT_EOF
8211 fi
8212 ;;
8213
8214 amigaos*)
8215 case $host_cpu in
8216 powerpc)
8217 # see comment about AmigaOS4 .so support
8218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219 archive_expsym_cmds=''
8220 ;;
8221 m68k)
8222 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)'
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 hardcode_minus_L=yes
8225 ;;
8226 esac
8227 ;;
8228
8229 beos*)
8230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8231 allow_undefined_flag=unsupported
8232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8233 # support --undefined. This deserves some investigation. FIXME
8234 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 else
8236 ld_shlibs=no
8237 fi
8238 ;;
8239
8240 cygwin* | mingw* | pw32* | cegcc*)
8241 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8242 # as there is no search path for DLLs.
8243 hardcode_libdir_flag_spec='-L$libdir'
8244 allow_undefined_flag=unsupported
8245 always_export_symbols=no
8246 enable_shared_with_static_runtimes=yes
8247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8248
8249 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8251 # If the export-symbols file already is a .def file (1st line
8252 # is EXPORTS), use it as is; otherwise, prepend...
8253 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8254 cp $export_symbols $output_objdir/$soname.def;
8255 else
8256 echo EXPORTS > $output_objdir/$soname.def;
8257 cat $export_symbols >> $output_objdir/$soname.def;
8258 fi~
8259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8260 else
8261 ld_shlibs=no
8262 fi
8263 ;;
8264
8265 interix[3-9]*)
8266 hardcode_direct=no
8267 hardcode_shlibpath_var=no
8268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8269 export_dynamic_flag_spec='${wl}-E'
8270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8271 # Instead, shared libraries are loaded at an image base (0x10000000 by
8272 # default) and relocated if they conflict, which is a slow very memory
8273 # consuming and fragmenting process. To avoid this, we pick a random,
8274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8277 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'
8278 ;;
8279
8280 gnu* | linux* | tpf* | k*bsd*-gnu)
8281 tmp_diet=no
8282 if test "$host_os" = linux-dietlibc; then
8283 case $cc_basename in
8284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8285 esac
8286 fi
8287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8288 && test "$tmp_diet" = no
8289 then
8290 tmp_addflag=
8291 tmp_sharedflag='-shared'
8292 case $cc_basename,$host_cpu in
8293 pgcc*) # Portland Group C compiler
8294 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'
8295 tmp_addflag=' $pic_flag'
8296 ;;
8297 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8298 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'
8299 tmp_addflag=' $pic_flag -Mnomain' ;;
8300 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8301 tmp_addflag=' -i_dynamic' ;;
8302 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8303 tmp_addflag=' -i_dynamic -nofor_main' ;;
8304 ifc* | ifort*) # Intel Fortran compiler
8305 tmp_addflag=' -nofor_main' ;;
8306 lf95*) # Lahey Fortran 8.1
8307 whole_archive_flag_spec=
8308 tmp_sharedflag='--shared' ;;
8309 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8310 tmp_sharedflag='-qmkshrobj'
8311 tmp_addflag= ;;
8312 esac
8313 case `$CC -V 2>&1 | sed 5q` in
8314 *Sun\ C*) # Sun C 5.9
8315 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'
8316 compiler_needs_object=yes
8317 tmp_sharedflag='-G' ;;
8318 *Sun\ F*) # Sun Fortran 8.3
8319 tmp_sharedflag='-G' ;;
8320 esac
8321 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322
8323 if test "x$supports_anon_versioning" = xyes; then
8324 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8325 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8326 echo "local: *; };" >> $output_objdir/$libname.ver~
8327 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8328 fi
8329
8330 case $cc_basename in
8331 xlf*)
8332 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8333 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8334 hardcode_libdir_flag_spec=
8335 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8336 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8337 if test "x$supports_anon_versioning" = xyes; then
8338 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8339 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8340 echo "local: *; };" >> $output_objdir/$libname.ver~
8341 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8342 fi
8343 ;;
8344 esac
8345 else
8346 ld_shlibs=no
8347 fi
8348 ;;
8349
8350 netbsd* | netbsdelf*-gnu)
8351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8352 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8353 wlarc=
8354 else
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357 fi
8358 ;;
8359
8360 solaris*)
8361 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8362 ld_shlibs=no
8363 cat <<_LT_EOF 1>&2
8364
8365*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8366*** create shared libraries on Solaris systems. Therefore, libtool
8367*** is disabling shared libraries support. We urge you to upgrade GNU
8368*** binutils to release 2.9.1 or newer. Another option is to modify
8369*** your PATH or compiler configuration so that the native linker is
8370*** used, and then restart.
8371
8372_LT_EOF
8373 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8376 else
8377 ld_shlibs=no
8378 fi
8379 ;;
8380
8381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8382 case `$LD -v 2>&1` in
8383 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8384 ld_shlibs=no
8385 cat <<_LT_EOF 1>&2
8386
8387*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8388*** reliably create shared libraries on SCO systems. Therefore, libtool
8389*** is disabling shared libraries support. We urge you to upgrade GNU
8390*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8391*** your PATH or compiler configuration so that the native linker is
8392*** used, and then restart.
8393
8394_LT_EOF
8395 ;;
8396 *)
8397 # For security reasons, it is highly recommended that you always
8398 # use absolute paths for naming shared libraries, and exclude the
8399 # DT_RUNPATH tag from executables and libraries. But doing so
8400 # requires that you compile everything twice, which is a pain.
8401 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8405 else
8406 ld_shlibs=no
8407 fi
8408 ;;
8409 esac
8410 ;;
8411
8412 sunos4*)
8413 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8414 wlarc=
8415 hardcode_direct=yes
8416 hardcode_shlibpath_var=no
8417 ;;
8418
8419 *)
8420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8423 else
8424 ld_shlibs=no
8425 fi
8426 ;;
8427 esac
8428
8429 if test "$ld_shlibs" = no; then
8430 runpath_var=
8431 hardcode_libdir_flag_spec=
8432 export_dynamic_flag_spec=
8433 whole_archive_flag_spec=
8434 fi
8435 else
8436 # PORTME fill in a description of your system's linker (not GNU ld)
8437 case $host_os in
8438 aix3*)
8439 allow_undefined_flag=unsupported
8440 always_export_symbols=yes
8441 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'
8442 # Note: this linker hardcodes the directories in LIBPATH if there
8443 # are no directories specified by -L.
8444 hardcode_minus_L=yes
8445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8446 # Neither direct hardcoding nor static linking is supported with a
8447 # broken collect2.
8448 hardcode_direct=unsupported
8449 fi
8450 ;;
8451
8452 aix[4-9]*)
8453 if test "$host_cpu" = ia64; then
8454 # On IA64, the linker does run time linking by default, so we don't
8455 # have to do anything special.
8456 aix_use_runtimelinking=no
8457 exp_sym_flag='-Bexport'
8458 no_entry_flag=""
8459 else
8460 # If we're using GNU nm, then we don't want the "-C" option.
8461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8463 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'
8464 else
8465 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'
8466 fi
8467 aix_use_runtimelinking=no
8468
8469 # Test if we are trying to use run time linking or normal
8470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8471 # need to do runtime linking.
8472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8473 for ld_flag in $LDFLAGS; do
8474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8475 aix_use_runtimelinking=yes
8476 break
8477 fi
8478 done
8479 ;;
8480 esac
8481
8482 exp_sym_flag='-bexport'
8483 no_entry_flag='-bnoentry'
8484 fi
8485
8486 # When large executables or shared objects are built, AIX ld can
8487 # have problems creating the table of contents. If linking a library
8488 # or program results in "error TOC overflow" add -mminimal-toc to
8489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8491
8492 archive_cmds=''
8493 hardcode_direct=yes
8494 hardcode_direct_absolute=yes
8495 hardcode_libdir_separator=':'
8496 link_all_deplibs=yes
8497 file_list_spec='${wl}-f,'
8498
8499 if test "$GCC" = yes; then
8500 case $host_os in aix4.[012]|aix4.[012].*)
8501 # We only want to do this on AIX 4.2 and lower, the check
8502 # below for broken collect2 doesn't work under 4.3+
8503 collect2name=`${CC} -print-prog-name=collect2`
8504 if test -f "$collect2name" &&
8505 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8506 then
8507 # We have reworked collect2
8508 :
8509 else
8510 # We have old collect2
8511 hardcode_direct=unsupported
8512 # It fails to find uninstalled libraries when the uninstalled
8513 # path is not listed in the libpath. Setting hardcode_minus_L
8514 # to unsupported forces relinking
8515 hardcode_minus_L=yes
8516 hardcode_libdir_flag_spec='-L$libdir'
8517 hardcode_libdir_separator=
8518 fi
8519 ;;
8520 esac
8521 shared_flag='-shared'
8522 if test "$aix_use_runtimelinking" = yes; then
8523 shared_flag="$shared_flag "'${wl}-G'
8524 fi
8525 link_all_deplibs=no
8526 else
8527 # not using gcc
8528 if test "$host_cpu" = ia64; then
8529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8530 # chokes on -Wl,-G. The following line is correct:
8531 shared_flag='-G'
8532 else
8533 if test "$aix_use_runtimelinking" = yes; then
8534 shared_flag='${wl}-G'
8535 else
8536 shared_flag='${wl}-bM:SRE'
8537 fi
8538 fi
8539 fi
8540
8541 export_dynamic_flag_spec='${wl}-bexpall'
8542 # It seems that -bexpall does not export symbols beginning with
8543 # underscore (_), so it is better to generate a list of symbols to export.
8544 always_export_symbols=yes
8545 if test "$aix_use_runtimelinking" = yes; then
8546 # Warning - without using the other runtime loading flags (-brtl),
8547 # -berok will link without error, but may produce a broken library.
8548 allow_undefined_flag='-berok'
8549 # Determine the default libpath from the value encoded in an
8550 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008552/* end confdefs.h. */
8553
8554int
8555main ()
8556{
8557
8558 ;
8559 return 0;
8560}
8561_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008562if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008563
8564lt_aix_libpath_sed='
8565 /Import File Strings/,/^$/ {
8566 /^0/ {
8567 s/^0 *\(.*\)$/\1/
8568 p
8569 }
8570 }'
8571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8572# Check for a 64-bit object if we didn't find anything.
8573if test -z "$aix_libpath"; then
8574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8575fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008576fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008577rm -f core conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8580
8581 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8582 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"
8583 else
8584 if test "$host_cpu" = ia64; then
8585 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8586 allow_undefined_flag="-z nodefs"
8587 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"
8588 else
8589 # Determine the default libpath from the value encoded in an
8590 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008592/* end confdefs.h. */
8593
8594int
8595main ()
8596{
8597
8598 ;
8599 return 0;
8600}
8601_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008602if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008603
8604lt_aix_libpath_sed='
8605 /Import File Strings/,/^$/ {
8606 /^0/ {
8607 s/^0 *\(.*\)$/\1/
8608 p
8609 }
8610 }'
8611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8612# Check for a 64-bit object if we didn't find anything.
8613if test -z "$aix_libpath"; then
8614 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008616fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008617rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8620
8621 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8622 # Warning - without using the other run time loading flags,
8623 # -berok will link without error, but may produce a broken library.
8624 no_undefined_flag=' ${wl}-bernotok'
8625 allow_undefined_flag=' ${wl}-berok'
8626 # Exported symbols can be pulled into shared objects from archives
8627 whole_archive_flag_spec='$convenience'
8628 archive_cmds_need_lc=yes
8629 # This is similar to how AIX traditionally builds its shared libraries.
8630 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'
8631 fi
8632 fi
8633 ;;
8634
8635 amigaos*)
8636 case $host_cpu in
8637 powerpc)
8638 # see comment about AmigaOS4 .so support
8639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640 archive_expsym_cmds=''
8641 ;;
8642 m68k)
8643 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)'
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_minus_L=yes
8646 ;;
8647 esac
8648 ;;
8649
8650 bsdi[45]*)
8651 export_dynamic_flag_spec=-rdynamic
8652 ;;
8653
8654 cygwin* | mingw* | pw32* | cegcc*)
8655 # When not using gcc, we currently assume that we are using
8656 # Microsoft Visual C++.
8657 # hardcode_libdir_flag_spec is actually meaningless, as there is
8658 # no search path for DLLs.
8659 hardcode_libdir_flag_spec=' '
8660 allow_undefined_flag=unsupported
8661 # Tell ltmain to make .lib files, not .a files.
8662 libext=lib
8663 # Tell ltmain to make .dll files, not .so files.
8664 shrext_cmds=".dll"
8665 # FIXME: Setting linknames here is a bad hack.
8666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8667 # The linker will automatically build a .lib file if we build a DLL.
8668 old_archive_from_new_cmds='true'
8669 # FIXME: Should let the user specify the lib program.
8670 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8671 fix_srcfile_path='`cygpath -w "$srcfile"`'
8672 enable_shared_with_static_runtimes=yes
8673 ;;
8674
8675 darwin* | rhapsody*)
8676
8677
8678 archive_cmds_need_lc=no
8679 hardcode_direct=no
8680 hardcode_automatic=yes
8681 hardcode_shlibpath_var=unsupported
8682 whole_archive_flag_spec=''
8683 link_all_deplibs=yes
8684 allow_undefined_flag="$_lt_dar_allow_undefined"
8685 case $cc_basename in
8686 ifort*) _lt_dar_can_shared=yes ;;
8687 *) _lt_dar_can_shared=$GCC ;;
8688 esac
8689 if test "$_lt_dar_can_shared" = "yes"; then
8690 output_verbose_link_cmd=echo
8691 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8692 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8693 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}"
8694 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}"
8695
8696 else
8697 ld_shlibs=no
8698 fi
8699
8700 ;;
8701
8702 dgux*)
8703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_libdir_flag_spec='-L$libdir'
8705 hardcode_shlibpath_var=no
8706 ;;
8707
8708 freebsd1*)
8709 ld_shlibs=no
8710 ;;
8711
8712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8713 # support. Future versions do this automatically, but an explicit c++rt0.o
8714 # does not break anything, and helps significantly (at the cost of a little
8715 # extra space).
8716 freebsd2.2*)
8717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8718 hardcode_libdir_flag_spec='-R$libdir'
8719 hardcode_direct=yes
8720 hardcode_shlibpath_var=no
8721 ;;
8722
8723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8724 freebsd2*)
8725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8726 hardcode_direct=yes
8727 hardcode_minus_L=yes
8728 hardcode_shlibpath_var=no
8729 ;;
8730
8731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8732 freebsd* | dragonfly*)
8733 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8734 hardcode_libdir_flag_spec='-R$libdir'
8735 hardcode_direct=yes
8736 hardcode_shlibpath_var=no
8737 ;;
8738
8739 hpux9*)
8740 if test "$GCC" = yes; then
8741 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'
8742 else
8743 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'
8744 fi
8745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8746 hardcode_libdir_separator=:
8747 hardcode_direct=yes
8748
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8752 export_dynamic_flag_spec='${wl}-E'
8753 ;;
8754
8755 hpux10*)
8756 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8758 else
8759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8760 fi
8761 if test "$with_gnu_ld" = no; then
8762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8763 hardcode_libdir_flag_spec_ld='+b $libdir'
8764 hardcode_libdir_separator=:
8765 hardcode_direct=yes
8766 hardcode_direct_absolute=yes
8767 export_dynamic_flag_spec='${wl}-E'
8768 # hardcode_minus_L: Not really in the search PATH,
8769 # but as the default location of the library.
8770 hardcode_minus_L=yes
8771 fi
8772 ;;
8773
8774 hpux11*)
8775 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8776 case $host_cpu in
8777 hppa*64*)
8778 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8779 ;;
8780 ia64*)
8781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8782 ;;
8783 *)
8784 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8785 ;;
8786 esac
8787 else
8788 case $host_cpu in
8789 hppa*64*)
8790 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791 ;;
8792 ia64*)
8793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8794 ;;
8795 *)
8796 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8797 ;;
8798 esac
8799 fi
8800 if test "$with_gnu_ld" = no; then
8801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802 hardcode_libdir_separator=:
8803
8804 case $host_cpu in
8805 hppa*64*|ia64*)
8806 hardcode_direct=no
8807 hardcode_shlibpath_var=no
8808 ;;
8809 *)
8810 hardcode_direct=yes
8811 hardcode_direct_absolute=yes
8812 export_dynamic_flag_spec='${wl}-E'
8813
8814 # hardcode_minus_L: Not really in the search PATH,
8815 # but as the default location of the library.
8816 hardcode_minus_L=yes
8817 ;;
8818 esac
8819 fi
8820 ;;
8821
8822 irix5* | irix6* | nonstopux*)
8823 if test "$GCC" = yes; then
8824 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'
8825 # Try to use the -exported_symbol ld option, if it does not
8826 # work, assume that -exports_file does not work either and
8827 # implicitly export all symbols.
8828 save_LDFLAGS="$LDFLAGS"
8829 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Scott James Remnantfde82c92009-09-22 10:04:15 -07008830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831/* end confdefs.h. */
Scott James Remnant65f683d2009-07-14 13:05:17 +01008832int foo(void) {}
8833_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008834if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008835 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'
8836
Scott James Remnant65f683d2009-07-14 13:05:17 +01008837fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008838rm -f core conftest.err conftest.$ac_objext \
8839 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008840 LDFLAGS="$save_LDFLAGS"
8841 else
8842 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'
8843 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'
8844 fi
8845 archive_cmds_need_lc='no'
8846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847 hardcode_libdir_separator=:
8848 inherit_rpath=yes
8849 link_all_deplibs=yes
8850 ;;
8851
8852 netbsd* | netbsdelf*-gnu)
8853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8855 else
8856 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8857 fi
8858 hardcode_libdir_flag_spec='-R$libdir'
8859 hardcode_direct=yes
8860 hardcode_shlibpath_var=no
8861 ;;
8862
8863 newsos6)
8864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 hardcode_direct=yes
8866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867 hardcode_libdir_separator=:
8868 hardcode_shlibpath_var=no
8869 ;;
8870
8871 *nto* | *qnx*)
8872 ;;
8873
8874 openbsd*)
8875 if test -f /usr/libexec/ld.so; then
8876 hardcode_direct=yes
8877 hardcode_shlibpath_var=no
8878 hardcode_direct_absolute=yes
8879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8881 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8883 export_dynamic_flag_spec='${wl}-E'
8884 else
8885 case $host_os in
8886 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec='-R$libdir'
8889 ;;
8890 *)
8891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8893 ;;
8894 esac
8895 fi
8896 else
8897 ld_shlibs=no
8898 fi
8899 ;;
8900
8901 os2*)
8902 hardcode_libdir_flag_spec='-L$libdir'
8903 hardcode_minus_L=yes
8904 allow_undefined_flag=unsupported
8905 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'
8906 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8907 ;;
8908
8909 osf3*)
8910 if test "$GCC" = yes; then
8911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8912 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'
8913 else
8914 allow_undefined_flag=' -expect_unresolved \*'
8915 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'
8916 fi
8917 archive_cmds_need_lc='no'
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator=:
8920 ;;
8921
8922 osf4* | osf5*) # as osf3* with the addition of -msym flag
8923 if test "$GCC" = yes; then
8924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8925 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'
8926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8927 else
8928 allow_undefined_flag=' -expect_unresolved \*'
8929 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'
8930 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~
8931 $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'
8932
8933 # Both c and cxx compiler support -rpath directly
8934 hardcode_libdir_flag_spec='-rpath $libdir'
8935 fi
8936 archive_cmds_need_lc='no'
8937 hardcode_libdir_separator=:
8938 ;;
8939
8940 solaris*)
8941 no_undefined_flag=' -z defs'
8942 if test "$GCC" = yes; then
8943 wlarc='${wl}'
8944 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8946 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8947 else
8948 case `$CC -V 2>&1` in
8949 *"Compilers 5.0"*)
8950 wlarc=''
8951 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8953 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8954 ;;
8955 *)
8956 wlarc='${wl}'
8957 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8959 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8960 ;;
8961 esac
8962 fi
8963 hardcode_libdir_flag_spec='-R$libdir'
8964 hardcode_shlibpath_var=no
8965 case $host_os in
8966 solaris2.[0-5] | solaris2.[0-5].*) ;;
8967 *)
8968 # The compiler driver will combine and reorder linker options,
8969 # but understands `-z linker_flag'. GCC discards it without `$wl',
8970 # but is careful enough not to reorder.
8971 # Supported since Solaris 2.6 (maybe 2.5.1?)
8972 if test "$GCC" = yes; then
8973 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8974 else
8975 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8976 fi
8977 ;;
8978 esac
8979 link_all_deplibs=yes
8980 ;;
8981
8982 sunos4*)
8983 if test "x$host_vendor" = xsequent; then
8984 # Use $CC to link under sequent, because it throws in some extra .o
8985 # files that make .init and .fini sections work.
8986 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8987 else
8988 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8989 fi
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_direct=yes
8992 hardcode_minus_L=yes
8993 hardcode_shlibpath_var=no
8994 ;;
8995
8996 sysv4)
8997 case $host_vendor in
8998 sni)
8999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_direct=yes # is this really true???
9001 ;;
9002 siemens)
9003 ## LD is ld it makes a PLAMLIB
9004 ## CC just makes a GrossModule.
9005 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9006 reload_cmds='$CC -r -o $output$reload_objs'
9007 hardcode_direct=no
9008 ;;
9009 motorola)
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9012 ;;
9013 esac
9014 runpath_var='LD_RUN_PATH'
9015 hardcode_shlibpath_var=no
9016 ;;
9017
9018 sysv4.3*)
9019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9020 hardcode_shlibpath_var=no
9021 export_dynamic_flag_spec='-Bexport'
9022 ;;
9023
9024 sysv4*MP*)
9025 if test -d /usr/nec; then
9026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027 hardcode_shlibpath_var=no
9028 runpath_var=LD_RUN_PATH
9029 hardcode_runpath_var=yes
9030 ld_shlibs=yes
9031 fi
9032 ;;
9033
9034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9035 no_undefined_flag='${wl}-z,text'
9036 archive_cmds_need_lc=no
9037 hardcode_shlibpath_var=no
9038 runpath_var='LD_RUN_PATH'
9039
9040 if test "$GCC" = yes; then
9041 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9043 else
9044 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9046 fi
9047 ;;
9048
9049 sysv5* | sco3.2v5* | sco5v6*)
9050 # Note: We can NOT use -z defs as we might desire, because we do not
9051 # link with -lc, and that would cause any symbols used from libc to
9052 # always be unresolved, which means just about no library would
9053 # ever link correctly. If we're not using GNU ld we use -z text
9054 # though, which does catch some bad symbols but isn't as heavy-handed
9055 # as -z defs.
9056 no_undefined_flag='${wl}-z,text'
9057 allow_undefined_flag='${wl}-z,nodefs'
9058 archive_cmds_need_lc=no
9059 hardcode_shlibpath_var=no
9060 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9061 hardcode_libdir_separator=':'
9062 link_all_deplibs=yes
9063 export_dynamic_flag_spec='${wl}-Bexport'
9064 runpath_var='LD_RUN_PATH'
9065
9066 if test "$GCC" = yes; then
9067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9069 else
9070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9072 fi
9073 ;;
9074
9075 uts4*)
9076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077 hardcode_libdir_flag_spec='-L$libdir'
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 *)
9082 ld_shlibs=no
9083 ;;
9084 esac
9085
9086 if test x$host_vendor = xsni; then
9087 case $host in
9088 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9089 export_dynamic_flag_spec='${wl}-Blargedynsym'
9090 ;;
9091 esac
9092 fi
9093 fi
9094
Scott James Remnantfde82c92009-09-22 10:04:15 -07009095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009096$as_echo "$ld_shlibs" >&6; }
9097test "$ld_shlibs" = no && can_build_shared=no
9098
9099with_gnu_ld=$with_gnu_ld
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115#
9116# Do we need to explicitly link libc?
9117#
9118case "x$archive_cmds_need_lc" in
9119x|xyes)
9120 # Assume -lc should be added
9121 archive_cmds_need_lc=yes
9122
9123 if test "$enable_shared" = yes && test "$GCC" = yes; then
9124 case $archive_cmds in
9125 *'~'*)
9126 # FIXME: we may have to deal with multi-command sequences.
9127 ;;
9128 '$CC '*)
9129 # Test whether the compiler implicitly links with -lc since on some
9130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9131 # to ld, don't add -lc before -lgcc.
Scott James Remnantfde82c92009-09-22 10:04:15 -07009132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009133$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9134 $RM conftest*
9135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136
Scott James Remnantfde82c92009-09-22 10:04:15 -07009137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009138 (eval $ac_compile) 2>&5
9139 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9141 test $ac_status = 0; } 2>conftest.err; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009142 soname=conftest
9143 lib=conftest
9144 libobjs=conftest.$ac_objext
9145 deplibs=
9146 wl=$lt_prog_compiler_wl
9147 pic_flag=$lt_prog_compiler_pic
9148 compiler_flags=-v
9149 linker_flags=-v
9150 verstring=
9151 output_objdir=.
9152 libname=conftest
9153 lt_save_allow_undefined_flag=$allow_undefined_flag
9154 allow_undefined_flag=
Scott James Remnantfde82c92009-09-22 10:04:15 -07009155 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 +01009156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9157 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9159 test $ac_status = 0; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01009160 then
9161 archive_cmds_need_lc=no
9162 else
9163 archive_cmds_need_lc=yes
9164 fi
9165 allow_undefined_flag=$lt_save_allow_undefined_flag
9166 else
9167 cat conftest.err 1>&5
9168 fi
9169 $RM conftest*
Scott James Remnantfde82c92009-09-22 10:04:15 -07009170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009171$as_echo "$archive_cmds_need_lc" >&6; }
9172 ;;
9173 esac
9174 fi
9175 ;;
9176esac
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
9328
9329
9330
9331
9332
9333
Scott James Remnantfde82c92009-09-22 10:04:15 -07009334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009335$as_echo_n "checking dynamic linker characteristics... " >&6; }
9336
9337if test "$GCC" = yes; then
9338 case $host_os in
9339 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9340 *) lt_awk_arg="/^libraries:/" ;;
9341 esac
9342 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9343 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9344 # if the path contains ";" then we assume it to be the separator
9345 # otherwise default to the standard path separator (i.e. ":") - it is
9346 # assumed that no part of a normal pathname contains ";" but that should
9347 # okay in the real world where ";" in dirpaths is itself problematic.
9348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9349 else
9350 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9351 fi
9352 # Ok, now we have the path, separated by spaces, we can step through it
9353 # and add multilib dir if necessary.
9354 lt_tmp_lt_search_path_spec=
9355 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9356 for lt_sys_path in $lt_search_path_spec; do
9357 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9359 else
9360 test -d "$lt_sys_path" && \
9361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9362 fi
9363 done
9364 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9365BEGIN {RS=" "; FS="/|\n";} {
9366 lt_foo="";
9367 lt_count=0;
9368 for (lt_i = NF; lt_i > 0; lt_i--) {
9369 if ($lt_i != "" && $lt_i != ".") {
9370 if ($lt_i == "..") {
9371 lt_count++;
9372 } else {
9373 if (lt_count == 0) {
9374 lt_foo="/" $lt_i lt_foo;
9375 } else {
9376 lt_count--;
9377 }
9378 }
9379 }
9380 }
9381 if (lt_foo != "") { lt_freq[lt_foo]++; }
9382 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9383}'`
9384 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9385else
9386 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9387fi
9388library_names_spec=
9389libname_spec='lib$name'
9390soname_spec=
9391shrext_cmds=".so"
9392postinstall_cmds=
9393postuninstall_cmds=
9394finish_cmds=
9395finish_eval=
9396shlibpath_var=
9397shlibpath_overrides_runpath=unknown
9398version_type=none
9399dynamic_linker="$host_os ld.so"
9400sys_lib_dlsearch_path_spec="/lib /usr/lib"
9401need_lib_prefix=unknown
9402hardcode_into_libs=no
9403
9404# when you set need_version to no, make sure it does not cause -set_version
9405# flags to be left without arguments
9406need_version=unknown
9407
9408case $host_os in
9409aix3*)
9410 version_type=linux
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9412 shlibpath_var=LIBPATH
9413
9414 # AIX 3 has no versioning support, so we append a major version to the name.
9415 soname_spec='${libname}${release}${shared_ext}$major'
9416 ;;
9417
9418aix[4-9]*)
9419 version_type=linux
9420 need_lib_prefix=no
9421 need_version=no
9422 hardcode_into_libs=yes
9423 if test "$host_cpu" = ia64; then
9424 # AIX 5 supports IA64
9425 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 else
9428 # With GCC up to 2.95.x, collect2 would create an import file
9429 # for dependence libraries. The import file would start with
9430 # the line `#! .'. This would cause the generated library to
9431 # depend on `.', always an invalid library. This was fixed in
9432 # development snapshots of GCC prior to 3.0.
9433 case $host_os in
9434 aix4 | aix4.[01] | aix4.[01].*)
9435 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9436 echo ' yes '
9437 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9438 :
9439 else
9440 can_build_shared=no
9441 fi
9442 ;;
9443 esac
9444 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9445 # soname into executable. Probably we can add versioning support to
9446 # collect2, so additional links can be useful in future.
9447 if test "$aix_use_runtimelinking" = yes; then
9448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9449 # instead of lib<name>.a to let people know that these are not
9450 # typical AIX shared libraries.
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 else
9453 # We preserve .a as extension for shared libraries through AIX4.2
9454 # and later when we are not doing run time linking.
9455 library_names_spec='${libname}${release}.a $libname.a'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 fi
9458 shlibpath_var=LIBPATH
9459 fi
9460 ;;
9461
9462amigaos*)
9463 case $host_cpu in
9464 powerpc)
9465 # Since July 2007 AmigaOS4 officially supports .so libraries.
9466 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 ;;
9469 m68k)
9470 library_names_spec='$libname.ixlibrary $libname.a'
9471 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9472 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'
9473 ;;
9474 esac
9475 ;;
9476
9477beos*)
9478 library_names_spec='${libname}${shared_ext}'
9479 dynamic_linker="$host_os ld.so"
9480 shlibpath_var=LIBRARY_PATH
9481 ;;
9482
9483bsdi[45]*)
9484 version_type=linux
9485 need_version=no
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9492 # the default ld.so.conf also contains /usr/contrib/lib and
9493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9494 # libtool to hard-code these into programs
9495 ;;
9496
9497cygwin* | mingw* | pw32* | cegcc*)
9498 version_type=windows
9499 shrext_cmds=".dll"
9500 need_version=no
9501 need_lib_prefix=no
9502
9503 case $GCC,$host_os in
9504 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9505 library_names_spec='$libname.dll.a'
9506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9507 postinstall_cmds='base_file=`basename \${file}`~
9508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9509 dldir=$destdir/`dirname \$dlpath`~
9510 test -d \$dldir || mkdir -p \$dldir~
9511 $install_prog $dir/$dlname \$dldir/$dlname~
9512 chmod a+x \$dldir/$dlname~
9513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9515 fi'
9516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9517 dlpath=$dir/\$dldll~
9518 $RM \$dlpath'
9519 shlibpath_overrides_runpath=yes
9520
9521 case $host_os in
9522 cygwin*)
9523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9525 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9526 ;;
9527 mingw* | cegcc*)
9528 # MinGW DLLs use traditional 'lib' prefix
9529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9530 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9531 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9532 # It is most probably a Windows format PATH printed by
9533 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9534 # path with ; separators, and with drive letters. We can handle the
9535 # drive letters (cygwin fileutils understands them), so leave them,
9536 # especially as we might pass files found there to a mingw objdump,
9537 # which wouldn't understand a cygwinified path. Ahh.
9538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9539 else
9540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9541 fi
9542 ;;
9543 pw32*)
9544 # pw32 DLLs use 'pw' prefix rather than 'lib'
9545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9546 ;;
9547 esac
9548 ;;
9549
9550 *)
9551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9552 ;;
9553 esac
9554 dynamic_linker='Win32 ld.exe'
9555 # FIXME: first we should search . and the directory the executable is in
9556 shlibpath_var=PATH
9557 ;;
9558
9559darwin* | rhapsody*)
9560 dynamic_linker="$host_os dyld"
9561 version_type=darwin
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9565 soname_spec='${libname}${release}${major}$shared_ext'
9566 shlibpath_overrides_runpath=yes
9567 shlibpath_var=DYLD_LIBRARY_PATH
9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9569
9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9572 ;;
9573
9574dgux*)
9575 version_type=linux
9576 need_lib_prefix=no
9577 need_version=no
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 shlibpath_var=LD_LIBRARY_PATH
9581 ;;
9582
9583freebsd1*)
9584 dynamic_linker=no
9585 ;;
9586
9587freebsd* | dragonfly*)
9588 # DragonFly does not have aout. When/if they implement a new
9589 # versioning mechanism, adjust this.
9590 if test -x /usr/bin/objformat; then
9591 objformat=`/usr/bin/objformat`
9592 else
9593 case $host_os in
9594 freebsd[123]*) objformat=aout ;;
9595 *) objformat=elf ;;
9596 esac
9597 fi
9598 version_type=freebsd-$objformat
9599 case $version_type in
9600 freebsd-elf*)
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9602 need_version=no
9603 need_lib_prefix=no
9604 ;;
9605 freebsd-*)
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9607 need_version=yes
9608 ;;
9609 esac
9610 shlibpath_var=LD_LIBRARY_PATH
9611 case $host_os in
9612 freebsd2*)
9613 shlibpath_overrides_runpath=yes
9614 ;;
9615 freebsd3.[01]* | freebsdelf3.[01]*)
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9621 shlibpath_overrides_runpath=no
9622 hardcode_into_libs=yes
9623 ;;
9624 *) # from 4.6 on, and DragonFly
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 ;;
9628 esac
9629 ;;
9630
9631gnu*)
9632 version_type=linux
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 ;;
9640
9641hpux9* | hpux10* | hpux11*)
9642 # Give a soname corresponding to the major version so that dld.sl refuses to
9643 # link against other versions.
9644 version_type=sunos
9645 need_lib_prefix=no
9646 need_version=no
9647 case $host_cpu in
9648 ia64*)
9649 shrext_cmds='.so'
9650 hardcode_into_libs=yes
9651 dynamic_linker="$host_os dld.so"
9652 shlibpath_var=LD_LIBRARY_PATH
9653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9656 if test "X$HPUX_IA64_MODE" = X32; then
9657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9658 else
9659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9660 fi
9661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9662 ;;
9663 hppa*64*)
9664 shrext_cmds='.sl'
9665 hardcode_into_libs=yes
9666 dynamic_linker="$host_os dld.sl"
9667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9673 ;;
9674 *)
9675 shrext_cmds='.sl'
9676 dynamic_linker="$host_os dld.sl"
9677 shlibpath_var=SHLIB_PATH
9678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 ;;
9682 esac
9683 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9684 postinstall_cmds='chmod 555 $lib'
9685 ;;
9686
9687interix[3-9]*)
9688 version_type=linux
9689 need_lib_prefix=no
9690 need_version=no
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9692 soname_spec='${libname}${release}${shared_ext}$major'
9693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 shlibpath_overrides_runpath=no
9696 hardcode_into_libs=yes
9697 ;;
9698
9699irix5* | irix6* | nonstopux*)
9700 case $host_os in
9701 nonstopux*) version_type=nonstopux ;;
9702 *)
9703 if test "$lt_cv_prog_gnu_ld" = yes; then
9704 version_type=linux
9705 else
9706 version_type=irix
9707 fi ;;
9708 esac
9709 need_lib_prefix=no
9710 need_version=no
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9713 case $host_os in
9714 irix5* | nonstopux*)
9715 libsuff= shlibsuff=
9716 ;;
9717 *)
9718 case $LD in # libtool.m4 will add one of these switches to LD
9719 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9720 libsuff= shlibsuff= libmagic=32-bit;;
9721 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9722 libsuff=32 shlibsuff=N32 libmagic=N32;;
9723 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9724 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9725 *) libsuff= shlibsuff= libmagic=never-match;;
9726 esac
9727 ;;
9728 esac
9729 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9730 shlibpath_overrides_runpath=no
9731 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9732 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9733 hardcode_into_libs=yes
9734 ;;
9735
9736# No shared lib support for Linux oldld, aout, or coff.
9737linux*oldld* | linux*aout* | linux*coff*)
9738 dynamic_linker=no
9739 ;;
9740
9741# This must be Linux ELF.
9742linux* | k*bsd*-gnu)
9743 version_type=linux
9744 need_lib_prefix=no
9745 need_version=no
9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9747 soname_spec='${libname}${release}${shared_ext}$major'
9748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9749 shlibpath_var=LD_LIBRARY_PATH
9750 shlibpath_overrides_runpath=no
9751 # Some binutils ld are patched to set DT_RUNPATH
9752 save_LDFLAGS=$LDFLAGS
9753 save_libdir=$libdir
9754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Scott James Remnantfde82c92009-09-22 10:04:15 -07009756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009757/* end confdefs.h. */
9758
9759int
9760main ()
9761{
9762
9763 ;
9764 return 0;
9765}
9766_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07009767if ac_fn_c_try_link "$LINENO"; then :
9768 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01009769 shlibpath_overrides_runpath=yes
9770fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01009771fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07009772rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009774 LDFLAGS=$save_LDFLAGS
9775 libdir=$save_libdir
9776
9777 # This implies no fast_install, which is unacceptable.
9778 # Some rework will be needed to allow for fast_install
9779 # before this can be enabled.
9780 hardcode_into_libs=yes
9781
9782 # Append ld.so.conf contents to the search path
9783 if test -f /etc/ld.so.conf; then
9784 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' ' '`
9785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9786 fi
9787
9788 # We used to test for /lib/ld.so.1 and disable shared libraries on
9789 # powerpc, because MkLinux only supported shared libraries with the
9790 # GNU dynamic linker. Since this was broken with cross compilers,
9791 # most powerpc-linux boxes support dynamic linking these days and
9792 # people can always --disable-shared, the test was removed, and we
9793 # assume the GNU/Linux dynamic linker is in use.
9794 dynamic_linker='GNU/Linux ld.so'
9795 ;;
9796
9797netbsdelf*-gnu)
9798 version_type=linux
9799 need_lib_prefix=no
9800 need_version=no
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=no
9805 hardcode_into_libs=yes
9806 dynamic_linker='NetBSD ld.elf_so'
9807 ;;
9808
9809netbsd*)
9810 version_type=sunos
9811 need_lib_prefix=no
9812 need_version=no
9813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9816 dynamic_linker='NetBSD (a.out) ld.so'
9817 else
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 dynamic_linker='NetBSD ld.elf_so'
9821 fi
9822 shlibpath_var=LD_LIBRARY_PATH
9823 shlibpath_overrides_runpath=yes
9824 hardcode_into_libs=yes
9825 ;;
9826
9827newsos6)
9828 version_type=linux
9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 shlibpath_overrides_runpath=yes
9832 ;;
9833
9834*nto* | *qnx*)
9835 version_type=qnx
9836 need_lib_prefix=no
9837 need_version=no
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 shlibpath_overrides_runpath=no
9842 hardcode_into_libs=yes
9843 dynamic_linker='ldqnx.so'
9844 ;;
9845
9846openbsd*)
9847 version_type=sunos
9848 sys_lib_dlsearch_path_spec="/usr/lib"
9849 need_lib_prefix=no
9850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9851 case $host_os in
9852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9853 *) need_version=no ;;
9854 esac
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9859 case $host_os in
9860 openbsd2.[89] | openbsd2.[89].*)
9861 shlibpath_overrides_runpath=no
9862 ;;
9863 *)
9864 shlibpath_overrides_runpath=yes
9865 ;;
9866 esac
9867 else
9868 shlibpath_overrides_runpath=yes
9869 fi
9870 ;;
9871
9872os2*)
9873 libname_spec='$name'
9874 shrext_cmds=".dll"
9875 need_lib_prefix=no
9876 library_names_spec='$libname${shared_ext} $libname.a'
9877 dynamic_linker='OS/2 ld.exe'
9878 shlibpath_var=LIBPATH
9879 ;;
9880
9881osf3* | osf4* | osf5*)
9882 version_type=osf
9883 need_lib_prefix=no
9884 need_version=no
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9890 ;;
9891
9892rdos*)
9893 dynamic_linker=no
9894 ;;
9895
9896solaris*)
9897 version_type=linux
9898 need_lib_prefix=no
9899 need_version=no
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901 soname_spec='${libname}${release}${shared_ext}$major'
9902 shlibpath_var=LD_LIBRARY_PATH
9903 shlibpath_overrides_runpath=yes
9904 hardcode_into_libs=yes
9905 # ldd complains unless libraries are executable
9906 postinstall_cmds='chmod +x $lib'
9907 ;;
9908
9909sunos4*)
9910 version_type=sunos
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9913 shlibpath_var=LD_LIBRARY_PATH
9914 shlibpath_overrides_runpath=yes
9915 if test "$with_gnu_ld" = yes; then
9916 need_lib_prefix=no
9917 fi
9918 need_version=yes
9919 ;;
9920
9921sysv4 | sysv4.3*)
9922 version_type=linux
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 case $host_vendor in
9927 sni)
9928 shlibpath_overrides_runpath=no
9929 need_lib_prefix=no
9930 runpath_var=LD_RUN_PATH
9931 ;;
9932 siemens)
9933 need_lib_prefix=no
9934 ;;
9935 motorola)
9936 need_lib_prefix=no
9937 need_version=no
9938 shlibpath_overrides_runpath=no
9939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9940 ;;
9941 esac
9942 ;;
9943
9944sysv4*MP*)
9945 if test -d /usr/nec ;then
9946 version_type=linux
9947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9948 soname_spec='$libname${shared_ext}.$major'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 fi
9951 ;;
9952
9953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9954 version_type=freebsd-elf
9955 need_lib_prefix=no
9956 need_version=no
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 if test "$with_gnu_ld" = yes; then
9963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9964 else
9965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9966 case $host_os in
9967 sco3.2v5*)
9968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9969 ;;
9970 esac
9971 fi
9972 sys_lib_dlsearch_path_spec='/usr/lib'
9973 ;;
9974
9975tpf*)
9976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9977 version_type=linux
9978 need_lib_prefix=no
9979 need_version=no
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 shlibpath_overrides_runpath=no
9983 hardcode_into_libs=yes
9984 ;;
9985
9986uts4*)
9987 version_type=linux
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 ;;
9992
9993*)
9994 dynamic_linker=no
9995 ;;
9996esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07009997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009998$as_echo "$dynamic_linker" >&6; }
9999test "$dynamic_linker" = no && can_build_shared=no
10000
10001variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10002if test "$GCC" = yes; then
10003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10004fi
10005
10006if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10007 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10008fi
10009if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10010 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10011fi
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
10093
10094
10095
10096
10097
10098
Scott James Remnantfde82c92009-09-22 10:04:15 -070010099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010100$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10101hardcode_action=
10102if test -n "$hardcode_libdir_flag_spec" ||
10103 test -n "$runpath_var" ||
10104 test "X$hardcode_automatic" = "Xyes" ; then
10105
10106 # We can hardcode non-existent directories.
10107 if test "$hardcode_direct" != no &&
10108 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10109 # have to relink, otherwise we might link with an installed library
10110 # when we should be linking with a yet-to-be-installed one
10111 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10112 test "$hardcode_minus_L" != no; then
10113 # Linking always hardcodes the temporary library directory.
10114 hardcode_action=relink
10115 else
10116 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10117 hardcode_action=immediate
10118 fi
10119else
10120 # We cannot hardcode anything, or else we can only hardcode existing
10121 # directories.
10122 hardcode_action=unsupported
10123fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010125$as_echo "$hardcode_action" >&6; }
10126
10127if test "$hardcode_action" = relink ||
10128 test "$inherit_rpath" = yes; then
10129 # Fast installation is not supported
10130 enable_fast_install=no
10131elif test "$shlibpath_overrides_runpath" = yes ||
10132 test "$enable_shared" = no; then
10133 # Fast installation is not necessary
10134 enable_fast_install=needless
10135fi
10136
10137
10138
10139
10140
10141
10142 if test "x$enable_dlopen" != xyes; then
10143 enable_dlopen=unknown
10144 enable_dlopen_self=unknown
10145 enable_dlopen_self_static=unknown
10146else
10147 lt_cv_dlopen=no
10148 lt_cv_dlopen_libs=
10149
10150 case $host_os in
10151 beos*)
10152 lt_cv_dlopen="load_add_on"
10153 lt_cv_dlopen_libs=
10154 lt_cv_dlopen_self=yes
10155 ;;
10156
10157 mingw* | pw32* | cegcc*)
10158 lt_cv_dlopen="LoadLibrary"
10159 lt_cv_dlopen_libs=
10160 ;;
10161
10162 cygwin*)
10163 lt_cv_dlopen="dlopen"
10164 lt_cv_dlopen_libs=
10165 ;;
10166
10167 darwin*)
10168 # if libdl is installed we need to link against it
Scott James Remnantfde82c92009-09-22 10:04:15 -070010169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010170$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010171if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010172 $as_echo_n "(cached) " >&6
10173else
10174 ac_check_lib_save_LIBS=$LIBS
10175LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010177/* end confdefs.h. */
10178
10179/* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182#ifdef __cplusplus
10183extern "C"
10184#endif
10185char dlopen ();
10186int
10187main ()
10188{
10189return dlopen ();
10190 ;
10191 return 0;
10192}
10193_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010194if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010195 ac_cv_lib_dl_dlopen=yes
10196else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010197 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010198fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010199rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010201LIBS=$ac_check_lib_save_LIBS
10202fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010204$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010205if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10207else
10208
10209 lt_cv_dlopen="dyld"
10210 lt_cv_dlopen_libs=
10211 lt_cv_dlopen_self=yes
10212
10213fi
10214
10215 ;;
10216
10217 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010218 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10219if test "x$ac_cv_func_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010220 lt_cv_dlopen="shl_load"
10221else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010223$as_echo_n "checking for shl_load in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010224if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010225 $as_echo_n "(cached) " >&6
10226else
10227 ac_check_lib_save_LIBS=$LIBS
10228LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010230/* end confdefs.h. */
10231
10232/* Override any GCC internal prototype to avoid an error.
10233 Use char because int might match the return type of a GCC
10234 builtin and then its argument prototype would still apply. */
10235#ifdef __cplusplus
10236extern "C"
10237#endif
10238char shl_load ();
10239int
10240main ()
10241{
10242return shl_load ();
10243 ;
10244 return 0;
10245}
10246_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010247if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010248 ac_cv_lib_dld_shl_load=yes
10249else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010250 ac_cv_lib_dld_shl_load=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010251fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010252rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010254LIBS=$ac_check_lib_save_LIBS
10255fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010257$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010258if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010259 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10260else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010261 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10262if test "x$ac_cv_func_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010263 lt_cv_dlopen="dlopen"
10264else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010266$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010267if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010268 $as_echo_n "(cached) " >&6
10269else
10270 ac_check_lib_save_LIBS=$LIBS
10271LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010273/* end confdefs.h. */
10274
10275/* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10278#ifdef __cplusplus
10279extern "C"
10280#endif
10281char dlopen ();
10282int
10283main ()
10284{
10285return dlopen ();
10286 ;
10287 return 0;
10288}
10289_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010290if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010291 ac_cv_lib_dl_dlopen=yes
10292else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010293 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010294fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010295rm -f core conftest.err conftest.$ac_objext \
10296 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010297LIBS=$ac_check_lib_save_LIBS
10298fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010300$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010301if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010302 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10303else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010305$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010306if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010307 $as_echo_n "(cached) " >&6
10308else
10309 ac_check_lib_save_LIBS=$LIBS
10310LIBS="-lsvld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010312/* end confdefs.h. */
10313
10314/* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10317#ifdef __cplusplus
10318extern "C"
10319#endif
10320char dlopen ();
10321int
10322main ()
10323{
10324return dlopen ();
10325 ;
10326 return 0;
10327}
10328_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010329if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010330 ac_cv_lib_svld_dlopen=yes
10331else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010332 ac_cv_lib_svld_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010333fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010334rm -f core conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010336LIBS=$ac_check_lib_save_LIBS
10337fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010339$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010340if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10342else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010344$as_echo_n "checking for dld_link in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010345if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010346 $as_echo_n "(cached) " >&6
10347else
10348 ac_check_lib_save_LIBS=$LIBS
10349LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010351/* end confdefs.h. */
10352
10353/* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10356#ifdef __cplusplus
10357extern "C"
10358#endif
10359char dld_link ();
10360int
10361main ()
10362{
10363return dld_link ();
10364 ;
10365 return 0;
10366}
10367_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010368if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010369 ac_cv_lib_dld_dld_link=yes
10370else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010371 ac_cv_lib_dld_dld_link=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010372fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010373rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010375LIBS=$ac_check_lib_save_LIBS
10376fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010378$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010379if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010380 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10381fi
10382
10383
10384fi
10385
10386
10387fi
10388
10389
10390fi
10391
10392
10393fi
10394
10395
10396fi
10397
10398 ;;
10399 esac
10400
10401 if test "x$lt_cv_dlopen" != xno; then
10402 enable_dlopen=yes
10403 else
10404 enable_dlopen=no
10405 fi
10406
10407 case $lt_cv_dlopen in
10408 dlopen)
10409 save_CPPFLAGS="$CPPFLAGS"
10410 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10411
10412 save_LDFLAGS="$LDFLAGS"
10413 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10414
10415 save_LIBS="$LIBS"
10416 LIBS="$lt_cv_dlopen_libs $LIBS"
10417
Scott James Remnantfde82c92009-09-22 10:04:15 -070010418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010419$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010420if test "${lt_cv_dlopen_self+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010421 $as_echo_n "(cached) " >&6
10422else
10423 if test "$cross_compiling" = yes; then :
10424 lt_cv_dlopen_self=cross
10425else
10426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10427 lt_status=$lt_dlunknown
10428 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010429#line 10429 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010430#include "confdefs.h"
10431
10432#if HAVE_DLFCN_H
10433#include <dlfcn.h>
10434#endif
10435
10436#include <stdio.h>
10437
10438#ifdef RTLD_GLOBAL
10439# define LT_DLGLOBAL RTLD_GLOBAL
10440#else
10441# ifdef DL_GLOBAL
10442# define LT_DLGLOBAL DL_GLOBAL
10443# else
10444# define LT_DLGLOBAL 0
10445# endif
10446#endif
10447
10448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10449 find out it does not work in some platform. */
10450#ifndef LT_DLLAZY_OR_NOW
10451# ifdef RTLD_LAZY
10452# define LT_DLLAZY_OR_NOW RTLD_LAZY
10453# else
10454# ifdef DL_LAZY
10455# define LT_DLLAZY_OR_NOW DL_LAZY
10456# else
10457# ifdef RTLD_NOW
10458# define LT_DLLAZY_OR_NOW RTLD_NOW
10459# else
10460# ifdef DL_NOW
10461# define LT_DLLAZY_OR_NOW DL_NOW
10462# else
10463# define LT_DLLAZY_OR_NOW 0
10464# endif
10465# endif
10466# endif
10467# endif
10468#endif
10469
10470void fnord() { int i=42;}
10471int main ()
10472{
10473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10474 int status = $lt_dlunknown;
10475
10476 if (self)
10477 {
10478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10479 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10480 /* dlclose (self); */
10481 }
10482 else
10483 puts (dlerror ());
10484
10485 return status;
10486}
10487_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010489 (eval $ac_link) 2>&5
10490 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10492 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010493 (./conftest; exit; ) >&5 2>/dev/null
10494 lt_status=$?
10495 case x$lt_status in
10496 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10497 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10498 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10499 esac
10500 else :
10501 # compilation failed
10502 lt_cv_dlopen_self=no
10503 fi
10504fi
10505rm -fr conftest*
10506
10507
10508fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010510$as_echo "$lt_cv_dlopen_self" >&6; }
10511
10512 if test "x$lt_cv_dlopen_self" = xyes; then
10513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010514 { $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 +010010515$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010516if test "${lt_cv_dlopen_self_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010517 $as_echo_n "(cached) " >&6
10518else
10519 if test "$cross_compiling" = yes; then :
10520 lt_cv_dlopen_self_static=cross
10521else
10522 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10523 lt_status=$lt_dlunknown
10524 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010525#line 10525 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010526#include "confdefs.h"
10527
10528#if HAVE_DLFCN_H
10529#include <dlfcn.h>
10530#endif
10531
10532#include <stdio.h>
10533
10534#ifdef RTLD_GLOBAL
10535# define LT_DLGLOBAL RTLD_GLOBAL
10536#else
10537# ifdef DL_GLOBAL
10538# define LT_DLGLOBAL DL_GLOBAL
10539# else
10540# define LT_DLGLOBAL 0
10541# endif
10542#endif
10543
10544/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10545 find out it does not work in some platform. */
10546#ifndef LT_DLLAZY_OR_NOW
10547# ifdef RTLD_LAZY
10548# define LT_DLLAZY_OR_NOW RTLD_LAZY
10549# else
10550# ifdef DL_LAZY
10551# define LT_DLLAZY_OR_NOW DL_LAZY
10552# else
10553# ifdef RTLD_NOW
10554# define LT_DLLAZY_OR_NOW RTLD_NOW
10555# else
10556# ifdef DL_NOW
10557# define LT_DLLAZY_OR_NOW DL_NOW
10558# else
10559# define LT_DLLAZY_OR_NOW 0
10560# endif
10561# endif
10562# endif
10563# endif
10564#endif
10565
10566void fnord() { int i=42;}
10567int main ()
10568{
10569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10570 int status = $lt_dlunknown;
10571
10572 if (self)
10573 {
10574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10576 /* dlclose (self); */
10577 }
10578 else
10579 puts (dlerror ());
10580
10581 return status;
10582}
10583_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010585 (eval $ac_link) 2>&5
10586 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010589 (./conftest; exit; ) >&5 2>/dev/null
10590 lt_status=$?
10591 case x$lt_status in
10592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10594 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10595 esac
10596 else :
10597 # compilation failed
10598 lt_cv_dlopen_self_static=no
10599 fi
10600fi
10601rm -fr conftest*
10602
10603
10604fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010606$as_echo "$lt_cv_dlopen_self_static" >&6; }
10607 fi
10608
10609 CPPFLAGS="$save_CPPFLAGS"
10610 LDFLAGS="$save_LDFLAGS"
10611 LIBS="$save_LIBS"
10612 ;;
10613 esac
10614
10615 case $lt_cv_dlopen_self in
10616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10617 *) enable_dlopen_self=unknown ;;
10618 esac
10619
10620 case $lt_cv_dlopen_self_static in
10621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10622 *) enable_dlopen_self_static=unknown ;;
10623 esac
10624fi
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642striplib=
10643old_striplib=
Scott James Remnantfde82c92009-09-22 10:04:15 -070010644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010645$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10646if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10647 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10648 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010650$as_echo "yes" >&6; }
10651else
10652# FIXME - insert some real tests, host_os isn't really good enough
10653 case $host_os in
10654 darwin*)
10655 if test -n "$STRIP" ; then
10656 striplib="$STRIP -x"
10657 old_striplib="$STRIP -S"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010659$as_echo "yes" >&6; }
10660 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010662$as_echo "no" >&6; }
10663 fi
10664 ;;
10665 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010667$as_echo "no" >&6; }
10668 ;;
10669 esac
10670fi
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 # Report which library types will actually be built
Scott James Remnantfde82c92009-09-22 10:04:15 -070010684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010685$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010687$as_echo "$can_build_shared" >&6; }
10688
Scott James Remnantfde82c92009-09-22 10:04:15 -070010689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010690$as_echo_n "checking whether to build shared libraries... " >&6; }
10691 test "$can_build_shared" = "no" && enable_shared=no
10692
10693 # On AIX, shared libraries and static libraries use the same namespace, and
10694 # are all built from PIC.
10695 case $host_os in
10696 aix3*)
10697 test "$enable_shared" = yes && enable_static=no
10698 if test -n "$RANLIB"; then
10699 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10700 postinstall_cmds='$RANLIB $lib'
10701 fi
10702 ;;
10703
10704 aix[4-9]*)
10705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10706 test "$enable_shared" = yes && enable_static=no
10707 fi
10708 ;;
10709 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010711$as_echo "$enable_shared" >&6; }
10712
Scott James Remnantfde82c92009-09-22 10:04:15 -070010713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010714$as_echo_n "checking whether to build static libraries... " >&6; }
10715 # Make sure either enable_shared or enable_static is yes.
10716 test "$enable_shared" = yes || enable_static=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070010717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010718$as_echo "$enable_static" >&6; }
10719
10720
10721
10722
10723fi
10724ac_ext=c
10725ac_cpp='$CPP $CPPFLAGS'
10726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10728ac_compiler_gnu=$ac_cv_c_compiler_gnu
10729
10730CC="$lt_save_CC"
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744 ac_config_commands="$ac_config_commands libtool"
10745
10746
10747
10748
10749# Only expand once:
10750
10751
10752
10753
10754
Scott James Remnantfde82c92009-09-22 10:04:15 -070010755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010756$as_echo_n "checking whether NLS is requested... " >&6; }
10757 # Check whether --enable-nls was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010758if test "${enable_nls+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010759 enableval=$enable_nls; USE_NLS=$enableval
10760else
10761 USE_NLS=yes
10762fi
10763
Scott James Remnantfde82c92009-09-22 10:04:15 -070010764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010765$as_echo "$USE_NLS" >&6; }
10766
10767
10768
10769
10770
10771
10772# Prepare PATH_SEPARATOR.
10773# The user is always right.
10774if test "${PATH_SEPARATOR+set}" != set; then
10775 echo "#! /bin/sh" >conf$$.sh
10776 echo "exit 0" >>conf$$.sh
10777 chmod +x conf$$.sh
10778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10779 PATH_SEPARATOR=';'
10780 else
10781 PATH_SEPARATOR=:
10782 fi
10783 rm -f conf$$.sh
10784fi
10785
10786# Find out how to test for executable files. Don't use a zero-byte file,
10787# as systems may use methods other than mode bits to determine executability.
10788cat >conf$$.file <<_ASEOF
10789#! /bin/sh
10790exit 0
10791_ASEOF
10792chmod +x conf$$.file
10793if test -x conf$$.file >/dev/null 2>&1; then
10794 ac_executable_p="test -x"
10795else
10796 ac_executable_p="test -f"
10797fi
10798rm -f conf$$.file
10799
10800# Extract the first word of "msgfmt", so it can be a program name with args.
10801set dummy msgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010803$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010804if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010805 $as_echo_n "(cached) " >&6
10806else
10807 case "$MSGFMT" in
10808 [\\/]* | ?:[\\/]*)
10809 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10810 ;;
10811 *)
10812 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10813 for ac_dir in $PATH; do
10814 IFS="$ac_save_IFS"
10815 test -z "$ac_dir" && ac_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10818 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10819 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10820 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10821 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10822 break 2
10823 fi
10824 fi
10825 done
10826 done
10827 IFS="$ac_save_IFS"
10828 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10829 ;;
10830esac
10831fi
10832MSGFMT="$ac_cv_path_MSGFMT"
10833if test "$MSGFMT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010835$as_echo "$MSGFMT" >&6; }
10836else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010838$as_echo "no" >&6; }
10839fi
10840
10841 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10842set dummy gmsgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010844$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010845if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010846 $as_echo_n "(cached) " >&6
10847else
10848 case $GMSGFMT in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10851 ;;
10852 *)
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010858 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010010859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010862 break 2
10863 fi
10864done
Scott James Remnantfde82c92009-09-22 10:04:15 -070010865 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010010866IFS=$as_save_IFS
10867
10868 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10869 ;;
10870esac
10871fi
10872GMSGFMT=$ac_cv_path_GMSGFMT
10873if test -n "$GMSGFMT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010875$as_echo "$GMSGFMT" >&6; }
10876else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010878$as_echo "no" >&6; }
10879fi
10880
10881
10882
10883 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10884 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10885 *) MSGFMT_015=$MSGFMT ;;
10886 esac
10887
10888 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10889 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10890 *) GMSGFMT_015=$GMSGFMT ;;
10891 esac
10892
10893
10894
10895# Prepare PATH_SEPARATOR.
10896# The user is always right.
10897if test "${PATH_SEPARATOR+set}" != set; then
10898 echo "#! /bin/sh" >conf$$.sh
10899 echo "exit 0" >>conf$$.sh
10900 chmod +x conf$$.sh
10901 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10902 PATH_SEPARATOR=';'
10903 else
10904 PATH_SEPARATOR=:
10905 fi
10906 rm -f conf$$.sh
10907fi
10908
10909# Find out how to test for executable files. Don't use a zero-byte file,
10910# as systems may use methods other than mode bits to determine executability.
10911cat >conf$$.file <<_ASEOF
10912#! /bin/sh
10913exit 0
10914_ASEOF
10915chmod +x conf$$.file
10916if test -x conf$$.file >/dev/null 2>&1; then
10917 ac_executable_p="test -x"
10918else
10919 ac_executable_p="test -f"
10920fi
10921rm -f conf$$.file
10922
10923# Extract the first word of "xgettext", so it can be a program name with args.
10924set dummy xgettext; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010926$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010927if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010928 $as_echo_n "(cached) " >&6
10929else
10930 case "$XGETTEXT" in
10931 [\\/]* | ?:[\\/]*)
10932 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10933 ;;
10934 *)
10935 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10936 for ac_dir in $PATH; do
10937 IFS="$ac_save_IFS"
10938 test -z "$ac_dir" && ac_dir=.
10939 for ac_exec_ext in '' $ac_executable_extensions; do
10940 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10941 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10942 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10943 (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
10944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10945 break 2
10946 fi
10947 fi
10948 done
10949 done
10950 IFS="$ac_save_IFS"
10951 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10952 ;;
10953esac
10954fi
10955XGETTEXT="$ac_cv_path_XGETTEXT"
10956if test "$XGETTEXT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010958$as_echo "$XGETTEXT" >&6; }
10959else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010961$as_echo "no" >&6; }
10962fi
10963
10964 rm -f messages.po
10965
10966 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10967 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10968 *) XGETTEXT_015=$XGETTEXT ;;
10969 esac
10970
10971
10972
10973# Prepare PATH_SEPARATOR.
10974# The user is always right.
10975if test "${PATH_SEPARATOR+set}" != set; then
10976 echo "#! /bin/sh" >conf$$.sh
10977 echo "exit 0" >>conf$$.sh
10978 chmod +x conf$$.sh
10979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10980 PATH_SEPARATOR=';'
10981 else
10982 PATH_SEPARATOR=:
10983 fi
10984 rm -f conf$$.sh
10985fi
10986
10987# Find out how to test for executable files. Don't use a zero-byte file,
10988# as systems may use methods other than mode bits to determine executability.
10989cat >conf$$.file <<_ASEOF
10990#! /bin/sh
10991exit 0
10992_ASEOF
10993chmod +x conf$$.file
10994if test -x conf$$.file >/dev/null 2>&1; then
10995 ac_executable_p="test -x"
10996else
10997 ac_executable_p="test -f"
10998fi
10999rm -f conf$$.file
11000
11001# Extract the first word of "msgmerge", so it can be a program name with args.
11002set dummy msgmerge; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011004$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011005if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011006 $as_echo_n "(cached) " >&6
11007else
11008 case "$MSGMERGE" in
11009 [\\/]* | ?:[\\/]*)
11010 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11011 ;;
11012 *)
11013 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11014 for ac_dir in $PATH; do
11015 IFS="$ac_save_IFS"
11016 test -z "$ac_dir" && ac_dir=.
11017 for ac_exec_ext in '' $ac_executable_extensions; do
11018 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11019 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11020 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11021 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11022 break 2
11023 fi
11024 fi
11025 done
11026 done
11027 IFS="$ac_save_IFS"
11028 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11029 ;;
11030esac
11031fi
11032MSGMERGE="$ac_cv_path_MSGMERGE"
11033if test "$MSGMERGE" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011035$as_echo "$MSGMERGE" >&6; }
11036else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011038$as_echo "no" >&6; }
11039fi
11040
11041
11042 test -n "$localedir" || localedir='${datadir}/locale'
11043
11044
11045 ac_config_commands="$ac_config_commands po-directories"
11046
11047
11048
Scott James Remnantfde82c92009-09-22 10:04:15 -070011049 { $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 +010011050$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011051if test "${ac_cv_gnu_library_2+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011052 $as_echo_n "(cached) " >&6
11053else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011055/* end confdefs.h. */
11056
11057#include <features.h>
11058#ifdef __GNU_LIBRARY__
11059 #if (__GLIBC__ >= 2)
11060 Lucky GNU user
11061 #endif
11062#endif
11063
11064_ACEOF
11065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011066 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011067 ac_cv_gnu_library_2=yes
11068else
11069 ac_cv_gnu_library_2=no
11070fi
11071rm -f conftest*
11072
11073
11074
11075fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011077$as_echo "$ac_cv_gnu_library_2" >&6; }
11078
11079 GLIBC2="$ac_cv_gnu_library_2"
11080
11081
11082if test -n "$ac_tool_prefix"; then
11083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11084set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011086$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011087if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011088 $as_echo_n "(cached) " >&6
11089else
11090 if test -n "$RANLIB"; then
11091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11092else
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011098 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011102 break 2
11103 fi
11104done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011105 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011106IFS=$as_save_IFS
11107
11108fi
11109fi
11110RANLIB=$ac_cv_prog_RANLIB
11111if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011113$as_echo "$RANLIB" >&6; }
11114else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011116$as_echo "no" >&6; }
11117fi
11118
11119
11120fi
11121if test -z "$ac_cv_prog_RANLIB"; then
11122 ac_ct_RANLIB=$RANLIB
11123 # Extract the first word of "ranlib", so it can be a program name with args.
11124set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011126$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011127if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011128 $as_echo_n "(cached) " >&6
11129else
11130 if test -n "$ac_ct_RANLIB"; then
11131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011138 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011142 break 2
11143 fi
11144done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011145 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011146IFS=$as_save_IFS
11147
11148fi
11149fi
11150ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11151if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011153$as_echo "$ac_ct_RANLIB" >&6; }
11154else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011156$as_echo "no" >&6; }
11157fi
11158
11159 if test "x$ac_ct_RANLIB" = x; then
11160 RANLIB=":"
11161 else
11162 case $cross_compiling:$ac_tool_warned in
11163yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070011164{ $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 +010011165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11166ac_tool_warned=yes ;;
11167esac
11168 RANLIB=$ac_ct_RANLIB
11169 fi
11170else
11171 RANLIB="$ac_cv_prog_RANLIB"
11172fi
11173
11174
11175
11176 CFLAG_VISIBILITY=
11177 HAVE_VISIBILITY=0
11178 if test -n "$GCC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011180$as_echo_n "checking for simple visibility declarations... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011181 if test "${gl_cv_cc_visibility+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011182 $as_echo_n "(cached) " >&6
11183else
11184
11185 gl_save_CFLAGS="$CFLAGS"
11186 CFLAGS="$CFLAGS -fvisibility=hidden"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011188/* end confdefs.h. */
11189extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11190 extern __attribute__((__visibility__("default"))) int exportedvar;
11191 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11192 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11193int
11194main ()
11195{
11196
11197 ;
11198 return 0;
11199}
11200_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011201if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011202 gl_cv_cc_visibility=yes
11203else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011204 gl_cv_cc_visibility=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011205fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11207 CFLAGS="$gl_save_CFLAGS"
11208fi
11209
Scott James Remnantfde82c92009-09-22 10:04:15 -070011210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011211$as_echo "$gl_cv_cc_visibility" >&6; }
11212 if test $gl_cv_cc_visibility = yes; then
11213 CFLAG_VISIBILITY="-fvisibility=hidden"
11214 HAVE_VISIBILITY=1
11215 fi
11216 fi
11217
11218
11219
11220cat >>confdefs.h <<_ACEOF
11221#define HAVE_VISIBILITY $HAVE_VISIBILITY
11222_ACEOF
11223
11224
Scott James Remnantfde82c92009-09-22 10:04:15 -070011225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011226$as_echo_n "checking for inline... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011227if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011228 $as_echo_n "(cached) " >&6
11229else
11230 ac_cv_c_inline=no
11231for ac_kw in inline __inline__ __inline; do
Scott James Remnantfde82c92009-09-22 10:04:15 -070011232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011233/* end confdefs.h. */
11234#ifndef __cplusplus
11235typedef int foo_t;
11236static $ac_kw foo_t static_foo () {return 0; }
11237$ac_kw foo_t foo () {return 0; }
11238#endif
11239
11240_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011241if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011242 ac_cv_c_inline=$ac_kw
Scott James Remnant65f683d2009-07-14 13:05:17 +010011243fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245 test "$ac_cv_c_inline" != no && break
11246done
11247
11248fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011250$as_echo "$ac_cv_c_inline" >&6; }
11251
Scott James Remnant65f683d2009-07-14 13:05:17 +010011252case $ac_cv_c_inline in
11253 inline | yes) ;;
11254 *)
11255 case $ac_cv_c_inline in
11256 no) ac_val=;;
11257 *) ac_val=$ac_cv_c_inline;;
11258 esac
11259 cat >>confdefs.h <<_ACEOF
11260#ifndef __cplusplus
11261#define inline $ac_val
11262#endif
11263_ACEOF
11264 ;;
11265esac
11266
Scott James Remnantfde82c92009-09-22 10:04:15 -070011267ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11268if test "x$ac_cv_type_size_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011269
Scott James Remnant65f683d2009-07-14 13:05:17 +010011270else
11271
11272cat >>confdefs.h <<_ACEOF
11273#define size_t unsigned int
11274_ACEOF
11275
11276fi
11277
11278
Scott James Remnantfde82c92009-09-22 10:04:15 -070011279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011280$as_echo_n "checking for stdint.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011281if test "${gl_cv_header_stdint_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011282 $as_echo_n "(cached) " >&6
11283else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011285/* end confdefs.h. */
11286#include <sys/types.h>
11287#include <stdint.h>
11288int
11289main ()
11290{
11291uintmax_t i = (uintmax_t) -1; return !i;
11292 ;
11293 return 0;
11294}
11295_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011296if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011297 gl_cv_header_stdint_h=yes
11298else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011299 gl_cv_header_stdint_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011300fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011304$as_echo "$gl_cv_header_stdint_h" >&6; }
11305 if test $gl_cv_header_stdint_h = yes; then
11306
11307cat >>confdefs.h <<_ACEOF
11308#define HAVE_STDINT_H_WITH_UINTMAX 1
11309_ACEOF
11310
11311 fi
11312
11313# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11314# for constant arguments. Useless!
Scott James Remnantfde82c92009-09-22 10:04:15 -070011315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011316$as_echo_n "checking for working alloca.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011317if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011318 $as_echo_n "(cached) " >&6
11319else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011321/* end confdefs.h. */
11322#include <alloca.h>
11323int
11324main ()
11325{
11326char *p = (char *) alloca (2 * sizeof (int));
11327 if (p) return 0;
11328 ;
11329 return 0;
11330}
11331_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011332if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011333 ac_cv_working_alloca_h=yes
11334else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011335 ac_cv_working_alloca_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011336fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011337rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011339fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011341$as_echo "$ac_cv_working_alloca_h" >&6; }
11342if test $ac_cv_working_alloca_h = yes; then
11343
Scott James Remnantfde82c92009-09-22 10:04:15 -070011344$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011345
11346fi
11347
Scott James Remnantfde82c92009-09-22 10:04:15 -070011348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011349$as_echo_n "checking for alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011350if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011351 $as_echo_n "(cached) " >&6
11352else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011354/* end confdefs.h. */
11355#ifdef __GNUC__
11356# define alloca __builtin_alloca
11357#else
11358# ifdef _MSC_VER
11359# include <malloc.h>
11360# define alloca _alloca
11361# else
11362# ifdef HAVE_ALLOCA_H
11363# include <alloca.h>
11364# else
11365# ifdef _AIX
11366 #pragma alloca
11367# else
11368# ifndef alloca /* predefined by HP cc +Olibcalls */
11369char *alloca ();
11370# endif
11371# endif
11372# endif
11373# endif
11374#endif
11375
11376int
11377main ()
11378{
11379char *p = (char *) alloca (1);
11380 if (p) return 0;
11381 ;
11382 return 0;
11383}
11384_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011385if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011386 ac_cv_func_alloca_works=yes
11387else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011388 ac_cv_func_alloca_works=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011389fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011390rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011392fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011394$as_echo "$ac_cv_func_alloca_works" >&6; }
11395
11396if test $ac_cv_func_alloca_works = yes; then
11397
Scott James Remnantfde82c92009-09-22 10:04:15 -070011398$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011399
11400else
11401 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11402# that cause trouble. Some versions do not even contain alloca or
11403# contain a buggy version. If you still want to use their alloca,
11404# use ar to extract alloca.o from them instead of compiling alloca.c.
11405
11406ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11407
Scott James Remnantfde82c92009-09-22 10:04:15 -070011408$as_echo "#define C_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011409
11410
Scott James Remnantfde82c92009-09-22 10:04:15 -070011411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011412$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011413if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011414 $as_echo_n "(cached) " >&6
11415else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011417/* end confdefs.h. */
11418#if defined CRAY && ! defined CRAY2
11419webecray
11420#else
11421wenotbecray
11422#endif
11423
11424_ACEOF
11425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011426 $EGREP "webecray" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011427 ac_cv_os_cray=yes
11428else
11429 ac_cv_os_cray=no
11430fi
11431rm -f conftest*
11432
11433fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011435$as_echo "$ac_cv_os_cray" >&6; }
11436if test $ac_cv_os_cray = yes; then
11437 for ac_func in _getb67 GETB67 getb67; do
11438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Scott James Remnantfde82c92009-09-22 10:04:15 -070011439ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11440eval as_val=\$$as_ac_var
11441 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011442
11443cat >>confdefs.h <<_ACEOF
11444#define CRAY_STACKSEG_END $ac_func
11445_ACEOF
11446
11447 break
11448fi
11449
11450 done
11451fi
11452
Scott James Remnantfde82c92009-09-22 10:04:15 -070011453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011454$as_echo_n "checking stack direction for C alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011455if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011456 $as_echo_n "(cached) " >&6
11457else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011458 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011459 ac_cv_c_stack_direction=0
11460else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011462/* end confdefs.h. */
11463$ac_includes_default
11464int
11465find_stack_direction ()
11466{
11467 static char *addr = 0;
11468 auto char dummy;
11469 if (addr == 0)
11470 {
11471 addr = &dummy;
11472 return find_stack_direction ();
11473 }
11474 else
11475 return (&dummy > addr) ? 1 : -1;
11476}
11477
11478int
11479main ()
11480{
11481 return find_stack_direction () < 0;
11482}
11483_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011484if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011485 ac_cv_c_stack_direction=1
11486else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011487 ac_cv_c_stack_direction=-1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011488fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11490 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011491fi
11492
Scott James Remnant65f683d2009-07-14 13:05:17 +010011493fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011495$as_echo "$ac_cv_c_stack_direction" >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010011496cat >>confdefs.h <<_ACEOF
11497#define STACK_DIRECTION $ac_cv_c_stack_direction
11498_ACEOF
11499
11500
11501fi
11502
Scott James Remnant65f683d2009-07-14 13:05:17 +010011503for ac_header in stdlib.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070011504do :
11505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11506ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11507eval as_val=\$$as_ac_Header
11508 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011509 cat >>confdefs.h <<_ACEOF
11510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11511_ACEOF
11512
11513fi
11514
11515done
11516
Scott James Remnant65f683d2009-07-14 13:05:17 +010011517for ac_func in getpagesize
Scott James Remnantfde82c92009-09-22 10:04:15 -070011518do :
11519 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11520if test "x$ac_cv_func_getpagesize" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011521 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011522#define HAVE_GETPAGESIZE 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011523_ACEOF
11524
11525fi
11526done
11527
Scott James Remnantfde82c92009-09-22 10:04:15 -070011528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011529$as_echo_n "checking for working mmap... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011530if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011531 $as_echo_n "(cached) " >&6
11532else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011533 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011534 ac_cv_func_mmap_fixed_mapped=no
11535else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011537/* end confdefs.h. */
11538$ac_includes_default
11539/* malloc might have been renamed as rpl_malloc. */
11540#undef malloc
11541
11542/* Thanks to Mike Haertel and Jim Avera for this test.
11543 Here is a matrix of mmap possibilities:
11544 mmap private not fixed
11545 mmap private fixed at somewhere currently unmapped
11546 mmap private fixed at somewhere already mapped
11547 mmap shared not fixed
11548 mmap shared fixed at somewhere currently unmapped
11549 mmap shared fixed at somewhere already mapped
11550 For private mappings, we should verify that changes cannot be read()
11551 back from the file, nor mmap's back from the file at a different
11552 address. (There have been systems where private was not correctly
11553 implemented like the infamous i386 svr4.0, and systems where the
11554 VM page cache was not coherent with the file system buffer cache
11555 like early versions of FreeBSD and possibly contemporary NetBSD.)
11556 For shared mappings, we should conversely verify that changes get
11557 propagated back to all the places they're supposed to be.
11558
11559 Grep wants private fixed already mapped.
11560 The main things grep needs to know about mmap are:
11561 * does it exist and is it safe to write into the mmap'd area
11562 * how to use it (BSD variants) */
11563
11564#include <fcntl.h>
11565#include <sys/mman.h>
11566
11567#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11568char *malloc ();
11569#endif
11570
11571/* This mess was copied from the GNU getpagesize.h. */
11572#ifndef HAVE_GETPAGESIZE
11573/* Assume that all systems that can run configure have sys/param.h. */
11574# ifndef HAVE_SYS_PARAM_H
11575# define HAVE_SYS_PARAM_H 1
11576# endif
11577
11578# ifdef _SC_PAGESIZE
11579# define getpagesize() sysconf(_SC_PAGESIZE)
11580# else /* no _SC_PAGESIZE */
11581# ifdef HAVE_SYS_PARAM_H
11582# include <sys/param.h>
11583# ifdef EXEC_PAGESIZE
11584# define getpagesize() EXEC_PAGESIZE
11585# else /* no EXEC_PAGESIZE */
11586# ifdef NBPG
11587# define getpagesize() NBPG * CLSIZE
11588# ifndef CLSIZE
11589# define CLSIZE 1
11590# endif /* no CLSIZE */
11591# else /* no NBPG */
11592# ifdef NBPC
11593# define getpagesize() NBPC
11594# else /* no NBPC */
11595# ifdef PAGESIZE
11596# define getpagesize() PAGESIZE
11597# endif /* PAGESIZE */
11598# endif /* no NBPC */
11599# endif /* no NBPG */
11600# endif /* no EXEC_PAGESIZE */
11601# else /* no HAVE_SYS_PARAM_H */
11602# define getpagesize() 8192 /* punt totally */
11603# endif /* no HAVE_SYS_PARAM_H */
11604# endif /* no _SC_PAGESIZE */
11605
11606#endif /* no HAVE_GETPAGESIZE */
11607
11608int
11609main ()
11610{
11611 char *data, *data2, *data3;
11612 int i, pagesize;
11613 int fd;
11614
11615 pagesize = getpagesize ();
11616
11617 /* First, make a file with some known garbage in it. */
11618 data = (char *) malloc (pagesize);
11619 if (!data)
11620 return 1;
11621 for (i = 0; i < pagesize; ++i)
11622 *(data + i) = rand ();
11623 umask (0);
11624 fd = creat ("conftest.mmap", 0600);
11625 if (fd < 0)
11626 return 1;
11627 if (write (fd, data, pagesize) != pagesize)
11628 return 1;
11629 close (fd);
11630
11631 /* Next, try to mmap the file at a fixed address which already has
11632 something else allocated at it. If we can, also make sure that
11633 we see the same garbage. */
11634 fd = open ("conftest.mmap", O_RDWR);
11635 if (fd < 0)
11636 return 1;
11637 data2 = (char *) malloc (2 * pagesize);
11638 if (!data2)
11639 return 1;
11640 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11641 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11642 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11643 return 1;
11644 for (i = 0; i < pagesize; ++i)
11645 if (*(data + i) != *(data2 + i))
11646 return 1;
11647
11648 /* Finally, make sure that changes to the mapped area do not
11649 percolate back to the file as seen by read(). (This is a bug on
11650 some variants of i386 svr4.0.) */
11651 for (i = 0; i < pagesize; ++i)
11652 *(data2 + i) = *(data2 + i) + 1;
11653 data3 = (char *) malloc (pagesize);
11654 if (!data3)
11655 return 1;
11656 if (read (fd, data3, pagesize) != pagesize)
11657 return 1;
11658 for (i = 0; i < pagesize; ++i)
11659 if (*(data + i) != *(data3 + i))
11660 return 1;
11661 close (fd);
11662 return 0;
11663}
11664_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011665if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011666 ac_cv_func_mmap_fixed_mapped=yes
11667else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011668 ac_cv_func_mmap_fixed_mapped=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011669fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11671 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011672fi
11673
Scott James Remnant65f683d2009-07-14 13:05:17 +010011674fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011676$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11677if test $ac_cv_func_mmap_fixed_mapped = yes; then
11678
Scott James Remnantfde82c92009-09-22 10:04:15 -070011679$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011680
11681fi
11682rm -f conftest.mmap
11683
11684
11685
Scott James Remnantfde82c92009-09-22 10:04:15 -070011686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011687$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011688if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011689 $as_echo_n "(cached) " >&6
11690else
11691
Scott James Remnantfde82c92009-09-22 10:04:15 -070011692 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011693
11694 # Guess based on the CPU.
11695 case "$host_cpu" in
11696 alpha* | i3456786 | m68k | s390*)
11697 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11698 *)
11699 gt_cv_int_divbyzero_sigfpe="guessing no";;
11700 esac
11701
11702else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011704/* end confdefs.h. */
11705
11706#include <stdlib.h>
11707#include <signal.h>
11708
11709static void
11710#ifdef __cplusplus
11711sigfpe_handler (int sig)
11712#else
11713sigfpe_handler (sig) int sig;
11714#endif
11715{
11716 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11717 exit (sig != SIGFPE);
11718}
11719
11720int x = 1;
11721int y = 0;
11722int z;
11723int nan;
11724
11725int main ()
11726{
11727 signal (SIGFPE, sigfpe_handler);
11728/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11729#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11730 signal (SIGTRAP, sigfpe_handler);
11731#endif
11732/* Linux/SPARC yields signal SIGILL. */
11733#if defined (__sparc__) && defined (__linux__)
11734 signal (SIGILL, sigfpe_handler);
11735#endif
11736
11737 z = x / y;
11738 nan = y / y;
11739 exit (1);
11740}
11741
11742_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011743if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011744 gt_cv_int_divbyzero_sigfpe=yes
11745else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011746 gt_cv_int_divbyzero_sigfpe=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011747fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11749 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011750fi
11751
11752
Scott James Remnant65f683d2009-07-14 13:05:17 +010011753fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011755$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11756 case "$gt_cv_int_divbyzero_sigfpe" in
11757 *yes) value=1;;
11758 *) value=0;;
11759 esac
11760
11761cat >>confdefs.h <<_ACEOF
11762#define INTDIV0_RAISES_SIGFPE $value
11763_ACEOF
11764
11765
11766
Scott James Remnantfde82c92009-09-22 10:04:15 -070011767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011768$as_echo_n "checking for inttypes.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011769if test "${gl_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011770 $as_echo_n "(cached) " >&6
11771else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011773/* end confdefs.h. */
11774#include <sys/types.h>
11775#include <inttypes.h>
11776int
11777main ()
11778{
11779uintmax_t i = (uintmax_t) -1; return !i;
11780 ;
11781 return 0;
11782}
11783_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011784if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011785 gl_cv_header_inttypes_h=yes
11786else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011787 gl_cv_header_inttypes_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011788fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011792$as_echo "$gl_cv_header_inttypes_h" >&6; }
11793 if test $gl_cv_header_inttypes_h = yes; then
11794
11795cat >>confdefs.h <<_ACEOF
11796#define HAVE_INTTYPES_H_WITH_UINTMAX 1
11797_ACEOF
11798
11799 fi
11800
11801
Scott James Remnantfde82c92009-09-22 10:04:15 -070011802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011803$as_echo_n "checking for unsigned long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011804if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011805 $as_echo_n "(cached) " >&6
11806else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011808/* end confdefs.h. */
11809unsigned long long int ull = 18446744073709551615ULL;
11810 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11811 ? 1 : -1)];
11812 int i = 63;
11813int
11814main ()
11815{
11816unsigned long long int ullmax = 18446744073709551615ull;
11817 return (ull << 63 | ull >> 63 | ull << i | ull >> i
11818 | ullmax / ull | ullmax % ull);
11819 ;
11820 return 0;
11821}
11822_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011823if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011824 ac_cv_type_unsigned_long_long_int=yes
11825else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011826 ac_cv_type_unsigned_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011827fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011828rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011830fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011832$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11833 if test $ac_cv_type_unsigned_long_long_int = yes; then
11834
Scott James Remnantfde82c92009-09-22 10:04:15 -070011835$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011836
11837 fi
11838
11839
11840
11841 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
11842 if test $ac_cv_type_unsigned_long_long = yes; then
11843
Scott James Remnantfde82c92009-09-22 10:04:15 -070011844$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011845
11846 fi
11847
11848
11849
11850
11851 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11852
11853 test $ac_cv_type_unsigned_long_long = yes \
11854 && ac_type='unsigned long long' \
11855 || ac_type='unsigned long'
11856
11857cat >>confdefs.h <<_ACEOF
11858#define uintmax_t $ac_type
11859_ACEOF
11860
11861 else
11862
Scott James Remnantfde82c92009-09-22 10:04:15 -070011863$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011864
11865 fi
11866
11867
Scott James Remnantfde82c92009-09-22 10:04:15 -070011868 for ac_header in inttypes.h
11869do :
11870 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11871if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011872 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011873#define HAVE_INTTYPES_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011874_ACEOF
11875
11876fi
11877
11878done
11879
11880 if test $ac_cv_header_inttypes_h = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011881 { $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 +010011882$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011883if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011884 $as_echo_n "(cached) " >&6
11885else
11886
Scott James Remnantfde82c92009-09-22 10:04:15 -070011887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011888/* end confdefs.h. */
11889#include <inttypes.h>
11890#ifdef PRId32
11891char *p = PRId32;
11892#endif
11893
11894int
11895main ()
11896{
11897
11898 ;
11899 return 0;
11900}
11901_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011902if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011903 gt_cv_inttypes_pri_broken=no
11904else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011905 gt_cv_inttypes_pri_broken=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010011906fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11908
11909fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011911$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11912 fi
11913 if test "$gt_cv_inttypes_pri_broken" = yes; then
11914
11915cat >>confdefs.h <<_ACEOF
11916#define PRI_MACROS_BROKEN 1
11917_ACEOF
11918
11919 PRI_MACROS_BROKEN=1
11920 else
11921 PRI_MACROS_BROKEN=0
11922 fi
11923
11924
11925
11926
11927
11928 # Check whether --enable-threads was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011929if test "${enable_threads+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011930 enableval=$enable_threads; gl_use_threads=$enableval
11931else
11932 case "$host_os" in
11933 osf*) gl_use_threads=no ;;
11934 *) gl_use_threads=yes ;;
11935 esac
11936
11937fi
11938
11939 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
11940 # For using <pthread.h>:
11941 case "$host_os" in
11942 osf*)
11943 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
11944 # groks <pthread.h>. cc also understands the flag -pthread, but
11945 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
11946 # 2. putting a flag into CPPFLAGS that has an effect on the linker
11947 # causes the AC_TRY_LINK test below to succeed unexpectedly,
11948 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
11949 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11950 ;;
11951 esac
11952 # Some systems optimize for single-threaded programs by default, and
11953 # need special flags to disable these optimizations. For example, the
11954 # definition of 'errno' in <errno.h>.
11955 case "$host_os" in
11956 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
11957 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
11958 esac
11959 fi
11960
11961
11962
11963
11964
11965 if test "X$prefix" = "XNONE"; then
11966 acl_final_prefix="$ac_default_prefix"
11967 else
11968 acl_final_prefix="$prefix"
11969 fi
11970 if test "X$exec_prefix" = "XNONE"; then
11971 acl_final_exec_prefix='${prefix}'
11972 else
11973 acl_final_exec_prefix="$exec_prefix"
11974 fi
11975 acl_save_prefix="$prefix"
11976 prefix="$acl_final_prefix"
11977 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11978 prefix="$acl_save_prefix"
11979
11980
11981# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011982if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011983 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11984else
11985 with_gnu_ld=no
11986fi
11987
11988# Prepare PATH_SEPARATOR.
11989# The user is always right.
11990if test "${PATH_SEPARATOR+set}" != set; then
11991 echo "#! /bin/sh" >conf$$.sh
11992 echo "exit 0" >>conf$$.sh
11993 chmod +x conf$$.sh
11994 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11995 PATH_SEPARATOR=';'
11996 else
11997 PATH_SEPARATOR=:
11998 fi
11999 rm -f conf$$.sh
12000fi
12001ac_prog=ld
12002if test "$GCC" = yes; then
12003 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012005$as_echo_n "checking for ld used by GCC... " >&6; }
12006 case $host in
12007 *-*-mingw*)
12008 # gcc leaves a trailing carriage return which upsets mingw
12009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12010 *)
12011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12012 esac
12013 case $ac_prog in
12014 # Accept absolute paths.
12015 [\\/]* | [A-Za-z]:[\\/]*)
12016 re_direlt='/[^/][^/]*/\.\./'
12017 # Canonicalize the path of ld
12018 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12019 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12020 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12021 done
12022 test -z "$LD" && LD="$ac_prog"
12023 ;;
12024 "")
12025 # If it fails, then pretend we aren't using GCC.
12026 ac_prog=ld
12027 ;;
12028 *)
12029 # If it is relative, then search for the first ld in PATH.
12030 with_gnu_ld=unknown
12031 ;;
12032 esac
12033elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012035$as_echo_n "checking for GNU ld... " >&6; }
12036else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012038$as_echo_n "checking for non-GNU ld... " >&6; }
12039fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012040if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012041 $as_echo_n "(cached) " >&6
12042else
12043 if test -z "$LD"; then
12044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12045 for ac_dir in $PATH; do
12046 test -z "$ac_dir" && ac_dir=.
12047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12048 acl_cv_path_LD="$ac_dir/$ac_prog"
12049 # Check to see if the program is GNU ld. I'd rather use --version,
12050 # but apparently some GNU ld's only accept -v.
12051 # Break only if it was the GNU/non-GNU ld that we prefer.
12052 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12053 *GNU* | *'with BFD'*)
12054 test "$with_gnu_ld" != no && break ;;
12055 *)
12056 test "$with_gnu_ld" != yes && break ;;
12057 esac
12058 fi
12059 done
12060 IFS="$ac_save_ifs"
12061else
12062 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12063fi
12064fi
12065
12066LD="$acl_cv_path_LD"
12067if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012069$as_echo "$LD" >&6; }
12070else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012072$as_echo "no" >&6; }
12073fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012074test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012076$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012077if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012078 $as_echo_n "(cached) " >&6
12079else
12080 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12081case `$LD -v 2>&1 </dev/null` in
12082*GNU* | *'with BFD'*)
12083 acl_cv_prog_gnu_ld=yes ;;
12084*)
12085 acl_cv_prog_gnu_ld=no ;;
12086esac
12087fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012089$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12090with_gnu_ld=$acl_cv_prog_gnu_ld
12091
12092
12093
12094
Scott James Remnantfde82c92009-09-22 10:04:15 -070012095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012096$as_echo_n "checking for shared library run path origin... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012097if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012098 $as_echo_n "(cached) " >&6
12099else
12100
12101 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12102 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12103 . ./conftest.sh
12104 rm -f ./conftest.sh
12105 acl_cv_rpath=done
12106
12107fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012109$as_echo "$acl_cv_rpath" >&6; }
12110 wl="$acl_cv_wl"
12111 libext="$acl_cv_libext"
12112 shlibext="$acl_cv_shlibext"
12113 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12114 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12115 hardcode_direct="$acl_cv_hardcode_direct"
12116 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12117 # Check whether --enable-rpath was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012118if test "${enable_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012119 enableval=$enable_rpath; :
12120else
12121 enable_rpath=yes
12122fi
12123
12124
12125
12126 acl_libdirstem=lib
12127 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12128 if test -n "$searchpath"; then
12129 acl_save_IFS="${IFS= }"; IFS=":"
12130 for searchdir in $searchpath; do
12131 if test -d "$searchdir"; then
12132 case "$searchdir" in
12133 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12134 *) searchdir=`cd "$searchdir" && pwd`
12135 case "$searchdir" in
12136 */lib64 ) acl_libdirstem=lib64 ;;
12137 esac ;;
12138 esac
12139 fi
12140 done
12141 IFS="$acl_save_IFS"
12142 fi
12143
12144
12145
12146 gl_threads_api=none
12147 LIBTHREAD=
12148 LTLIBTHREAD=
12149 LIBMULTITHREAD=
12150 LTLIBMULTITHREAD=
12151 if test "$gl_use_threads" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012153$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12154 gl_have_weak=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070012155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012156/* end confdefs.h. */
12157extern void xyzzy ();
12158#pragma weak xyzzy
12159int
12160main ()
12161{
12162xyzzy();
12163 ;
12164 return 0;
12165}
12166_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012167if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012168 gl_have_weak=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012169fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012170rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012173$as_echo "$gl_have_weak" >&6; }
12174 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12175 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12176 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012177 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12178if test "x$ac_cv_header_pthread_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012179 gl_have_pthread_h=yes
12180else
12181 gl_have_pthread_h=no
12182fi
12183
12184
12185 if test "$gl_have_pthread_h" = yes; then
12186 # Other possible tests:
12187 # -lpthreads (FSU threads, PCthreads)
12188 # -lgthreads
12189 gl_have_pthread=
12190 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12191 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12192 # the second one only in libpthread, and lock.c needs it.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012194/* end confdefs.h. */
12195#include <pthread.h>
12196int
12197main ()
12198{
12199pthread_mutex_lock((pthread_mutex_t*)0);
12200 pthread_mutexattr_init((pthread_mutexattr_t*)0);
12201 ;
12202 return 0;
12203}
12204_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012205if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012206 gl_have_pthread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012207fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012208rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012210 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12211 # since it is defined as a macro on OSF/1.)
12212 if test -n "$gl_have_pthread"; then
12213 # The program links fine without libpthread. But it may actually
12214 # need to link with libpthread in order to create multiple threads.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012216$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012217if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012218 $as_echo_n "(cached) " >&6
12219else
12220 ac_check_lib_save_LIBS=$LIBS
12221LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012223/* end confdefs.h. */
12224
12225/* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228#ifdef __cplusplus
12229extern "C"
12230#endif
12231char pthread_kill ();
12232int
12233main ()
12234{
12235return pthread_kill ();
12236 ;
12237 return 0;
12238}
12239_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012240if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012241 ac_cv_lib_pthread_pthread_kill=yes
12242else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012243 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012244fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012245rm -f core conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012247LIBS=$ac_check_lib_save_LIBS
12248fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012250$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012251if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012252 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12253 # On Solaris and HP-UX, most pthread functions exist also in libc.
12254 # Therefore pthread_in_use() needs to actually try to create a
12255 # thread: pthread_create from libc will fail, whereas
12256 # pthread_create will actually create a thread.
12257 case "$host_os" in
12258 solaris* | hpux*)
12259
Scott James Remnantfde82c92009-09-22 10:04:15 -070012260$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012261
12262 esac
12263
12264fi
12265
12266 else
12267 # Some library is needed. Try libpthread and libc_r.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012269$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012270if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012271 $as_echo_n "(cached) " >&6
12272else
12273 ac_check_lib_save_LIBS=$LIBS
12274LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012276/* end confdefs.h. */
12277
12278/* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12281#ifdef __cplusplus
12282extern "C"
12283#endif
12284char pthread_kill ();
12285int
12286main ()
12287{
12288return pthread_kill ();
12289 ;
12290 return 0;
12291}
12292_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012293if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012294 ac_cv_lib_pthread_pthread_kill=yes
12295else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012296 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012297fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012298rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012300LIBS=$ac_check_lib_save_LIBS
12301fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012303$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012304if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012305 gl_have_pthread=yes
12306 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
12307 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12308fi
12309
12310 if test -z "$gl_have_pthread"; then
12311 # For FreeBSD 4.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012313$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012314if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012315 $as_echo_n "(cached) " >&6
12316else
12317 ac_check_lib_save_LIBS=$LIBS
12318LIBS="-lc_r $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012320/* end confdefs.h. */
12321
12322/* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12325#ifdef __cplusplus
12326extern "C"
12327#endif
12328char pthread_kill ();
12329int
12330main ()
12331{
12332return pthread_kill ();
12333 ;
12334 return 0;
12335}
12336_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012337if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012338 ac_cv_lib_c_r_pthread_kill=yes
12339else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012340 ac_cv_lib_c_r_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012341fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012342rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012344LIBS=$ac_check_lib_save_LIBS
12345fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012347$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012348if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012349 gl_have_pthread=yes
12350 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12351 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12352fi
12353
12354 fi
12355 fi
12356 if test -n "$gl_have_pthread"; then
12357 gl_threads_api=posix
12358
Scott James Remnantfde82c92009-09-22 10:04:15 -070012359$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012360
12361 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12362 if test $gl_have_weak = yes; then
12363
Scott James Remnantfde82c92009-09-22 10:04:15 -070012364$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012365
12366 LIBTHREAD=
12367 LTLIBTHREAD=
12368 fi
12369 fi
12370 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
12371 # pthread_rwlock_* functions.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012372 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
12373"
12374if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012375
Scott James Remnantfde82c92009-09-22 10:04:15 -070012376$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012377
12378fi
12379
12380 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012382/* end confdefs.h. */
12383#include <pthread.h>
12384int
12385main ()
12386{
12387#if __FreeBSD__ == 4
12388error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
12389#else
12390int x = (int)PTHREAD_MUTEX_RECURSIVE;
12391return !x;
12392#endif
12393 ;
12394 return 0;
12395}
12396_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012397if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012398
Scott James Remnantfde82c92009-09-22 10:04:15 -070012399$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012400
12401fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010012402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 fi
12405 fi
12406 if test -z "$gl_have_pthread"; then
12407 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12408 gl_have_solaristhread=
12409 gl_save_LIBS="$LIBS"
12410 LIBS="$LIBS -lthread"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012412/* end confdefs.h. */
12413#include <thread.h>
12414#include <synch.h>
12415int
12416main ()
12417{
12418thr_self();
12419 ;
12420 return 0;
12421}
12422_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012423if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012424 gl_have_solaristhread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012425fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012426rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012428 LIBS="$gl_save_LIBS"
12429 if test -n "$gl_have_solaristhread"; then
12430 gl_threads_api=solaris
12431 LIBTHREAD=-lthread
12432 LTLIBTHREAD=-lthread
12433 LIBMULTITHREAD="$LIBTHREAD"
12434 LTLIBMULTITHREAD="$LTLIBTHREAD"
12435
Scott James Remnantfde82c92009-09-22 10:04:15 -070012436$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012437
12438 if test $gl_have_weak = yes; then
12439
Scott James Remnantfde82c92009-09-22 10:04:15 -070012440$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012441
12442 LIBTHREAD=
12443 LTLIBTHREAD=
12444 fi
12445 fi
12446 fi
12447 fi
12448 if test "$gl_use_threads" = pth; then
12449 gl_save_CPPFLAGS="$CPPFLAGS"
12450
12451
12452
12453
12454
Scott James Remnantfde82c92009-09-22 10:04:15 -070012455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012456$as_echo_n "checking how to link with libpth... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012457if test "${ac_cv_libpth_libs+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012458 $as_echo_n "(cached) " >&6
12459else
12460
12461
12462
12463
12464 use_additional=yes
12465
12466 acl_save_prefix="$prefix"
12467 prefix="$acl_final_prefix"
12468 acl_save_exec_prefix="$exec_prefix"
12469 exec_prefix="$acl_final_exec_prefix"
12470
12471 eval additional_includedir=\"$includedir\"
12472 eval additional_libdir=\"$libdir\"
12473
12474 exec_prefix="$acl_save_exec_prefix"
12475 prefix="$acl_save_prefix"
12476
12477
12478# Check whether --with-libpth-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012479if test "${with_libpth_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012480 withval=$with_libpth_prefix;
12481 if test "X$withval" = "Xno"; then
12482 use_additional=no
12483 else
12484 if test "X$withval" = "X"; then
12485
12486 acl_save_prefix="$prefix"
12487 prefix="$acl_final_prefix"
12488 acl_save_exec_prefix="$exec_prefix"
12489 exec_prefix="$acl_final_exec_prefix"
12490
12491 eval additional_includedir=\"$includedir\"
12492 eval additional_libdir=\"$libdir\"
12493
12494 exec_prefix="$acl_save_exec_prefix"
12495 prefix="$acl_save_prefix"
12496
12497 else
12498 additional_includedir="$withval/include"
12499 additional_libdir="$withval/$acl_libdirstem"
12500 fi
12501 fi
12502
12503fi
12504
12505 LIBPTH=
12506 LTLIBPTH=
12507 INCPTH=
12508 rpathdirs=
12509 ltrpathdirs=
12510 names_already_handled=
12511 names_next_round='pth '
12512 while test -n "$names_next_round"; do
12513 names_this_round="$names_next_round"
12514 names_next_round=
12515 for name in $names_this_round; do
12516 already_handled=
12517 for n in $names_already_handled; do
12518 if test "$n" = "$name"; then
12519 already_handled=yes
12520 break
12521 fi
12522 done
12523 if test -z "$already_handled"; then
12524 names_already_handled="$names_already_handled $name"
12525 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12526 eval value=\"\$HAVE_LIB$uppername\"
12527 if test -n "$value"; then
12528 if test "$value" = yes; then
12529 eval value=\"\$LIB$uppername\"
12530 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12531 eval value=\"\$LTLIB$uppername\"
12532 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12533 else
12534 :
12535 fi
12536 else
12537 found_dir=
12538 found_la=
12539 found_so=
12540 found_a=
12541 if test $use_additional = yes; then
12542 if test -n "$shlibext" \
12543 && { test -f "$additional_libdir/lib$name.$shlibext" \
12544 || { test "$shlibext" = dll \
12545 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12546 found_dir="$additional_libdir"
12547 if test -f "$additional_libdir/lib$name.$shlibext"; then
12548 found_so="$additional_libdir/lib$name.$shlibext"
12549 else
12550 found_so="$additional_libdir/lib$name.dll.a"
12551 fi
12552 if test -f "$additional_libdir/lib$name.la"; then
12553 found_la="$additional_libdir/lib$name.la"
12554 fi
12555 else
12556 if test -f "$additional_libdir/lib$name.$libext"; then
12557 found_dir="$additional_libdir"
12558 found_a="$additional_libdir/lib$name.$libext"
12559 if test -f "$additional_libdir/lib$name.la"; then
12560 found_la="$additional_libdir/lib$name.la"
12561 fi
12562 fi
12563 fi
12564 fi
12565 if test "X$found_dir" = "X"; then
12566 for x in $LDFLAGS $LTLIBPTH; do
12567
12568 acl_save_prefix="$prefix"
12569 prefix="$acl_final_prefix"
12570 acl_save_exec_prefix="$exec_prefix"
12571 exec_prefix="$acl_final_exec_prefix"
12572 eval x=\"$x\"
12573 exec_prefix="$acl_save_exec_prefix"
12574 prefix="$acl_save_prefix"
12575
12576 case "$x" in
12577 -L*)
12578 dir=`echo "X$x" | sed -e 's/^X-L//'`
12579 if test -n "$shlibext" \
12580 && { test -f "$dir/lib$name.$shlibext" \
12581 || { test "$shlibext" = dll \
12582 && test -f "$dir/lib$name.dll.a"; }; }; then
12583 found_dir="$dir"
12584 if test -f "$dir/lib$name.$shlibext"; then
12585 found_so="$dir/lib$name.$shlibext"
12586 else
12587 found_so="$dir/lib$name.dll.a"
12588 fi
12589 if test -f "$dir/lib$name.la"; then
12590 found_la="$dir/lib$name.la"
12591 fi
12592 else
12593 if test -f "$dir/lib$name.$libext"; then
12594 found_dir="$dir"
12595 found_a="$dir/lib$name.$libext"
12596 if test -f "$dir/lib$name.la"; then
12597 found_la="$dir/lib$name.la"
12598 fi
12599 fi
12600 fi
12601 ;;
12602 esac
12603 if test "X$found_dir" != "X"; then
12604 break
12605 fi
12606 done
12607 fi
12608 if test "X$found_dir" != "X"; then
12609 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12610 if test "X$found_so" != "X"; then
12611 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12612 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12613 else
12614 haveit=
12615 for x in $ltrpathdirs; do
12616 if test "X$x" = "X$found_dir"; then
12617 haveit=yes
12618 break
12619 fi
12620 done
12621 if test -z "$haveit"; then
12622 ltrpathdirs="$ltrpathdirs $found_dir"
12623 fi
12624 if test "$hardcode_direct" = yes; then
12625 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12626 else
12627 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12628 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12629 haveit=
12630 for x in $rpathdirs; do
12631 if test "X$x" = "X$found_dir"; then
12632 haveit=yes
12633 break
12634 fi
12635 done
12636 if test -z "$haveit"; then
12637 rpathdirs="$rpathdirs $found_dir"
12638 fi
12639 else
12640 haveit=
12641 for x in $LDFLAGS $LIBPTH; do
12642
12643 acl_save_prefix="$prefix"
12644 prefix="$acl_final_prefix"
12645 acl_save_exec_prefix="$exec_prefix"
12646 exec_prefix="$acl_final_exec_prefix"
12647 eval x=\"$x\"
12648 exec_prefix="$acl_save_exec_prefix"
12649 prefix="$acl_save_prefix"
12650
12651 if test "X$x" = "X-L$found_dir"; then
12652 haveit=yes
12653 break
12654 fi
12655 done
12656 if test -z "$haveit"; then
12657 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12658 fi
12659 if test "$hardcode_minus_L" != no; then
12660 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12661 else
12662 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12663 fi
12664 fi
12665 fi
12666 fi
12667 else
12668 if test "X$found_a" != "X"; then
12669 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12670 else
12671 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12672 fi
12673 fi
12674 additional_includedir=
12675 case "$found_dir" in
12676 */$acl_libdirstem | */$acl_libdirstem/)
12677 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12678 additional_includedir="$basedir/include"
12679 ;;
12680 esac
12681 if test "X$additional_includedir" != "X"; then
12682 if test "X$additional_includedir" != "X/usr/include"; then
12683 haveit=
12684 if test "X$additional_includedir" = "X/usr/local/include"; then
12685 if test -n "$GCC"; then
12686 case $host_os in
12687 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12688 esac
12689 fi
12690 fi
12691 if test -z "$haveit"; then
12692 for x in $CPPFLAGS $INCPTH; do
12693
12694 acl_save_prefix="$prefix"
12695 prefix="$acl_final_prefix"
12696 acl_save_exec_prefix="$exec_prefix"
12697 exec_prefix="$acl_final_exec_prefix"
12698 eval x=\"$x\"
12699 exec_prefix="$acl_save_exec_prefix"
12700 prefix="$acl_save_prefix"
12701
12702 if test "X$x" = "X-I$additional_includedir"; then
12703 haveit=yes
12704 break
12705 fi
12706 done
12707 if test -z "$haveit"; then
12708 if test -d "$additional_includedir"; then
12709 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12710 fi
12711 fi
12712 fi
12713 fi
12714 fi
12715 if test -n "$found_la"; then
12716 save_libdir="$libdir"
12717 case "$found_la" in
12718 */* | *\\*) . "$found_la" ;;
12719 *) . "./$found_la" ;;
12720 esac
12721 libdir="$save_libdir"
12722 for dep in $dependency_libs; do
12723 case "$dep" in
12724 -L*)
12725 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12726 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12727 haveit=
12728 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12729 if test -n "$GCC"; then
12730 case $host_os in
12731 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12732 esac
12733 fi
12734 fi
12735 if test -z "$haveit"; then
12736 haveit=
12737 for x in $LDFLAGS $LIBPTH; do
12738
12739 acl_save_prefix="$prefix"
12740 prefix="$acl_final_prefix"
12741 acl_save_exec_prefix="$exec_prefix"
12742 exec_prefix="$acl_final_exec_prefix"
12743 eval x=\"$x\"
12744 exec_prefix="$acl_save_exec_prefix"
12745 prefix="$acl_save_prefix"
12746
12747 if test "X$x" = "X-L$additional_libdir"; then
12748 haveit=yes
12749 break
12750 fi
12751 done
12752 if test -z "$haveit"; then
12753 if test -d "$additional_libdir"; then
12754 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12755 fi
12756 fi
12757 haveit=
12758 for x in $LDFLAGS $LTLIBPTH; do
12759
12760 acl_save_prefix="$prefix"
12761 prefix="$acl_final_prefix"
12762 acl_save_exec_prefix="$exec_prefix"
12763 exec_prefix="$acl_final_exec_prefix"
12764 eval x=\"$x\"
12765 exec_prefix="$acl_save_exec_prefix"
12766 prefix="$acl_save_prefix"
12767
12768 if test "X$x" = "X-L$additional_libdir"; then
12769 haveit=yes
12770 break
12771 fi
12772 done
12773 if test -z "$haveit"; then
12774 if test -d "$additional_libdir"; then
12775 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12776 fi
12777 fi
12778 fi
12779 fi
12780 ;;
12781 -R*)
12782 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12783 if test "$enable_rpath" != no; then
12784 haveit=
12785 for x in $rpathdirs; do
12786 if test "X$x" = "X$dir"; then
12787 haveit=yes
12788 break
12789 fi
12790 done
12791 if test -z "$haveit"; then
12792 rpathdirs="$rpathdirs $dir"
12793 fi
12794 haveit=
12795 for x in $ltrpathdirs; do
12796 if test "X$x" = "X$dir"; then
12797 haveit=yes
12798 break
12799 fi
12800 done
12801 if test -z "$haveit"; then
12802 ltrpathdirs="$ltrpathdirs $dir"
12803 fi
12804 fi
12805 ;;
12806 -l*)
12807 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12808 ;;
12809 *.la)
12810 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12811 ;;
12812 *)
12813 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12814 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12815 ;;
12816 esac
12817 done
12818 fi
12819 else
12820 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12821 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12822 fi
12823 fi
12824 fi
12825 done
12826 done
12827 if test "X$rpathdirs" != "X"; then
12828 if test -n "$hardcode_libdir_separator"; then
12829 alldirs=
12830 for found_dir in $rpathdirs; do
12831 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12832 done
12833 acl_save_libdir="$libdir"
12834 libdir="$alldirs"
12835 eval flag=\"$hardcode_libdir_flag_spec\"
12836 libdir="$acl_save_libdir"
12837 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12838 else
12839 for found_dir in $rpathdirs; do
12840 acl_save_libdir="$libdir"
12841 libdir="$found_dir"
12842 eval flag=\"$hardcode_libdir_flag_spec\"
12843 libdir="$acl_save_libdir"
12844 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12845 done
12846 fi
12847 fi
12848 if test "X$ltrpathdirs" != "X"; then
12849 for found_dir in $ltrpathdirs; do
12850 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12851 done
12852 fi
12853
12854 ac_cv_libpth_libs="$LIBPTH"
12855 ac_cv_libpth_ltlibs="$LTLIBPTH"
12856 ac_cv_libpth_cppflags="$INCPTH"
12857
12858fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012860$as_echo "$ac_cv_libpth_libs" >&6; }
12861 LIBPTH="$ac_cv_libpth_libs"
12862 LTLIBPTH="$ac_cv_libpth_ltlibs"
12863 INCPTH="$ac_cv_libpth_cppflags"
12864
12865 for element in $INCPTH; do
12866 haveit=
12867 for x in $CPPFLAGS; do
12868
12869 acl_save_prefix="$prefix"
12870 prefix="$acl_final_prefix"
12871 acl_save_exec_prefix="$exec_prefix"
12872 exec_prefix="$acl_final_exec_prefix"
12873 eval x=\"$x\"
12874 exec_prefix="$acl_save_exec_prefix"
12875 prefix="$acl_save_prefix"
12876
12877 if test "X$x" = "X$element"; then
12878 haveit=yes
12879 break
12880 fi
12881 done
12882 if test -z "$haveit"; then
12883 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12884 fi
12885 done
12886
12887
12888
12889 HAVE_LIBPTH=yes
12890
12891
12892
12893 gl_have_pth=
12894 gl_save_LIBS="$LIBS"
12895 LIBS="$LIBS -lpth"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012897/* end confdefs.h. */
12898#include <pth.h>
12899int
12900main ()
12901{
12902pth_self();
12903 ;
12904 return 0;
12905}
12906_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012907if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012908 gl_have_pth=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012909fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012910rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012912 LIBS="$gl_save_LIBS"
12913 if test -n "$gl_have_pth"; then
12914 gl_threads_api=pth
12915 LIBTHREAD="$LIBPTH"
12916 LTLIBTHREAD="$LTLIBPTH"
12917 LIBMULTITHREAD="$LIBTHREAD"
12918 LTLIBMULTITHREAD="$LTLIBTHREAD"
12919
Scott James Remnantfde82c92009-09-22 10:04:15 -070012920$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012921
12922 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12923 if test $gl_have_weak = yes; then
12924
Scott James Remnantfde82c92009-09-22 10:04:15 -070012925$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012926
12927 LIBTHREAD=
12928 LTLIBTHREAD=
12929 fi
12930 fi
12931 else
12932 CPPFLAGS="$gl_save_CPPFLAGS"
12933 fi
12934 fi
12935 if test -z "$gl_have_pthread"; then
12936 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
12937 if { case "$host_os" in
12938 mingw*) true;;
12939 *) false;;
12940 esac
12941 }; then
12942 gl_threads_api=win32
12943
Scott James Remnantfde82c92009-09-22 10:04:15 -070012944$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012945
12946 fi
12947 fi
12948 fi
12949 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012951$as_echo_n "checking for multithread API to use... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012953$as_echo "$gl_threads_api" >&6; }
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973 use_additional=yes
12974
12975 acl_save_prefix="$prefix"
12976 prefix="$acl_final_prefix"
12977 acl_save_exec_prefix="$exec_prefix"
12978 exec_prefix="$acl_final_exec_prefix"
12979
12980 eval additional_includedir=\"$includedir\"
12981 eval additional_libdir=\"$libdir\"
12982
12983 exec_prefix="$acl_save_exec_prefix"
12984 prefix="$acl_save_prefix"
12985
12986
12987# Check whether --with-libiconv-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012988if test "${with_libiconv_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012989 withval=$with_libiconv_prefix;
12990 if test "X$withval" = "Xno"; then
12991 use_additional=no
12992 else
12993 if test "X$withval" = "X"; then
12994
12995 acl_save_prefix="$prefix"
12996 prefix="$acl_final_prefix"
12997 acl_save_exec_prefix="$exec_prefix"
12998 exec_prefix="$acl_final_exec_prefix"
12999
13000 eval additional_includedir=\"$includedir\"
13001 eval additional_libdir=\"$libdir\"
13002
13003 exec_prefix="$acl_save_exec_prefix"
13004 prefix="$acl_save_prefix"
13005
13006 else
13007 additional_includedir="$withval/include"
13008 additional_libdir="$withval/$acl_libdirstem"
13009 fi
13010 fi
13011
13012fi
13013
13014 LIBICONV=
13015 LTLIBICONV=
13016 INCICONV=
13017 rpathdirs=
13018 ltrpathdirs=
13019 names_already_handled=
13020 names_next_round='iconv '
13021 while test -n "$names_next_round"; do
13022 names_this_round="$names_next_round"
13023 names_next_round=
13024 for name in $names_this_round; do
13025 already_handled=
13026 for n in $names_already_handled; do
13027 if test "$n" = "$name"; then
13028 already_handled=yes
13029 break
13030 fi
13031 done
13032 if test -z "$already_handled"; then
13033 names_already_handled="$names_already_handled $name"
13034 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13035 eval value=\"\$HAVE_LIB$uppername\"
13036 if test -n "$value"; then
13037 if test "$value" = yes; then
13038 eval value=\"\$LIB$uppername\"
13039 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13040 eval value=\"\$LTLIB$uppername\"
13041 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13042 else
13043 :
13044 fi
13045 else
13046 found_dir=
13047 found_la=
13048 found_so=
13049 found_a=
13050 if test $use_additional = yes; then
13051 if test -n "$shlibext" \
13052 && { test -f "$additional_libdir/lib$name.$shlibext" \
13053 || { test "$shlibext" = dll \
13054 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13055 found_dir="$additional_libdir"
13056 if test -f "$additional_libdir/lib$name.$shlibext"; then
13057 found_so="$additional_libdir/lib$name.$shlibext"
13058 else
13059 found_so="$additional_libdir/lib$name.dll.a"
13060 fi
13061 if test -f "$additional_libdir/lib$name.la"; then
13062 found_la="$additional_libdir/lib$name.la"
13063 fi
13064 else
13065 if test -f "$additional_libdir/lib$name.$libext"; then
13066 found_dir="$additional_libdir"
13067 found_a="$additional_libdir/lib$name.$libext"
13068 if test -f "$additional_libdir/lib$name.la"; then
13069 found_la="$additional_libdir/lib$name.la"
13070 fi
13071 fi
13072 fi
13073 fi
13074 if test "X$found_dir" = "X"; then
13075 for x in $LDFLAGS $LTLIBICONV; do
13076
13077 acl_save_prefix="$prefix"
13078 prefix="$acl_final_prefix"
13079 acl_save_exec_prefix="$exec_prefix"
13080 exec_prefix="$acl_final_exec_prefix"
13081 eval x=\"$x\"
13082 exec_prefix="$acl_save_exec_prefix"
13083 prefix="$acl_save_prefix"
13084
13085 case "$x" in
13086 -L*)
13087 dir=`echo "X$x" | sed -e 's/^X-L//'`
13088 if test -n "$shlibext" \
13089 && { test -f "$dir/lib$name.$shlibext" \
13090 || { test "$shlibext" = dll \
13091 && test -f "$dir/lib$name.dll.a"; }; }; then
13092 found_dir="$dir"
13093 if test -f "$dir/lib$name.$shlibext"; then
13094 found_so="$dir/lib$name.$shlibext"
13095 else
13096 found_so="$dir/lib$name.dll.a"
13097 fi
13098 if test -f "$dir/lib$name.la"; then
13099 found_la="$dir/lib$name.la"
13100 fi
13101 else
13102 if test -f "$dir/lib$name.$libext"; then
13103 found_dir="$dir"
13104 found_a="$dir/lib$name.$libext"
13105 if test -f "$dir/lib$name.la"; then
13106 found_la="$dir/lib$name.la"
13107 fi
13108 fi
13109 fi
13110 ;;
13111 esac
13112 if test "X$found_dir" != "X"; then
13113 break
13114 fi
13115 done
13116 fi
13117 if test "X$found_dir" != "X"; then
13118 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13119 if test "X$found_so" != "X"; then
13120 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13121 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13122 else
13123 haveit=
13124 for x in $ltrpathdirs; do
13125 if test "X$x" = "X$found_dir"; then
13126 haveit=yes
13127 break
13128 fi
13129 done
13130 if test -z "$haveit"; then
13131 ltrpathdirs="$ltrpathdirs $found_dir"
13132 fi
13133 if test "$hardcode_direct" = yes; then
13134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13135 else
13136 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13137 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13138 haveit=
13139 for x in $rpathdirs; do
13140 if test "X$x" = "X$found_dir"; then
13141 haveit=yes
13142 break
13143 fi
13144 done
13145 if test -z "$haveit"; then
13146 rpathdirs="$rpathdirs $found_dir"
13147 fi
13148 else
13149 haveit=
13150 for x in $LDFLAGS $LIBICONV; do
13151
13152 acl_save_prefix="$prefix"
13153 prefix="$acl_final_prefix"
13154 acl_save_exec_prefix="$exec_prefix"
13155 exec_prefix="$acl_final_exec_prefix"
13156 eval x=\"$x\"
13157 exec_prefix="$acl_save_exec_prefix"
13158 prefix="$acl_save_prefix"
13159
13160 if test "X$x" = "X-L$found_dir"; then
13161 haveit=yes
13162 break
13163 fi
13164 done
13165 if test -z "$haveit"; then
13166 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13167 fi
13168 if test "$hardcode_minus_L" != no; then
13169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13170 else
13171 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13172 fi
13173 fi
13174 fi
13175 fi
13176 else
13177 if test "X$found_a" != "X"; then
13178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13179 else
13180 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13181 fi
13182 fi
13183 additional_includedir=
13184 case "$found_dir" in
13185 */$acl_libdirstem | */$acl_libdirstem/)
13186 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13187 additional_includedir="$basedir/include"
13188 ;;
13189 esac
13190 if test "X$additional_includedir" != "X"; then
13191 if test "X$additional_includedir" != "X/usr/include"; then
13192 haveit=
13193 if test "X$additional_includedir" = "X/usr/local/include"; then
13194 if test -n "$GCC"; then
13195 case $host_os in
13196 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13197 esac
13198 fi
13199 fi
13200 if test -z "$haveit"; then
13201 for x in $CPPFLAGS $INCICONV; do
13202
13203 acl_save_prefix="$prefix"
13204 prefix="$acl_final_prefix"
13205 acl_save_exec_prefix="$exec_prefix"
13206 exec_prefix="$acl_final_exec_prefix"
13207 eval x=\"$x\"
13208 exec_prefix="$acl_save_exec_prefix"
13209 prefix="$acl_save_prefix"
13210
13211 if test "X$x" = "X-I$additional_includedir"; then
13212 haveit=yes
13213 break
13214 fi
13215 done
13216 if test -z "$haveit"; then
13217 if test -d "$additional_includedir"; then
13218 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13219 fi
13220 fi
13221 fi
13222 fi
13223 fi
13224 if test -n "$found_la"; then
13225 save_libdir="$libdir"
13226 case "$found_la" in
13227 */* | *\\*) . "$found_la" ;;
13228 *) . "./$found_la" ;;
13229 esac
13230 libdir="$save_libdir"
13231 for dep in $dependency_libs; do
13232 case "$dep" in
13233 -L*)
13234 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13235 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13236 haveit=
13237 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13238 if test -n "$GCC"; then
13239 case $host_os in
13240 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13241 esac
13242 fi
13243 fi
13244 if test -z "$haveit"; then
13245 haveit=
13246 for x in $LDFLAGS $LIBICONV; do
13247
13248 acl_save_prefix="$prefix"
13249 prefix="$acl_final_prefix"
13250 acl_save_exec_prefix="$exec_prefix"
13251 exec_prefix="$acl_final_exec_prefix"
13252 eval x=\"$x\"
13253 exec_prefix="$acl_save_exec_prefix"
13254 prefix="$acl_save_prefix"
13255
13256 if test "X$x" = "X-L$additional_libdir"; then
13257 haveit=yes
13258 break
13259 fi
13260 done
13261 if test -z "$haveit"; then
13262 if test -d "$additional_libdir"; then
13263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13264 fi
13265 fi
13266 haveit=
13267 for x in $LDFLAGS $LTLIBICONV; do
13268
13269 acl_save_prefix="$prefix"
13270 prefix="$acl_final_prefix"
13271 acl_save_exec_prefix="$exec_prefix"
13272 exec_prefix="$acl_final_exec_prefix"
13273 eval x=\"$x\"
13274 exec_prefix="$acl_save_exec_prefix"
13275 prefix="$acl_save_prefix"
13276
13277 if test "X$x" = "X-L$additional_libdir"; then
13278 haveit=yes
13279 break
13280 fi
13281 done
13282 if test -z "$haveit"; then
13283 if test -d "$additional_libdir"; then
13284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13285 fi
13286 fi
13287 fi
13288 fi
13289 ;;
13290 -R*)
13291 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13292 if test "$enable_rpath" != no; then
13293 haveit=
13294 for x in $rpathdirs; do
13295 if test "X$x" = "X$dir"; then
13296 haveit=yes
13297 break
13298 fi
13299 done
13300 if test -z "$haveit"; then
13301 rpathdirs="$rpathdirs $dir"
13302 fi
13303 haveit=
13304 for x in $ltrpathdirs; do
13305 if test "X$x" = "X$dir"; then
13306 haveit=yes
13307 break
13308 fi
13309 done
13310 if test -z "$haveit"; then
13311 ltrpathdirs="$ltrpathdirs $dir"
13312 fi
13313 fi
13314 ;;
13315 -l*)
13316 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13317 ;;
13318 *.la)
13319 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13320 ;;
13321 *)
13322 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13323 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13324 ;;
13325 esac
13326 done
13327 fi
13328 else
13329 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13331 fi
13332 fi
13333 fi
13334 done
13335 done
13336 if test "X$rpathdirs" != "X"; then
13337 if test -n "$hardcode_libdir_separator"; then
13338 alldirs=
13339 for found_dir in $rpathdirs; do
13340 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13341 done
13342 acl_save_libdir="$libdir"
13343 libdir="$alldirs"
13344 eval flag=\"$hardcode_libdir_flag_spec\"
13345 libdir="$acl_save_libdir"
13346 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13347 else
13348 for found_dir in $rpathdirs; do
13349 acl_save_libdir="$libdir"
13350 libdir="$found_dir"
13351 eval flag=\"$hardcode_libdir_flag_spec\"
13352 libdir="$acl_save_libdir"
13353 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13354 done
13355 fi
13356 fi
13357 if test "X$ltrpathdirs" != "X"; then
13358 for found_dir in $ltrpathdirs; do
13359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13360 done
13361 fi
13362
13363
13364
13365
13366
Scott James Remnantfde82c92009-09-22 10:04:15 -070013367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013368/* end confdefs.h. */
13369int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13370int
13371main ()
13372{
13373
13374 ;
13375 return 0;
13376}
13377_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013378if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013379
Scott James Remnantfde82c92009-09-22 10:04:15 -070013380$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013381
13382fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013383rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013385
Scott James Remnantfde82c92009-09-22 10:04:15 -070013386 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
13387do :
13388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13390eval as_val=\$$as_ac_Header
13391 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013392 cat >>confdefs.h <<_ACEOF
13393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13394_ACEOF
13395
13396fi
13397
13398done
13399
Scott James Remnantfde82c92009-09-22 10:04:15 -070013400 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
Scott James Remnant65f683d2009-07-14 13:05:17 +010013401 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
13402 argz_next __fsetlocking
Scott James Remnantfde82c92009-09-22 10:04:15 -070013403do :
13404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13405ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13406eval as_val=\$$as_ac_var
13407 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013408 cat >>confdefs.h <<_ACEOF
13409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13410_ACEOF
13411
13412fi
13413done
13414
13415
13416
Scott James Remnantfde82c92009-09-22 10:04:15 -070013417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013418$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013419if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013420 $as_echo_n "(cached) " >&6
13421else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013423/* end confdefs.h. */
13424#include <stdio.h>
13425int
13426main ()
13427{
13428
13429#ifndef feof_unlocked
13430 char *p = (char *) feof_unlocked;
13431#endif
13432
13433 ;
13434 return 0;
13435}
13436_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013437if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013438 ac_cv_have_decl_feof_unlocked=yes
13439else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013440 ac_cv_have_decl_feof_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013441fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13443fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013445$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
13446 if test $ac_cv_have_decl_feof_unlocked = yes; then
13447 gt_value=1
13448 else
13449 gt_value=0
13450 fi
13451
13452cat >>confdefs.h <<_ACEOF
13453#define HAVE_DECL_FEOF_UNLOCKED $gt_value
13454_ACEOF
13455
13456
13457
Scott James Remnantfde82c92009-09-22 10:04:15 -070013458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013459$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013460if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013461 $as_echo_n "(cached) " >&6
13462else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013464/* end confdefs.h. */
13465#include <stdio.h>
13466int
13467main ()
13468{
13469
13470#ifndef fgets_unlocked
13471 char *p = (char *) fgets_unlocked;
13472#endif
13473
13474 ;
13475 return 0;
13476}
13477_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013478if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013479 ac_cv_have_decl_fgets_unlocked=yes
13480else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013481 ac_cv_have_decl_fgets_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013482fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13484fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013486$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
13487 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13488 gt_value=1
13489 else
13490 gt_value=0
13491 fi
13492
13493cat >>confdefs.h <<_ACEOF
13494#define HAVE_DECL_FGETS_UNLOCKED $gt_value
13495_ACEOF
13496
13497
13498
13499
13500
13501
13502
13503
13504 am_save_CPPFLAGS="$CPPFLAGS"
13505
13506 for element in $INCICONV; do
13507 haveit=
13508 for x in $CPPFLAGS; do
13509
13510 acl_save_prefix="$prefix"
13511 prefix="$acl_final_prefix"
13512 acl_save_exec_prefix="$exec_prefix"
13513 exec_prefix="$acl_final_exec_prefix"
13514 eval x=\"$x\"
13515 exec_prefix="$acl_save_exec_prefix"
13516 prefix="$acl_save_prefix"
13517
13518 if test "X$x" = "X$element"; then
13519 haveit=yes
13520 break
13521 fi
13522 done
13523 if test -z "$haveit"; then
13524 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13525 fi
13526 done
13527
13528
Scott James Remnantfde82c92009-09-22 10:04:15 -070013529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013530$as_echo_n "checking for iconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013531if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013532 $as_echo_n "(cached) " >&6
13533else
13534
13535 am_cv_func_iconv="no, consider installing GNU libiconv"
13536 am_cv_lib_iconv=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070013537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013538/* end confdefs.h. */
13539#include <stdlib.h>
13540#include <iconv.h>
13541int
13542main ()
13543{
13544iconv_t cd = iconv_open("","");
13545 iconv(cd,NULL,NULL,NULL,NULL);
13546 iconv_close(cd);
13547 ;
13548 return 0;
13549}
13550_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013551if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013552 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013553fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013554rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013556 if test "$am_cv_func_iconv" != yes; then
13557 am_save_LIBS="$LIBS"
13558 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013560/* end confdefs.h. */
13561#include <stdlib.h>
13562#include <iconv.h>
13563int
13564main ()
13565{
13566iconv_t cd = iconv_open("","");
13567 iconv(cd,NULL,NULL,NULL,NULL);
13568 iconv_close(cd);
13569 ;
13570 return 0;
13571}
13572_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013573if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013574 am_cv_lib_iconv=yes
13575 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013576fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013577rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013579 LIBS="$am_save_LIBS"
13580 fi
13581
13582fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013584$as_echo "$am_cv_func_iconv" >&6; }
13585 if test "$am_cv_func_iconv" = yes; then
13586
Scott James Remnantfde82c92009-09-22 10:04:15 -070013587$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013588
13589 fi
13590 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013592$as_echo_n "checking how to link with libiconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013594$as_echo "$LIBICONV" >&6; }
13595 else
13596 CPPFLAGS="$am_save_CPPFLAGS"
13597 LIBICONV=
13598 LTLIBICONV=
13599 fi
13600
13601
13602
13603 if test "$am_cv_func_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013605$as_echo_n "checking for iconv declaration... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013606 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013607 $as_echo_n "(cached) " >&6
13608else
13609
Scott James Remnantfde82c92009-09-22 10:04:15 -070013610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013611/* end confdefs.h. */
13612
13613#include <stdlib.h>
13614#include <iconv.h>
13615extern
13616#ifdef __cplusplus
13617"C"
13618#endif
13619#if defined(__STDC__) || defined(__cplusplus)
13620size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13621#else
13622size_t iconv();
13623#endif
13624
13625int
13626main ()
13627{
13628
13629 ;
13630 return 0;
13631}
13632_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013633if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013634 am_cv_proto_iconv_arg1=""
13635else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013636 am_cv_proto_iconv_arg1="const"
Scott James Remnant65f683d2009-07-14 13:05:17 +010013637fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 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);"
13640fi
13641
13642 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070013643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Scott James Remnant65f683d2009-07-14 13:05:17 +010013644 }$am_cv_proto_iconv" >&5
13645$as_echo "${ac_t:-
13646 }$am_cv_proto_iconv" >&6; }
13647
13648cat >>confdefs.h <<_ACEOF
13649#define ICONV_CONST $am_cv_proto_iconv_arg1
13650_ACEOF
13651
13652 fi
13653
13654
Scott James Remnantfde82c92009-09-22 10:04:15 -070013655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013656$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013657if test "${gt_cv_nl_locale_name+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013658 $as_echo_n "(cached) " >&6
13659else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013661/* end confdefs.h. */
13662#include <langinfo.h>
13663#include <locale.h>
13664int
13665main ()
13666{
13667char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
13668 ;
13669 return 0;
13670}
13671_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013672if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013673 gt_cv_nl_locale_name=yes
13674else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013675 gt_cv_nl_locale_name=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013676fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013677rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013679
13680fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013682$as_echo "$gt_cv_nl_locale_name" >&6; }
13683 if test $gt_cv_nl_locale_name = yes; then
13684
Scott James Remnantfde82c92009-09-22 10:04:15 -070013685$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013686
13687 fi
13688
13689 for ac_prog in bison
13690do
13691 # Extract the first word of "$ac_prog", so it can be a program name with args.
13692set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070013693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013694$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013695if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013696 $as_echo_n "(cached) " >&6
13697else
13698 if test -n "$INTLBISON"; then
13699 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13700else
13701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13702for as_dir in $PATH
13703do
13704 IFS=$as_save_IFS
13705 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013706 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010013707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13708 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013710 break 2
13711 fi
13712done
Scott James Remnantfde82c92009-09-22 10:04:15 -070013713 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010013714IFS=$as_save_IFS
13715
13716fi
13717fi
13718INTLBISON=$ac_cv_prog_INTLBISON
13719if test -n "$INTLBISON"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013721$as_echo "$INTLBISON" >&6; }
13722else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013724$as_echo "no" >&6; }
13725fi
13726
13727
13728 test -n "$INTLBISON" && break
13729done
13730
13731 if test -z "$INTLBISON"; then
13732 ac_verc_fail=yes
13733 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013735$as_echo_n "checking version of bison... " >&6; }
13736 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13737 case $ac_prog_version in
13738 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13739 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13740 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13741 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13742 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070013743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013744$as_echo "$ac_prog_version" >&6; }
13745 fi
13746 if test $ac_verc_fail = yes; then
13747 INTLBISON=:
13748 fi
13749
13750
Scott James Remnantfde82c92009-09-22 10:04:15 -070013751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013752$as_echo_n "checking for long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013753if test "${ac_cv_type_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013754 $as_echo_n "(cached) " >&6
13755else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013757/* end confdefs.h. */
13758long long int ll = 9223372036854775807ll;
13759 long long int nll = -9223372036854775807LL;
13760 typedef int a[((-9223372036854775807LL < 0
13761 && 0 < 9223372036854775807ll)
13762 ? 1 : -1)];
13763 int i = 63;
13764int
13765main ()
13766{
13767long long int llmax = 9223372036854775807ll;
13768 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13769 | (llmax / ll) | (llmax % ll));
13770 ;
13771 return 0;
13772}
13773_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013774if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013775 ac_cv_type_long_long_int=yes
13776else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013777 ac_cv_type_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013778fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013779rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013781fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013783$as_echo "$ac_cv_type_long_long_int" >&6; }
13784 if test $ac_cv_type_long_long_int = yes; then
13785
Scott James Remnantfde82c92009-09-22 10:04:15 -070013786$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013787
13788 fi
13789
13790
Scott James Remnantfde82c92009-09-22 10:04:15 -070013791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013792$as_echo_n "checking for long double... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013793if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013794 $as_echo_n "(cached) " >&6
13795else
13796 if test "$GCC" = yes; then
13797 gt_cv_c_long_double=yes
13798 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013800/* end confdefs.h. */
13801
13802 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
13803 long double foo = 0.0;
13804 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13805 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
13806
13807int
13808main ()
13809{
13810
13811 ;
13812 return 0;
13813}
13814_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013815if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013816 gt_cv_c_long_double=yes
13817else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013818 gt_cv_c_long_double=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013819fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 fi
13822fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013824$as_echo "$gt_cv_c_long_double" >&6; }
13825 if test $gt_cv_c_long_double = yes; then
13826
Scott James Remnantfde82c92009-09-22 10:04:15 -070013827$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013828
13829 fi
13830
13831
Scott James Remnantfde82c92009-09-22 10:04:15 -070013832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013833$as_echo_n "checking for wchar_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013834if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013835 $as_echo_n "(cached) " >&6
13836else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013838/* end confdefs.h. */
13839#include <stddef.h>
13840 wchar_t foo = (wchar_t)'\0';
13841int
13842main ()
13843{
13844
13845 ;
13846 return 0;
13847}
13848_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013849if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013850 gt_cv_c_wchar_t=yes
13851else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013852 gt_cv_c_wchar_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013853fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013857$as_echo "$gt_cv_c_wchar_t" >&6; }
13858 if test $gt_cv_c_wchar_t = yes; then
13859
Scott James Remnantfde82c92009-09-22 10:04:15 -070013860$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013861
13862 fi
13863
13864
Scott James Remnantfde82c92009-09-22 10:04:15 -070013865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013866$as_echo_n "checking for wint_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013867if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013868 $as_echo_n "(cached) " >&6
13869else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013871/* end confdefs.h. */
13872#include <wchar.h>
13873 wint_t foo = (wchar_t)'\0';
13874int
13875main ()
13876{
13877
13878 ;
13879 return 0;
13880}
13881_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013882if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013883 gt_cv_c_wint_t=yes
13884else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013885 gt_cv_c_wint_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013886fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013890$as_echo "$gt_cv_c_wint_t" >&6; }
13891 if test $gt_cv_c_wint_t = yes; then
13892
Scott James Remnantfde82c92009-09-22 10:04:15 -070013893$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013894
13895 fi
13896
13897
13898
13899
Scott James Remnantfde82c92009-09-22 10:04:15 -070013900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013901$as_echo_n "checking for intmax_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013902if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013903 $as_echo_n "(cached) " >&6
13904else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013906/* end confdefs.h. */
13907
13908#include <stddef.h>
13909#include <stdlib.h>
13910#if HAVE_STDINT_H_WITH_UINTMAX
13911#include <stdint.h>
13912#endif
13913#if HAVE_INTTYPES_H_WITH_UINTMAX
13914#include <inttypes.h>
13915#endif
13916
13917int
13918main ()
13919{
13920intmax_t x = -1;
13921 return !x;
13922 ;
13923 return 0;
13924}
13925_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013926if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013927 gt_cv_c_intmax_t=yes
13928else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013929 gt_cv_c_intmax_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013930fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013934$as_echo "$gt_cv_c_intmax_t" >&6; }
13935 if test $gt_cv_c_intmax_t = yes; then
13936
Scott James Remnantfde82c92009-09-22 10:04:15 -070013937$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013938
13939 fi
13940
13941
13942
Scott James Remnantfde82c92009-09-22 10:04:15 -070013943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013944$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013945if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013946 $as_echo_n "(cached) " >&6
13947else
13948
Scott James Remnantfde82c92009-09-22 10:04:15 -070013949 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013950
Scott James Remnantfde82c92009-09-22 10:04:15 -070013951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013952/* end confdefs.h. */
13953
13954#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
13955 notposix
13956#endif
13957
13958_ACEOF
13959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070013960 $EGREP "notposix" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013961 gt_cv_func_printf_posix="guessing no"
13962else
13963 gt_cv_func_printf_posix="guessing yes"
13964fi
13965rm -f conftest*
13966
13967
13968else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013970/* end confdefs.h. */
13971
13972#include <stdio.h>
13973#include <string.h>
13974/* The string "%2$d %1$d", with dollar characters protected from the shell's
13975 dollar expansion (possibly an autoconf bug). */
13976static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
13977static char buf[100];
13978int main ()
13979{
13980 sprintf (buf, format, 33, 55);
13981 return (strcmp (buf, "55 33") != 0);
13982}
13983_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013984if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013985 gt_cv_func_printf_posix=yes
13986else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013987 gt_cv_func_printf_posix=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013988fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13990 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013991fi
13992
13993
Scott James Remnant65f683d2009-07-14 13:05:17 +010013994fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013996$as_echo "$gt_cv_func_printf_posix" >&6; }
13997 case $gt_cv_func_printf_posix in
13998 *yes)
13999
Scott James Remnantfde82c92009-09-22 10:04:15 -070014000$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014001
14002 ;;
14003 esac
14004
14005
Scott James Remnantfde82c92009-09-22 10:04:15 -070014006 { $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 +010014007$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014008if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014009 $as_echo_n "(cached) " >&6
14010else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014012/* end confdefs.h. */
14013
14014#include <features.h>
14015#ifdef __GNU_LIBRARY__
14016 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14017 Lucky GNU user
14018 #endif
14019#endif
14020
14021_ACEOF
14022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014023 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014024 ac_cv_gnu_library_2_1=yes
14025else
14026 ac_cv_gnu_library_2_1=no
14027fi
14028rm -f conftest*
14029
14030
14031
14032fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014034$as_echo "$ac_cv_gnu_library_2_1" >&6; }
14035
14036 GLIBC21="$ac_cv_gnu_library_2_1"
14037
14038
14039
Scott James Remnantfde82c92009-09-22 10:04:15 -070014040 for ac_header in stdint.h
14041do :
14042 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14043if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014044 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014045#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014046_ACEOF
14047
14048fi
14049
14050done
14051
Scott James Remnantfde82c92009-09-22 10:04:15 -070014052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014053$as_echo_n "checking for SIZE_MAX... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014054 if test "${gl_cv_size_max+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014055 $as_echo_n "(cached) " >&6
14056else
14057
14058 gl_cv_size_max=
Scott James Remnantfde82c92009-09-22 10:04:15 -070014059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014060/* end confdefs.h. */
14061
14062#include <limits.h>
14063#if HAVE_STDINT_H
14064#include <stdint.h>
14065#endif
14066#ifdef SIZE_MAX
14067Found it
14068#endif
14069
14070_ACEOF
14071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014072 $EGREP "Found it" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014073 gl_cv_size_max=yes
14074fi
14075rm -f conftest*
14076
14077 if test -z "$gl_cv_size_max"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014078 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
14079#include <limits.h>"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014080
Scott James Remnant65f683d2009-07-14 13:05:17 +010014081else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014082 size_t_bits_minus_1=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014083fi
14084
Scott James Remnantfde82c92009-09-22 10:04:15 -070014085
14086 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14087
Scott James Remnant65f683d2009-07-14 13:05:17 +010014088else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014089 fits_in_uint=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014090fi
14091
Scott James Remnant65f683d2009-07-14 13:05:17 +010014092
14093 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14094 if test $fits_in_uint = 1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014096/* end confdefs.h. */
14097#include <stddef.h>
14098 extern size_t foo;
14099 extern unsigned long foo;
14100
14101int
14102main ()
14103{
14104
14105 ;
14106 return 0;
14107}
14108_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014109if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014110 fits_in_uint=0
Scott James Remnant65f683d2009-07-14 13:05:17 +010014111fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 fi
14114 if test $fits_in_uint = 1; then
14115 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14116 else
14117 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14118 fi
14119 else
14120 gl_cv_size_max='((size_t)~(size_t)0)'
14121 fi
14122 fi
14123
14124fi
14125
Scott James Remnantfde82c92009-09-22 10:04:15 -070014126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014127$as_echo "$gl_cv_size_max" >&6; }
14128 if test "$gl_cv_size_max" != yes; then
14129
14130cat >>confdefs.h <<_ACEOF
14131#define SIZE_MAX $gl_cv_size_max
14132_ACEOF
14133
14134 fi
14135
14136
14137
14138
Scott James Remnantfde82c92009-09-22 10:04:15 -070014139 for ac_header in stdint.h
14140do :
14141 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14142if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014143 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014144#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014145_ACEOF
14146
14147fi
14148
14149done
14150
14151
14152
Scott James Remnantfde82c92009-09-22 10:04:15 -070014153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014154$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014155if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014156 $as_echo_n "(cached) " >&6
14157else
14158 gt_save_LIBS="$LIBS"
14159 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014161/* end confdefs.h. */
14162#include <CoreFoundation/CFPreferences.h>
14163int
14164main ()
14165{
14166CFPreferencesCopyAppValue(NULL, NULL)
14167 ;
14168 return 0;
14169}
14170_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014171if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014172 gt_cv_func_CFPreferencesCopyAppValue=yes
14173else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014174 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014175fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014176rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014178 LIBS="$gt_save_LIBS"
14179fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014181$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14182 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14183
Scott James Remnantfde82c92009-09-22 10:04:15 -070014184$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014185
14186 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014188$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014189if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014190 $as_echo_n "(cached) " >&6
14191else
14192 gt_save_LIBS="$LIBS"
14193 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014195/* end confdefs.h. */
14196#include <CoreFoundation/CFLocale.h>
14197int
14198main ()
14199{
14200CFLocaleCopyCurrent();
14201 ;
14202 return 0;
14203}
14204_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014205if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014206 gt_cv_func_CFLocaleCopyCurrent=yes
14207else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014208 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014209fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014210rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014212 LIBS="$gt_save_LIBS"
14213fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014215$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14216 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14217
Scott James Remnantfde82c92009-09-22 10:04:15 -070014218$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014219
14220 fi
14221 INTL_MACOSX_LIBS=
14222 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14223 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14224 fi
14225
14226
14227
14228
14229
14230
14231
Scott James Remnantfde82c92009-09-22 10:04:15 -070014232 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14233if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014234
Scott James Remnant2a66c572009-09-15 03:19:16 +010014235else
14236
Scott James Remnantfde82c92009-09-22 10:04:15 -070014237$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant2a66c572009-09-15 03:19:16 +010014238
14239
14240fi
14241
Scott James Remnantfde82c92009-09-22 10:04:15 -070014242 for ac_header in stddef.h stdlib.h string.h
14243do :
14244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14245ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14246eval as_val=\$$as_ac_Header
14247 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014248 cat >>confdefs.h <<_ACEOF
14249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14250_ACEOF
14251
14252fi
14253
14254done
14255
Scott James Remnantfde82c92009-09-22 10:04:15 -070014256 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
14257do :
14258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14260eval as_val=\$$as_ac_var
14261 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014262 cat >>confdefs.h <<_ACEOF
14263#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14264_ACEOF
14265
14266fi
14267done
14268
14269
14270
Scott James Remnantfde82c92009-09-22 10:04:15 -070014271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014272$as_echo_n "checking whether _snprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014273if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014274 $as_echo_n "(cached) " >&6
14275else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014277/* end confdefs.h. */
14278#include <stdio.h>
14279int
14280main ()
14281{
14282
14283#ifndef _snprintf
14284 char *p = (char *) _snprintf;
14285#endif
14286
14287 ;
14288 return 0;
14289}
14290_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014291if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014292 ac_cv_have_decl__snprintf=yes
14293else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014294 ac_cv_have_decl__snprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014295fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014299$as_echo "$ac_cv_have_decl__snprintf" >&6; }
14300 if test $ac_cv_have_decl__snprintf = yes; then
14301 gt_value=1
14302 else
14303 gt_value=0
14304 fi
14305
14306cat >>confdefs.h <<_ACEOF
14307#define HAVE_DECL__SNPRINTF $gt_value
14308_ACEOF
14309
14310
14311
Scott James Remnantfde82c92009-09-22 10:04:15 -070014312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014313$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014314if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014315 $as_echo_n "(cached) " >&6
14316else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014318/* end confdefs.h. */
14319#include <stdio.h>
14320int
14321main ()
14322{
14323
14324#ifndef _snwprintf
14325 char *p = (char *) _snwprintf;
14326#endif
14327
14328 ;
14329 return 0;
14330}
14331_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014332if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014333 ac_cv_have_decl__snwprintf=yes
14334else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014335 ac_cv_have_decl__snwprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014336fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014340$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
14341 if test $ac_cv_have_decl__snwprintf = yes; then
14342 gt_value=1
14343 else
14344 gt_value=0
14345 fi
14346
14347cat >>confdefs.h <<_ACEOF
14348#define HAVE_DECL__SNWPRINTF $gt_value
14349_ACEOF
14350
14351
14352
14353
Scott James Remnantfde82c92009-09-22 10:04:15 -070014354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014355$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014356if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014357 $as_echo_n "(cached) " >&6
14358else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014360/* end confdefs.h. */
14361#include <stdio.h>
14362int
14363main ()
14364{
14365
14366#ifndef getc_unlocked
14367 char *p = (char *) getc_unlocked;
14368#endif
14369
14370 ;
14371 return 0;
14372}
14373_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014374if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014375 ac_cv_have_decl_getc_unlocked=yes
14376else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014377 ac_cv_have_decl_getc_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014378fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014382$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
14383 if test $ac_cv_have_decl_getc_unlocked = yes; then
14384 gt_value=1
14385 else
14386 gt_value=0
14387 fi
14388
14389cat >>confdefs.h <<_ACEOF
14390#define HAVE_DECL_GETC_UNLOCKED $gt_value
14391_ACEOF
14392
14393
14394
14395 case $gt_cv_func_printf_posix in
14396 *yes) HAVE_POSIX_PRINTF=1 ;;
14397 *) HAVE_POSIX_PRINTF=0 ;;
14398 esac
14399
14400 if test "$ac_cv_func_asprintf" = yes; then
14401 HAVE_ASPRINTF=1
14402 else
14403 HAVE_ASPRINTF=0
14404 fi
14405
14406 if test "$ac_cv_func_snprintf" = yes; then
14407 HAVE_SNPRINTF=1
14408 else
14409 HAVE_SNPRINTF=0
14410 fi
14411
14412 if test "$ac_cv_func_wprintf" = yes; then
14413 HAVE_WPRINTF=1
14414 else
14415 HAVE_WPRINTF=0
14416 fi
14417
14418
14419
Scott James Remnantfde82c92009-09-22 10:04:15 -070014420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014421$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014422if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014423 $as_echo_n "(cached) " >&6
14424else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014426/* end confdefs.h. */
14427#include <langinfo.h>
14428int
14429main ()
14430{
14431char* cs = nl_langinfo(CODESET); return !cs;
14432 ;
14433 return 0;
14434}
14435_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014436if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014437 am_cv_langinfo_codeset=yes
14438else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014439 am_cv_langinfo_codeset=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014440fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014441rm -f core conftest.err conftest.$ac_objext \
14442 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014443
14444fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014446$as_echo "$am_cv_langinfo_codeset" >&6; }
14447 if test $am_cv_langinfo_codeset = yes; then
14448
Scott James Remnantfde82c92009-09-22 10:04:15 -070014449$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014450
14451 fi
14452
14453
Scott James Remnantfde82c92009-09-22 10:04:15 -070014454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014455$as_echo_n "checking for LC_MESSAGES... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014456if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014457 $as_echo_n "(cached) " >&6
14458else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014460/* end confdefs.h. */
14461#include <locale.h>
14462int
14463main ()
14464{
14465return LC_MESSAGES
14466 ;
14467 return 0;
14468}
14469_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014470if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014471 gt_cv_val_LC_MESSAGES=yes
14472else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014473 gt_cv_val_LC_MESSAGES=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014474fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014475rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014477fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014479$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
14480 if test $gt_cv_val_LC_MESSAGES = yes; then
14481
Scott James Remnantfde82c92009-09-22 10:04:15 -070014482$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014483
14484 fi
14485
14486
14487 if test "$enable_shared" = yes; then
14488 case "$host_os" in
14489 cygwin*) is_woe32dll=yes ;;
14490 *) is_woe32dll=no ;;
14491 esac
14492 else
14493 is_woe32dll=no
14494 fi
14495 WOE32DLL=$is_woe32dll
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
Scott James Remnantfde82c92009-09-22 10:04:15 -070014522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014523$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014524if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014525 $as_echo_n "(cached) " >&6
14526else
14527 gt_save_LIBS="$LIBS"
14528 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014530/* end confdefs.h. */
14531#include <CoreFoundation/CFPreferences.h>
14532int
14533main ()
14534{
14535CFPreferencesCopyAppValue(NULL, NULL)
14536 ;
14537 return 0;
14538}
14539_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014540if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014541 gt_cv_func_CFPreferencesCopyAppValue=yes
14542else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014543 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014544fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014545rm -f core conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014547 LIBS="$gt_save_LIBS"
14548fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014550$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14551 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14552
Scott James Remnantfde82c92009-09-22 10:04:15 -070014553$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014554
14555 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014557$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014558if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014559 $as_echo_n "(cached) " >&6
14560else
14561 gt_save_LIBS="$LIBS"
14562 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014564/* end confdefs.h. */
14565#include <CoreFoundation/CFLocale.h>
14566int
14567main ()
14568{
14569CFLocaleCopyCurrent();
14570 ;
14571 return 0;
14572}
14573_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014574if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014575 gt_cv_func_CFLocaleCopyCurrent=yes
14576else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014577 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014578fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014579rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014581 LIBS="$gt_save_LIBS"
14582fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014584$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14585 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14586
Scott James Remnantfde82c92009-09-22 10:04:15 -070014587$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014588
14589 fi
14590 INTL_MACOSX_LIBS=
14591 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14592 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14593 fi
14594
14595
14596
14597
14598
14599
14600 BUILD_INCLUDED_LIBINTL=no
14601 USE_INCLUDED_LIBINTL=no
14602
14603 LIBINTL=
14604 LTLIBINTL=
14605 POSUB=
14606
14607 case " $gt_needs " in
14608 *" need-formatstring-macros "*) gt_api_version=3 ;;
14609 *" need-ngettext "*) gt_api_version=2 ;;
14610 *) gt_api_version=1 ;;
14611 esac
14612 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14613 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14614
14615 if test "$USE_NLS" = "yes"; then
14616 gt_use_preinstalled_gnugettext=no
14617
Scott James Remnantfde82c92009-09-22 10:04:15 -070014618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014619$as_echo_n "checking whether included gettext is requested... " >&6; }
14620
14621# Check whether --with-included-gettext was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014622if test "${with_included_gettext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014623 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14624else
14625 nls_cv_force_use_gnu_gettext=no
14626fi
14627
Scott James Remnantfde82c92009-09-22 10:04:15 -070014628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014629$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14630
14631 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14632 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14633
14634
14635 if test $gt_api_version -ge 3; then
14636 gt_revision_test_code='
14637#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14638#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14639#endif
14640typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14641'
14642 else
14643 gt_revision_test_code=
14644 fi
14645 if test $gt_api_version -ge 2; then
14646 gt_expression_test_code=' + * ngettext ("", "", 0)'
14647 else
14648 gt_expression_test_code=
14649 fi
14650
Scott James Remnantfde82c92009-09-22 10:04:15 -070014651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014652$as_echo_n "checking for GNU gettext in libc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014653if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014654 $as_echo_n "(cached) " >&6
14655else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014657/* end confdefs.h. */
14658#include <libintl.h>
14659$gt_revision_test_code
14660extern int _nl_msg_cat_cntr;
14661extern int *_nl_domain_bindings;
14662int
14663main ()
14664{
14665bindtextdomain ("", "");
14666return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14667 ;
14668 return 0;
14669}
14670_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014671if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014672 eval "$gt_func_gnugettext_libc=yes"
14673else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014674 eval "$gt_func_gnugettext_libc=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010014675fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014676rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014678fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014679eval ac_res=\$$gt_func_gnugettext_libc
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014681$as_echo "$ac_res" >&6; }
14682
14683 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14684
14685
14686
14687
14688 use_additional=yes
14689
14690 acl_save_prefix="$prefix"
14691 prefix="$acl_final_prefix"
14692 acl_save_exec_prefix="$exec_prefix"
14693 exec_prefix="$acl_final_exec_prefix"
14694
14695 eval additional_includedir=\"$includedir\"
14696 eval additional_libdir=\"$libdir\"
14697
14698 exec_prefix="$acl_save_exec_prefix"
14699 prefix="$acl_save_prefix"
14700
14701
14702# Check whether --with-libintl-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014703if test "${with_libintl_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014704 withval=$with_libintl_prefix;
14705 if test "X$withval" = "Xno"; then
14706 use_additional=no
14707 else
14708 if test "X$withval" = "X"; then
14709
14710 acl_save_prefix="$prefix"
14711 prefix="$acl_final_prefix"
14712 acl_save_exec_prefix="$exec_prefix"
14713 exec_prefix="$acl_final_exec_prefix"
14714
14715 eval additional_includedir=\"$includedir\"
14716 eval additional_libdir=\"$libdir\"
14717
14718 exec_prefix="$acl_save_exec_prefix"
14719 prefix="$acl_save_prefix"
14720
14721 else
14722 additional_includedir="$withval/include"
14723 additional_libdir="$withval/$acl_libdirstem"
14724 fi
14725 fi
14726
14727fi
14728
14729 LIBINTL=
14730 LTLIBINTL=
14731 INCINTL=
14732 rpathdirs=
14733 ltrpathdirs=
14734 names_already_handled=
14735 names_next_round='intl '
14736 while test -n "$names_next_round"; do
14737 names_this_round="$names_next_round"
14738 names_next_round=
14739 for name in $names_this_round; do
14740 already_handled=
14741 for n in $names_already_handled; do
14742 if test "$n" = "$name"; then
14743 already_handled=yes
14744 break
14745 fi
14746 done
14747 if test -z "$already_handled"; then
14748 names_already_handled="$names_already_handled $name"
14749 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14750 eval value=\"\$HAVE_LIB$uppername\"
14751 if test -n "$value"; then
14752 if test "$value" = yes; then
14753 eval value=\"\$LIB$uppername\"
14754 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14755 eval value=\"\$LTLIB$uppername\"
14756 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14757 else
14758 :
14759 fi
14760 else
14761 found_dir=
14762 found_la=
14763 found_so=
14764 found_a=
14765 if test $use_additional = yes; then
14766 if test -n "$shlibext" \
14767 && { test -f "$additional_libdir/lib$name.$shlibext" \
14768 || { test "$shlibext" = dll \
14769 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14770 found_dir="$additional_libdir"
14771 if test -f "$additional_libdir/lib$name.$shlibext"; then
14772 found_so="$additional_libdir/lib$name.$shlibext"
14773 else
14774 found_so="$additional_libdir/lib$name.dll.a"
14775 fi
14776 if test -f "$additional_libdir/lib$name.la"; then
14777 found_la="$additional_libdir/lib$name.la"
14778 fi
14779 else
14780 if test -f "$additional_libdir/lib$name.$libext"; then
14781 found_dir="$additional_libdir"
14782 found_a="$additional_libdir/lib$name.$libext"
14783 if test -f "$additional_libdir/lib$name.la"; then
14784 found_la="$additional_libdir/lib$name.la"
14785 fi
14786 fi
14787 fi
14788 fi
14789 if test "X$found_dir" = "X"; then
14790 for x in $LDFLAGS $LTLIBINTL; do
14791
14792 acl_save_prefix="$prefix"
14793 prefix="$acl_final_prefix"
14794 acl_save_exec_prefix="$exec_prefix"
14795 exec_prefix="$acl_final_exec_prefix"
14796 eval x=\"$x\"
14797 exec_prefix="$acl_save_exec_prefix"
14798 prefix="$acl_save_prefix"
14799
14800 case "$x" in
14801 -L*)
14802 dir=`echo "X$x" | sed -e 's/^X-L//'`
14803 if test -n "$shlibext" \
14804 && { test -f "$dir/lib$name.$shlibext" \
14805 || { test "$shlibext" = dll \
14806 && test -f "$dir/lib$name.dll.a"; }; }; then
14807 found_dir="$dir"
14808 if test -f "$dir/lib$name.$shlibext"; then
14809 found_so="$dir/lib$name.$shlibext"
14810 else
14811 found_so="$dir/lib$name.dll.a"
14812 fi
14813 if test -f "$dir/lib$name.la"; then
14814 found_la="$dir/lib$name.la"
14815 fi
14816 else
14817 if test -f "$dir/lib$name.$libext"; then
14818 found_dir="$dir"
14819 found_a="$dir/lib$name.$libext"
14820 if test -f "$dir/lib$name.la"; then
14821 found_la="$dir/lib$name.la"
14822 fi
14823 fi
14824 fi
14825 ;;
14826 esac
14827 if test "X$found_dir" != "X"; then
14828 break
14829 fi
14830 done
14831 fi
14832 if test "X$found_dir" != "X"; then
14833 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14834 if test "X$found_so" != "X"; then
14835 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14836 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14837 else
14838 haveit=
14839 for x in $ltrpathdirs; do
14840 if test "X$x" = "X$found_dir"; then
14841 haveit=yes
14842 break
14843 fi
14844 done
14845 if test -z "$haveit"; then
14846 ltrpathdirs="$ltrpathdirs $found_dir"
14847 fi
14848 if test "$hardcode_direct" = yes; then
14849 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14850 else
14851 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14852 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14853 haveit=
14854 for x in $rpathdirs; do
14855 if test "X$x" = "X$found_dir"; then
14856 haveit=yes
14857 break
14858 fi
14859 done
14860 if test -z "$haveit"; then
14861 rpathdirs="$rpathdirs $found_dir"
14862 fi
14863 else
14864 haveit=
14865 for x in $LDFLAGS $LIBINTL; do
14866
14867 acl_save_prefix="$prefix"
14868 prefix="$acl_final_prefix"
14869 acl_save_exec_prefix="$exec_prefix"
14870 exec_prefix="$acl_final_exec_prefix"
14871 eval x=\"$x\"
14872 exec_prefix="$acl_save_exec_prefix"
14873 prefix="$acl_save_prefix"
14874
14875 if test "X$x" = "X-L$found_dir"; then
14876 haveit=yes
14877 break
14878 fi
14879 done
14880 if test -z "$haveit"; then
14881 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14882 fi
14883 if test "$hardcode_minus_L" != no; then
14884 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14885 else
14886 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14887 fi
14888 fi
14889 fi
14890 fi
14891 else
14892 if test "X$found_a" != "X"; then
14893 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14894 else
14895 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14896 fi
14897 fi
14898 additional_includedir=
14899 case "$found_dir" in
14900 */$acl_libdirstem | */$acl_libdirstem/)
14901 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14902 additional_includedir="$basedir/include"
14903 ;;
14904 esac
14905 if test "X$additional_includedir" != "X"; then
14906 if test "X$additional_includedir" != "X/usr/include"; then
14907 haveit=
14908 if test "X$additional_includedir" = "X/usr/local/include"; then
14909 if test -n "$GCC"; then
14910 case $host_os in
14911 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14912 esac
14913 fi
14914 fi
14915 if test -z "$haveit"; then
14916 for x in $CPPFLAGS $INCINTL; do
14917
14918 acl_save_prefix="$prefix"
14919 prefix="$acl_final_prefix"
14920 acl_save_exec_prefix="$exec_prefix"
14921 exec_prefix="$acl_final_exec_prefix"
14922 eval x=\"$x\"
14923 exec_prefix="$acl_save_exec_prefix"
14924 prefix="$acl_save_prefix"
14925
14926 if test "X$x" = "X-I$additional_includedir"; then
14927 haveit=yes
14928 break
14929 fi
14930 done
14931 if test -z "$haveit"; then
14932 if test -d "$additional_includedir"; then
14933 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14934 fi
14935 fi
14936 fi
14937 fi
14938 fi
14939 if test -n "$found_la"; then
14940 save_libdir="$libdir"
14941 case "$found_la" in
14942 */* | *\\*) . "$found_la" ;;
14943 *) . "./$found_la" ;;
14944 esac
14945 libdir="$save_libdir"
14946 for dep in $dependency_libs; do
14947 case "$dep" in
14948 -L*)
14949 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14950 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14951 haveit=
14952 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14953 if test -n "$GCC"; then
14954 case $host_os in
14955 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14956 esac
14957 fi
14958 fi
14959 if test -z "$haveit"; then
14960 haveit=
14961 for x in $LDFLAGS $LIBINTL; do
14962
14963 acl_save_prefix="$prefix"
14964 prefix="$acl_final_prefix"
14965 acl_save_exec_prefix="$exec_prefix"
14966 exec_prefix="$acl_final_exec_prefix"
14967 eval x=\"$x\"
14968 exec_prefix="$acl_save_exec_prefix"
14969 prefix="$acl_save_prefix"
14970
14971 if test "X$x" = "X-L$additional_libdir"; then
14972 haveit=yes
14973 break
14974 fi
14975 done
14976 if test -z "$haveit"; then
14977 if test -d "$additional_libdir"; then
14978 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14979 fi
14980 fi
14981 haveit=
14982 for x in $LDFLAGS $LTLIBINTL; do
14983
14984 acl_save_prefix="$prefix"
14985 prefix="$acl_final_prefix"
14986 acl_save_exec_prefix="$exec_prefix"
14987 exec_prefix="$acl_final_exec_prefix"
14988 eval x=\"$x\"
14989 exec_prefix="$acl_save_exec_prefix"
14990 prefix="$acl_save_prefix"
14991
14992 if test "X$x" = "X-L$additional_libdir"; then
14993 haveit=yes
14994 break
14995 fi
14996 done
14997 if test -z "$haveit"; then
14998 if test -d "$additional_libdir"; then
14999 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15000 fi
15001 fi
15002 fi
15003 fi
15004 ;;
15005 -R*)
15006 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15007 if test "$enable_rpath" != no; then
15008 haveit=
15009 for x in $rpathdirs; do
15010 if test "X$x" = "X$dir"; then
15011 haveit=yes
15012 break
15013 fi
15014 done
15015 if test -z "$haveit"; then
15016 rpathdirs="$rpathdirs $dir"
15017 fi
15018 haveit=
15019 for x in $ltrpathdirs; do
15020 if test "X$x" = "X$dir"; then
15021 haveit=yes
15022 break
15023 fi
15024 done
15025 if test -z "$haveit"; then
15026 ltrpathdirs="$ltrpathdirs $dir"
15027 fi
15028 fi
15029 ;;
15030 -l*)
15031 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15032 ;;
15033 *.la)
15034 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15035 ;;
15036 *)
15037 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15038 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15039 ;;
15040 esac
15041 done
15042 fi
15043 else
15044 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15045 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15046 fi
15047 fi
15048 fi
15049 done
15050 done
15051 if test "X$rpathdirs" != "X"; then
15052 if test -n "$hardcode_libdir_separator"; then
15053 alldirs=
15054 for found_dir in $rpathdirs; do
15055 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15056 done
15057 acl_save_libdir="$libdir"
15058 libdir="$alldirs"
15059 eval flag=\"$hardcode_libdir_flag_spec\"
15060 libdir="$acl_save_libdir"
15061 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15062 else
15063 for found_dir in $rpathdirs; do
15064 acl_save_libdir="$libdir"
15065 libdir="$found_dir"
15066 eval flag=\"$hardcode_libdir_flag_spec\"
15067 libdir="$acl_save_libdir"
15068 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15069 done
15070 fi
15071 fi
15072 if test "X$ltrpathdirs" != "X"; then
15073 for found_dir in $ltrpathdirs; do
15074 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15075 done
15076 fi
15077
Scott James Remnantfde82c92009-09-22 10:04:15 -070015078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015079$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015080if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015081 $as_echo_n "(cached) " >&6
15082else
15083 gt_save_CPPFLAGS="$CPPFLAGS"
15084 CPPFLAGS="$CPPFLAGS $INCINTL"
15085 gt_save_LIBS="$LIBS"
15086 LIBS="$LIBS $LIBINTL"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015088/* end confdefs.h. */
15089#include <libintl.h>
15090$gt_revision_test_code
15091extern int _nl_msg_cat_cntr;
15092extern
15093#ifdef __cplusplus
15094"C"
15095#endif
15096const char *_nl_expand_alias (const char *);
15097int
15098main ()
15099{
15100bindtextdomain ("", "");
15101return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15102 ;
15103 return 0;
15104}
15105_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015106if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015107 eval "$gt_func_gnugettext_libintl=yes"
15108else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015109 eval "$gt_func_gnugettext_libintl=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015110fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015111rm -f core conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015113 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15114 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015116/* end confdefs.h. */
15117#include <libintl.h>
15118$gt_revision_test_code
15119extern int _nl_msg_cat_cntr;
15120extern
15121#ifdef __cplusplus
15122"C"
15123#endif
15124const char *_nl_expand_alias (const char *);
15125int
15126main ()
15127{
15128bindtextdomain ("", "");
15129return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15130 ;
15131 return 0;
15132}
15133_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015134if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015135 LIBINTL="$LIBINTL $LIBICONV"
15136 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15137 eval "$gt_func_gnugettext_libintl=yes"
15138
Scott James Remnant65f683d2009-07-14 13:05:17 +010015139fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015140rm -f core conftest.err conftest.$ac_objext \
15141 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015142 fi
15143 CPPFLAGS="$gt_save_CPPFLAGS"
15144 LIBS="$gt_save_LIBS"
15145fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015146eval ac_res=\$$gt_func_gnugettext_libintl
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015148$as_echo "$ac_res" >&6; }
15149 fi
15150
15151 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15152 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15153 && test "$PACKAGE" != gettext-runtime \
15154 && test "$PACKAGE" != gettext-tools; }; then
15155 gt_use_preinstalled_gnugettext=yes
15156 else
15157 LIBINTL=
15158 LTLIBINTL=
15159 INCINTL=
15160 fi
15161
15162
15163 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15164 nls_cv_use_gnu_gettext=yes
15165 fi
15166 fi
15167
15168 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15169 BUILD_INCLUDED_LIBINTL=yes
15170 USE_INCLUDED_LIBINTL=yes
15171 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
15172 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
15173 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15174 fi
15175
15176 CATOBJEXT=
15177 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15178 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15179 CATOBJEXT=.gmo
15180 fi
15181
15182
15183 if test -n "$INTL_MACOSX_LIBS"; then
15184 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15185 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15186 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15187 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15188 fi
15189 fi
15190
15191 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15192 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15193
Scott James Remnantfde82c92009-09-22 10:04:15 -070015194$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015195
15196 else
15197 USE_NLS=no
15198 fi
15199 fi
15200
Scott James Remnantfde82c92009-09-22 10:04:15 -070015201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015202$as_echo_n "checking whether to use NLS... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015204$as_echo "$USE_NLS" >&6; }
15205 if test "$USE_NLS" = "yes"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015207$as_echo_n "checking where the gettext function comes from... " >&6; }
15208 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15209 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15210 gt_source="external libintl"
15211 else
15212 gt_source="libc"
15213 fi
15214 else
15215 gt_source="included intl directory"
15216 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015218$as_echo "$gt_source" >&6; }
15219 fi
15220
15221 if test "$USE_NLS" = "yes"; then
15222
15223 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15224 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015226$as_echo_n "checking how to link with libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015228$as_echo "$LIBINTL" >&6; }
15229
15230 for element in $INCINTL; do
15231 haveit=
15232 for x in $CPPFLAGS; do
15233
15234 acl_save_prefix="$prefix"
15235 prefix="$acl_final_prefix"
15236 acl_save_exec_prefix="$exec_prefix"
15237 exec_prefix="$acl_final_exec_prefix"
15238 eval x=\"$x\"
15239 exec_prefix="$acl_save_exec_prefix"
15240 prefix="$acl_save_prefix"
15241
15242 if test "X$x" = "X$element"; then
15243 haveit=yes
15244 break
15245 fi
15246 done
15247 if test -z "$haveit"; then
15248 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15249 fi
15250 done
15251
15252 fi
15253
15254
Scott James Remnantfde82c92009-09-22 10:04:15 -070015255$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015256
15257
Scott James Remnantfde82c92009-09-22 10:04:15 -070015258$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015259
15260 fi
15261
15262 POSUB=po
15263 fi
15264
15265
15266 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
15267 BUILD_INCLUDED_LIBINTL=yes
15268 fi
15269
15270
15271
15272
15273
15274 nls_cv_header_intl=
15275 nls_cv_header_libgt=
15276
15277 DATADIRNAME=share
15278
15279
15280 INSTOBJEXT=.mo
15281
15282
15283 GENCAT=gencat
15284
15285
15286 INTLOBJS=
15287 if test "$USE_INCLUDED_LIBINTL" = yes; then
15288 INTLOBJS="\$(GETTOBJS)"
15289 fi
15290
15291
15292 INTL_LIBTOOL_SUFFIX_PREFIX=
15293
15294
15295
15296 INTLLIBS="$LIBINTL"
15297
15298
15299
15300
15301
15302
15303
15304# Checks for programs.
15305ac_ext=c
15306ac_cpp='$CPP $CPPFLAGS'
15307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15309ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310if test -n "$ac_tool_prefix"; then
15311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15312set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015314$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015315if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015316 $as_echo_n "(cached) " >&6
15317else
15318 if test -n "$CC"; then
15319 ac_cv_prog_CC="$CC" # Let the user override the test.
15320else
15321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322for as_dir in $PATH
15323do
15324 IFS=$as_save_IFS
15325 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015326 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015330 break 2
15331 fi
15332done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015333 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015334IFS=$as_save_IFS
15335
15336fi
15337fi
15338CC=$ac_cv_prog_CC
15339if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015341$as_echo "$CC" >&6; }
15342else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015344$as_echo "no" >&6; }
15345fi
15346
15347
15348fi
15349if test -z "$ac_cv_prog_CC"; then
15350 ac_ct_CC=$CC
15351 # Extract the first word of "gcc", so it can be a program name with args.
15352set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015354$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015355if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015356 $as_echo_n "(cached) " >&6
15357else
15358 if test -n "$ac_ct_CC"; then
15359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15360else
15361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362for as_dir in $PATH
15363do
15364 IFS=$as_save_IFS
15365 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015366 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15368 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015370 break 2
15371 fi
15372done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015373 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015374IFS=$as_save_IFS
15375
15376fi
15377fi
15378ac_ct_CC=$ac_cv_prog_ac_ct_CC
15379if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015381$as_echo "$ac_ct_CC" >&6; }
15382else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015384$as_echo "no" >&6; }
15385fi
15386
15387 if test "x$ac_ct_CC" = x; then
15388 CC=""
15389 else
15390 case $cross_compiling:$ac_tool_warned in
15391yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015392{ $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 +010015393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15394ac_tool_warned=yes ;;
15395esac
15396 CC=$ac_ct_CC
15397 fi
15398else
15399 CC="$ac_cv_prog_CC"
15400fi
15401
15402if test -z "$CC"; then
15403 if test -n "$ac_tool_prefix"; then
15404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15405set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015407$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015408if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015409 $as_echo_n "(cached) " >&6
15410else
15411 if test -n "$CC"; then
15412 ac_cv_prog_CC="$CC" # Let the user override the test.
15413else
15414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15415for as_dir in $PATH
15416do
15417 IFS=$as_save_IFS
15418 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015419 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15421 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015423 break 2
15424 fi
15425done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015426 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015427IFS=$as_save_IFS
15428
15429fi
15430fi
15431CC=$ac_cv_prog_CC
15432if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015434$as_echo "$CC" >&6; }
15435else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015437$as_echo "no" >&6; }
15438fi
15439
15440
15441 fi
15442fi
15443if test -z "$CC"; then
15444 # Extract the first word of "cc", so it can be a program name with args.
15445set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015447$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015448if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015449 $as_echo_n "(cached) " >&6
15450else
15451 if test -n "$CC"; then
15452 ac_cv_prog_CC="$CC" # Let the user override the test.
15453else
15454 ac_prog_rejected=no
15455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458 IFS=$as_save_IFS
15459 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015460 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15463 ac_prog_rejected=yes
15464 continue
15465 fi
15466 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015468 break 2
15469 fi
15470done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015471 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015472IFS=$as_save_IFS
15473
15474if test $ac_prog_rejected = yes; then
15475 # We found a bogon in the path, so make sure we never use it.
15476 set dummy $ac_cv_prog_CC
15477 shift
15478 if test $# != 0; then
15479 # We chose a different compiler from the bogus one.
15480 # However, it has the same basename, so the bogon will be chosen
15481 # first if we set CC to just the basename; use the full file name.
15482 shift
15483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15484 fi
15485fi
15486fi
15487fi
15488CC=$ac_cv_prog_CC
15489if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015491$as_echo "$CC" >&6; }
15492else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015494$as_echo "no" >&6; }
15495fi
15496
15497
15498fi
15499if test -z "$CC"; then
15500 if test -n "$ac_tool_prefix"; then
15501 for ac_prog in cl.exe
15502 do
15503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015506$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015507if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015508 $as_echo_n "(cached) " >&6
15509else
15510 if test -n "$CC"; then
15511 ac_cv_prog_CC="$CC" # Let the user override the test.
15512else
15513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15514for as_dir in $PATH
15515do
15516 IFS=$as_save_IFS
15517 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015518 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015522 break 2
15523 fi
15524done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015525 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015526IFS=$as_save_IFS
15527
15528fi
15529fi
15530CC=$ac_cv_prog_CC
15531if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015533$as_echo "$CC" >&6; }
15534else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015536$as_echo "no" >&6; }
15537fi
15538
15539
15540 test -n "$CC" && break
15541 done
15542fi
15543if test -z "$CC"; then
15544 ac_ct_CC=$CC
15545 for ac_prog in cl.exe
15546do
15547 # Extract the first word of "$ac_prog", so it can be a program name with args.
15548set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015550$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015552 $as_echo_n "(cached) " >&6
15553else
15554 if test -n "$ac_ct_CC"; then
15555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15556else
15557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15558for as_dir in $PATH
15559do
15560 IFS=$as_save_IFS
15561 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015562 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15564 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015566 break 2
15567 fi
15568done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015569 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015570IFS=$as_save_IFS
15571
15572fi
15573fi
15574ac_ct_CC=$ac_cv_prog_ac_ct_CC
15575if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015577$as_echo "$ac_ct_CC" >&6; }
15578else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015580$as_echo "no" >&6; }
15581fi
15582
15583
15584 test -n "$ac_ct_CC" && break
15585done
15586
15587 if test "x$ac_ct_CC" = x; then
15588 CC=""
15589 else
15590 case $cross_compiling:$ac_tool_warned in
15591yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015592{ $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 +010015593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15594ac_tool_warned=yes ;;
15595esac
15596 CC=$ac_ct_CC
15597 fi
15598fi
15599
15600fi
15601
15602
Scott James Remnantfde82c92009-09-22 10:04:15 -070015603test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070015605as_fn_error "no acceptable C compiler found in \$PATH
15606See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010015607
15608# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015609$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015610set X $ac_compile
15611ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015612for ac_option in --version -v -V -qversion; do
15613 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015614case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15619$as_echo "$ac_try_echo"; } >&5
15620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +010015621 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015622 if test -s conftest.err; then
15623 sed '10a\
15624... rest of stderr output deleted ...
15625 10q' conftest.err >conftest.er1
15626 cat conftest.er1 >&5
15627 rm -f conftest.er1 conftest.err
15628 fi
15629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15630 test $ac_status = 0; }
15631done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015632
Scott James Remnantfde82c92009-09-22 10:04:15 -070015633{ $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 +010015634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015635if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015636 $as_echo_n "(cached) " >&6
15637else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015639/* end confdefs.h. */
15640
15641int
15642main ()
15643{
15644#ifndef __GNUC__
15645 choke me
15646#endif
15647
15648 ;
15649 return 0;
15650}
15651_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015652if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015653 ac_compiler_gnu=yes
15654else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015655 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015656fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658ac_cv_c_compiler_gnu=$ac_compiler_gnu
15659
15660fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015662$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15663if test $ac_compiler_gnu = yes; then
15664 GCC=yes
15665else
15666 GCC=
15667fi
15668ac_test_CFLAGS=${CFLAGS+set}
15669ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -070015670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015671$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015672if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015673 $as_echo_n "(cached) " >&6
15674else
15675 ac_save_c_werror_flag=$ac_c_werror_flag
15676 ac_c_werror_flag=yes
15677 ac_cv_prog_cc_g=no
15678 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015680/* end confdefs.h. */
15681
15682int
15683main ()
15684{
15685
15686 ;
15687 return 0;
15688}
15689_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015690if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015691 ac_cv_prog_cc_g=yes
15692else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015693 CFLAGS=""
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015695/* end confdefs.h. */
15696
15697int
15698main ()
15699{
15700
15701 ;
15702 return 0;
15703}
15704_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015705if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010015706
Scott James Remnantfde82c92009-09-22 10:04:15 -070015707else
15708 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +010015709 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015711/* end confdefs.h. */
15712
15713int
15714main ()
15715{
15716
15717 ;
15718 return 0;
15719}
15720_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015721if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015722 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010015723fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 ac_c_werror_flag=$ac_save_c_werror_flag
15730fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015732$as_echo "$ac_cv_prog_cc_g" >&6; }
15733if test "$ac_test_CFLAGS" = set; then
15734 CFLAGS=$ac_save_CFLAGS
15735elif test $ac_cv_prog_cc_g = yes; then
15736 if test "$GCC" = yes; then
15737 CFLAGS="-g -O2"
15738 else
15739 CFLAGS="-g"
15740 fi
15741else
15742 if test "$GCC" = yes; then
15743 CFLAGS="-O2"
15744 else
15745 CFLAGS=
15746 fi
15747fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015750if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015751 $as_echo_n "(cached) " >&6
15752else
15753 ac_cv_prog_cc_c89=no
15754ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070015755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015756/* end confdefs.h. */
15757#include <stdarg.h>
15758#include <stdio.h>
15759#include <sys/types.h>
15760#include <sys/stat.h>
15761/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15762struct buf { int x; };
15763FILE * (*rcsopen) (struct buf *, struct stat *, int);
15764static char *e (p, i)
15765 char **p;
15766 int i;
15767{
15768 return p[i];
15769}
15770static char *f (char * (*g) (char **, int), char **p, ...)
15771{
15772 char *s;
15773 va_list v;
15774 va_start (v,p);
15775 s = g (p, va_arg (v,int));
15776 va_end (v);
15777 return s;
15778}
15779
15780/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15781 function prototypes and stuff, but not '\xHH' hex character constants.
15782 These don't provoke an error unfortunately, instead are silently treated
15783 as 'x'. The following induces an error, until -std is added to get
15784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15785 array size at least. It's necessary to write '\x00'==0 to get something
15786 that's true only with -std. */
15787int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15788
15789/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15790 inside strings and character constants. */
15791#define FOO(x) 'x'
15792int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15793
15794int test (int i, double x);
15795struct s1 {int (*f) (int a);};
15796struct s2 {int (*f) (double a);};
15797int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15798int argc;
15799char **argv;
15800int
15801main ()
15802{
15803return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15804 ;
15805 return 0;
15806}
15807_ACEOF
15808for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15810do
15811 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015812 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015813 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010015814fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015815rm -f core conftest.err conftest.$ac_objext
15816 test "x$ac_cv_prog_cc_c89" != "xno" && break
15817done
15818rm -f conftest.$ac_ext
15819CC=$ac_save_CC
15820
15821fi
15822# AC_CACHE_VAL
15823case "x$ac_cv_prog_cc_c89" in
15824 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015826$as_echo "none needed" >&6; } ;;
15827 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015829$as_echo "unsupported" >&6; } ;;
15830 *)
15831 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015833$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15834esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015835if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015836
Scott James Remnantfde82c92009-09-22 10:04:15 -070015837fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015838
15839ac_ext=c
15840ac_cpp='$CPP $CPPFLAGS'
15841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15843ac_compiler_gnu=$ac_cv_c_compiler_gnu
15844
15845if test "x$CC" != xcc; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015846 { $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 +010015847$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15848else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015850$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15851fi
15852set dummy $CC; ac_cc=`$as_echo "$2" |
15853 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070015854if { 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 +010015855 $as_echo_n "(cached) " >&6
15856else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015858/* end confdefs.h. */
15859
15860int
15861main ()
15862{
15863
15864 ;
15865 return 0;
15866}
15867_ACEOF
15868# Make sure it works both with $CC and with simple cc.
15869# We do the test twice because some compilers refuse to overwrite an
15870# existing .o file with -o, though they will create one.
15871ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15872rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015873if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15875 *) ac_try_echo=$ac_try;;
15876esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15878$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015879 (eval "$ac_try") 2>&5
15880 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882 test $ac_status = 0; } &&
15883 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15888$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015889 (eval "$ac_try") 2>&5
15890 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015893then
15894 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15895 if test "x$CC" != xcc; then
15896 # Test first that cc exists at all.
15897 if { ac_try='cc -c conftest.$ac_ext >&5'
Scott James Remnantfde82c92009-09-22 10:04:15 -070015898 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900 *) ac_try_echo=$ac_try;;
15901esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15903$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015904 (eval "$ac_try") 2>&5
15905 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015908 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15909 rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015910 if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15915$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015916 (eval "$ac_try") 2>&5
15917 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15919 test $ac_status = 0; } &&
15920 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15925$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015926 (eval "$ac_try") 2>&5
15927 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15929 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015930 then
15931 # cc works too.
15932 :
15933 else
15934 # cc exists but doesn't like -o.
15935 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15936 fi
15937 fi
15938 fi
15939else
15940 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15941fi
15942rm -f core conftest*
15943
15944fi
15945if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015947$as_echo "yes" >&6; }
15948else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015950$as_echo "no" >&6; }
15951
Scott James Remnantfde82c92009-09-22 10:04:15 -070015952$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015953
15954fi
15955
15956# FIXME: we rely on the cache variable name because
15957# there is no other way.
15958set dummy $CC
15959am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15960eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15961if test "$am_t" != yes; then
15962 # Losing compiler, so override with the script.
15963 # FIXME: It is wrong to rewrite CC.
15964 # But if we don't then we get into trouble of one sort or another.
15965 # A longer-term fix would be to have automake use am__CC in this case,
15966 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15967 CC="$am_aux_dir/compile $CC"
15968fi
15969
15970
15971
Scott James Remnant2a66c572009-09-15 03:19:16 +010015972
15973if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15974 if test -n "$ac_tool_prefix"; then
15975 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15976set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010015978$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015979if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010015980 $as_echo_n "(cached) " >&6
15981else
15982 case $PKG_CONFIG in
15983 [\\/]* | ?:[\\/]*)
15984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15985 ;;
15986 *)
15987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15988for as_dir in $PATH
15989do
15990 IFS=$as_save_IFS
15991 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015992 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010015993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15994 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010015996 break 2
15997 fi
15998done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015999 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016000IFS=$as_save_IFS
16001
16002 ;;
16003esac
16004fi
16005PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16006if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016008$as_echo "$PKG_CONFIG" >&6; }
16009else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016011$as_echo "no" >&6; }
16012fi
16013
16014
16015fi
16016if test -z "$ac_cv_path_PKG_CONFIG"; then
16017 ac_pt_PKG_CONFIG=$PKG_CONFIG
16018 # Extract the first word of "pkg-config", so it can be a program name with args.
16019set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016021$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016022if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016023 $as_echo_n "(cached) " >&6
16024else
16025 case $ac_pt_PKG_CONFIG in
16026 [\\/]* | ?:[\\/]*)
16027 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16028 ;;
16029 *)
16030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031for as_dir in $PATH
16032do
16033 IFS=$as_save_IFS
16034 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016035 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16037 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016039 break 2
16040 fi
16041done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016042 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016043IFS=$as_save_IFS
16044
16045 ;;
16046esac
16047fi
16048ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16049if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016051$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16052else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016054$as_echo "no" >&6; }
16055fi
16056
16057 if test "x$ac_pt_PKG_CONFIG" = x; then
16058 PKG_CONFIG=""
16059 else
16060 case $cross_compiling:$ac_tool_warned in
16061yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16064ac_tool_warned=yes ;;
16065esac
16066 PKG_CONFIG=$ac_pt_PKG_CONFIG
16067 fi
16068else
16069 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16070fi
16071
16072fi
16073if test -n "$PKG_CONFIG"; then
16074 _pkg_min_version=0.9.0
Scott James Remnantfde82c92009-09-22 10:04:15 -070016075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016076$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16077 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016079$as_echo "yes" >&6; }
16080 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016082$as_echo "no" >&6; }
16083 PKG_CONFIG=""
16084 fi
16085
16086fi
16087
Scott James Remnant65f683d2009-07-14 13:05:17 +010016088# Checks for libraries.
16089
16090
16091
16092 if test "x$nih_install" = "xyes"; then
16093 INSTALL_NIH_TRUE=
16094 INSTALL_NIH_FALSE='#'
16095else
16096 INSTALL_NIH_TRUE='#'
16097 INSTALL_NIH_FALSE=
16098fi
16099
16100
16101
16102
16103if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16104 if test -n "$ac_tool_prefix"; then
16105 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16106set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016108$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016109if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016110 $as_echo_n "(cached) " >&6
16111else
16112 case $PKG_CONFIG in
16113 [\\/]* | ?:[\\/]*)
16114 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16115 ;;
16116 *)
16117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16118for as_dir in $PATH
16119do
16120 IFS=$as_save_IFS
16121 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016122 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16124 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016126 break 2
16127 fi
16128done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016129 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016130IFS=$as_save_IFS
16131
16132 ;;
16133esac
16134fi
16135PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16136if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016138$as_echo "$PKG_CONFIG" >&6; }
16139else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016141$as_echo "no" >&6; }
16142fi
16143
16144
16145fi
16146if test -z "$ac_cv_path_PKG_CONFIG"; then
16147 ac_pt_PKG_CONFIG=$PKG_CONFIG
16148 # Extract the first word of "pkg-config", so it can be a program name with args.
16149set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016151$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016152if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016153 $as_echo_n "(cached) " >&6
16154else
16155 case $ac_pt_PKG_CONFIG in
16156 [\\/]* | ?:[\\/]*)
16157 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16158 ;;
16159 *)
16160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161for as_dir in $PATH
16162do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016165 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16167 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016169 break 2
16170 fi
16171done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016172 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016173IFS=$as_save_IFS
16174
16175 ;;
16176esac
16177fi
16178ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16179if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016181$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16182else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016184$as_echo "no" >&6; }
16185fi
16186
16187 if test "x$ac_pt_PKG_CONFIG" = x; then
16188 PKG_CONFIG=""
16189 else
16190 case $cross_compiling:$ac_tool_warned in
16191yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016192{ $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 +010016193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16194ac_tool_warned=yes ;;
16195esac
16196 PKG_CONFIG=$ac_pt_PKG_CONFIG
16197 fi
16198else
16199 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16200fi
16201
16202fi
16203if test -n "$PKG_CONFIG"; then
16204 _pkg_min_version=0.22
Scott James Remnantfde82c92009-09-22 10:04:15 -070016205 { $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 +010016206$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16207 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016209$as_echo "yes" >&6; }
16210 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016212$as_echo "no" >&6; }
16213 PKG_CONFIG=""
16214 fi
16215
16216fi
16217
16218# Checks for libraries
16219
16220nih_with_dbus=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070016221if test "x$nih_with_dbus" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016222
16223pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016225$as_echo_n "checking for DBUS... " >&6; }
16226
16227if test -n "$PKG_CONFIG"; then
16228 if test -n "$DBUS_CFLAGS"; then
16229 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16230 else
16231 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016232 { { $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 +010016233 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016234 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16236 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016237 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016238else
16239 pkg_failed=yes
16240fi
16241 fi
16242else
16243 pkg_failed=untried
16244fi
16245if test -n "$PKG_CONFIG"; then
16246 if test -n "$DBUS_LIBS"; then
16247 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16248 else
16249 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016250 { { $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 +010016251 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016252 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16254 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016255 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016256else
16257 pkg_failed=yes
16258fi
16259 fi
16260else
16261 pkg_failed=untried
16262fi
16263
16264
16265
16266if test $pkg_failed = yes; then
16267
16268if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16269 _pkg_short_errors_supported=yes
16270else
16271 _pkg_short_errors_supported=no
16272fi
16273 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016274 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 +010016275 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016276 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016277 fi
16278 # Put the nasty error message in config.log where it belongs
16279 echo "$DBUS_PKG_ERRORS" >&5
16280
Scott James Remnantfde82c92009-09-22 10:04:15 -070016281 as_fn_error "Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010016282
16283$DBUS_PKG_ERRORS
16284
16285Consider adjusting the PKG_CONFIG_PATH environment variable if you
16286installed software in a non-standard prefix.
16287
16288Alternatively, you may set the environment variables DBUS_CFLAGS
16289and DBUS_LIBS to avoid the need to call pkg-config.
16290See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016291" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016292elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070016295as_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 +010016296is in your PATH or set the PKG_CONFIG environment variable to the full
16297path to pkg-config.
16298
16299Alternatively, you may set the environment variables DBUS_CFLAGS
16300and DBUS_LIBS to avoid the need to call pkg-config.
16301See the pkg-config man page for more details.
16302
16303To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016304See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010016305else
16306 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16307 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016309$as_echo "yes" >&6; }
16310 :
16311fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016313$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016314if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016315 $as_echo_n "(cached) " >&6
16316else
16317 ac_check_lib_save_LIBS=$LIBS
16318LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016320/* end confdefs.h. */
16321
16322/* Override any GCC internal prototype to avoid an error.
16323 Use char because int might match the return type of a GCC
16324 builtin and then its argument prototype would still apply. */
16325#ifdef __cplusplus
16326extern "C"
16327#endif
16328char XML_ParserCreate ();
16329int
16330main ()
16331{
16332return XML_ParserCreate ();
16333 ;
16334 return 0;
16335}
16336_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016337if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016338 ac_cv_lib_expat_XML_ParserCreate=yes
16339else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016340 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016341fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016342rm -f core conftest.err conftest.$ac_objext \
16343 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016344LIBS=$ac_check_lib_save_LIBS
16345fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016347$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016348if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016350$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016351if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016352 $as_echo_n "(cached) " >&6
16353else
16354 ac_check_lib_save_LIBS=$LIBS
16355LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016357/* end confdefs.h. */
16358
16359/* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16362#ifdef __cplusplus
16363extern "C"
16364#endif
16365char XML_StopParser ();
16366int
16367main ()
16368{
16369return XML_StopParser ();
16370 ;
16371 return 0;
16372}
16373_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016374if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016375 ac_cv_lib_expat_XML_StopParser=yes
16376else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016377 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016378fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016379rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016381LIBS=$ac_check_lib_save_LIBS
16382fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016384$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016385if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016386 EXPAT_LIBS=-lexpat
16387
16388else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016389 as_fn_error "expat >= 2.0.0 required" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016390fi
16391
16392else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016393 as_fn_error "expat library not found" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016394fi
16395
16396else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016397 if test "x$nih_with_dbus" != "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016398
16399pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016401$as_echo_n "checking for DBUS... " >&6; }
16402
16403if test -n "$PKG_CONFIG"; then
16404 if test -n "$DBUS_CFLAGS"; then
16405 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16406 else
16407 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016408 { { $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 +010016409 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016410 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16412 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016413 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016414else
16415 pkg_failed=yes
16416fi
16417 fi
16418else
16419 pkg_failed=untried
16420fi
16421if test -n "$PKG_CONFIG"; then
16422 if test -n "$DBUS_LIBS"; then
16423 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16424 else
16425 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016426 { { $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 +010016427 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016428 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016431 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016432else
16433 pkg_failed=yes
16434fi
16435 fi
16436else
16437 pkg_failed=untried
16438fi
16439
16440
16441
16442if test $pkg_failed = yes; then
16443
16444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16445 _pkg_short_errors_supported=yes
16446else
16447 _pkg_short_errors_supported=no
16448fi
16449 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016450 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 +010016451 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016452 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016453 fi
16454 # Put the nasty error message in config.log where it belongs
16455 echo "$DBUS_PKG_ERRORS" >&5
16456
Scott James Remnantfde82c92009-09-22 10:04:15 -070016457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016458$as_echo "no" >&6; }
16459 nih_have_dbus=no
16460elif test $pkg_failed = untried; then
16461 nih_have_dbus=no
16462else
16463 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16464 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016466$as_echo "yes" >&6; }
16467 :
16468fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016470$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016471if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016472 $as_echo_n "(cached) " >&6
16473else
16474 ac_check_lib_save_LIBS=$LIBS
16475LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016477/* end confdefs.h. */
16478
16479/* Override any GCC internal prototype to avoid an error.
16480 Use char because int might match the return type of a GCC
16481 builtin and then its argument prototype would still apply. */
16482#ifdef __cplusplus
16483extern "C"
16484#endif
16485char XML_ParserCreate ();
16486int
16487main ()
16488{
16489return XML_ParserCreate ();
16490 ;
16491 return 0;
16492}
16493_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016494if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016495 ac_cv_lib_expat_XML_ParserCreate=yes
16496else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016497 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016498fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016499rm -f core conftest.err conftest.$ac_objext \
16500 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016501LIBS=$ac_check_lib_save_LIBS
16502fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016504$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016505if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016507$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016508if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016509 $as_echo_n "(cached) " >&6
16510else
16511 ac_check_lib_save_LIBS=$LIBS
16512LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016514/* end confdefs.h. */
16515
16516/* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply. */
16519#ifdef __cplusplus
16520extern "C"
16521#endif
16522char XML_StopParser ();
16523int
16524main ()
16525{
16526return XML_StopParser ();
16527 ;
16528 return 0;
16529}
16530_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016531if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016532 ac_cv_lib_expat_XML_StopParser=yes
16533else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016534 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016535fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016536rm -f core conftest.err conftest.$ac_objext \
16537 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016538LIBS=$ac_check_lib_save_LIBS
16539fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016541$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016542if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016543 EXPAT_LIBS=-lexpat
16544
16545else
16546 nih_have_dbus=no
16547fi
16548
16549else
16550 nih_have_dbus=no
16551fi
16552
16553else
16554 nih_have_dbus=no
16555fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016556fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016557 if test "x$nih_have_dbus" != "xno"; then
16558 HAVE_DBUS_TRUE=
16559 HAVE_DBUS_FALSE='#'
16560else
16561 HAVE_DBUS_TRUE='#'
16562 HAVE_DBUS_FALSE=
16563fi
16564
16565
16566
16567# Checks for header files.
Scott James Remnant65f683d2009-07-14 13:05:17 +010016568for ac_header in valgrind/valgrind.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070016569do :
16570 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16571if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016572 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016573#define HAVE_VALGRIND_VALGRIND_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016574_ACEOF
16575
16576fi
16577
16578done
16579
16580
16581# Checks for typedefs, structures, and compiler characteristics.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016583$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016584if test "${ac_cv_prog_cc_c99+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016585 $as_echo_n "(cached) " >&6
16586else
16587 ac_cv_prog_cc_c99=no
16588ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070016589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016590/* end confdefs.h. */
16591#include <stdarg.h>
16592#include <stdbool.h>
16593#include <stdlib.h>
16594#include <wchar.h>
16595#include <stdio.h>
16596
16597// Check varargs macros. These examples are taken from C99 6.10.3.5.
16598#define debug(...) fprintf (stderr, __VA_ARGS__)
16599#define showlist(...) puts (#__VA_ARGS__)
16600#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16601static void
16602test_varargs_macros (void)
16603{
16604 int x = 1234;
16605 int y = 5678;
16606 debug ("Flag");
16607 debug ("X = %d\n", x);
16608 showlist (The first, second, and third items.);
16609 report (x>y, "x is %d but y is %d", x, y);
16610}
16611
16612// Check long long types.
16613#define BIG64 18446744073709551615ull
16614#define BIG32 4294967295ul
16615#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16616#if !BIG_OK
16617 your preprocessor is broken;
16618#endif
16619#if BIG_OK
16620#else
16621 your preprocessor is broken;
16622#endif
16623static long long int bignum = -9223372036854775807LL;
16624static unsigned long long int ubignum = BIG64;
16625
16626struct incomplete_array
16627{
16628 int datasize;
16629 double data[];
16630};
16631
16632struct named_init {
16633 int number;
16634 const wchar_t *name;
16635 double average;
16636};
16637
16638typedef const char *ccp;
16639
16640static inline int
16641test_restrict (ccp restrict text)
16642{
16643 // See if C++-style comments work.
16644 // Iterate through items via the restricted pointer.
16645 // Also check for declarations in for loops.
16646 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16647 continue;
16648 return 0;
16649}
16650
16651// Check varargs and va_copy.
16652static void
16653test_varargs (const char *format, ...)
16654{
16655 va_list args;
16656 va_start (args, format);
16657 va_list args_copy;
16658 va_copy (args_copy, args);
16659
16660 const char *str;
16661 int number;
16662 float fnumber;
16663
16664 while (*format)
16665 {
16666 switch (*format++)
16667 {
16668 case 's': // string
16669 str = va_arg (args_copy, const char *);
16670 break;
16671 case 'd': // int
16672 number = va_arg (args_copy, int);
16673 break;
16674 case 'f': // float
16675 fnumber = va_arg (args_copy, double);
16676 break;
16677 default:
16678 break;
16679 }
16680 }
16681 va_end (args_copy);
16682 va_end (args);
16683}
16684
16685int
16686main ()
16687{
16688
16689 // Check bool.
16690 _Bool success = false;
16691
16692 // Check restrict.
16693 if (test_restrict ("String literal") == 0)
16694 success = true;
16695 char *restrict newvar = "Another string";
16696
16697 // Check varargs.
16698 test_varargs ("s, d' f .", "string", 65, 34.234);
16699 test_varargs_macros ();
16700
16701 // Check flexible array members.
16702 struct incomplete_array *ia =
16703 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16704 ia->datasize = 10;
16705 for (int i = 0; i < ia->datasize; ++i)
16706 ia->data[i] = i * 1.234;
16707
16708 // Check named initializers.
16709 struct named_init ni = {
16710 .number = 34,
16711 .name = L"Test wide string",
16712 .average = 543.34343,
16713 };
16714
16715 ni.number = 58;
16716
16717 int dynamic_array[ni.number];
16718 dynamic_array[ni.number - 1] = 543;
16719
16720 // work around unused variable warnings
16721 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16722 || dynamic_array[ni.number - 1] != 543);
16723
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
16729do
16730 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016731 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016732 ac_cv_prog_cc_c99=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010016733fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016734rm -f core conftest.err conftest.$ac_objext
16735 test "x$ac_cv_prog_cc_c99" != "xno" && break
16736done
16737rm -f conftest.$ac_ext
16738CC=$ac_save_CC
16739
16740fi
16741# AC_CACHE_VAL
16742case "x$ac_cv_prog_cc_c99" in
16743 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016745$as_echo "none needed" >&6; } ;;
16746 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016748$as_echo "unsupported" >&6; } ;;
16749 *)
16750 CC="$CC $ac_cv_prog_cc_c99"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016752$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16753esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070016754if test "x$ac_cv_prog_cc_c99" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016755
Scott James Remnantfde82c92009-09-22 10:04:15 -070016756fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016757
16758
16759# FIXME: we rely on the cache variable name because
16760# there is no other way.
16761set dummy $CC
16762am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16763eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16764if test "$am_t" != yes; then
16765 # Losing compiler, so override with the script.
16766 # FIXME: It is wrong to rewrite CC.
16767 # But if we don't then we get into trouble of one sort or another.
16768 # A longer-term fix would be to have automake use am__CC in this case,
16769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16770 CC="$am_aux_dir/compile $CC"
16771fi
16772
16773
16774# Check whether --enable-threading was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016775if test "${enable_threading+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016776 enableval=$enable_threading;
16777else
16778 enable_threading=no
16779fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016780if test "x$enable_threading" != "xno" ; then :
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016782$as_echo_n "checking whether compiler supports __thread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016783if test "${nih_cv_c_thread+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016784 $as_echo_n "(cached) " >&6
16785else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016787/* end confdefs.h. */
16788int __thread a;
16789int
16790main ()
16791{
16792
16793 ;
16794 return 0;
16795}
16796_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016797if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016798 nih_cv_c_thread=yes
16799else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016800 nih_cv_c_thread=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016801fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_c_thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016805$as_echo "$nih_cv_c_thread" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016806if test "x$nih_cv_c_thread" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016807
Scott James Remnantfde82c92009-09-22 10:04:15 -070016808$as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016809
16810fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016811else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016812 $as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016813
16814fi
16815
Scott James Remnant65f683d2009-07-14 13:05:17 +010016816# Other checks
16817# Check whether --enable-compiler-warnings was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016818if test "${enable_compiler_warnings+set}" = set; then :
16819 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then :
16820 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016821 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
16822fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016823 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016824 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
16825fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016826fi
16827
Scott James Remnant65f683d2009-07-14 13:05:17 +010016828fi
16829
16830# Check whether --enable-compiler-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016831if test "${enable_compiler_optimisations+set}" = set; then :
16832 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016833 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16834 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16835fi
16836
Scott James Remnant65f683d2009-07-14 13:05:17 +010016837fi
16838
16839# Check whether --enable-compiler-coverage was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016840if test "${enable_compiler_coverage+set}" = set; then :
16841 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then :
16842 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016843 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
16844fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016845 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016846 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
16847fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016848fi
16849
Scott James Remnant65f683d2009-07-14 13:05:17 +010016850fi
16851
16852
16853# Check whether --enable-linker-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016854if test "${enable_linker_optimisations+set}" = set; then :
16855 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016856 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
16857else
16858 LDFLAGS="$LDFLAGS -Wl,-O1"
16859fi
16860
Scott James Remnant65f683d2009-07-14 13:05:17 +010016861fi
16862
Scott James Remnantfde82c92009-09-22 10:04:15 -070016863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version script argument" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016864$as_echo_n "checking for linker version script argument... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016865if test "${nih_cv_version_script+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016866 $as_echo_n "(cached) " >&6
16867else
16868 nih_cv_version_script=none
16869for nih_try_arg in "-Wl,--version-script"; do
16870 nih_old_libs="$LIBS"
16871 LIBS="$LIBS $nih_try_arg=conftest.ver"
16872
16873 cat >conftest.ver <<EOF
16874TEST {
16875 global:
16876 *;
16877};
16878EOF
16879
Scott James Remnantfde82c92009-09-22 10:04:15 -070016880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016881/* end confdefs.h. */
16882
16883int
16884main ()
16885{
16886
16887 ;
16888 return 0;
16889}
16890_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016891if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016892
16893 rm -f conftest.ver
16894 LIBS="$nih_old_libs"
16895 nih_cv_version_script="$nih_try_arg"
16896 break
16897
Scott James Remnant65f683d2009-07-14 13:05:17 +010016898fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016899rm -f core conftest.err conftest.$ac_objext \
16900 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016901
16902 rm -f conftest.ver
16903 LIBS="$nih_old_libs"
16904done
16905fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_version_script" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016907$as_echo "$nih_cv_version_script" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016908if test "x$nih_cv_version_script" != "xnone"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016909 VERSION_SCRIPT_ARG=$nih_cv_version_script
16910
16911fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016912 if test "x$nih_cv_version_script" != "xnone"; then
16913 HAVE_VERSION_SCRIPT_ARG_TRUE=
16914 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
16915else
16916 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
16917 HAVE_VERSION_SCRIPT_ARG_FALSE=
16918fi
16919
16920
16921
16922
16923# Checks for header files.
16924
16925# Checks for typedefs, structures, and compiler characteristics.
16926
16927# Checks for library functions.
16928
16929# Other checks
Scott James Remnantfde82c92009-09-22 10:04:15 -070016930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sbindir in PATH" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016931$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
16932eval upstart_sbindir=\"$sbindir\"
16933case $upstart_sbindir in
16934 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016936$as_echo "no" >&6; }
16937 ;;
16938 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016940$as_echo "yes" >&6; }
16941
16942cat >>confdefs.h <<_ACEOF
16943#define EXTRA_PATH "$upstart_sbindir"
16944_ACEOF
16945
16946 ;;
16947esac
16948
16949
Scott James Remnant2a66c572009-09-15 03:19:16 +010016950pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016952$as_echo_n "checking for UDEV... " >&6; }
16953
16954if test -n "$PKG_CONFIG"; then
16955 if test -n "$UDEV_CFLAGS"; then
16956 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
16957 else
16958 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016959 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016960 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
16961 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16963 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010016964 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 146" 2>/dev/null`
16965else
16966 pkg_failed=yes
16967fi
16968 fi
16969else
16970 pkg_failed=untried
16971fi
16972if test -n "$PKG_CONFIG"; then
16973 if test -n "$UDEV_LIBS"; then
16974 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
16975 else
16976 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016978 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
16979 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16981 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010016982 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 146" 2>/dev/null`
16983else
16984 pkg_failed=yes
16985fi
16986 fi
16987else
16988 pkg_failed=untried
16989fi
16990
16991
16992
16993if test $pkg_failed = yes; then
16994
16995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16996 _pkg_short_errors_supported=yes
16997else
16998 _pkg_short_errors_supported=no
16999fi
17000 if test $_pkg_short_errors_supported = yes; then
17001 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev >= 146"`
17002 else
17003 UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev >= 146"`
17004 fi
17005 # Put the nasty error message in config.log where it belongs
17006 echo "$UDEV_PKG_ERRORS" >&5
17007
Scott James Remnantfde82c92009-09-22 10:04:15 -070017008 as_fn_error "Package requirements (libudev >= 146) were not met:
Scott James Remnant2a66c572009-09-15 03:19:16 +010017009
17010$UDEV_PKG_ERRORS
17011
17012Consider adjusting the PKG_CONFIG_PATH environment variable if you
17013installed software in a non-standard prefix.
17014
17015Alternatively, you may set the environment variables UDEV_CFLAGS
17016and UDEV_LIBS to avoid the need to call pkg-config.
17017See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017018" "$LINENO" 5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017019elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017022as_fn_error "The pkg-config script could not be found or is too old. Make sure it
Scott James Remnant2a66c572009-09-15 03:19:16 +010017023is in your PATH or set the PKG_CONFIG environment variable to the full
17024path to pkg-config.
17025
17026Alternatively, you may set the environment variables UDEV_CFLAGS
17027and UDEV_LIBS to avoid the need to call pkg-config.
17028See the pkg-config man page for more details.
17029
17030To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017031See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010017032else
17033 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17034 UDEV_LIBS=$pkg_cv_UDEV_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070017035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017036$as_echo "yes" >&6; }
17037 :
17038fi
17039
17040
17041ac_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 udev/Makefile conf/Makefile doc/Makefile contrib/Makefile po/Makefile.in"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017042
17043ac_config_headers="$ac_config_headers config.h"
17044
17045cat >confcache <<\_ACEOF
17046# This file is a shell script that caches the results of configure
17047# tests run on this system so they can be shared between configure
17048# scripts and configure runs, see configure's option --config-cache.
17049# It is not useful on other systems. If it contains results you don't
17050# want to keep, you may remove or edit it.
17051#
17052# config.status only pays attention to the cache file if you give it
17053# the --recheck option to rerun configure.
17054#
17055# `ac_cv_env_foo' variables (set or unset) will be overridden when
17056# loading this file, other *unset* `ac_cv_foo' will be assigned the
17057# following values.
17058
17059_ACEOF
17060
17061# The following way of writing the cache mishandles newlines in values,
17062# but we know of no workaround that is simple, portable, and efficient.
17063# So, we kill variables containing newlines.
17064# Ultrix sh set writes to stderr and can't be redirected directly,
17065# and sets the high bit in the cache file unless we assign to the vars.
17066(
17067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17068 eval ac_val=\$$ac_var
17069 case $ac_val in #(
17070 *${as_nl}*)
17071 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017072 *_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 +010017073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17074 esac
17075 case $ac_var in #(
17076 _ | IFS | as_nl) ;; #(
17077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017078 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017079 esac ;;
17080 esac
17081 done
17082
17083 (set) 2>&1 |
17084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17085 *${as_nl}ac_space=\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017086 # `set' does not quote correctly, so add quotes: double-quote
17087 # substitution turns \\\\ into \\, and sed turns \\ into \.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017088 sed -n \
17089 "s/'/'\\\\''/g;
17090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17091 ;; #(
17092 *)
17093 # `set' quotes correctly as required by POSIX, so do not add quotes.
17094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17095 ;;
17096 esac |
17097 sort
17098) |
17099 sed '
17100 /^ac_cv_env_/b end
17101 t clear
17102 :clear
17103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17104 t end
17105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17106 :end' >>confcache
17107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17108 if test -w "$cache_file"; then
17109 test "x$cache_file" != "x/dev/null" &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070017110 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017111$as_echo "$as_me: updating cache $cache_file" >&6;}
17112 cat confcache >$cache_file
17113 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017114 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017115$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17116 fi
17117fi
17118rm -f confcache
17119
17120test "x$prefix" = xNONE && prefix=$ac_default_prefix
17121# Let make expand exec_prefix.
17122test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17123
17124DEFS=-DHAVE_CONFIG_H
17125
17126ac_libobjs=
17127ac_ltlibobjs=
17128for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17129 # 1. Remove the extension, and $U if already installed.
17130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17131 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17133 # will be set to the directory where LIBOBJS objects are built.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017134 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17135 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017136done
17137LIBOBJS=$ac_libobjs
17138
17139LTLIBOBJS=$ac_ltlibobjs
17140
17141
17142if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017143 as_fn_error "conditional \"AMDEP\" was never defined.
17144Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017145fi
17146if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017147 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17148Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017149fi
17150if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017151 as_fn_error "conditional \"INSTALL_NIH\" was never defined.
17152Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017153fi
17154if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017155 as_fn_error "conditional \"HAVE_DBUS\" was never defined.
17156Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017157fi
17158if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017159 as_fn_error "conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
17160Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017161fi
17162
17163: ${CONFIG_STATUS=./config.status}
17164ac_write_fail=0
17165ac_clean_files_save=$ac_clean_files
17166ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070017167{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017168$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017169as_write_fail=0
17170cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017171#! $SHELL
17172# Generated by $as_me.
17173# Run this file to recreate the current configuration.
17174# Compiler output produced by configure, useful for debugging
17175# configure, is in config.log if it exists.
17176
17177debug=false
17178ac_cs_recheck=false
17179ac_cs_silent=false
Scott James Remnant2a66c572009-09-15 03:19:16 +010017180
Scott James Remnantfde82c92009-09-22 10:04:15 -070017181SHELL=\${CONFIG_SHELL-$SHELL}
17182export SHELL
17183_ASEOF
17184cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17185## -------------------- ##
17186## M4sh Initialization. ##
17187## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010017188
17189# Be more Bourne compatible
17190DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnantfde82c92009-09-22 10:04:15 -070017191if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017192 emulate sh
17193 NULLCMD=:
17194 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17195 # is contrary to our usage. Disable this feature.
17196 alias -g '${1+"$@"}'='"$@"'
17197 setopt NO_GLOB_SUBST
17198else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017199 case `(set -o) 2>/dev/null` in #(
17200 *posix*) :
17201 set -o posix ;; #(
17202 *) :
17203 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017204esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017205fi
17206
17207
Scott James Remnant65f683d2009-07-14 13:05:17 +010017208as_nl='
17209'
17210export as_nl
17211# Printing a long string crashes Solaris 7 /usr/bin/printf.
17212as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17213as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17214as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnantfde82c92009-09-22 10:04:15 -070017215# Prefer a ksh shell builtin over an external printf program on Solaris,
17216# but without wasting forks for bash or zsh.
17217if test -z "$BASH_VERSION$ZSH_VERSION" \
17218 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17219 as_echo='print -r --'
17220 as_echo_n='print -rn --'
17221elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017222 as_echo='printf %s\n'
17223 as_echo_n='printf %s'
17224else
17225 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17226 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17227 as_echo_n='/usr/ucb/echo -n'
17228 else
17229 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17230 as_echo_n_body='eval
17231 arg=$1;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017232 case $arg in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017233 *"$as_nl"*)
17234 expr "X$arg" : "X\\(.*\\)$as_nl";
17235 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17236 esac;
17237 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17238 '
17239 export as_echo_n_body
17240 as_echo_n='sh -c $as_echo_n_body as_echo'
17241 fi
17242 export as_echo_body
17243 as_echo='sh -c $as_echo_body as_echo'
17244fi
17245
17246# The user is always right.
17247if test "${PATH_SEPARATOR+set}" != set; then
17248 PATH_SEPARATOR=:
17249 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17250 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17251 PATH_SEPARATOR=';'
17252 }
17253fi
17254
Scott James Remnant65f683d2009-07-14 13:05:17 +010017255
17256# IFS
17257# We need space, tab and new line, in precisely that order. Quoting is
17258# there to prevent editors from complaining about space-tab.
17259# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17260# splitting by setting IFS to empty value.)
17261IFS=" "" $as_nl"
17262
17263# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017264case $0 in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017265 *[\\/]* ) as_myself=$0 ;;
17266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17267for as_dir in $PATH
17268do
17269 IFS=$as_save_IFS
17270 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17272 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010017273IFS=$as_save_IFS
17274
17275 ;;
17276esac
17277# We did not find ourselves, most probably we were run as `sh COMMAND'
17278# in which case we are not to be found in the path.
17279if test "x$as_myself" = x; then
17280 as_myself=$0
17281fi
17282if test ! -f "$as_myself"; then
17283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnantfde82c92009-09-22 10:04:15 -070017284 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017285fi
17286
Scott James Remnantfde82c92009-09-22 10:04:15 -070017287# Unset variables that we do not need and which cause bugs (e.g. in
17288# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17289# suppresses any "Segmentation fault" message there. '((' could
17290# trigger a bug in pdksh 5.2.14.
17291for as_var in BASH_ENV ENV MAIL MAILPATH
17292do eval test x\${$as_var+set} = xset \
17293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017294done
17295PS1='$ '
17296PS2='> '
17297PS4='+ '
17298
17299# NLS nuisances.
17300LC_ALL=C
17301export LC_ALL
17302LANGUAGE=C
17303export LANGUAGE
17304
Scott James Remnantfde82c92009-09-22 10:04:15 -070017305# CDPATH.
17306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17307
17308
17309# as_fn_error ERROR [LINENO LOG_FD]
17310# ---------------------------------
17311# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17312# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17313# script with status $?, using 1 if that was 0.
17314as_fn_error ()
17315{
17316 as_status=$?; test $as_status -eq 0 && as_status=1
17317 if test "$3"; then
17318 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17320 fi
17321 $as_echo "$as_me: error: $1" >&2
17322 as_fn_exit $as_status
17323} # as_fn_error
17324
17325
17326# as_fn_set_status STATUS
17327# -----------------------
17328# Set $? to STATUS, without forking.
17329as_fn_set_status ()
17330{
17331 return $1
17332} # as_fn_set_status
17333
17334# as_fn_exit STATUS
17335# -----------------
17336# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17337as_fn_exit ()
17338{
17339 set +e
17340 as_fn_set_status $1
17341 exit $1
17342} # as_fn_exit
17343
17344# as_fn_unset VAR
17345# ---------------
17346# Portably unset VAR.
17347as_fn_unset ()
17348{
17349 { eval $1=; unset $1;}
17350}
17351as_unset=as_fn_unset
17352# as_fn_append VAR VALUE
17353# ----------------------
17354# Append the text in VALUE to the end of the definition contained in VAR. Take
17355# advantage of any shell optimizations that allow amortized linear growth over
17356# repeated appends, instead of the typical quadratic growth present in naive
17357# implementations.
17358if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17359 eval 'as_fn_append ()
17360 {
17361 eval $1+=\$2
17362 }'
17363else
17364 as_fn_append ()
17365 {
17366 eval $1=\$$1\$2
17367 }
17368fi # as_fn_append
17369
17370# as_fn_arith ARG...
17371# ------------------
17372# Perform arithmetic evaluation on the ARGs, and store the result in the
17373# global $as_val. Take advantage of shells that can avoid forks. The arguments
17374# must be portable across $(()) and expr.
17375if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17376 eval 'as_fn_arith ()
17377 {
17378 as_val=$(( $* ))
17379 }'
17380else
17381 as_fn_arith ()
17382 {
17383 as_val=`expr "$@" || test $? -eq 1`
17384 }
17385fi # as_fn_arith
17386
17387
Scott James Remnant65f683d2009-07-14 13:05:17 +010017388if expr a : '\(a\)' >/dev/null 2>&1 &&
17389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17390 as_expr=expr
17391else
17392 as_expr=false
17393fi
17394
17395if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17396 as_basename=basename
17397else
17398 as_basename=false
17399fi
17400
Scott James Remnantfde82c92009-09-22 10:04:15 -070017401if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17402 as_dirname=dirname
17403else
17404 as_dirname=false
17405fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017406
Scott James Remnant65f683d2009-07-14 13:05:17 +010017407as_me=`$as_basename -- "$0" ||
17408$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17409 X"$0" : 'X\(//\)$' \| \
17410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17411$as_echo X/"$0" |
17412 sed '/^.*\/\([^/][^/]*\)\/*$/{
17413 s//\1/
17414 q
17415 }
17416 /^X\/\(\/\/\)$/{
17417 s//\1/
17418 q
17419 }
17420 /^X\/\(\/\).*/{
17421 s//\1/
17422 q
17423 }
17424 s/.*/./; q'`
17425
Scott James Remnantfde82c92009-09-22 10:04:15 -070017426# Avoid depending upon Character Ranges.
17427as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17428as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17429as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17430as_cr_digits='0123456789'
17431as_cr_alnum=$as_cr_Letters$as_cr_digits
Scott James Remnant65f683d2009-07-14 13:05:17 +010017432
17433ECHO_C= ECHO_N= ECHO_T=
Scott James Remnantfde82c92009-09-22 10:04:15 -070017434case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017435-n*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017436 case `echo 'xy\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010017437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017438 xy) ECHO_C='\c';;
17439 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17440 ECHO_T=' ';;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017441 esac;;
17442*)
17443 ECHO_N='-n';;
17444esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017445
17446rm -f conf$$ conf$$.exe conf$$.file
17447if test -d conf$$.dir; then
17448 rm -f conf$$.dir/conf$$.file
17449else
17450 rm -f conf$$.dir
17451 mkdir conf$$.dir 2>/dev/null
17452fi
17453if (echo >conf$$.file) 2>/dev/null; then
17454 if ln -s conf$$.file conf$$ 2>/dev/null; then
17455 as_ln_s='ln -s'
17456 # ... but there are two gotchas:
17457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17459 # In both cases, we have to default to `cp -p'.
17460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17461 as_ln_s='cp -p'
17462 elif ln conf$$.file conf$$ 2>/dev/null; then
17463 as_ln_s=ln
17464 else
17465 as_ln_s='cp -p'
17466 fi
17467else
17468 as_ln_s='cp -p'
17469fi
17470rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17471rmdir conf$$.dir 2>/dev/null
17472
Scott James Remnantfde82c92009-09-22 10:04:15 -070017473
17474# as_fn_mkdir_p
17475# -------------
17476# Create "$as_dir" as a directory, including parents if necessary.
17477as_fn_mkdir_p ()
17478{
17479
17480 case $as_dir in #(
17481 -*) as_dir=./$as_dir;;
17482 esac
17483 test -d "$as_dir" || eval $as_mkdir_p || {
17484 as_dirs=
17485 while :; do
17486 case $as_dir in #(
17487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17488 *) as_qdir=$as_dir;;
17489 esac
17490 as_dirs="'$as_qdir' $as_dirs"
17491 as_dir=`$as_dirname -- "$as_dir" ||
17492$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17493 X"$as_dir" : 'X\(//\)[^/]' \| \
17494 X"$as_dir" : 'X\(//\)$' \| \
17495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17496$as_echo X"$as_dir" |
17497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17498 s//\1/
17499 q
17500 }
17501 /^X\(\/\/\)[^/].*/{
17502 s//\1/
17503 q
17504 }
17505 /^X\(\/\/\)$/{
17506 s//\1/
17507 q
17508 }
17509 /^X\(\/\).*/{
17510 s//\1/
17511 q
17512 }
17513 s/.*/./; q'`
17514 test -d "$as_dir" && break
17515 done
17516 test -z "$as_dirs" || eval "mkdir $as_dirs"
17517 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17518
17519
17520} # as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010017521if mkdir -p . 2>/dev/null; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017522 as_mkdir_p='mkdir -p "$as_dir"'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017523else
17524 test -d ./-p && rmdir ./-p
17525 as_mkdir_p=false
17526fi
17527
17528if test -x / >/dev/null 2>&1; then
17529 as_test_x='test -x'
17530else
17531 if ls -dL / >/dev/null 2>&1; then
17532 as_ls_L_option=L
17533 else
17534 as_ls_L_option=
17535 fi
17536 as_test_x='
17537 eval sh -c '\''
17538 if test -d "$1"; then
17539 test -d "$1/.";
17540 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017541 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017542 -*)set "./$1";;
17543 esac;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017544 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017545 ???[sx]*):;;*)false;;esac;fi
17546 '\'' sh
17547 '
17548fi
17549as_executable_p=$as_test_x
17550
17551# Sed expression to map a string onto a valid CPP name.
17552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17553
17554# Sed expression to map a string onto a valid variable name.
17555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17556
17557
17558exec 6>&1
Scott James Remnantfde82c92009-09-22 10:04:15 -070017559## ----------------------------------- ##
17560## Main body of $CONFIG_STATUS script. ##
17561## ----------------------------------- ##
17562_ASEOF
17563test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017564
Scott James Remnantfde82c92009-09-22 10:04:15 -070017565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17566# Save the log message, to keep $0 and so on meaningful, and to
Scott James Remnant65f683d2009-07-14 13:05:17 +010017567# report actual input values of CONFIG_FILES etc. instead of their
17568# values after options handling.
17569ac_log="
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017570This file was extended by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -070017571generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +010017572
17573 CONFIG_FILES = $CONFIG_FILES
17574 CONFIG_HEADERS = $CONFIG_HEADERS
17575 CONFIG_LINKS = $CONFIG_LINKS
17576 CONFIG_COMMANDS = $CONFIG_COMMANDS
17577 $ $0 $@
17578
17579on `(hostname || uname -n) 2>/dev/null | sed 1q`
17580"
17581
17582_ACEOF
17583
17584case $ac_config_files in *"
17585"*) set x $ac_config_files; shift; ac_config_files=$*;;
17586esac
17587
17588case $ac_config_headers in *"
17589"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17590esac
17591
17592
17593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17594# Files that config.status was made for.
17595config_files="$ac_config_files"
17596config_headers="$ac_config_headers"
17597config_commands="$ac_config_commands"
17598
17599_ACEOF
17600
17601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17602ac_cs_usage="\
Scott James Remnantfde82c92009-09-22 10:04:15 -070017603\`$as_me' instantiates files and other configuration actions
17604from templates according to the current configuration. Unless the files
17605and actions are specified as TAGs, all are instantiated by default.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017606
Scott James Remnantfde82c92009-09-22 10:04:15 -070017607Usage: $0 [OPTION]... [TAG]...
Scott James Remnant65f683d2009-07-14 13:05:17 +010017608
17609 -h, --help print this help, then exit
17610 -V, --version print version number and configuration settings, then exit
17611 -q, --quiet, --silent
17612 do not print progress messages
17613 -d, --debug don't remove temporary files
17614 --recheck update $as_me by reconfiguring in the same conditions
17615 --file=FILE[:TEMPLATE]
17616 instantiate the configuration file FILE
17617 --header=FILE[:TEMPLATE]
17618 instantiate the configuration header FILE
17619
17620Configuration files:
17621$config_files
17622
17623Configuration headers:
17624$config_headers
17625
17626Configuration commands:
17627$config_commands
17628
Scott James Remnantfde82c92009-09-22 10:04:15 -070017629Report bugs to <upstart-devel@lists.ubuntu.com>."
Scott James Remnant65f683d2009-07-14 13:05:17 +010017630
17631_ACEOF
17632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17633ac_cs_version="\\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017634upstart config.status 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -070017635configured by $0, generated by GNU Autoconf 2.64,
Scott James Remnant65f683d2009-07-14 13:05:17 +010017636 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17637
Scott James Remnantfde82c92009-09-22 10:04:15 -070017638Copyright (C) 2009 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017639This config.status script is free software; the Free Software Foundation
17640gives unlimited permission to copy, distribute and modify it."
17641
17642ac_pwd='$ac_pwd'
17643srcdir='$srcdir'
17644INSTALL='$INSTALL'
17645MKDIR_P='$MKDIR_P'
17646AWK='$AWK'
17647test -n "\$AWK" || AWK=awk
17648_ACEOF
17649
17650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17651# The default lists apply if the user does not specify any file.
17652ac_need_defaults=:
17653while test $# != 0
17654do
17655 case $1 in
17656 --*=*)
17657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17659 ac_shift=:
17660 ;;
17661 *)
17662 ac_option=$1
17663 ac_optarg=$2
17664 ac_shift=shift
17665 ;;
17666 esac
17667
17668 case $ac_option in
17669 # Handling of the options.
17670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17671 ac_cs_recheck=: ;;
17672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17673 $as_echo "$ac_cs_version"; exit ;;
17674 --debug | --debu | --deb | --de | --d | -d )
17675 debug=: ;;
17676 --file | --fil | --fi | --f )
17677 $ac_shift
17678 case $ac_optarg in
17679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17680 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017681 as_fn_append CONFIG_FILES " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017682 ac_need_defaults=false;;
17683 --header | --heade | --head | --hea )
17684 $ac_shift
17685 case $ac_optarg in
17686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17687 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017688 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017689 ac_need_defaults=false;;
17690 --he | --h)
17691 # Conflict between --help and --header
Scott James Remnantfde82c92009-09-22 10:04:15 -070017692 as_fn_error "ambiguous option: \`$1'
17693Try \`$0 --help' for more information.";;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017694 --help | --hel | -h )
17695 $as_echo "$ac_cs_usage"; exit ;;
17696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17698 ac_cs_silent=: ;;
17699
17700 # This is an error.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017701 -*) as_fn_error "unrecognized option: \`$1'
17702Try \`$0 --help' for more information." ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017703
Scott James Remnantfde82c92009-09-22 10:04:15 -070017704 *) as_fn_append ac_config_targets " $1"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017705 ac_need_defaults=false ;;
17706
17707 esac
17708 shift
17709done
17710
17711ac_configure_extra_args=
17712
17713if $ac_cs_silent; then
17714 exec 6>/dev/null
17715 ac_configure_extra_args="$ac_configure_extra_args --silent"
17716fi
17717
17718_ACEOF
17719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17720if \$ac_cs_recheck; then
17721 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17722 shift
17723 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17724 CONFIG_SHELL='$SHELL'
17725 export CONFIG_SHELL
17726 exec "\$@"
17727fi
17728
17729_ACEOF
17730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17731exec 5>>config.log
17732{
17733 echo
17734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17735## Running $as_me. ##
17736_ASBOX
17737 $as_echo "$ac_log"
17738} >&5
17739
17740_ACEOF
17741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17742#
17743# INIT-COMMANDS
17744#
17745AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17746
17747
17748# The HP-UX ksh and POSIX shell print the target directory to stdout
17749# if CDPATH is set.
17750(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17751
17752sed_quote_subst='$sed_quote_subst'
17753double_quote_subst='$double_quote_subst'
17754delay_variable_subst='$delay_variable_subst'
17755macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17756macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17757enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17758enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17759pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17760enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17761host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17762host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17763host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17764build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17765build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17766build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17767SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17768Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17769GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17770EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17771FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17772LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17773NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17774LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17775max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17776ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17777exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17778lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17779lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17780lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17781reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17782reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17783OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17784deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17785file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17786AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17787AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17788STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17789RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17790old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17791old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17792old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17793CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17794CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17795compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17796GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17797lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17798lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17799lt_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"`'
17800lt_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"`'
17801objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17802SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17803ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17804MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17805lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17806lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17807lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17808lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17809lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17810need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17811DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17812NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17813LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17814OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17815OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17816libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17817shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17818extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17819archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17820enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17821export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17822whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17823compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17824old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17825old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17826archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17827archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17828module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17829module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17830with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17831allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17832no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17833hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17834hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17835hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17836hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17837hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17838hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17839hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17840hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17841inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17842link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17843fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17844always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17845export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17846exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17847include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17848prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17849file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17850variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17851need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17852need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17853version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17854runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17855shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17856shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17857libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17858library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17859soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17860postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17861postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17862finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17863finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17864hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17865sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17866sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17867hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17868enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17869enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17870enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17871old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17872striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17873
17874LTCC='$LTCC'
17875LTCFLAGS='$LTCFLAGS'
17876compiler='$compiler_DEFAULT'
17877
17878# Quote evaled strings.
17879for var in SED \
17880GREP \
17881EGREP \
17882FGREP \
17883LD \
17884NM \
17885LN_S \
17886lt_SP2NL \
17887lt_NL2SP \
17888reload_flag \
17889OBJDUMP \
17890deplibs_check_method \
17891file_magic_cmd \
17892AR \
17893AR_FLAGS \
17894STRIP \
17895RANLIB \
17896CC \
17897CFLAGS \
17898compiler \
17899lt_cv_sys_global_symbol_pipe \
17900lt_cv_sys_global_symbol_to_cdecl \
17901lt_cv_sys_global_symbol_to_c_name_address \
17902lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17903SHELL \
17904ECHO \
17905lt_prog_compiler_no_builtin_flag \
17906lt_prog_compiler_wl \
17907lt_prog_compiler_pic \
17908lt_prog_compiler_static \
17909lt_cv_prog_compiler_c_o \
17910need_locks \
17911DSYMUTIL \
17912NMEDIT \
17913LIPO \
17914OTOOL \
17915OTOOL64 \
17916shrext_cmds \
17917export_dynamic_flag_spec \
17918whole_archive_flag_spec \
17919compiler_needs_object \
17920with_gnu_ld \
17921allow_undefined_flag \
17922no_undefined_flag \
17923hardcode_libdir_flag_spec \
17924hardcode_libdir_flag_spec_ld \
17925hardcode_libdir_separator \
17926fix_srcfile_path \
17927exclude_expsyms \
17928include_expsyms \
17929file_list_spec \
17930variables_saved_for_relink \
17931libname_spec \
17932library_names_spec \
17933soname_spec \
17934finish_eval \
17935old_striplib \
17936striplib; do
17937 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17938 *[\\\\\\\`\\"\\\$]*)
17939 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17940 ;;
17941 *)
17942 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17943 ;;
17944 esac
17945done
17946
17947# Double-quote double-evaled strings.
17948for var in reload_cmds \
17949old_postinstall_cmds \
17950old_postuninstall_cmds \
17951old_archive_cmds \
17952extract_expsyms_cmds \
17953old_archive_from_new_cmds \
17954old_archive_from_expsyms_cmds \
17955archive_cmds \
17956archive_expsym_cmds \
17957module_cmds \
17958module_expsym_cmds \
17959export_symbols_cmds \
17960prelink_cmds \
17961postinstall_cmds \
17962postuninstall_cmds \
17963finish_cmds \
17964sys_lib_search_path_spec \
17965sys_lib_dlsearch_path_spec; do
17966 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17967 *[\\\\\\\`\\"\\\$]*)
17968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17969 ;;
17970 *)
17971 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17972 ;;
17973 esac
17974done
17975
17976# Fix-up fallback echo if it was mangled by the above quoting rules.
17977case \$lt_ECHO in
17978*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17979 ;;
17980esac
17981
17982ac_aux_dir='$ac_aux_dir'
17983xsi_shell='$xsi_shell'
17984lt_shell_append='$lt_shell_append'
17985
17986# See if we are running on zsh, and set the options which allow our
17987# commands through without removal of \ escapes INIT.
17988if test -n "\${ZSH_VERSION+set}" ; then
17989 setopt NO_GLOB_SUBST
17990fi
17991
17992
17993 PACKAGE='$PACKAGE'
17994 VERSION='$VERSION'
17995 TIMESTAMP='$TIMESTAMP'
17996 RM='$RM'
17997 ofile='$ofile'
17998
17999
18000
18001# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18002 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18003 # from automake < 1.5.
18004 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18005 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18006 LINGUAS="${LINGUAS-%UNSET%}"
18007
18008
18009_ACEOF
18010
18011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18012
18013# Handling of arguments.
18014for ac_config_target in $ac_config_targets
18015do
18016 case $ac_config_target in
18017 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18018 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18019 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18020 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18021 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18022 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18023 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
18024 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
18025 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
18026 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
18027 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
18028 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +010018029 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018030 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
18031 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18032 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18033 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18034 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18035
Scott James Remnantfde82c92009-09-22 10:04:15 -070018036 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018037 esac
18038done
18039
18040
18041# If the user did not use the arguments to specify the items to instantiate,
18042# then the envvar interface is used. Set only those that are not.
18043# We use the long form for the default assignment because of an extremely
18044# bizarre bug on SunOS 4.1.3.
18045if $ac_need_defaults; then
18046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18049fi
18050
18051# Have a temporary directory for convenience. Make it in the build tree
18052# simply because there is no reason against having it here, and in addition,
18053# creating and moving files from /tmp can sometimes cause problems.
18054# Hook for its removal unless debugging.
18055# Note that there is a small window in which the directory will not be cleaned:
18056# after its creation but before its name has been assigned to `$tmp'.
18057$debug ||
18058{
18059 tmp=
18060 trap 'exit_status=$?
18061 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18062' 0
Scott James Remnantfde82c92009-09-22 10:04:15 -070018063 trap 'as_fn_exit 1' 1 2 13 15
Scott James Remnant65f683d2009-07-14 13:05:17 +010018064}
18065# Create a (secure) tmp directory for tmp files.
18066
18067{
18068 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18069 test -n "$tmp" && test -d "$tmp"
18070} ||
18071{
18072 tmp=./conf$$-$RANDOM
18073 (umask 077 && mkdir "$tmp")
Scott James Remnantfde82c92009-09-22 10:04:15 -070018074} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018075
18076# Set up the scripts for CONFIG_FILES section.
18077# No need to generate them if there are no CONFIG_FILES.
18078# This happens for instance with `./config.status config.h'.
18079if test -n "$CONFIG_FILES"; then
18080
18081
Scott James Remnantfde82c92009-09-22 10:04:15 -070018082ac_cr=`echo X | tr X '\015'`
18083# On cygwin, bash can eat \r inside `` if the user requested igncr.
18084# But we know of no other shell where ac_cr would be empty at this
18085# point, so we can use a bashism as a fallback.
18086if test "x$ac_cr" = x; then
18087 eval ac_cr=\$\'\\r\'
18088fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010018089ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18090if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018091 ac_cs_awk_cr='\r'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018092else
18093 ac_cs_awk_cr=$ac_cr
18094fi
18095
18096echo 'BEGIN {' >"$tmp/subs1.awk" &&
18097_ACEOF
18098
18099
18100{
18101 echo "cat >conf$$subs.awk <<_ACEOF" &&
18102 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18103 echo "_ACEOF"
18104} >conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018105 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018106ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18107ac_delim='%!_!# '
18108for ac_last_try in false false false false false :; do
18109 . ./conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018110 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018111
18112 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18113 if test $ac_delim_n = $ac_delim_num; then
18114 break
18115 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018116 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018117 else
18118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18119 fi
18120done
18121rm -f conf$$subs.sh
18122
18123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18124cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18125_ACEOF
18126sed -n '
18127h
18128s/^/S["/; s/!.*/"]=/
18129p
18130g
18131s/^[^!]*!//
18132:repl
18133t repl
18134s/'"$ac_delim"'$//
18135t delim
18136:nl
18137h
18138s/\(.\{148\}\).*/\1/
18139t more1
18140s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18141p
18142n
18143b repl
18144:more1
18145s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18146p
18147g
18148s/.\{148\}//
18149t nl
18150:delim
18151h
18152s/\(.\{148\}\).*/\1/
18153t more2
18154s/["\\]/\\&/g; s/^/"/; s/$/"/
18155p
18156b
18157:more2
18158s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18159p
18160g
18161s/.\{148\}//
18162t delim
18163' <conf$$subs.awk | sed '
18164/^[^""]/{
18165 N
18166 s/\n//
18167}
18168' >>$CONFIG_STATUS || ac_write_fail=1
18169rm -f conf$$subs.awk
18170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18171_ACAWK
18172cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18173 for (key in S) S_is_set[key] = 1
18174 FS = ""
18175
18176}
18177{
18178 line = $ 0
18179 nfields = split(line, field, "@")
18180 substed = 0
18181 len = length(field[1])
18182 for (i = 2; i < nfields; i++) {
18183 key = field[i]
18184 keylen = length(key)
18185 if (S_is_set[key]) {
18186 value = S[key]
18187 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18188 len += length(value) + length(field[++i])
18189 substed = 1
18190 } else
18191 len += 1 + keylen
18192 }
18193
18194 print line
18195}
18196
18197_ACAWK
18198_ACEOF
18199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18200if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18201 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18202else
18203 cat
18204fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018205 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018206_ACEOF
18207
18208# VPATH may cause trouble with some makes, so we remove $(srcdir),
18209# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18210# trailing colons and then remove the whole line if VPATH becomes empty
18211# (actually we leave an empty line to preserve line numbers).
18212if test "x$srcdir" = x.; then
18213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18214s/:*\$(srcdir):*/:/
18215s/:*\${srcdir}:*/:/
18216s/:*@srcdir@:*/:/
18217s/^\([^=]*=[ ]*\):*/\1/
18218s/:*$//
18219s/^[^=]*=[ ]*$//
18220}'
18221fi
18222
18223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18224fi # test -n "$CONFIG_FILES"
18225
18226# Set up the scripts for CONFIG_HEADERS section.
18227# No need to generate them if there are no CONFIG_HEADERS.
18228# This happens for instance with `./config.status Makefile'.
18229if test -n "$CONFIG_HEADERS"; then
18230cat >"$tmp/defines.awk" <<\_ACAWK ||
18231BEGIN {
18232_ACEOF
18233
18234# Transform confdefs.h into an awk script `defines.awk', embedded as
18235# here-document in config.status, that substitutes the proper values into
18236# config.h.in to produce config.h.
18237
18238# Create a delimiter string that does not exist in confdefs.h, to ease
18239# handling of long lines.
18240ac_delim='%!_!# '
18241for ac_last_try in false false :; do
18242 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18243 if test -z "$ac_t"; then
18244 break
18245 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018246 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018247 else
18248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18249 fi
18250done
18251
18252# For the awk script, D is an array of macro values keyed by name,
18253# likewise P contains macro parameters if any. Preserve backslash
18254# newline sequences.
18255
18256ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18257sed -n '
18258s/.\{148\}/&'"$ac_delim"'/g
18259t rset
18260:rset
18261s/^[ ]*#[ ]*define[ ][ ]*/ /
18262t def
18263d
18264:def
18265s/\\$//
18266t bsnl
18267s/["\\]/\\&/g
18268s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18269D["\1"]=" \3"/p
18270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18271d
18272:bsnl
18273s/["\\]/\\&/g
18274s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18275D["\1"]=" \3\\\\\\n"\\/p
18276t cont
18277s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18278t cont
18279d
18280:cont
18281n
18282s/.\{148\}/&'"$ac_delim"'/g
18283t clear
18284:clear
18285s/\\$//
18286t bsnlc
18287s/["\\]/\\&/g; s/^/"/; s/$/"/p
18288d
18289:bsnlc
18290s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18291b cont
18292' <confdefs.h | sed '
18293s/'"$ac_delim"'/"\\\
18294"/g' >>$CONFIG_STATUS || ac_write_fail=1
18295
18296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18297 for (key in D) D_is_set[key] = 1
18298 FS = ""
18299}
18300/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18301 line = \$ 0
18302 split(line, arg, " ")
18303 if (arg[1] == "#") {
18304 defundef = arg[2]
18305 mac1 = arg[3]
18306 } else {
18307 defundef = substr(arg[1], 2)
18308 mac1 = arg[2]
18309 }
18310 split(mac1, mac2, "(") #)
18311 macro = mac2[1]
18312 prefix = substr(line, 1, index(line, defundef) - 1)
18313 if (D_is_set[macro]) {
18314 # Preserve the white space surrounding the "#".
18315 print prefix "define", macro P[macro] D[macro]
18316 next
18317 } else {
18318 # Replace #undef with comments. This is necessary, for example,
18319 # in the case of _POSIX_SOURCE, which is predefined and required
18320 # on some systems where configure will not decide to define it.
18321 if (defundef == "undef") {
18322 print "/*", prefix defundef, macro, "*/"
18323 next
18324 }
18325 }
18326}
18327{ print }
18328_ACAWK
18329_ACEOF
18330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Scott James Remnantfde82c92009-09-22 10:04:15 -070018331 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018332fi # test -n "$CONFIG_HEADERS"
18333
18334
18335eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18336shift
18337for ac_tag
18338do
18339 case $ac_tag in
18340 :[FHLC]) ac_mode=$ac_tag; continue;;
18341 esac
18342 case $ac_mode$ac_tag in
18343 :[FHL]*:*);;
Scott James Remnantfde82c92009-09-22 10:04:15 -070018344 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018345 :[FH]-) ac_tag=-:-;;
18346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18347 esac
18348 ac_save_IFS=$IFS
18349 IFS=:
18350 set x $ac_tag
18351 IFS=$ac_save_IFS
18352 shift
18353 ac_file=$1
18354 shift
18355
18356 case $ac_mode in
18357 :L) ac_source=$1;;
18358 :[FH])
18359 ac_file_inputs=
18360 for ac_f
18361 do
18362 case $ac_f in
18363 -) ac_f="$tmp/stdin";;
18364 *) # Look for the file first in the build tree, then in the source tree
18365 # (if the path is not absolute). The absolute path cannot be DOS-style,
18366 # because $ac_f cannot contain `:'.
18367 test -f "$ac_f" ||
18368 case $ac_f in
18369 [\\/$]*) false;;
18370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18371 esac ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018372 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018373 esac
18374 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070018375 as_fn_append ac_file_inputs " '$ac_f'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010018376 done
18377
18378 # Let's still pretend it is `configure' which instantiates (i.e., don't
18379 # use $as_me), people would be surprised to read:
18380 # /* config.h. Generated by config.status. */
18381 configure_input='Generated from '`
18382 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18383 `' by configure.'
18384 if test x"$ac_file" != x-; then
18385 configure_input="$ac_file. $configure_input"
Scott James Remnantfde82c92009-09-22 10:04:15 -070018386 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018387$as_echo "$as_me: creating $ac_file" >&6;}
18388 fi
18389 # Neutralize special characters interpreted by sed in replacement strings.
18390 case $configure_input in #(
18391 *\&* | *\|* | *\\* )
18392 ac_sed_conf_input=`$as_echo "$configure_input" |
18393 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18394 *) ac_sed_conf_input=$configure_input;;
18395 esac
18396
18397 case $ac_tag in
18398 *:-:* | *:-) cat >"$tmp/stdin" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018399 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018400 esac
18401 ;;
18402 esac
18403
18404 ac_dir=`$as_dirname -- "$ac_file" ||
18405$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18406 X"$ac_file" : 'X\(//\)[^/]' \| \
18407 X"$ac_file" : 'X\(//\)$' \| \
18408 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18409$as_echo X"$ac_file" |
18410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18411 s//\1/
18412 q
18413 }
18414 /^X\(\/\/\)[^/].*/{
18415 s//\1/
18416 q
18417 }
18418 /^X\(\/\/\)$/{
18419 s//\1/
18420 q
18421 }
18422 /^X\(\/\).*/{
18423 s//\1/
18424 q
18425 }
18426 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018427 as_dir="$ac_dir"; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018428 ac_builddir=.
18429
18430case "$ac_dir" in
18431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18432*)
18433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18434 # A ".." for each directory in $ac_dir_suffix.
18435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18436 case $ac_top_builddir_sub in
18437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18439 esac ;;
18440esac
18441ac_abs_top_builddir=$ac_pwd
18442ac_abs_builddir=$ac_pwd$ac_dir_suffix
18443# for backward compatibility:
18444ac_top_builddir=$ac_top_build_prefix
18445
18446case $srcdir in
18447 .) # We are building in place.
18448 ac_srcdir=.
18449 ac_top_srcdir=$ac_top_builddir_sub
18450 ac_abs_top_srcdir=$ac_pwd ;;
18451 [\\/]* | ?:[\\/]* ) # Absolute name.
18452 ac_srcdir=$srcdir$ac_dir_suffix;
18453 ac_top_srcdir=$srcdir
18454 ac_abs_top_srcdir=$srcdir ;;
18455 *) # Relative name.
18456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18457 ac_top_srcdir=$ac_top_build_prefix$srcdir
18458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18459esac
18460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18461
18462
18463 case $ac_mode in
18464 :F)
18465 #
18466 # CONFIG_FILE
18467 #
18468
18469 case $INSTALL in
18470 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18471 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18472 esac
18473 ac_MKDIR_P=$MKDIR_P
18474 case $MKDIR_P in
18475 [\\/$]* | ?:[\\/]* ) ;;
18476 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18477 esac
18478_ACEOF
18479
18480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18481# If the template does not know about datarootdir, expand it.
18482# FIXME: This hack should be removed a few years after 2.60.
18483ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant65f683d2009-07-14 13:05:17 +010018484ac_sed_dataroot='
18485/datarootdir/ {
18486 p
18487 q
18488}
18489/@datadir@/p
18490/@docdir@/p
18491/@infodir@/p
18492/@localedir@/p
Scott James Remnantfde82c92009-09-22 10:04:15 -070018493/@mandir@/p'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018494case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18495*datarootdir*) ac_datarootdir_seen=yes;;
18496*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070018497 { $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 +010018498$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18499_ACEOF
18500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18501 ac_datarootdir_hack='
18502 s&@datadir@&$datadir&g
18503 s&@docdir@&$docdir&g
18504 s&@infodir@&$infodir&g
18505 s&@localedir@&$localedir&g
18506 s&@mandir@&$mandir&g
Scott James Remnantfde82c92009-09-22 10:04:15 -070018507 s&\\\${datarootdir}&$datarootdir&g' ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018508esac
18509_ACEOF
18510
18511# Neutralize VPATH when `$srcdir' = `.'.
18512# Shell code in configure.ac might set extrasub.
18513# FIXME: do we really want to maintain this feature?
18514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18515ac_sed_extra="$ac_vpsub
18516$extrasub
18517_ACEOF
18518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18519:t
18520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18521s|@configure_input@|$ac_sed_conf_input|;t t
18522s&@top_builddir@&$ac_top_builddir_sub&;t t
18523s&@top_build_prefix@&$ac_top_build_prefix&;t t
18524s&@srcdir@&$ac_srcdir&;t t
18525s&@abs_srcdir@&$ac_abs_srcdir&;t t
18526s&@top_srcdir@&$ac_top_srcdir&;t t
18527s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18528s&@builddir@&$ac_builddir&;t t
18529s&@abs_builddir@&$ac_abs_builddir&;t t
18530s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18531s&@INSTALL@&$ac_INSTALL&;t t
18532s&@MKDIR_P@&$ac_MKDIR_P&;t t
18533$ac_datarootdir_hack
18534"
18535eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018536 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018537
18538test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18539 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18540 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070018541 { $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 +010018542which seems to be undefined. Please make sure it is defined." >&5
18543$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18544which seems to be undefined. Please make sure it is defined." >&2;}
18545
18546 rm -f "$tmp/stdin"
18547 case $ac_file in
18548 -) cat "$tmp/out" && rm -f "$tmp/out";;
18549 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18550 esac \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018551 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018552 ;;
18553 :H)
18554 #
18555 # CONFIG_HEADER
18556 #
18557 if test x"$ac_file" != x-; then
18558 {
18559 $as_echo "/* $configure_input */" \
18560 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18561 } >"$tmp/config.h" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018562 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018563 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018564 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018565$as_echo "$as_me: $ac_file is unchanged" >&6;}
18566 else
18567 rm -f "$ac_file"
18568 mv "$tmp/config.h" "$ac_file" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018569 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018570 fi
18571 else
18572 $as_echo "/* $configure_input */" \
18573 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018574 || as_fn_error "could not create -" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018575 fi
18576# Compute "$ac_file"'s index in $config_headers.
18577_am_arg="$ac_file"
18578_am_stamp_count=1
18579for _am_header in $config_headers :; do
18580 case $_am_header in
18581 $_am_arg | $_am_arg:* )
18582 break ;;
18583 * )
18584 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18585 esac
18586done
18587echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18588$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18589 X"$_am_arg" : 'X\(//\)[^/]' \| \
18590 X"$_am_arg" : 'X\(//\)$' \| \
18591 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18592$as_echo X"$_am_arg" |
18593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18594 s//\1/
18595 q
18596 }
18597 /^X\(\/\/\)[^/].*/{
18598 s//\1/
18599 q
18600 }
18601 /^X\(\/\/\)$/{
18602 s//\1/
18603 q
18604 }
18605 /^X\(\/\).*/{
18606 s//\1/
18607 q
18608 }
18609 s/.*/./; q'`/stamp-h$_am_stamp_count
18610 ;;
18611
Scott James Remnantfde82c92009-09-22 10:04:15 -070018612 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018613$as_echo "$as_me: executing $ac_file commands" >&6;}
18614 ;;
18615 esac
18616
18617
18618 case $ac_file$ac_mode in
18619 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18620 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18621 # are listed without --file. Let's play safe and only enable the eval
18622 # if we detect the quoting.
18623 case $CONFIG_FILES in
18624 *\'*) eval set x "$CONFIG_FILES" ;;
18625 *) set x $CONFIG_FILES ;;
18626 esac
18627 shift
18628 for mf
18629 do
18630 # Strip MF so we end up with the name of the file.
18631 mf=`echo "$mf" | sed -e 's/:.*$//'`
18632 # Check whether this is an Automake generated Makefile or not.
18633 # We used to match only the files named `Makefile.in', but
18634 # some people rename them; so instead we look at the file content.
18635 # Grep'ing the first line is not enough: some people post-process
18636 # each Makefile.in and add a new line on top of each file to say so.
18637 # Grep'ing the whole file is not good either: AIX grep has a line
18638 # limit of 2048, but all sed's we know have understand at least 4000.
18639 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18640 dirpart=`$as_dirname -- "$mf" ||
18641$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18642 X"$mf" : 'X\(//\)[^/]' \| \
18643 X"$mf" : 'X\(//\)$' \| \
18644 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18645$as_echo X"$mf" |
18646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18647 s//\1/
18648 q
18649 }
18650 /^X\(\/\/\)[^/].*/{
18651 s//\1/
18652 q
18653 }
18654 /^X\(\/\/\)$/{
18655 s//\1/
18656 q
18657 }
18658 /^X\(\/\).*/{
18659 s//\1/
18660 q
18661 }
18662 s/.*/./; q'`
18663 else
18664 continue
18665 fi
18666 # Extract the definition of DEPDIR, am__include, and am__quote
18667 # from the Makefile without running `make'.
18668 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18669 test -z "$DEPDIR" && continue
18670 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18671 test -z "am__include" && continue
18672 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18673 # When using ansi2knr, U may be empty or an underscore; expand it
18674 U=`sed -n 's/^U = //p' < "$mf"`
18675 # Find all dependency output files, they are included files with
18676 # $(DEPDIR) in their names. We invoke sed twice because it is the
18677 # simplest approach to changing $(DEPDIR) to its actual value in the
18678 # expansion.
18679 for file in `sed -n "
18680 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18681 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18682 # Make sure the directory exists.
18683 test -f "$dirpart/$file" && continue
18684 fdir=`$as_dirname -- "$file" ||
18685$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18686 X"$file" : 'X\(//\)[^/]' \| \
18687 X"$file" : 'X\(//\)$' \| \
18688 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18689$as_echo X"$file" |
18690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18691 s//\1/
18692 q
18693 }
18694 /^X\(\/\/\)[^/].*/{
18695 s//\1/
18696 q
18697 }
18698 /^X\(\/\/\)$/{
18699 s//\1/
18700 q
18701 }
18702 /^X\(\/\).*/{
18703 s//\1/
18704 q
18705 }
18706 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018707 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018708 # echo "creating $dirpart/$file"
18709 echo '# dummy' > "$dirpart/$file"
18710 done
18711 done
18712}
18713 ;;
18714 "libtool":C)
18715
18716 # See if we are running on zsh, and set the options which allow our
18717 # commands through without removal of \ escapes.
18718 if test -n "${ZSH_VERSION+set}" ; then
18719 setopt NO_GLOB_SUBST
18720 fi
18721
18722 cfgfile="${ofile}T"
18723 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18724 $RM "$cfgfile"
18725
18726 cat <<_LT_EOF >> "$cfgfile"
18727#! $SHELL
18728
18729# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18730# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18732# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18733#
18734# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18735# 2006, 2007, 2008 Free Software Foundation, Inc.
18736# Written by Gordon Matzigkeit, 1996
18737#
18738# This file is part of GNU Libtool.
18739#
18740# GNU Libtool is free software; you can redistribute it and/or
18741# modify it under the terms of the GNU General Public License as
18742# published by the Free Software Foundation; either version 2 of
18743# the License, or (at your option) any later version.
18744#
18745# As a special exception to the GNU General Public License,
18746# if you distribute this file as part of a program or library that
18747# is built using GNU Libtool, you may include this file under the
18748# same distribution terms that you use for the rest of that program.
18749#
18750# GNU Libtool is distributed in the hope that it will be useful,
18751# but WITHOUT ANY WARRANTY; without even the implied warranty of
18752# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18753# GNU General Public License for more details.
18754#
18755# You should have received a copy of the GNU General Public License
18756# along with GNU Libtool; see the file COPYING. If not, a copy
18757# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18758# obtained by writing to the Free Software Foundation, Inc.,
18759# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18760
18761
18762# The names of the tagged configurations supported by this script.
18763available_tags=""
18764
18765# ### BEGIN LIBTOOL CONFIG
18766
18767# Which release of libtool.m4 was used?
18768macro_version=$macro_version
18769macro_revision=$macro_revision
18770
18771# Whether or not to build shared libraries.
18772build_libtool_libs=$enable_shared
18773
18774# Whether or not to build static libraries.
18775build_old_libs=$enable_static
18776
18777# What type of objects to build.
18778pic_mode=$pic_mode
18779
18780# Whether or not to optimize for fast installation.
18781fast_install=$enable_fast_install
18782
18783# The host system.
18784host_alias=$host_alias
18785host=$host
18786host_os=$host_os
18787
18788# The build system.
18789build_alias=$build_alias
18790build=$build
18791build_os=$build_os
18792
18793# A sed program that does not truncate output.
18794SED=$lt_SED
18795
18796# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18797Xsed="\$SED -e 1s/^X//"
18798
18799# A grep program that handles long lines.
18800GREP=$lt_GREP
18801
18802# An ERE matcher.
18803EGREP=$lt_EGREP
18804
18805# A literal string matcher.
18806FGREP=$lt_FGREP
18807
18808# A BSD- or MS-compatible name lister.
18809NM=$lt_NM
18810
18811# Whether we need soft or hard links.
18812LN_S=$lt_LN_S
18813
18814# What is the maximum length of a command?
18815max_cmd_len=$max_cmd_len
18816
18817# Object file suffix (normally "o").
18818objext=$ac_objext
18819
18820# Executable file suffix (normally "").
18821exeext=$exeext
18822
18823# whether the shell understands "unset".
18824lt_unset=$lt_unset
18825
18826# turn spaces into newlines.
18827SP2NL=$lt_lt_SP2NL
18828
18829# turn newlines into spaces.
18830NL2SP=$lt_lt_NL2SP
18831
18832# How to create reloadable object files.
18833reload_flag=$lt_reload_flag
18834reload_cmds=$lt_reload_cmds
18835
18836# An object symbol dumper.
18837OBJDUMP=$lt_OBJDUMP
18838
18839# Method to check whether dependent libraries are shared objects.
18840deplibs_check_method=$lt_deplibs_check_method
18841
18842# Command to use when deplibs_check_method == "file_magic".
18843file_magic_cmd=$lt_file_magic_cmd
18844
18845# The archiver.
18846AR=$lt_AR
18847AR_FLAGS=$lt_AR_FLAGS
18848
18849# A symbol stripping program.
18850STRIP=$lt_STRIP
18851
18852# Commands used to install an old-style archive.
18853RANLIB=$lt_RANLIB
18854old_postinstall_cmds=$lt_old_postinstall_cmds
18855old_postuninstall_cmds=$lt_old_postuninstall_cmds
18856
18857# A C compiler.
18858LTCC=$lt_CC
18859
18860# LTCC compiler flags.
18861LTCFLAGS=$lt_CFLAGS
18862
18863# Take the output of nm and produce a listing of raw symbols and C names.
18864global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18865
18866# Transform the output of nm in a proper C declaration.
18867global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18868
18869# Transform the output of nm in a C name address pair.
18870global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18871
18872# Transform the output of nm in a C name address pair when lib prefix is needed.
18873global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18874
18875# The name of the directory that contains temporary libtool files.
18876objdir=$objdir
18877
18878# Shell to use when invoking shell scripts.
18879SHELL=$lt_SHELL
18880
18881# An echo program that does not interpret backslashes.
18882ECHO=$lt_ECHO
18883
18884# Used to examine libraries when file_magic_cmd begins with "file".
18885MAGIC_CMD=$MAGIC_CMD
18886
18887# Must we lock files when doing compilation?
18888need_locks=$lt_need_locks
18889
18890# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18891DSYMUTIL=$lt_DSYMUTIL
18892
18893# Tool to change global to local symbols on Mac OS X.
18894NMEDIT=$lt_NMEDIT
18895
18896# Tool to manipulate fat objects and archives on Mac OS X.
18897LIPO=$lt_LIPO
18898
18899# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18900OTOOL=$lt_OTOOL
18901
18902# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18903OTOOL64=$lt_OTOOL64
18904
18905# Old archive suffix (normally "a").
18906libext=$libext
18907
18908# Shared library suffix (normally ".so").
18909shrext_cmds=$lt_shrext_cmds
18910
18911# The commands to extract the exported symbol list from a shared archive.
18912extract_expsyms_cmds=$lt_extract_expsyms_cmds
18913
18914# Variables whose values should be saved in libtool wrapper scripts and
18915# restored at link time.
18916variables_saved_for_relink=$lt_variables_saved_for_relink
18917
18918# Do we need the "lib" prefix for modules?
18919need_lib_prefix=$need_lib_prefix
18920
18921# Do we need a version for libraries?
18922need_version=$need_version
18923
18924# Library versioning type.
18925version_type=$version_type
18926
18927# Shared library runtime path variable.
18928runpath_var=$runpath_var
18929
18930# Shared library path variable.
18931shlibpath_var=$shlibpath_var
18932
18933# Is shlibpath searched before the hard-coded library search path?
18934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18935
18936# Format of library name prefix.
18937libname_spec=$lt_libname_spec
18938
18939# List of archive names. First name is the real one, the rest are links.
18940# The last name is the one that the linker finds with -lNAME
18941library_names_spec=$lt_library_names_spec
18942
18943# The coded name of the library, if different from the real name.
18944soname_spec=$lt_soname_spec
18945
18946# Command to use after installation of a shared archive.
18947postinstall_cmds=$lt_postinstall_cmds
18948
18949# Command to use after uninstallation of a shared archive.
18950postuninstall_cmds=$lt_postuninstall_cmds
18951
18952# Commands used to finish a libtool library installation in a directory.
18953finish_cmds=$lt_finish_cmds
18954
18955# As "finish_cmds", except a single script fragment to be evaled but
18956# not shown.
18957finish_eval=$lt_finish_eval
18958
18959# Whether we should hardcode library paths into libraries.
18960hardcode_into_libs=$hardcode_into_libs
18961
18962# Compile-time system search path for libraries.
18963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18964
18965# Run-time system search path for libraries.
18966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18967
18968# Whether dlopen is supported.
18969dlopen_support=$enable_dlopen
18970
18971# Whether dlopen of programs is supported.
18972dlopen_self=$enable_dlopen_self
18973
18974# Whether dlopen of statically linked programs is supported.
18975dlopen_self_static=$enable_dlopen_self_static
18976
18977# Commands to strip libraries.
18978old_striplib=$lt_old_striplib
18979striplib=$lt_striplib
18980
18981
18982# The linker used to build libraries.
18983LD=$lt_LD
18984
18985# Commands used to build an old-style archive.
18986old_archive_cmds=$lt_old_archive_cmds
18987
18988# A language specific compiler.
18989CC=$lt_compiler
18990
18991# Is the compiler the GNU compiler?
18992with_gcc=$GCC
18993
18994# Compiler flag to turn off builtin functions.
18995no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18996
18997# How to pass a linker flag through the compiler.
18998wl=$lt_lt_prog_compiler_wl
18999
19000# Additional compiler flags for building library objects.
19001pic_flag=$lt_lt_prog_compiler_pic
19002
19003# Compiler flag to prevent dynamic linking.
19004link_static_flag=$lt_lt_prog_compiler_static
19005
19006# Does compiler simultaneously support -c and -o options?
19007compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19008
19009# Whether or not to add -lc for building shared libraries.
19010build_libtool_need_lc=$archive_cmds_need_lc
19011
19012# Whether or not to disallow shared libs when runtime libs are static.
19013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19014
19015# Compiler flag to allow reflexive dlopens.
19016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19017
19018# Compiler flag to generate shared objects directly from archives.
19019whole_archive_flag_spec=$lt_whole_archive_flag_spec
19020
19021# Whether the compiler copes with passing no objects directly.
19022compiler_needs_object=$lt_compiler_needs_object
19023
19024# Create an old-style archive from a shared archive.
19025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19026
19027# Create a temporary old-style archive to link instead of a shared archive.
19028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19029
19030# Commands used to build a shared archive.
19031archive_cmds=$lt_archive_cmds
19032archive_expsym_cmds=$lt_archive_expsym_cmds
19033
19034# Commands used to build a loadable module if different from building
19035# a shared archive.
19036module_cmds=$lt_module_cmds
19037module_expsym_cmds=$lt_module_expsym_cmds
19038
19039# Whether we are building with GNU ld or not.
19040with_gnu_ld=$lt_with_gnu_ld
19041
19042# Flag that allows shared libraries with undefined symbols to be built.
19043allow_undefined_flag=$lt_allow_undefined_flag
19044
19045# Flag that enforces no undefined symbols.
19046no_undefined_flag=$lt_no_undefined_flag
19047
19048# Flag to hardcode \$libdir into a binary during linking.
19049# This must work even if \$libdir does not exist
19050hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19051
19052# If ld is used when linking, flag to hardcode \$libdir into a binary
19053# during linking. This must work even if \$libdir does not exist.
19054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19055
19056# Whether we need a single "-rpath" flag with a separated argument.
19057hardcode_libdir_separator=$lt_hardcode_libdir_separator
19058
19059# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19060# DIR into the resulting binary.
19061hardcode_direct=$hardcode_direct
19062
19063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19064# DIR into the resulting binary and the resulting library dependency is
19065# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19066# library is relocated.
19067hardcode_direct_absolute=$hardcode_direct_absolute
19068
19069# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19070# into the resulting binary.
19071hardcode_minus_L=$hardcode_minus_L
19072
19073# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19074# into the resulting binary.
19075hardcode_shlibpath_var=$hardcode_shlibpath_var
19076
19077# Set to "yes" if building a shared library automatically hardcodes DIR
19078# into the library and all subsequent libraries and executables linked
19079# against it.
19080hardcode_automatic=$hardcode_automatic
19081
19082# Set to yes if linker adds runtime paths of dependent libraries
19083# to runtime path list.
19084inherit_rpath=$inherit_rpath
19085
19086# Whether libtool must link a program against all its dependency libraries.
19087link_all_deplibs=$link_all_deplibs
19088
19089# Fix the shell variable \$srcfile for the compiler.
19090fix_srcfile_path=$lt_fix_srcfile_path
19091
19092# Set to "yes" if exported symbols are required.
19093always_export_symbols=$always_export_symbols
19094
19095# The commands to list exported symbols.
19096export_symbols_cmds=$lt_export_symbols_cmds
19097
19098# Symbols that should not be listed in the preloaded symbols.
19099exclude_expsyms=$lt_exclude_expsyms
19100
19101# Symbols that must always be exported.
19102include_expsyms=$lt_include_expsyms
19103
19104# Commands necessary for linking programs (against libraries) with templates.
19105prelink_cmds=$lt_prelink_cmds
19106
19107# Specify filename containing input files.
19108file_list_spec=$lt_file_list_spec
19109
19110# How to hardcode a shared library path into an executable.
19111hardcode_action=$hardcode_action
19112
19113# ### END LIBTOOL CONFIG
19114
19115_LT_EOF
19116
19117 case $host_os in
19118 aix3*)
19119 cat <<\_LT_EOF >> "$cfgfile"
19120# AIX sometimes has problems with the GCC collect2 program. For some
19121# reason, if we set the COLLECT_NAMES environment variable, the problems
19122# vanish in a puff of smoke.
19123if test "X${COLLECT_NAMES+set}" != Xset; then
19124 COLLECT_NAMES=
19125 export COLLECT_NAMES
19126fi
19127_LT_EOF
19128 ;;
19129 esac
19130
19131
19132ltmain="$ac_aux_dir/ltmain.sh"
19133
19134
19135 # We use sed instead of cat because bash on DJGPP gets confused if
19136 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19137 # text mode, it properly converts lines to CR/LF. This bash problem
19138 # is reportedly fixed, but why not run on old versions too?
19139 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19140 || (rm -f "$cfgfile"; exit 1)
19141
19142 case $xsi_shell in
19143 yes)
19144 cat << \_LT_EOF >> "$cfgfile"
19145
19146# func_dirname file append nondir_replacement
19147# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19148# otherwise set result to NONDIR_REPLACEMENT.
19149func_dirname ()
19150{
19151 case ${1} in
19152 */*) func_dirname_result="${1%/*}${2}" ;;
19153 * ) func_dirname_result="${3}" ;;
19154 esac
19155}
19156
19157# func_basename file
19158func_basename ()
19159{
19160 func_basename_result="${1##*/}"
19161}
19162
19163# func_dirname_and_basename file append nondir_replacement
19164# perform func_basename and func_dirname in a single function
19165# call:
19166# dirname: Compute the dirname of FILE. If nonempty,
19167# add APPEND to the result, otherwise set result
19168# to NONDIR_REPLACEMENT.
19169# value returned in "$func_dirname_result"
19170# basename: Compute filename of FILE.
19171# value retuned in "$func_basename_result"
19172# Implementation must be kept synchronized with func_dirname
19173# and func_basename. For efficiency, we do not delegate to
19174# those functions but instead duplicate the functionality here.
19175func_dirname_and_basename ()
19176{
19177 case ${1} in
19178 */*) func_dirname_result="${1%/*}${2}" ;;
19179 * ) func_dirname_result="${3}" ;;
19180 esac
19181 func_basename_result="${1##*/}"
19182}
19183
19184# func_stripname prefix suffix name
19185# strip PREFIX and SUFFIX off of NAME.
19186# PREFIX and SUFFIX must not contain globbing or regex special
19187# characters, hashes, percent signs, but SUFFIX may contain a leading
19188# dot (in which case that matches only a dot).
19189func_stripname ()
19190{
19191 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19192 # positional parameters, so assign one to ordinary parameter first.
19193 func_stripname_result=${3}
19194 func_stripname_result=${func_stripname_result#"${1}"}
19195 func_stripname_result=${func_stripname_result%"${2}"}
19196}
19197
19198# func_opt_split
19199func_opt_split ()
19200{
19201 func_opt_split_opt=${1%%=*}
19202 func_opt_split_arg=${1#*=}
19203}
19204
19205# func_lo2o object
19206func_lo2o ()
19207{
19208 case ${1} in
19209 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19210 *) func_lo2o_result=${1} ;;
19211 esac
19212}
19213
19214# func_xform libobj-or-source
19215func_xform ()
19216{
19217 func_xform_result=${1%.*}.lo
19218}
19219
19220# func_arith arithmetic-term...
19221func_arith ()
19222{
19223 func_arith_result=$(( $* ))
19224}
19225
19226# func_len string
19227# STRING may not start with a hyphen.
19228func_len ()
19229{
19230 func_len_result=${#1}
19231}
19232
19233_LT_EOF
19234 ;;
19235 *) # Bourne compatible functions.
19236 cat << \_LT_EOF >> "$cfgfile"
19237
19238# func_dirname file append nondir_replacement
19239# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19240# otherwise set result to NONDIR_REPLACEMENT.
19241func_dirname ()
19242{
19243 # Extract subdirectory from the argument.
19244 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19245 if test "X$func_dirname_result" = "X${1}"; then
19246 func_dirname_result="${3}"
19247 else
19248 func_dirname_result="$func_dirname_result${2}"
19249 fi
19250}
19251
19252# func_basename file
19253func_basename ()
19254{
19255 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19256}
19257
19258
19259# func_stripname prefix suffix name
19260# strip PREFIX and SUFFIX off of NAME.
19261# PREFIX and SUFFIX must not contain globbing or regex special
19262# characters, hashes, percent signs, but SUFFIX may contain a leading
19263# dot (in which case that matches only a dot).
19264# func_strip_suffix prefix name
19265func_stripname ()
19266{
19267 case ${2} in
19268 .*) func_stripname_result=`$ECHO "X${3}" \
19269 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19270 *) func_stripname_result=`$ECHO "X${3}" \
19271 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19272 esac
19273}
19274
19275# sed scripts:
19276my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19277my_sed_long_arg='1s/^-[^=]*=//'
19278
19279# func_opt_split
19280func_opt_split ()
19281{
19282 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19283 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19284}
19285
19286# func_lo2o object
19287func_lo2o ()
19288{
19289 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19290}
19291
19292# func_xform libobj-or-source
19293func_xform ()
19294{
19295 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19296}
19297
19298# func_arith arithmetic-term...
19299func_arith ()
19300{
19301 func_arith_result=`expr "$@"`
19302}
19303
19304# func_len string
19305# STRING may not start with a hyphen.
19306func_len ()
19307{
19308 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19309}
19310
19311_LT_EOF
19312esac
19313
19314case $lt_shell_append in
19315 yes)
19316 cat << \_LT_EOF >> "$cfgfile"
19317
19318# func_append var value
19319# Append VALUE to the end of shell variable VAR.
19320func_append ()
19321{
19322 eval "$1+=\$2"
19323}
19324_LT_EOF
19325 ;;
19326 *)
19327 cat << \_LT_EOF >> "$cfgfile"
19328
19329# func_append var value
19330# Append VALUE to the end of shell variable VAR.
19331func_append ()
19332{
19333 eval "$1=\$$1\$2"
19334}
19335
19336_LT_EOF
19337 ;;
19338 esac
19339
19340
19341 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19342 || (rm -f "$cfgfile"; exit 1)
19343
19344 mv -f "$cfgfile" "$ofile" ||
19345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19346 chmod +x "$ofile"
19347
19348 ;;
19349 "po-directories":C)
19350 for ac_file in $CONFIG_FILES; do
19351 # Support "outfile[:infile[:infile...]]"
19352 case "$ac_file" in
19353 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19354 esac
19355 # PO directories have a Makefile.in generated from Makefile.in.in.
19356 case "$ac_file" in */Makefile.in)
19357 # Adjust a relative srcdir.
19358 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19359 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19360 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19361 # In autoconf-2.13 it is called $ac_given_srcdir.
19362 # In autoconf-2.50 it is called $srcdir.
19363 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19364 case "$ac_given_srcdir" in
19365 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19366 /*) top_srcdir="$ac_given_srcdir" ;;
19367 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19368 esac
19369 # Treat a directory as a PO directory if and only if it has a
19370 # POTFILES.in file. This allows packages to have multiple PO
19371 # directories under different names or in different locations.
19372 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19373 rm -f "$ac_dir/POTFILES"
19374 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19375 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19376 POMAKEFILEDEPS="POTFILES.in"
19377 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19378 # on $ac_dir but don't depend on user-specified configuration
19379 # parameters.
19380 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19381 # The LINGUAS file contains the set of available languages.
19382 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19383 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19384 fi
19385 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19386 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19387 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19388 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19389 else
19390 # The set of available languages was given in configure.in.
19391 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19392 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19393 fi
19394 # Compute POFILES
19395 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19396 # Compute UPDATEPOFILES
19397 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19398 # Compute DUMMYPOFILES
19399 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19400 # Compute GMOFILES
19401 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19402 case "$ac_given_srcdir" in
19403 .) srcdirpre= ;;
19404 *) srcdirpre='$(srcdir)/' ;;
19405 esac
19406 POFILES=
19407 UPDATEPOFILES=
19408 DUMMYPOFILES=
19409 GMOFILES=
19410 for lang in $ALL_LINGUAS; do
19411 POFILES="$POFILES $srcdirpre$lang.po"
19412 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19413 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19414 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19415 done
19416 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19417 # environment variable.
19418 INST_LINGUAS=
19419 if test -n "$ALL_LINGUAS"; then
19420 for presentlang in $ALL_LINGUAS; do
19421 useit=no
19422 if test "%UNSET%" != "$LINGUAS"; then
19423 desiredlanguages="$LINGUAS"
19424 else
19425 desiredlanguages="$ALL_LINGUAS"
19426 fi
19427 for desiredlang in $desiredlanguages; do
19428 # Use the presentlang catalog if desiredlang is
19429 # a. equal to presentlang, or
19430 # b. a variant of presentlang (because in this case,
19431 # presentlang can be used as a fallback for messages
19432 # which are not translated in the desiredlang catalog).
19433 case "$desiredlang" in
19434 "$presentlang"*) useit=yes;;
19435 esac
19436 done
19437 if test $useit = yes; then
19438 INST_LINGUAS="$INST_LINGUAS $presentlang"
19439 fi
19440 done
19441 fi
19442 CATALOGS=
19443 if test -n "$INST_LINGUAS"; then
19444 for lang in $INST_LINGUAS; do
19445 CATALOGS="$CATALOGS $lang.gmo"
19446 done
19447 fi
19448 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19449 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"
19450 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19451 if test -f "$f"; then
19452 case "$f" in
19453 *.orig | *.bak | *~) ;;
19454 *) cat "$f" >> "$ac_dir/Makefile" ;;
19455 esac
19456 fi
19457 done
19458 fi
19459 ;;
19460 esac
19461 done ;;
19462
19463 esac
19464done # for ac_tag
19465
19466
Scott James Remnantfde82c92009-09-22 10:04:15 -070019467as_fn_exit 0
Scott James Remnant65f683d2009-07-14 13:05:17 +010019468_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019469ac_clean_files=$ac_clean_files_save
19470
19471test $ac_write_fail = 0 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070019472 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019473
19474
19475# configure is writing to config.log, and then calls config.status.
19476# config.status does its own redirection, appending to config.log.
19477# Unfortunately, on DOS this fails, as config.log is still kept open
19478# by configure, so config.status won't be able to write to it; its
19479# output is simply discarded. So we exec the FD to /dev/null,
19480# effectively closing config.log, so it can be properly (re)opened and
19481# appended to by config.status. When coming back to configure, we
19482# need to make the FD available again.
19483if test "$no_create" != yes; then
19484 ac_cs_success=:
19485 ac_config_status_args=
19486 test "$silent" = yes &&
19487 ac_config_status_args="$ac_config_status_args --quiet"
19488 exec 5>/dev/null
19489 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19490 exec 5>>config.log
19491 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19492 # would make configure fail if this is the last instruction.
Scott James Remnantfde82c92009-09-22 10:04:15 -070019493 $ac_cs_success || as_fn_exit $?
Scott James Remnant65f683d2009-07-14 13:05:17 +010019494fi
19495if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070019496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019497$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19498fi
19499