blob: cae5f7b84cb8ec50ecb2e6ef1f89c8d04774e55a [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=
Scott James Remnantc5b65582009-09-23 14:16:28 -0700746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100749LIBOBJS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100750UDEV_LIBS
751UDEV_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100752HAVE_VERSION_SCRIPT_ARG_FALSE
753HAVE_VERSION_SCRIPT_ARG_TRUE
754VERSION_SCRIPT_ARG
755HAVE_DBUS_FALSE
756HAVE_DBUS_TRUE
757EXPAT_LIBS
758DBUS_LIBS
759DBUS_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100760INSTALL_NIH_FALSE
761INSTALL_NIH_TRUE
Scott James Remnant2a66c572009-09-15 03:19:16 +0100762PKG_CONFIG
Scott James Remnant65f683d2009-07-14 13:05:17 +0100763POSUB
764LTLIBINTL
765LIBINTL
766INTLLIBS
767INTL_LIBTOOL_SUFFIX_PREFIX
768INTLOBJS
769GENCAT
770INSTOBJEXT
771DATADIRNAME
772CATOBJEXT
773USE_INCLUDED_LIBINTL
774BUILD_INCLUDED_LIBINTL
775WOE32DLL
776HAVE_WPRINTF
777HAVE_SNPRINTF
778HAVE_ASPRINTF
779HAVE_POSIX_PRINTF
780INTL_MACOSX_LIBS
781GLIBC21
782INTLBISON
783LTLIBICONV
784LIBICONV
785LTLIBMULTITHREAD
786LIBMULTITHREAD
787LTLIBTHREAD
788LIBTHREAD
789LTLIBPTH
790LIBPTH
791PRI_MACROS_BROKEN
792ALLOCA
793HAVE_VISIBILITY
794CFLAG_VISIBILITY
795GLIBC2
796MSGMERGE
797XGETTEXT_015
798XGETTEXT
799GMSGFMT_015
800MSGFMT_015
801GMSGFMT
802MSGFMT
803USE_NLS
804OTOOL64
805OTOOL
806LIPO
807NMEDIT
808DSYMUTIL
809lt_ECHO
810RANLIB
811AR
812OBJDUMP
813LN_S
814NM
815ac_ct_DUMPBIN
816DUMPBIN
817LD
818FGREP
819SED
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
828LIBTOOL
829am__fastdepCC_FALSE
830am__fastdepCC_TRUE
831CCDEPMODE
832AMDEPBACKSLASH
833AMDEP_FALSE
834AMDEP_TRUE
835am__quote
836am__include
837DEPDIR
838am__untar
839am__tar
840AMTAR
841am__leading_dot
842SET_MAKE
843AWK
844mkdir_p
845MKDIR_P
846INSTALL_STRIP_PROGRAM
847STRIP
848install_sh
849MAKEINFO
850AUTOHEADER
851AUTOMAKE
852AUTOCONF
853ACLOCAL
854VERSION
855PACKAGE
856CYGPATH_W
857am__isrc
858INSTALL_DATA
859INSTALL_SCRIPT
860INSTALL_PROGRAM
861EGREP
862GREP
863CPP
864OBJEXT
865EXEEXT
866ac_ct_CC
867CPPFLAGS
868LDFLAGS
869CFLAGS
870CC
871target_alias
872host_alias
873build_alias
874LIBS
875ECHO_T
876ECHO_N
877ECHO_C
878DEFS
879PACKAGE_COPYRIGHT
880mandir
881localedir
882libdir
883psdir
884pdfdir
885dvidir
886htmldir
887infodir
888docdir
889oldincludedir
890includedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
Scott James Remnantfde82c92009-09-22 10:04:15 -0700902PACKAGE_URL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100903PACKAGE_BUGREPORT
904PACKAGE_STRING
905PACKAGE_VERSION
906PACKAGE_TARNAME
907PACKAGE_NAME
908PATH_SEPARATOR
909SHELL'
910ac_subst_files=''
911ac_user_opts='
912enable_option_checking
913enable_dependency_tracking
914enable_shared
915enable_static
916with_pic
917enable_fast_install
918with_gnu_ld
919enable_libtool_lock
920enable_nls
921enable_threads
922enable_rpath
923with_libpth_prefix
924with_libiconv_prefix
925with_included_gettext
926with_libintl_prefix
927enable_threading
928enable_compiler_warnings
929enable_compiler_optimisations
930enable_compiler_coverage
931enable_linker_optimisations
932'
933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939LIBS
940CPPFLAGS
941CPP
942PKG_CONFIG
943DBUS_CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100944DBUS_LIBS
945UDEV_CFLAGS
946UDEV_LIBS'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100947
948
949# Initialize some variables set by options.
950ac_init_help=
951ac_init_version=false
952ac_unrecognized_opts=
953ac_unrecognized_sep=
954# The variables have the same names as the options, with
955# dashes changed to underlines.
956cache_file=/dev/null
957exec_prefix=NONE
958no_create=
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
967verbose=
968x_includes=NONE
969x_libraries=NONE
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
976# (The list follows the same order as the GNU Coding Standards.)
977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
985includedir='${prefix}/include'
986oldincludedir='/usr/include'
987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
996
997ac_prev=
998ac_dashdash=
999for ac_option
1000do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1006 fi
1007
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
1015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
1018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1043
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001055 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"enable_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1066
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1071
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1076
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001081 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"enable_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001285 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1296
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001301 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
Scott James Remnantfde82c92009-09-22 10:04:15 -07001331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information."
Scott James Remnant65f683d2009-07-14 13:05:17 +01001333 ;;
1334
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
Scott James Remnantfde82c92009-09-22 10:04:15 -07001338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01001342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07001358 as_fn_error "missing argument to $ac_option"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001359fi
1360
1361if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07001364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1367fi
1368
1369# Check all directory arguments for consistency.
1370for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1374do
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07001387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001388done
1389
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406fi
1407
1408ac_tool_prefix=
1409test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411test "$silent" = yes && exec 6>/dev/null
1412
1413
1414ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415ac_ls_di=`ls -di .` &&
1416ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001417 as_fn_error "working directory cannot be determined"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001419 as_fn_error "pwd does not report name of working directory"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001420
1421
1422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
1456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnantfde82c92009-09-22 10:04:15 -07001458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001459fi
1460ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461ac_abs_confdir=`(
Scott James Remnantfde82c92009-09-22 10:04:15 -07001462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001463 pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
1480
1481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001488\`configure' configures upstart 0.6.3 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
1508Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541_ACEOF
1542
1543 cat <<\_ACEOF
1544
1545Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
1550System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553_ACEOF
1554fi
1555
1556if test -n "$ac_init_help"; then
1557 case $ac_init_help in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001558 short | recursive ) echo "Configuration of upstart 0.6.3:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001559 esac
1560 cat <<\_ACEOF
1561
1562Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-shared[=PKGS] build shared libraries [default=yes]
1569 --enable-static[=PKGS] build static libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --disable-nls do not use Native Language Support
1574 --enable-threads={posix|solaris|pth|win32}
1575 specify multithreading API
1576 --disable-threads build without multithread safety
1577 --disable-rpath do not hardcode runtime library paths
1578 --enable-threading Enable support for multi-threading
1579 --enable-compiler-warnings
1580 Enable additional compiler warnings
1581 --disable-compiler-optimisations
1582 Disable compiler optimisations
1583 --enable-compiler-coverage
1584 Enable generation of coverage data
1585 --disable-linker-optimisations
1586 Disable linker optimisations
1587
1588Optional Packages:
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-pic try to use only PIC/non-PIC objects [default=use
1592 both]
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-gnu-ld assume the C compiler uses GNU ld default=no
1595 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1596 --without-libpth-prefix don't search for libpth in includedir and libdir
1597 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1598 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1599 --with-included-gettext use the GNU gettext library included here
1600 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1601 --without-libintl-prefix don't search for libintl in includedir and libdir
1602
1603Some influential environment variables:
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 LIBS libraries to pass to the linker, e.g. -l<library>
1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1611 CPP C preprocessor
1612 PKG_CONFIG path to pkg-config utility
1613 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1614 DBUS_LIBS linker flags for DBUS, overriding pkg-config
Scott James Remnant2a66c572009-09-15 03:19:16 +01001615 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1616 UDEV_LIBS linker flags for UDEV, overriding pkg-config
Scott James Remnant65f683d2009-07-14 13:05:17 +01001617
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
1621Report bugs to <upstart-devel@lists.ubuntu.com>.
1622_ACEOF
1623ac_status=$?
1624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" ||
1630 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631 continue
1632 ac_builddir=.
1633
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
1637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
1649
1650case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663esac
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1679fi
1680
1681test -n "$ac_init_help" && exit $ac_status
1682if $ac_init_version; then
1683 cat <<\_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001684upstart configure 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -07001685generated by GNU Autoconf 2.64
Scott James Remnant65f683d2009-07-14 13:05:17 +01001686
1687Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnantfde82c92009-09-22 10:04:15 -070016882002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
1689Foundation, Inc.
1690
Scott James Remnant65f683d2009-07-14 13:05:17 +01001691This configure script is free software; the Free Software Foundation
1692gives unlimited permission to copy, distribute and modify it.
1693
1694Copyright © 2009 Canonical Ltd.
1695_ACEOF
1696 exit
1697fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07001698
1699## ------------------------ ##
1700## Autoconf initialization. ##
1701## ------------------------ ##
1702
1703# ac_fn_c_try_compile LINENO
1704# --------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_compile ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735fi
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1738
1739} # ac_fn_c_try_compile
1740
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } >/dev/null && {
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772fi
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 return $ac_retval
1775
1776} # ac_fn_c_try_cpp
1777
1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781# the include files in INCLUDES and setting the cache variable VAR
1782# accordingly.
1783ac_fn_c_check_header_mongrel ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790 $as_echo_n "(cached) " >&6
1791fi
1792eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795else
1796 # Is the header compilable?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798$as_echo_n "checking $2 usability... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_header_compiler=yes
1806else
1807 ac_header_compiler=no
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811$as_echo "$ac_header_compiler" >&6; }
1812
1813# Is the header present?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815$as_echo_n "checking $2 presence... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_cpp "$LINENO"; then :
1821 ac_header_preproc=yes
1822else
1823 ac_header_preproc=no
1824fi
1825rm -f conftest.err conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827$as_echo "$ac_header_preproc" >&6; }
1828
1829# So? What about this header?
1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 yes:no: )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ;;
1837 no:yes:* )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848( cat <<\_ASBOX
1849## --------------------------------------------- ##
1850## Report this to upstart-devel@lists.ubuntu.com ##
1851## --------------------------------------------- ##
1852_ASBOX
1853 ) | sed "s/^/$as_me: WARNING: /" >&2
1854 ;;
1855esac
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859 $as_echo_n "(cached) " >&6
1860else
1861 eval "$3=\$ac_header_compiler"
1862fi
1863eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866fi
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869} # ac_fn_c_check_header_mongrel
1870
1871# ac_fn_c_try_run LINENO
1872# ----------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874# that executables *can* be run.
1875ac_fn_c_try_run ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=$ac_status
1906fi
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 return $ac_retval
1910
1911} # ac_fn_c_try_run
1912
1913# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914# -------------------------------------------------------
1915# Tests whether HEADER exists and can be compiled using the include files in
1916# INCLUDES, setting the cache variable VAR accordingly.
1917ac_fn_c_check_header_compile ()
1918{
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921$as_echo_n "checking for $2... " >&6; }
1922if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1924else
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */
1927$4
1928#include <$2>
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$3=yes"
1932else
1933 eval "$3=no"
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942} # ac_fn_c_check_header_compile
1943
1944# ac_fn_c_try_link LINENO
1945# -----------------------
1946# Try to link conftest.$ac_ext, and return whether this succeeded.
1947ac_fn_c_try_link ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 rm -f conftest.$ac_objext conftest$ac_exeext
1951 if { { ac_try="$ac_link"
1952case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955esac
1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957$as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>conftest.err
1959 ac_status=$?
1960 if test -s conftest.err; then
1961 grep -v '^ *+' conftest.err >conftest.er1
1962 cat conftest.er1 >&5
1963 mv -f conftest.er1 conftest.err
1964 fi
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && {
1967 test -z "$ac_c_werror_flag" ||
1968 test ! -s conftest.err
1969 } && test -s conftest$ac_exeext && {
1970 test "$cross_compiling" = yes ||
1971 $as_test_x conftest$ac_exeext
1972 }; then :
1973 ac_retval=0
1974else
1975 $as_echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=1
1979fi
1980 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1981 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1982 # interfere with the next link command; also delete a directory that is
1983 # left behind by Apple's compiler. We do this before executing the actions.
1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1986 return $ac_retval
1987
1988} # ac_fn_c_try_link
1989
1990# ac_fn_c_check_func LINENO FUNC VAR
1991# ----------------------------------
1992# Tests whether FUNC exists, setting the cache variable VAR accordingly
1993ac_fn_c_check_func ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005#define $2 innocuous_$2
2006
2007/* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2011
2012#ifdef __STDC__
2013# include <limits.h>
2014#else
2015# include <assert.h>
2016#endif
2017
2018#undef $2
2019
2020/* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2023#ifdef __cplusplus
2024extern "C"
2025#endif
2026char $2 ();
2027/* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030#if defined __stub_$2 || defined __stub___$2
2031choke me
2032#endif
2033
2034int
2035main ()
2036{
2037return $2 ();
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_link "$LINENO"; then :
2043 eval "$3=yes"
2044else
2045 eval "$3=no"
2046fi
2047rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2049fi
2050eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054
2055} # ac_fn_c_check_func
2056
2057# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058# -------------------------------------------
2059# Tests whether TYPE exists after having included INCLUDES, setting cache
2060# variable VAR accordingly.
2061ac_fn_c_check_type ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
2066if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068else
2069 eval "$3=no"
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073int
2074main ()
2075{
2076if (sizeof ($2))
2077 return 0;
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089if (sizeof (($2)))
2090 return 0;
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096
2097else
2098 eval "$3=yes"
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101fi
2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103fi
2104eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106$as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108
2109} # ac_fn_c_check_type
2110
2111# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2112# --------------------------------------------
2113# Tries to find the compile-time value of EXPR in a program that includes
2114# INCLUDES, setting VAR accordingly. Returns whether the value could be
2115# computed
2116ac_fn_c_compute_int ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if test "$cross_compiling" = yes; then
2120 # Depending upon the size, compute the lo and hi bounds.
2121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h. */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) >= 0)];
2128test_array [0] = 0
2129
2130 ;
2131 return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_lo=0 ac_mid=0
2136 while :; do
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144test_array [0] = 0
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid; break
2152else
2153 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154 if test $ac_lo -le $ac_mid; then
2155 ac_lo= ac_hi=
2156 break
2157 fi
2158 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h. */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) < 0)];
2170test_array [0] = 0
2171
2172 ;
2173 return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=-1 ac_mid=-1
2178 while :; do
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186test_array [0] = 0
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_lo=$ac_mid; break
2194else
2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196 if test $ac_mid -le $ac_hi; then
2197 ac_lo= ac_hi=
2198 break
2199 fi
2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201fi
2202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 done
2204else
2205 ac_lo= ac_hi=
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210# Binary search between lo and hi bounds.
2211while test "x$ac_lo" != "x$ac_hi"; do
2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h. */
2215$4
2216int
2217main ()
2218{
2219static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220test_array [0] = 0
2221
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid
2228else
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232done
2233case $ac_lo in #((
2234?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235'') ac_retval=1 ;;
2236esac
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239/* end confdefs.h. */
2240$4
2241static long int longval () { return $2; }
2242static unsigned long int ulongval () { return $2; }
2243#include <stdio.h>
2244#include <stdlib.h>
2245int
2246main ()
2247{
2248
2249 FILE *f = fopen ("conftest.val", "w");
2250 if (! f)
2251 return 1;
2252 if (($2) < 0)
2253 {
2254 long int i = longval ();
2255 if (i != ($2))
2256 return 1;
2257 fprintf (f, "%ld", i);
2258 }
2259 else
2260 {
2261 unsigned long int i = ulongval ();
2262 if (i != ($2))
2263 return 1;
2264 fprintf (f, "%lu", i);
2265 }
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
2269
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276else
2277 ac_retval=1
2278fi
2279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281rm -f conftest.val
2282
2283 fi
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 return $ac_retval
2286
2287} # ac_fn_c_compute_int
Scott James Remnant65f683d2009-07-14 13:05:17 +01002288cat >config.log <<_ACEOF
2289This file contains any messages produced by compilers while
2290running configure, to aid debugging if configure makes a mistake.
2291
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002292It was created by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -07002293generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +01002294
2295 $ $0 $@
2296
2297_ACEOF
2298exec 5>>config.log
2299{
2300cat <<_ASUNAME
2301## --------- ##
2302## Platform. ##
2303## --------- ##
2304
2305hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2306uname -m = `(uname -m) 2>/dev/null || echo unknown`
2307uname -r = `(uname -r) 2>/dev/null || echo unknown`
2308uname -s = `(uname -s) 2>/dev/null || echo unknown`
2309uname -v = `(uname -v) 2>/dev/null || echo unknown`
2310
2311/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2312/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2313
2314/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2315/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2316/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2317/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2318/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2319/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2320/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2321
2322_ASUNAME
2323
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002329 $as_echo "PATH: $as_dir"
2330 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002331IFS=$as_save_IFS
2332
2333} >&5
2334
2335cat >&5 <<_ACEOF
2336
2337
2338## ----------- ##
2339## Core tests. ##
2340## ----------- ##
2341
2342_ACEOF
2343
2344
2345# Keep a trace of the command line.
2346# Strip out --no-create and --no-recursion so they do not pile up.
2347# Strip out --silent because we don't want to record it for future runs.
2348# Also quote any args containing shell meta-characters.
2349# Make two passes to allow for proper duplicate-argument suppression.
2350ac_configure_args=
2351ac_configure_args0=
2352ac_configure_args1=
2353ac_must_keep_next=false
2354for ac_pass in 1 2
2355do
2356 for ac_arg
2357 do
2358 case $ac_arg in
2359 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2361 | -silent | --silent | --silen | --sile | --sil)
2362 continue ;;
2363 *\'*)
2364 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 esac
2366 case $ac_pass in
Scott James Remnantfde82c92009-09-22 10:04:15 -07002367 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002368 2)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002369 as_fn_append ac_configure_args1 " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002370 if test $ac_must_keep_next = true; then
2371 ac_must_keep_next=false # Got value, back to normal.
2372 else
2373 case $ac_arg in
2374 *=* | --config-cache | -C | -disable-* | --disable-* \
2375 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2376 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2377 | -with-* | --with-* | -without-* | --without-* | --x)
2378 case "$ac_configure_args0 " in
2379 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2380 esac
2381 ;;
2382 -* ) ac_must_keep_next=true ;;
2383 esac
2384 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002385 as_fn_append ac_configure_args " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002386 ;;
2387 esac
2388 done
2389done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002390{ ac_configure_args0=; unset ac_configure_args0;}
2391{ ac_configure_args1=; unset ac_configure_args1;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01002392
2393# When interrupted or exit'd, cleanup temporary files, and complete
2394# config.log. We remove comments because anyway the quotes in there
2395# would cause problems or look ugly.
2396# WARNING: Use '\'' to represent an apostrophe within the trap.
2397# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2398trap 'exit_status=$?
2399 # Save into config.log some information that might help in debugging.
2400 {
2401 echo
2402
2403 cat <<\_ASBOX
2404## ---------------- ##
2405## Cache variables. ##
2406## ---------------- ##
2407_ASBOX
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2410(
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002416 *_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 +01002417$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002422 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2433 *)
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435 ;;
2436 esac |
2437 sort
2438)
2439 echo
2440
2441 cat <<\_ASBOX
2442## ----------------- ##
2443## Output variables. ##
2444## ----------------- ##
2445_ASBOX
2446 echo
2447 for ac_var in $ac_subst_vars
2448 do
2449 eval ac_val=\$$ac_var
2450 case $ac_val in
2451 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452 esac
2453 $as_echo "$ac_var='\''$ac_val'\''"
2454 done | sort
2455 echo
2456
2457 if test -n "$ac_subst_files"; then
2458 cat <<\_ASBOX
2459## ------------------- ##
2460## File substitutions. ##
2461## ------------------- ##
2462_ASBOX
2463 echo
2464 for ac_var in $ac_subst_files
2465 do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in
2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 esac
2470 $as_echo "$ac_var='\''$ac_val'\''"
2471 done | sort
2472 echo
2473 fi
2474
2475 if test -s confdefs.h; then
2476 cat <<\_ASBOX
2477## ----------- ##
2478## confdefs.h. ##
2479## ----------- ##
2480_ASBOX
2481 echo
2482 cat confdefs.h
2483 echo
2484 fi
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2492' 0
2493for ac_signal in 1 2 13 15; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07002494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Scott James Remnant65f683d2009-07-14 13:05:17 +01002495done
2496ac_signal=0
2497
2498# confdefs.h avoids OS command line length limits that DEFS can exceed.
2499rm -f -r conftest* confdefs.h
2500
Scott James Remnantfde82c92009-09-22 10:04:15 -07002501$as_echo "/* confdefs.h */" > confdefs.h
2502
Scott James Remnant65f683d2009-07-14 13:05:17 +01002503# Predefined preprocessor variables.
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_NAME "$PACKAGE_NAME"
2507_ACEOF
2508
Scott James Remnant65f683d2009-07-14 13:05:17 +01002509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511_ACEOF
2512
Scott James Remnant65f683d2009-07-14 13:05:17 +01002513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_VERSION "$PACKAGE_VERSION"
2515_ACEOF
2516
Scott James Remnant65f683d2009-07-14 13:05:17 +01002517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_STRING "$PACKAGE_STRING"
2519_ACEOF
2520
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002521cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002522#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002523_ACEOF
2524
Scott James Remnantfde82c92009-09-22 10:04:15 -07002525cat >>confdefs.h <<_ACEOF
2526#define PACKAGE_URL "$PACKAGE_URL"
2527_ACEOF
2528
Scott James Remnant65f683d2009-07-14 13:05:17 +01002529
2530# Let the site file select an alternate cache file if it wants to.
2531# Prefer an explicitly selected file to automatically selected ones.
2532ac_site_file1=NONE
2533ac_site_file2=NONE
2534if test -n "$CONFIG_SITE"; then
2535 ac_site_file1=$CONFIG_SITE
2536elif test "x$prefix" != xNONE; then
2537 ac_site_file1=$prefix/share/config.site
2538 ac_site_file2=$prefix/etc/config.site
2539else
2540 ac_site_file1=$ac_default_prefix/share/config.site
2541 ac_site_file2=$ac_default_prefix/etc/config.site
2542fi
2543for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544do
2545 test "x$ac_site_file" = xNONE && continue
2546 if test -r "$ac_site_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002547 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002548$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2549 sed 's/^/| /' "$ac_site_file" >&5
2550 . "$ac_site_file"
2551 fi
2552done
2553
2554if test -r "$cache_file"; then
2555 # Some versions of bash will fail to source /dev/null (special
2556 # files actually), so we avoid doing that.
2557 if test -f "$cache_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002559$as_echo "$as_me: loading cache $cache_file" >&6;}
2560 case $cache_file in
2561 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2562 *) . "./$cache_file";;
2563 esac
2564 fi
2565else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002567$as_echo "$as_me: creating cache $cache_file" >&6;}
2568 >$cache_file
2569fi
2570
2571gt_needs="$gt_needs "
2572# Check that the precious variables saved in the cache have kept the same
2573# value.
2574ac_cache_corrupted=false
2575for ac_var in $ac_precious_vars; do
2576 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2577 eval ac_new_set=\$ac_env_${ac_var}_set
2578 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2579 eval ac_new_val=\$ac_env_${ac_var}_value
2580 case $ac_old_set,$ac_new_set in
2581 set,)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002582 { $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 +01002583$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2584 ac_cache_corrupted=: ;;
2585 ,set)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002586 { $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 +01002587$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,);;
2590 *)
2591 if test "x$ac_old_val" != "x$ac_new_val"; then
2592 # differences in whitespace do not lead to failure.
2593 ac_old_val_w=`echo x $ac_old_val`
2594 ac_new_val_w=`echo x $ac_new_val`
2595 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002596 { $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 +01002597$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2598 ac_cache_corrupted=:
2599 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002600 { $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 +01002601$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2602 eval $ac_var=\$ac_old_val
2603 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002604 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002605$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002606 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002607$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2608 fi;;
2609 esac
2610 # Pass precious variables to config.status.
2611 if test "$ac_new_set" = set; then
2612 case $ac_new_val in
2613 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2614 *) ac_arg=$ac_var=$ac_new_val ;;
2615 esac
2616 case " $ac_configure_args " in
2617 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002618 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002619 esac
2620 fi
2621done
2622if $ac_cache_corrupted; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002625 { $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 +01002626$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002627 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002628fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002629## -------------------- ##
2630## Main body of script. ##
2631## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +01002632
2633ac_ext=c
2634ac_cpp='$CPP $CPPFLAGS'
2635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638
2639
2640
2641
2642
2643
Scott James Remnantfde82c92009-09-22 10:04:15 -07002644$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (C) 2009 Canonical Ltd.\"" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01002645 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2646
2647
2648
2649
2650
2651ac_ext=c
2652ac_cpp='$CPP $CPPFLAGS'
2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2658set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002660$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002661if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002662 $as_echo_n "(cached) " >&6
2663else
2664 if test -n "$CC"; then
2665 ac_cv_prog_CC="$CC" # Let the user override the test.
2666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002672 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002676 break 2
2677 fi
2678done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002679 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002680IFS=$as_save_IFS
2681
2682fi
2683fi
2684CC=$ac_cv_prog_CC
2685if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002687$as_echo "$CC" >&6; }
2688else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002690$as_echo "no" >&6; }
2691fi
2692
2693
2694fi
2695if test -z "$ac_cv_prog_CC"; then
2696 ac_ct_CC=$CC
2697 # Extract the first word of "gcc", so it can be a program name with args.
2698set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002700$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002702 $as_echo_n "(cached) " >&6
2703else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002712 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002716 break 2
2717 fi
2718done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002719 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002720IFS=$as_save_IFS
2721
2722fi
2723fi
2724ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002727$as_echo "$ac_ct_CC" >&6; }
2728else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002730$as_echo "no" >&6; }
2731fi
2732
2733 if test "x$ac_ct_CC" = x; then
2734 CC=""
2735 else
2736 case $cross_compiling:$ac_tool_warned in
2737yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002738{ $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 +01002739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740ac_tool_warned=yes ;;
2741esac
2742 CC=$ac_ct_CC
2743 fi
2744else
2745 CC="$ac_cv_prog_CC"
2746fi
2747
2748if test -z "$CC"; then
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2751set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002753$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002754if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002755 $as_echo_n "(cached) " >&6
2756else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002765 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002769 break 2
2770 fi
2771done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002772 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002773IFS=$as_save_IFS
2774
2775fi
2776fi
2777CC=$ac_cv_prog_CC
2778if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002780$as_echo "$CC" >&6; }
2781else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002783$as_echo "no" >&6; }
2784fi
2785
2786
2787 fi
2788fi
2789if test -z "$CC"; then
2790 # Extract the first word of "cc", so it can be a program name with args.
2791set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002793$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002794if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002795 $as_echo_n "(cached) " >&6
2796else
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2799else
2800 ac_prog_rejected=no
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002806 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2809 ac_prog_rejected=yes
2810 continue
2811 fi
2812 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002814 break 2
2815 fi
2816done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002817 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002818IFS=$as_save_IFS
2819
2820if test $ac_prog_rejected = yes; then
2821 # We found a bogon in the path, so make sure we never use it.
2822 set dummy $ac_cv_prog_CC
2823 shift
2824 if test $# != 0; then
2825 # We chose a different compiler from the bogus one.
2826 # However, it has the same basename, so the bogon will be chosen
2827 # first if we set CC to just the basename; use the full file name.
2828 shift
2829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2830 fi
2831fi
2832fi
2833fi
2834CC=$ac_cv_prog_CC
2835if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002837$as_echo "$CC" >&6; }
2838else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002840$as_echo "no" >&6; }
2841fi
2842
2843
2844fi
2845if test -z "$CC"; then
2846 if test -n "$ac_tool_prefix"; then
2847 for ac_prog in cl.exe
2848 do
2849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002852$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002853if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002854 $as_echo_n "(cached) " >&6
2855else
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC="$CC" # Let the user override the test.
2858else
2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002864 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002868 break 2
2869 fi
2870done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002871 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002872IFS=$as_save_IFS
2873
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002879$as_echo "$CC" >&6; }
2880else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002882$as_echo "no" >&6; }
2883fi
2884
2885
2886 test -n "$CC" && break
2887 done
2888fi
2889if test -z "$CC"; then
2890 ac_ct_CC=$CC
2891 for ac_prog in cl.exe
2892do
2893 # Extract the first word of "$ac_prog", so it can be a program name with args.
2894set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002896$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002897if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002898 $as_echo_n "(cached) " >&6
2899else
2900 if test -n "$ac_ct_CC"; then
2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902else
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002908 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002912 break 2
2913 fi
2914done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002915 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002916IFS=$as_save_IFS
2917
2918fi
2919fi
2920ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002923$as_echo "$ac_ct_CC" >&6; }
2924else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002926$as_echo "no" >&6; }
2927fi
2928
2929
2930 test -n "$ac_ct_CC" && break
2931done
2932
2933 if test "x$ac_ct_CC" = x; then
2934 CC=""
2935 else
2936 case $cross_compiling:$ac_tool_warned in
2937yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002938{ $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 +01002939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940ac_tool_warned=yes ;;
2941esac
2942 CC=$ac_ct_CC
2943 fi
2944fi
2945
2946fi
2947
2948
Scott James Remnantfde82c92009-09-22 10:04:15 -07002949test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002951as_fn_error "no acceptable C compiler found in \$PATH
2952See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002953
2954# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002955$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002956set X $ac_compile
2957ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002958for ac_option in --version -v -V -qversion; do
2959 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07002964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +01002967 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07002968 if test -s conftest.err; then
2969 sed '10a\
2970... rest of stderr output deleted ...
2971 10q' conftest.err >conftest.er1
2972 cat conftest.er1 >&5
2973 rm -f conftest.er1 conftest.err
2974 fi
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }
2977done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002978
Scott James Remnantfde82c92009-09-22 10:04:15 -07002979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01002980/* end confdefs.h. */
Scott James Remnantfde82c92009-09-22 10:04:15 -07002981#include <stdio.h>
Scott James Remnant65f683d2009-07-14 13:05:17 +01002982int
2983main ()
2984{
Scott James Remnantfde82c92009-09-22 10:04:15 -07002985FILE *f = fopen ("conftest.out", "w");
2986 return ferror (f) || fclose (f) != 0;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002987
2988 ;
2989 return 0;
2990}
2991_ACEOF
2992ac_clean_files_save=$ac_clean_files
Scott James Remnantfde82c92009-09-22 10:04:15 -07002993ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002994# Try to create an executable without -o first, disregard a.out.
2995# It will help us diagnose broken compilers, and finding out an intuition
2996# of exeext.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002998$as_echo_n "checking for C compiler default output file name... " >&6; }
2999ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3000
3001# The possible output files:
3002ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3003
3004ac_rmfiles=
3005for ac_file in $ac_files
3006do
3007 case $ac_file in
3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3009 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3010 esac
3011done
3012rm -f $ac_rmfiles
3013
Scott James Remnantfde82c92009-09-22 10:04:15 -07003014if { { ac_try="$ac_link_default"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003015case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003021 (eval "$ac_link_default") 2>&5
3022 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003025 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3026# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3027# in a Makefile. We should not override ac_cv_exeext if it was cached,
3028# so that the user can short-circuit this test for compilers unknown to
3029# Autoconf.
3030for ac_file in $ac_files ''
3031do
3032 test -f "$ac_file" || continue
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3035 ;;
3036 [ab].out )
3037 # We found the default executable, but exeext='' is most
3038 # certainly right.
3039 break;;
3040 *.* )
Scott James Remnantfde82c92009-09-22 10:04:15 -07003041 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Scott James Remnant65f683d2009-07-14 13:05:17 +01003042 then :; else
3043 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3044 fi
3045 # We set ac_cv_exeext here because the later test for it is not
3046 # safe: cross compilers may not add the suffix if given an `-o'
3047 # argument, so we may need to know it at that point already.
3048 # Even if this section looks crufty: it has the advantage of
3049 # actually working.
3050 break;;
3051 * )
3052 break;;
3053 esac
3054done
3055test "$ac_cv_exeext" = no && ac_cv_exeext=
3056
3057else
3058 ac_file=''
3059fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003061$as_echo "$ac_file" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003062if test -z "$ac_file"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003063 $as_echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
Scott James Remnantfde82c92009-09-22 10:04:15 -07003066{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003068{ as_fn_set_status 77
3069as_fn_error "C compiler cannot create executables
3070See \`config.log' for more details." "$LINENO" 5; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003071fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003072ac_exeext=$ac_cv_exeext
3073
3074# Check that the compiler produces executables we can run. If not, either
3075# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003077$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003078# If not cross compiling, check that we can run a simple program.
3079if test "$cross_compiling" != yes; then
3080 if { ac_try='./$ac_file'
Scott James Remnantfde82c92009-09-22 10:04:15 -07003081 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +01003082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003087 (eval "$ac_try") 2>&5
3088 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003091 cross_compiling=no
3092 else
3093 if test "$cross_compiling" = maybe; then
3094 cross_compiling=yes
3095 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003098as_fn_error "cannot run C compiled programs.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003099If you meant to cross compile, use \`--host'.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003100See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003101 fi
3102 fi
3103fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003105$as_echo "yes" >&6; }
3106
Scott James Remnantfde82c92009-09-22 10:04:15 -07003107rm -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 +01003108ac_clean_files=$ac_clean_files_save
3109# Check that the compiler produces executables we can run. If not, either
3110# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003112$as_echo_n "checking whether we are cross compiling... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003114$as_echo "$cross_compiling" >&6; }
3115
Scott James Remnantfde82c92009-09-22 10:04:15 -07003116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003117$as_echo_n "checking for suffix of executables... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003118if { { ac_try="$ac_link"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003119case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003125 (eval "$ac_link") 2>&5
3126 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003129 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3131# work properly (i.e., refer to `conftest.exe'), while it won't with
3132# `rm'.
3133for ac_file in conftest.exe conftest conftest.*; do
3134 test -f "$ac_file" || continue
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 break;;
3139 * ) break;;
3140 esac
3141done
3142else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003145as_fn_error "cannot compute suffix of executables: cannot compile and link
3146See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003147fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003148rm -f conftest$ac_cv_exeext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003150$as_echo "$ac_cv_exeext" >&6; }
3151
3152rm -f conftest.$ac_ext
3153EXEEXT=$ac_cv_exeext
3154ac_exeext=$EXEEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003156$as_echo_n "checking for suffix of object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003157if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003158 $as_echo_n "(cached) " >&6
3159else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.o conftest.obj
Scott James Remnantfde82c92009-09-22 10:04:15 -07003172if { { ac_try="$ac_compile"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003173case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003179 (eval "$ac_compile") 2>&5
3180 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003183 for ac_file in conftest.o conftest.obj conftest.*; do
3184 test -f "$ac_file" || continue;
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3187 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3188 break;;
3189 esac
3190done
3191else
3192 $as_echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
Scott James Remnantfde82c92009-09-22 10:04:15 -07003195{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003197as_fn_error "cannot compute suffix of object files: cannot compile
3198See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003199fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003200rm -f conftest.$ac_cv_objext conftest.$ac_ext
3201fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003203$as_echo "$ac_cv_objext" >&6; }
3204OBJEXT=$ac_cv_objext
3205ac_objext=$OBJEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003206{ $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 +01003207$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003208if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003209 $as_echo_n "(cached) " >&6
3210else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003212/* end confdefs.h. */
3213
3214int
3215main ()
3216{
3217#ifndef __GNUC__
3218 choke me
3219#endif
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003225if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003226 ac_compiler_gnu=yes
3227else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003228 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003229fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231ac_cv_c_compiler_gnu=$ac_compiler_gnu
3232
3233fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003235$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3236if test $ac_compiler_gnu = yes; then
3237 GCC=yes
3238else
3239 GCC=
3240fi
3241ac_test_CFLAGS=${CFLAGS+set}
3242ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -07003243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003244$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003245if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003246 $as_echo_n "(cached) " >&6
3247else
3248 ac_save_c_werror_flag=$ac_c_werror_flag
3249 ac_c_werror_flag=yes
3250 ac_cv_prog_cc_g=no
3251 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003253/* end confdefs.h. */
3254
3255int
3256main ()
3257{
3258
3259 ;
3260 return 0;
3261}
3262_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003263if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003264 ac_cv_prog_cc_g=yes
3265else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003266 CFLAGS=""
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003268/* end confdefs.h. */
3269
3270int
3271main ()
3272{
3273
3274 ;
3275 return 0;
3276}
3277_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003278if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003279
Scott James Remnantfde82c92009-09-22 10:04:15 -07003280else
3281 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +01003282 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003284/* end confdefs.h. */
3285
3286int
3287main ()
3288{
3289
3290 ;
3291 return 0;
3292}
3293_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003294if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003295 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +01003296fi
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
3300fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_c_werror_flag=$ac_save_c_werror_flag
3303fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003305$as_echo "$ac_cv_prog_cc_g" >&6; }
3306if test "$ac_test_CFLAGS" = set; then
3307 CFLAGS=$ac_save_CFLAGS
3308elif test $ac_cv_prog_cc_g = yes; then
3309 if test "$GCC" = yes; then
3310 CFLAGS="-g -O2"
3311 else
3312 CFLAGS="-g"
3313 fi
3314else
3315 if test "$GCC" = yes; then
3316 CFLAGS="-O2"
3317 else
3318 CFLAGS=
3319 fi
3320fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003322$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003323if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003324 $as_echo_n "(cached) " >&6
3325else
3326 ac_cv_prog_cc_c89=no
3327ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -07003328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003329/* end confdefs.h. */
3330#include <stdarg.h>
3331#include <stdio.h>
3332#include <sys/types.h>
3333#include <sys/stat.h>
3334/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335struct buf { int x; };
3336FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337static char *e (p, i)
3338 char **p;
3339 int i;
3340{
3341 return p[i];
3342}
3343static char *f (char * (*g) (char **, int), char **p, ...)
3344{
3345 char *s;
3346 va_list v;
3347 va_start (v,p);
3348 s = g (p, va_arg (v,int));
3349 va_end (v);
3350 return s;
3351}
3352
3353/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3361
3362/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3364#define FOO(x) 'x'
3365int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3366
3367int test (int i, double x);
3368struct s1 {int (*f) (int a);};
3369struct s2 {int (*f) (double a);};
3370int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3371int argc;
3372char **argv;
3373int
3374main ()
3375{
3376return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3383do
3384 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003385 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003386 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +01003387fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003388rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3390done
3391rm -f conftest.$ac_ext
3392CC=$ac_save_CC
3393
3394fi
3395# AC_CACHE_VAL
3396case "x$ac_cv_prog_cc_c89" in
3397 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003399$as_echo "none needed" >&6; } ;;
3400 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003402$as_echo "unsupported" >&6; } ;;
3403 *)
3404 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003406$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3407esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003408if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003409
Scott James Remnantfde82c92009-09-22 10:04:15 -07003410fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003411
3412ac_ext=c
3413ac_cpp='$CPP $CPPFLAGS'
3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417
3418
3419ac_ext=c
3420ac_cpp='$CPP $CPPFLAGS'
3421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnantfde82c92009-09-22 10:04:15 -07003424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003425$as_echo_n "checking how to run the C preprocessor... " >&6; }
3426# On Suns, sometimes $CPP names a directory.
3427if test -n "$CPP" && test -d "$CPP"; then
3428 CPP=
3429fi
3430if test -z "$CPP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003431 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003432 $as_echo_n "(cached) " >&6
3433else
3434 # Double quotes because CPP needs to be expanded
3435 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3436 do
3437 ac_preproc_ok=false
3438for ac_c_preproc_warn_flag in '' yes
3439do
3440 # Use a header file that comes with gcc, so configuring glibc
3441 # with a fresh cross-compiler works.
3442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3443 # <limits.h> exists even on freestanding compilers.
3444 # On the NeXT, cc -E runs the code through the compiler's parser,
3445 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003447/* end confdefs.h. */
3448#ifdef __STDC__
3449# include <limits.h>
3450#else
3451# include <assert.h>
3452#endif
3453 Syntax error
3454_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003455if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003456
Scott James Remnantfde82c92009-09-22 10:04:15 -07003457else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003458 # Broken: fails on valid input.
3459continue
3460fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003461rm -f conftest.err conftest.$ac_ext
3462
3463 # OK, works on sane cases. Now check whether nonexistent headers
3464 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003466/* end confdefs.h. */
3467#include <ac_nonexistent.h>
3468_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003469if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003470 # Broken: success on invalid input.
3471continue
3472else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003473 # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003477rm -f conftest.err conftest.$ac_ext
3478
3479done
3480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3481rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003482if $ac_preproc_ok; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003483 break
3484fi
3485
3486 done
3487 ac_cv_prog_CPP=$CPP
3488
3489fi
3490 CPP=$ac_cv_prog_CPP
3491else
3492 ac_cv_prog_CPP=$CPP
3493fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003495$as_echo "$CPP" >&6; }
3496ac_preproc_ok=false
3497for ac_c_preproc_warn_flag in '' yes
3498do
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003506/* end confdefs.h. */
3507#ifdef __STDC__
3508# include <limits.h>
3509#else
3510# include <assert.h>
3511#endif
3512 Syntax error
3513_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003514if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003515
Scott James Remnantfde82c92009-09-22 10:04:15 -07003516else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003517 # Broken: fails on valid input.
3518continue
3519fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003520rm -f conftest.err conftest.$ac_ext
3521
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003525/* end confdefs.h. */
3526#include <ac_nonexistent.h>
3527_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003528if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003529 # Broken: success on invalid input.
3530continue
3531else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003532 # Passes both tests.
3533ac_preproc_ok=:
3534break
3535fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003536rm -f conftest.err conftest.$ac_ext
3537
3538done
3539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003541if $ac_preproc_ok; then :
3542
Scott James Remnant65f683d2009-07-14 13:05:17 +01003543else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003546as_fn_error "C preprocessor \"$CPP\" fails sanity check
3547See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003548fi
3549
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556
Scott James Remnantfde82c92009-09-22 10:04:15 -07003557{ $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 +01003558$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003559if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003560 $as_echo_n "(cached) " >&6
3561else
3562 if test -z "$GREP"; then
3563 ac_path_GREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003570 for ac_prog in grep ggrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3573 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3574# Check for GNU ac_path_GREP and select it if it is found.
3575 # Check for GNU $ac_path_GREP
3576case `"$ac_path_GREP" --version 2>&1` in
3577*GNU*)
3578 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3579*)
3580 ac_count=0
3581 $as_echo_n 0123456789 >"conftest.in"
3582 while :
3583 do
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'GREP' >> "conftest.nl"
3588 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003590 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003591 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_GREP="$ac_path_GREP"
3594 ac_path_GREP_max=$ac_count
3595 fi
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600esac
3601
3602 $ac_path_GREP_found && break 3
3603 done
3604 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003605 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003606IFS=$as_save_IFS
3607 if test -z "$ac_cv_path_GREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003608 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 +01003609 fi
3610else
3611 ac_cv_path_GREP=$GREP
3612fi
3613
3614fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003616$as_echo "$ac_cv_path_GREP" >&6; }
3617 GREP="$ac_cv_path_GREP"
3618
3619
Scott James Remnantfde82c92009-09-22 10:04:15 -07003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003621$as_echo_n "checking for egrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003622if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003623 $as_echo_n "(cached) " >&6
3624else
3625 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3626 then ac_cv_path_EGREP="$GREP -E"
3627 else
3628 if test -z "$EGREP"; then
3629 ac_path_EGREP_found=false
3630 # Loop through the user's path and test for each of PROGNAME-LIST
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003636 for ac_prog in egrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3639 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3640# Check for GNU ac_path_EGREP and select it if it is found.
3641 # Check for GNU $ac_path_EGREP
3642case `"$ac_path_EGREP" --version 2>&1` in
3643*GNU*)
3644 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3645*)
3646 ac_count=0
3647 $as_echo_n 0123456789 >"conftest.in"
3648 while :
3649 do
3650 cat "conftest.in" "conftest.in" >"conftest.tmp"
3651 mv "conftest.tmp" "conftest.in"
3652 cp "conftest.in" "conftest.nl"
3653 $as_echo 'EGREP' >> "conftest.nl"
3654 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003656 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003657 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3658 # Best one so far, save it but keep looking for a better one
3659 ac_cv_path_EGREP="$ac_path_EGREP"
3660 ac_path_EGREP_max=$ac_count
3661 fi
3662 # 10*(2^10) chars as input seems more than enough
3663 test $ac_count -gt 10 && break
3664 done
3665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666esac
3667
3668 $ac_path_EGREP_found && break 3
3669 done
3670 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003671 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003672IFS=$as_save_IFS
3673 if test -z "$ac_cv_path_EGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003674 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 +01003675 fi
3676else
3677 ac_cv_path_EGREP=$EGREP
3678fi
3679
3680 fi
3681fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003683$as_echo "$ac_cv_path_EGREP" >&6; }
3684 EGREP="$ac_cv_path_EGREP"
3685
3686
Scott James Remnantfde82c92009-09-22 10:04:15 -07003687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003688$as_echo_n "checking for ANSI C header files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003689if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003690 $as_echo_n "(cached) " >&6
3691else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003693/* end confdefs.h. */
3694#include <stdlib.h>
3695#include <stdarg.h>
3696#include <string.h>
3697#include <float.h>
3698
3699int
3700main ()
3701{
3702
3703 ;
3704 return 0;
3705}
3706_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003707if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003708 ac_cv_header_stdc=yes
3709else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003710 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003711fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713
3714if test $ac_cv_header_stdc = yes; then
3715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003717/* end confdefs.h. */
3718#include <string.h>
3719
3720_ACEOF
3721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003722 $EGREP "memchr" >/dev/null 2>&1; then :
3723
Scott James Remnant65f683d2009-07-14 13:05:17 +01003724else
3725 ac_cv_header_stdc=no
3726fi
3727rm -f conftest*
3728
3729fi
3730
3731if test $ac_cv_header_stdc = yes; then
3732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003734/* end confdefs.h. */
3735#include <stdlib.h>
3736
3737_ACEOF
3738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003739 $EGREP "free" >/dev/null 2>&1; then :
3740
Scott James Remnant65f683d2009-07-14 13:05:17 +01003741else
3742 ac_cv_header_stdc=no
3743fi
3744rm -f conftest*
3745
3746fi
3747
3748if test $ac_cv_header_stdc = yes; then
3749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003750 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003751 :
3752else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003754/* end confdefs.h. */
3755#include <ctype.h>
3756#include <stdlib.h>
3757#if ((' ' & 0x0FF) == 0x020)
3758# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3759# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3760#else
3761# define ISLOWER(c) \
3762 (('a' <= (c) && (c) <= 'i') \
3763 || ('j' <= (c) && (c) <= 'r') \
3764 || ('s' <= (c) && (c) <= 'z'))
3765# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3766#endif
3767
3768#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3769int
3770main ()
3771{
3772 int i;
3773 for (i = 0; i < 256; i++)
3774 if (XOR (islower (i), ISLOWER (i))
3775 || toupper (i) != TOUPPER (i))
3776 return 2;
3777 return 0;
3778}
3779_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003780if ac_fn_c_try_run "$LINENO"; then :
3781
Scott James Remnant65f683d2009-07-14 13:05:17 +01003782else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003783 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003784fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3786 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003787fi
3788
Scott James Remnant65f683d2009-07-14 13:05:17 +01003789fi
3790fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003792$as_echo "$ac_cv_header_stdc" >&6; }
3793if test $ac_cv_header_stdc = yes; then
3794
Scott James Remnantfde82c92009-09-22 10:04:15 -07003795$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003796
3797fi
3798
3799# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003800for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3801 inttypes.h stdint.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07003802do :
3803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3804ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3805"
3806eval as_val=\$$as_ac_Header
3807 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003808 cat >>confdefs.h <<_ACEOF
3809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3810_ACEOF
3811
3812fi
3813
3814done
3815
3816
3817
Scott James Remnantfde82c92009-09-22 10:04:15 -07003818 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3819if test "x$ac_cv_header_minix_config_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003820 MINIX=yes
3821else
3822 MINIX=
3823fi
3824
3825
3826 if test "$MINIX" = yes; then
3827
Scott James Remnantfde82c92009-09-22 10:04:15 -07003828$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003829
3830
Scott James Remnantfde82c92009-09-22 10:04:15 -07003831$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003832
3833
Scott James Remnantfde82c92009-09-22 10:04:15 -07003834$as_echo "#define _MINIX 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003835
3836 fi
3837
3838
Scott James Remnantfde82c92009-09-22 10:04:15 -07003839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003840$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003841if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003842 $as_echo_n "(cached) " >&6
3843else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003845/* end confdefs.h. */
3846
3847# define __EXTENSIONS__ 1
3848 $ac_includes_default
3849int
3850main ()
3851{
3852
3853 ;
3854 return 0;
3855}
3856_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003857if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003858 ac_cv_safe_to_define___extensions__=yes
3859else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003860 ac_cv_safe_to_define___extensions__=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003861fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003865$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3866 test $ac_cv_safe_to_define___extensions__ = yes &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07003867 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003868
Scott James Remnantfde82c92009-09-22 10:04:15 -07003869 $as_echo "#define _ALL_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 _GNU_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003872
Scott James Remnantfde82c92009-09-22 10:04:15 -07003873 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003874
Scott James Remnantfde82c92009-09-22 10:04:15 -07003875 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3876
Scott James Remnant65f683d2009-07-14 13:05:17 +01003877
3878
3879
Scott James Remnantc5b65582009-09-23 14:16:28 -07003880am__api_version='1.11'
Scott James Remnant65f683d2009-07-14 13:05:17 +01003881
3882ac_aux_dir=
3883for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07003884 for ac_t in install-sh install.sh shtool; do
3885 if test -f "$ac_dir/$ac_t"; then
3886 ac_aux_dir=$ac_dir
3887 ac_install_sh="$ac_aux_dir/$ac_t -c"
3888 break 2
3889 fi
3890 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003891done
3892if test -z "$ac_aux_dir"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003893 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 +01003894fi
3895
3896# These three variables are undocumented and unsupported,
3897# and are intended to be withdrawn in a future Autoconf release.
3898# They can cause serious problems if a builder's source tree is in a directory
3899# whose full name contains unusual characters.
3900ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3901ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3902ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3903
3904
3905# Find a good install program. We prefer a C program (faster),
3906# so one script is as good as another. But avoid the broken or
3907# incompatible versions:
3908# SysV /etc/install, /usr/sbin/install
3909# SunOS /usr/etc/install
3910# IRIX /sbin/install
3911# AIX /bin/install
3912# AmigaOS /C/install, which installs bootblocks on floppy discs
3913# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3914# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3915# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3916# OS/2's system install, which has a completely different semantic
3917# ./install, which can be erroneously created by make from ./install.sh.
3918# Reject install programs that cannot install multiple files.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003920$as_echo_n "checking for a BSD-compatible install... " >&6; }
3921if test -z "$INSTALL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003922if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003923 $as_echo_n "(cached) " >&6
3924else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003930 # Account for people who put trailing slashes in PATH elements.
3931case $as_dir/ in #((
3932 ./ | .// | /[cC]/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Scott James Remnantfde82c92009-09-22 10:04:15 -07003934 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003935 /usr/ucb/* ) ;;
3936 *)
3937 # OSF1 and SCO ODT 3.0 have their own names for install.
3938 # Don't use installbsd from OSF since it installs stuff as root
3939 # by default.
3940 for ac_prog in ginstall scoinst install; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3943 if test $ac_prog = install &&
3944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3945 # AIX install. It has an incompatible calling convention.
3946 :
3947 elif test $ac_prog = install &&
3948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3949 # program-specific install script used by HP pwplus--don't use.
3950 :
3951 else
3952 rm -rf conftest.one conftest.two conftest.dir
3953 echo one > conftest.one
3954 echo two > conftest.two
3955 mkdir conftest.dir
3956 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3957 test -s conftest.one && test -s conftest.two &&
3958 test -s conftest.dir/conftest.one &&
3959 test -s conftest.dir/conftest.two
3960 then
3961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3962 break 3
3963 fi
3964 fi
3965 fi
3966 done
3967 done
3968 ;;
3969esac
3970
Scott James Remnantfde82c92009-09-22 10:04:15 -07003971 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003972IFS=$as_save_IFS
3973
3974rm -rf conftest.one conftest.two conftest.dir
3975
3976fi
3977 if test "${ac_cv_path_install+set}" = set; then
3978 INSTALL=$ac_cv_path_install
3979 else
3980 # As a last resort, use the slow shell script. Don't cache a
3981 # value for INSTALL within a source directory, because that will
3982 # break other packages using the cache if that directory is
3983 # removed, or if the value is a relative name.
3984 INSTALL=$ac_install_sh
3985 fi
3986fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003988$as_echo "$INSTALL" >&6; }
3989
3990# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3991# It thinks the first close brace ends the variable substitution.
3992test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3993
3994test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3995
3996test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3997
Scott James Remnantfde82c92009-09-22 10:04:15 -07003998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003999$as_echo_n "checking whether build environment is sane... " >&6; }
4000# Just in case
4001sleep 1
4002echo timestamp > conftest.file
Scott James Remnantc5b65582009-09-23 14:16:28 -07004003# Reject unsafe characters in $srcdir or the absolute working directory
4004# name. Accept space and tab only in the latter.
4005am_lf='
4006'
4007case `pwd` in
4008 *[\\\"\#\$\&\'\`$am_lf]*)
4009 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4010esac
4011case $srcdir in
4012 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4013 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4014esac
4015
Scott James Remnant65f683d2009-07-14 13:05:17 +01004016# Do `set' in a subshell so we don't clobber the current shell's
4017# arguments. Must try -L first in case configure is actually a
4018# symlink; some systems play weird games with the mod time of symlinks
4019# (eg FreeBSD returns the mod time of the symlink's containing
4020# directory).
4021if (
Scott James Remnantc5b65582009-09-23 14:16:28 -07004022 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004023 if test "$*" = "X"; then
4024 # -L didn't work.
Scott James Remnantc5b65582009-09-23 14:16:28 -07004025 set X `ls -t "$srcdir/configure" conftest.file`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004026 fi
4027 rm -f conftest.file
4028 if test "$*" != "X $srcdir/configure conftest.file" \
4029 && test "$*" != "X conftest.file $srcdir/configure"; then
4030
4031 # If neither matched, then we have a broken ls. This can happen
4032 # if, for instance, CONFIG_SHELL is bash and it inherits a
4033 # broken ls alias from the environment. This has actually
4034 # happened. Such a system could not be considered "sane".
Scott James Remnantfde82c92009-09-22 10:04:15 -07004035 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4036alias in your environment" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004037 fi
4038
4039 test "$2" = conftest.file
4040 )
4041then
4042 # Ok.
4043 :
4044else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004045 as_fn_error "newly created file is older than distributed files!
4046Check your system clock" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004047fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004049$as_echo "yes" >&6; }
4050test "$program_prefix" != NONE &&
4051 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4052# Use a double $ so make ignores it.
4053test "$program_suffix" != NONE &&
4054 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4055# Double any \ or $.
4056# By default was `s,x,x', remove it if useless.
4057ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4058program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4059
4060# expand $ac_aux_dir to an absolute path
4061am_aux_dir=`cd $ac_aux_dir && pwd`
4062
Scott James Remnantc5b65582009-09-23 14:16:28 -07004063if test x"${MISSING+set}" != xset; then
4064 case $am_aux_dir in
4065 *\ * | *\ *)
4066 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4067 *)
4068 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4069 esac
4070fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01004071# Use eval to expand $SHELL
4072if eval "$MISSING --run true"; then
4073 am_missing_run="$MISSING --run "
4074else
4075 am_missing_run=
Scott James Remnantfde82c92009-09-22 10:04:15 -07004076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004077$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4078fi
4079
Scott James Remnantc5b65582009-09-23 14:16:28 -07004080if test x"${install_sh}" != xset; then
4081 case $am_aux_dir in
4082 *\ * | *\ *)
4083 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4084 *)
4085 install_sh="\${SHELL} $am_aux_dir/install-sh"
4086 esac
4087fi
4088
4089# Installed binaries are usually stripped using `strip' when the user
4090# run `make install-strip'. However `strip' might not be the right
4091# tool to use in cross-compilation environments, therefore Automake
4092# will honor the `STRIP' environment variable to overrule this program.
4093if test "$cross_compiling" != no; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4096set dummy ${ac_tool_prefix}strip; ac_word=$2
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098$as_echo_n "checking for $ac_word... " >&6; }
4099if test "${ac_cv_prog_STRIP+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101else
4102 if test -n "$STRIP"; then
4103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4104else
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116done
4117 done
4118IFS=$as_save_IFS
4119
4120fi
4121fi
4122STRIP=$ac_cv_prog_STRIP
4123if test -n "$STRIP"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4125$as_echo "$STRIP" >&6; }
4126else
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128$as_echo "no" >&6; }
4129fi
4130
4131
4132fi
4133if test -z "$ac_cv_prog_STRIP"; then
4134 ac_ct_STRIP=$STRIP
4135 # Extract the first word of "strip", so it can be a program name with args.
4136set dummy strip; ac_word=$2
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138$as_echo_n "checking for $ac_word... " >&6; }
4139if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4141else
4142 if test -n "$ac_ct_STRIP"; then
4143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4144else
4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146for as_dir in $PATH
4147do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_prog_ac_ct_STRIP="strip"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 break 2
4155 fi
4156done
4157 done
4158IFS=$as_save_IFS
4159
4160fi
4161fi
4162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4163if test -n "$ac_ct_STRIP"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4165$as_echo "$ac_ct_STRIP" >&6; }
4166else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168$as_echo "no" >&6; }
4169fi
4170
4171 if test "x$ac_ct_STRIP" = x; then
4172 STRIP=":"
4173 else
4174 case $cross_compiling:$ac_tool_warned in
4175yes:)
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178ac_tool_warned=yes ;;
4179esac
4180 STRIP=$ac_ct_STRIP
4181 fi
4182else
4183 STRIP="$ac_cv_prog_STRIP"
4184fi
4185
4186fi
4187INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4188
Scott James Remnantfde82c92009-09-22 10:04:15 -07004189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004190$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4191if test -z "$MKDIR_P"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004192 if test "${ac_cv_path_mkdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004193 $as_echo_n "(cached) " >&6
4194else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004200 for ac_prog in mkdir gmkdir; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4204 'mkdir (GNU coreutils) '* | \
4205 'mkdir (coreutils) '* | \
4206 'mkdir (fileutils) '4.1*)
4207 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4208 break 3;;
4209 esac
4210 done
4211 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004212 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004213IFS=$as_save_IFS
4214
4215fi
4216
4217 if test "${ac_cv_path_mkdir+set}" = set; then
4218 MKDIR_P="$ac_cv_path_mkdir -p"
4219 else
4220 # As a last resort, use the slow shell script. Don't cache a
4221 # value for MKDIR_P within a source directory, because that will
4222 # break other packages using the cache if that directory is
4223 # removed, or if the value is a relative name.
4224 test -d ./--version && rmdir ./--version
4225 MKDIR_P="$ac_install_sh -d"
4226 fi
4227fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004229$as_echo "$MKDIR_P" >&6; }
4230
4231mkdir_p="$MKDIR_P"
4232case $mkdir_p in
4233 [\\/$]* | ?:[\\/]*) ;;
4234 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4235esac
4236
4237for ac_prog in gawk mawk nawk awk
4238do
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004242$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004243if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$AWK"; then
4247 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004254 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_AWK="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004258 break 2
4259 fi
4260done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004261 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004262IFS=$as_save_IFS
4263
4264fi
4265fi
4266AWK=$ac_cv_prog_AWK
4267if test -n "$AWK"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004269$as_echo "$AWK" >&6; }
4270else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004272$as_echo "no" >&6; }
4273fi
4274
4275
4276 test -n "$AWK" && break
4277done
4278
Scott James Remnantfde82c92009-09-22 10:04:15 -07004279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004280$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4281set x ${MAKE-make}
4282ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07004283if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004284 $as_echo_n "(cached) " >&6
4285else
4286 cat >conftest.make <<\_ACEOF
4287SHELL = /bin/sh
4288all:
4289 @echo '@@@%%%=$(MAKE)=@@@%%%'
4290_ACEOF
4291# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4292case `${MAKE-make} -f conftest.make 2>/dev/null` in
4293 *@@@%%%=?*=@@@%%%*)
4294 eval ac_cv_prog_make_${ac_make}_set=yes;;
4295 *)
4296 eval ac_cv_prog_make_${ac_make}_set=no;;
4297esac
4298rm -f conftest.make
4299fi
4300if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004302$as_echo "yes" >&6; }
4303 SET_MAKE=
4304else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004306$as_echo "no" >&6; }
4307 SET_MAKE="MAKE=${MAKE-make}"
4308fi
4309
4310rm -rf .tst 2>/dev/null
4311mkdir .tst 2>/dev/null
4312if test -d .tst; then
4313 am__leading_dot=.
4314else
4315 am__leading_dot=_
4316fi
4317rmdir .tst 2>/dev/null
4318
4319DEPDIR="${am__leading_dot}deps"
4320
4321ac_config_commands="$ac_config_commands depfiles"
4322
4323
4324am_make=${MAKE-make}
4325cat > confinc << 'END'
4326am__doit:
Scott James Remnantc5b65582009-09-23 14:16:28 -07004327 @echo this is the am__doit target
Scott James Remnant65f683d2009-07-14 13:05:17 +01004328.PHONY: am__doit
4329END
4330# If we don't find an include directive, just comment out the code.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004331{ $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 +01004332$as_echo_n "checking for style of include used by $am_make... " >&6; }
4333am__include="#"
4334am__quote=
4335_am_result=none
4336# First try GNU make style include.
4337echo "include confinc" > confmf
Scott James Remnantc5b65582009-09-23 14:16:28 -07004338# Ignore all kinds of additional output from `make'.
4339case `$am_make -s -f confmf 2> /dev/null` in #(
4340*the\ am__doit\ target*)
4341 am__include=include
4342 am__quote=
4343 _am_result=GNU
4344 ;;
4345esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004346# Now try BSD make style include.
4347if test "$am__include" = "#"; then
4348 echo '.include "confinc"' > confmf
Scott James Remnantc5b65582009-09-23 14:16:28 -07004349 case `$am_make -s -f confmf 2> /dev/null` in #(
4350 *the\ am__doit\ target*)
4351 am__include=.include
4352 am__quote="\""
4353 _am_result=BSD
4354 ;;
4355 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004356fi
4357
4358
Scott James Remnantfde82c92009-09-22 10:04:15 -07004359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004360$as_echo "$_am_result" >&6; }
4361rm -f confinc confmf
4362
4363# Check whether --enable-dependency-tracking was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004364if test "${enable_dependency_tracking+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004365 enableval=$enable_dependency_tracking;
4366fi
4367
4368if test "x$enable_dependency_tracking" != xno; then
4369 am_depcomp="$ac_aux_dir/depcomp"
4370 AMDEPBACKSLASH='\'
4371fi
4372 if test "x$enable_dependency_tracking" != xno; then
4373 AMDEP_TRUE=
4374 AMDEP_FALSE='#'
4375else
4376 AMDEP_TRUE='#'
4377 AMDEP_FALSE=
4378fi
4379
4380
4381if test "`cd $srcdir && pwd`" != "`pwd`"; then
4382 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4383 # is not polluted with repeated "-I."
4384 am__isrc=' -I$(srcdir)'
4385 # test to see if srcdir already configured
4386 if test -f $srcdir/config.status; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004387 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004388 fi
4389fi
4390
4391# test whether we have cygpath
4392if test -z "$CYGPATH_W"; then
4393 if (cygpath --version) >/dev/null 2>/dev/null; then
4394 CYGPATH_W='cygpath -w'
4395 else
4396 CYGPATH_W=echo
4397 fi
4398fi
4399
4400
4401# Define the identity of the package.
4402 PACKAGE='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004403 VERSION='0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004404
4405
4406cat >>confdefs.h <<_ACEOF
4407#define PACKAGE "$PACKAGE"
4408_ACEOF
4409
4410
4411cat >>confdefs.h <<_ACEOF
4412#define VERSION "$VERSION"
4413_ACEOF
4414
4415# Some tools Automake needs.
4416
4417ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4418
4419
4420AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4421
4422
4423AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4424
4425
4426AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4427
4428
4429MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4430
Scott James Remnant65f683d2009-07-14 13:05:17 +01004431# We need awk for the "check" target. The system "awk" is bad on
4432# some platforms.
4433# Always define AMTAR for backward compatibility.
4434
4435AMTAR=${AMTAR-"${am_missing_run}tar"}
4436
4437am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4438
4439
4440
4441
4442depcc="$CC" am_compiler_list=
4443
Scott James Remnantfde82c92009-09-22 10:04:15 -07004444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004445$as_echo_n "checking dependency style of $depcc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004446if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004447 $as_echo_n "(cached) " >&6
4448else
4449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450 # We make a subdir and do the tests there. Otherwise we can end up
4451 # making bogus files that we don't know about and never remove. For
4452 # instance it was reported that on HP-UX the gcc test will end up
4453 # making a dummy file named `D' -- because `-MD' means `put the output
4454 # in D'.
4455 mkdir conftest.dir
4456 # Copy depcomp to subdir because otherwise we won't find it if we're
4457 # using a relative directory.
4458 cp "$am_depcomp" conftest.dir
4459 cd conftest.dir
4460 # We will build objects and dependencies in a subdirectory because
4461 # it helps to detect inapplicable dependency modes. For instance
4462 # both Tru64's cc and ICC support -MD to output dependencies as a
4463 # side effect of compilation, but ICC will put the dependencies in
4464 # the current directory while Tru64 will put them in the object
4465 # directory.
4466 mkdir sub
4467
4468 am_cv_CC_dependencies_compiler_type=none
4469 if test "$am_compiler_list" = ""; then
4470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4471 fi
Scott James Remnantc5b65582009-09-23 14:16:28 -07004472 am__universal=false
4473 case " $depcc " in #(
4474 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4475 esac
4476
Scott James Remnant65f683d2009-07-14 13:05:17 +01004477 for depmode in $am_compiler_list; do
4478 # Setup a source with many dependencies, because some compilers
4479 # like to wrap large dependency lists on column 80 (with \), and
4480 # we should not choose a depcomp mode which is confused by this.
4481 #
4482 # We need to recreate these files for each test, as the compiler may
4483 # overwrite some of them when testing with obscure command lines.
4484 # This happens at least with the AIX C compiler.
4485 : > sub/conftest.c
4486 for i in 1 2 3 4 5 6; do
4487 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4488 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4489 # Solaris 8's {/usr,}/bin/sh.
4490 touch sub/conftst$i.h
4491 done
4492 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4493
Scott James Remnantc5b65582009-09-23 14:16:28 -07004494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4495 # mode. It turns out that the SunPro C++ compiler does not properly
4496 # handle `-M -o', and we need to detect this. Also, some Intel
4497 # versions had trouble with output in subdirs
4498 am__obj=sub/conftest.${OBJEXT-o}
4499 am__minus_obj="-o $am__obj"
Scott James Remnant65f683d2009-07-14 13:05:17 +01004500 case $depmode in
Scott James Remnantc5b65582009-09-23 14:16:28 -07004501 gcc)
4502 # This depmode causes a compiler race in universal mode.
4503 test "$am__universal" = false || continue
4504 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004505 nosideeffect)
4506 # after this tag, mechanisms are not by side-effect, so they'll
4507 # only be used when explicitly requested
4508 if test "x$enable_dependency_tracking" = xyes; then
4509 continue
4510 else
4511 break
4512 fi
4513 ;;
Scott James Remnantc5b65582009-09-23 14:16:28 -07004514 msvisualcpp | msvcmsys)
4515 # This compiler won't grok `-c -o', but also, the minuso test has
4516 # not run yet. These depmodes are late enough in the game, and
4517 # so weak that their functioning should not be impacted.
4518 am__obj=conftest.${OBJEXT-o}
4519 am__minus_obj=
4520 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004521 none) break ;;
4522 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004523 if depmode=$depmode \
Scott James Remnantc5b65582009-09-23 14:16:28 -07004524 source=sub/conftest.c object=$am__obj \
Scott James Remnant65f683d2009-07-14 13:05:17 +01004525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Scott James Remnantc5b65582009-09-23 14:16:28 -07004526 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Scott James Remnant65f683d2009-07-14 13:05:17 +01004527 >/dev/null 2>conftest.err &&
4528 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4529 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Scott James Remnantc5b65582009-09-23 14:16:28 -07004530 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Scott James Remnant65f683d2009-07-14 13:05:17 +01004531 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4532 # icc doesn't choke on unknown options, it will just issue warnings
4533 # or remarks (even with -Werror). So we grep stderr for any message
4534 # that says an option was ignored or not supported.
4535 # When given -MP, icc 7.0 and 7.1 complain thusly:
4536 # icc: Command line warning: ignoring option '-M'; no argument required
4537 # The diagnosis changed in icc 8.0:
4538 # icc: Command line remark: option '-MP' not supported
4539 if (grep 'ignoring option' conftest.err ||
4540 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4541 am_cv_CC_dependencies_compiler_type=$depmode
4542 break
4543 fi
4544 fi
4545 done
4546
4547 cd ..
4548 rm -rf conftest.dir
4549else
4550 am_cv_CC_dependencies_compiler_type=none
4551fi
4552
4553fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004555$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4556CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4557
4558 if
4559 test "x$enable_dependency_tracking" != xno \
4560 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4561 am__fastdepCC_TRUE=
4562 am__fastdepCC_FALSE='#'
4563else
4564 am__fastdepCC_TRUE='#'
4565 am__fastdepCC_FALSE=
4566fi
4567
4568
4569
4570
4571
4572case `pwd` in
4573 *\ * | *\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -07004574 { $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 +01004575$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4576esac
4577
4578
4579
4580macro_version='2.2.6'
4581macro_revision='1.3012'
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595ltmain="$ac_aux_dir/ltmain.sh"
4596
4597# Make sure we can run config.sub.
4598$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004599 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004600
Scott James Remnantfde82c92009-09-22 10:04:15 -07004601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004602$as_echo_n "checking build system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004603if test "${ac_cv_build+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004604 $as_echo_n "(cached) " >&6
4605else
4606 ac_build_alias=$build_alias
4607test "x$ac_build_alias" = x &&
4608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4609test "x$ac_build_alias" = x &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07004610 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004611ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004612 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004613
4614fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004616$as_echo "$ac_cv_build" >&6; }
4617case $ac_cv_build in
4618*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004619*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004620esac
4621build=$ac_cv_build
4622ac_save_IFS=$IFS; IFS='-'
4623set x $ac_cv_build
4624shift
4625build_cpu=$1
4626build_vendor=$2
4627shift; shift
4628# Remember, the first character of IFS is used to create $*,
4629# except with old shells:
4630build_os=$*
4631IFS=$ac_save_IFS
4632case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4633
4634
Scott James Remnantfde82c92009-09-22 10:04:15 -07004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004636$as_echo_n "checking host system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004637if test "${ac_cv_host+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004638 $as_echo_n "(cached) " >&6
4639else
4640 if test "x$host_alias" = x; then
4641 ac_cv_host=$ac_cv_build
4642else
4643 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004644 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004645fi
4646
4647fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004649$as_echo "$ac_cv_host" >&6; }
4650case $ac_cv_host in
4651*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004652*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004653esac
4654host=$ac_cv_host
4655ac_save_IFS=$IFS; IFS='-'
4656set x $ac_cv_host
4657shift
4658host_cpu=$1
4659host_vendor=$2
4660shift; shift
4661# Remember, the first character of IFS is used to create $*,
4662# except with old shells:
4663host_os=$*
4664IFS=$ac_save_IFS
4665case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4666
4667
Scott James Remnantfde82c92009-09-22 10:04:15 -07004668{ $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 +01004669$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004670if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004671 $as_echo_n "(cached) " >&6
4672else
4673 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4674 for ac_i in 1 2 3 4 5 6 7; do
4675 ac_script="$ac_script$as_nl$ac_script"
4676 done
4677 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Scott James Remnantfde82c92009-09-22 10:04:15 -07004678 { ac_script=; unset ac_script;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01004679 if test -z "$SED"; then
4680 ac_path_SED_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004687 for ac_prog in sed gsed; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4690 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4691# Check for GNU ac_path_SED and select it if it is found.
4692 # Check for GNU $ac_path_SED
4693case `"$ac_path_SED" --version 2>&1` in
4694*GNU*)
4695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4696*)
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4700 do
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo '' >> "conftest.nl"
4705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004707 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004708 if test $ac_count -gt ${ac_path_SED_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_SED="$ac_path_SED"
4711 ac_path_SED_max=$ac_count
4712 fi
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4715 done
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717esac
4718
4719 $ac_path_SED_found && break 3
4720 done
4721 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004722 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004723IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_SED"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004725 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004726 fi
4727else
4728 ac_cv_path_SED=$SED
4729fi
4730
4731fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004733$as_echo "$ac_cv_path_SED" >&6; }
4734 SED="$ac_cv_path_SED"
4735 rm -f conftest.sed
4736
4737test -z "$SED" && SED=sed
4738Xsed="$SED -e 1s/^X//"
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
Scott James Remnantfde82c92009-09-22 10:04:15 -07004750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004751$as_echo_n "checking for fgrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004752if test "${ac_cv_path_FGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004753 $as_echo_n "(cached) " >&6
4754else
4755 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4756 then ac_cv_path_FGREP="$GREP -F"
4757 else
4758 if test -z "$FGREP"; then
4759 ac_path_FGREP_found=false
4760 # Loop through the user's path and test for each of PROGNAME-LIST
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004766 for ac_prog in fgrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4769 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4770# Check for GNU ac_path_FGREP and select it if it is found.
4771 # Check for GNU $ac_path_FGREP
4772case `"$ac_path_FGREP" --version 2>&1` in
4773*GNU*)
4774 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4775*)
4776 ac_count=0
4777 $as_echo_n 0123456789 >"conftest.in"
4778 while :
4779 do
4780 cat "conftest.in" "conftest.in" >"conftest.tmp"
4781 mv "conftest.tmp" "conftest.in"
4782 cp "conftest.in" "conftest.nl"
4783 $as_echo 'FGREP' >> "conftest.nl"
4784 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004786 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004787 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4788 # Best one so far, save it but keep looking for a better one
4789 ac_cv_path_FGREP="$ac_path_FGREP"
4790 ac_path_FGREP_max=$ac_count
4791 fi
4792 # 10*(2^10) chars as input seems more than enough
4793 test $ac_count -gt 10 && break
4794 done
4795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4796esac
4797
4798 $ac_path_FGREP_found && break 3
4799 done
4800 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004801 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004802IFS=$as_save_IFS
4803 if test -z "$ac_cv_path_FGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004804 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 +01004805 fi
4806else
4807 ac_cv_path_FGREP=$FGREP
4808fi
4809
4810 fi
4811fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004813$as_echo "$ac_cv_path_FGREP" >&6; }
4814 FGREP="$ac_cv_path_FGREP"
4815
4816
4817test -z "$GREP" && GREP=grep
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004838if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004839 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4840else
4841 with_gnu_ld=no
4842fi
4843
4844ac_prog=ld
4845if test "$GCC" = yes; then
4846 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004848$as_echo_n "checking for ld used by $CC... " >&6; }
4849 case $host in
4850 *-*-mingw*)
4851 # gcc leaves a trailing carriage return which upsets mingw
4852 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4853 *)
4854 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4855 esac
4856 case $ac_prog in
4857 # Accept absolute paths.
4858 [\\/]* | ?:[\\/]*)
4859 re_direlt='/[^/][^/]*/\.\./'
4860 # Canonicalize the pathname of ld
4861 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4862 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4863 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4864 done
4865 test -z "$LD" && LD="$ac_prog"
4866 ;;
4867 "")
4868 # If it fails, then pretend we aren't using GCC.
4869 ac_prog=ld
4870 ;;
4871 *)
4872 # If it is relative, then search for the first ld in PATH.
4873 with_gnu_ld=unknown
4874 ;;
4875 esac
4876elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004878$as_echo_n "checking for GNU ld... " >&6; }
4879else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004881$as_echo_n "checking for non-GNU ld... " >&6; }
4882fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004883if test "${lt_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004884 $as_echo_n "(cached) " >&6
4885else
4886 if test -z "$LD"; then
4887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4888 for ac_dir in $PATH; do
4889 IFS="$lt_save_ifs"
4890 test -z "$ac_dir" && ac_dir=.
4891 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4892 lt_cv_path_LD="$ac_dir/$ac_prog"
4893 # Check to see if the program is GNU ld. I'd rather use --version,
4894 # but apparently some variants of GNU ld only accept -v.
4895 # Break only if it was the GNU/non-GNU ld that we prefer.
4896 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4897 *GNU* | *'with BFD'*)
4898 test "$with_gnu_ld" != no && break
4899 ;;
4900 *)
4901 test "$with_gnu_ld" != yes && break
4902 ;;
4903 esac
4904 fi
4905 done
4906 IFS="$lt_save_ifs"
4907else
4908 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4909fi
4910fi
4911
4912LD="$lt_cv_path_LD"
4913if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004915$as_echo "$LD" >&6; }
4916else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004918$as_echo "no" >&6; }
4919fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004920test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004922$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004923if test "${lt_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004924 $as_echo_n "(cached) " >&6
4925else
4926 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4927case `$LD -v 2>&1 </dev/null` in
4928*GNU* | *'with BFD'*)
4929 lt_cv_prog_gnu_ld=yes
4930 ;;
4931*)
4932 lt_cv_prog_gnu_ld=no
4933 ;;
4934esac
4935fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004937$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4938with_gnu_ld=$lt_cv_prog_gnu_ld
4939
4940
4941
4942
4943
4944
4945
4946
4947
Scott James Remnantfde82c92009-09-22 10:04:15 -07004948{ $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 +01004949$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004950if test "${lt_cv_path_NM+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004951 $as_echo_n "(cached) " >&6
4952else
4953 if test -n "$NM"; then
4954 # Let the user override the test.
4955 lt_cv_path_NM="$NM"
4956else
4957 lt_nm_to_check="${ac_tool_prefix}nm"
4958 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4959 lt_nm_to_check="$lt_nm_to_check nm"
4960 fi
4961 for lt_tmp_nm in $lt_nm_to_check; do
4962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4963 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4964 IFS="$lt_save_ifs"
4965 test -z "$ac_dir" && ac_dir=.
4966 tmp_nm="$ac_dir/$lt_tmp_nm"
4967 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4968 # Check to see if the nm accepts a BSD-compat flag.
4969 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4970 # nm: unknown option "B" ignored
4971 # Tru64's nm complains that /dev/null is an invalid object file
4972 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4973 */dev/null* | *'Invalid file or object type'*)
4974 lt_cv_path_NM="$tmp_nm -B"
4975 break
4976 ;;
4977 *)
4978 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4979 */dev/null*)
4980 lt_cv_path_NM="$tmp_nm -p"
4981 break
4982 ;;
4983 *)
4984 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4985 continue # so that we can try to find one that supports BSD flags
4986 ;;
4987 esac
4988 ;;
4989 esac
4990 fi
4991 done
4992 IFS="$lt_save_ifs"
4993 done
4994 : ${lt_cv_path_NM=no}
4995fi
4996fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004998$as_echo "$lt_cv_path_NM" >&6; }
4999if test "$lt_cv_path_NM" != "no"; then
5000 NM="$lt_cv_path_NM"
5001else
5002 # Didn't find any BSD compatible name lister, look for dumpbin.
5003 if test -n "$ac_tool_prefix"; then
5004 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5005 do
5006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005009$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005010if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005011 $as_echo_n "(cached) " >&6
5012else
5013 if test -n "$DUMPBIN"; then
5014 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005021 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005025 break 2
5026 fi
5027done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005028 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005029IFS=$as_save_IFS
5030
5031fi
5032fi
5033DUMPBIN=$ac_cv_prog_DUMPBIN
5034if test -n "$DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005036$as_echo "$DUMPBIN" >&6; }
5037else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005039$as_echo "no" >&6; }
5040fi
5041
5042
5043 test -n "$DUMPBIN" && break
5044 done
5045fi
5046if test -z "$DUMPBIN"; then
5047 ac_ct_DUMPBIN=$DUMPBIN
5048 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5049do
5050 # Extract the first word of "$ac_prog", so it can be a program name with args.
5051set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005053$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005054if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005055 $as_echo_n "(cached) " >&6
5056else
5057 if test -n "$ac_ct_DUMPBIN"; then
5058 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005065 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005069 break 2
5070 fi
5071done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005072 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005073IFS=$as_save_IFS
5074
5075fi
5076fi
5077ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5078if test -n "$ac_ct_DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005080$as_echo "$ac_ct_DUMPBIN" >&6; }
5081else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005083$as_echo "no" >&6; }
5084fi
5085
5086
5087 test -n "$ac_ct_DUMPBIN" && break
5088done
5089
5090 if test "x$ac_ct_DUMPBIN" = x; then
5091 DUMPBIN=":"
5092 else
5093 case $cross_compiling:$ac_tool_warned in
5094yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005095{ $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 +01005096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5097ac_tool_warned=yes ;;
5098esac
5099 DUMPBIN=$ac_ct_DUMPBIN
5100 fi
5101fi
5102
5103
5104 if test "$DUMPBIN" != ":"; then
5105 NM="$DUMPBIN"
5106 fi
5107fi
5108test -z "$NM" && NM=nm
5109
5110
5111
5112
5113
5114
Scott James Remnantfde82c92009-09-22 10:04:15 -07005115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005116$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005117if test "${lt_cv_nm_interface+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005118 $as_echo_n "(cached) " >&6
5119else
5120 lt_cv_nm_interface="BSD nm"
5121 echo "int some_variable = 0;" > conftest.$ac_ext
Scott James Remnantc5b65582009-09-23 14:16:28 -07005122 (eval echo "\"\$as_me:5122: $ac_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005123 (eval "$ac_compile" 2>conftest.err)
5124 cat conftest.err >&5
Scott James Remnantc5b65582009-09-23 14:16:28 -07005125 (eval echo "\"\$as_me:5125: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5127 cat conftest.err >&5
Scott James Remnantc5b65582009-09-23 14:16:28 -07005128 (eval echo "\"\$as_me:5128: output\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005129 cat conftest.out >&5
5130 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5131 lt_cv_nm_interface="MS dumpbin"
5132 fi
5133 rm -f conftest*
5134fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005136$as_echo "$lt_cv_nm_interface" >&6; }
5137
Scott James Remnantfde82c92009-09-22 10:04:15 -07005138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005139$as_echo_n "checking whether ln -s works... " >&6; }
5140LN_S=$as_ln_s
5141if test "$LN_S" = "ln -s"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005143$as_echo "yes" >&6; }
5144else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005146$as_echo "no, using $LN_S" >&6; }
5147fi
5148
5149# find the maximum length of command line arguments
Scott James Remnantfde82c92009-09-22 10:04:15 -07005150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005151$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005152if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005153 $as_echo_n "(cached) " >&6
5154else
5155 i=0
5156 teststring="ABCD"
5157
5158 case $build_os in
5159 msdosdjgpp*)
5160 # On DJGPP, this test can blow up pretty badly due to problems in libc
5161 # (any single argument exceeding 2000 bytes causes a buffer overrun
5162 # during glob expansion). Even if it were fixed, the result of this
5163 # check would be larger than it should be.
5164 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5165 ;;
5166
5167 gnu*)
5168 # Under GNU Hurd, this test is not required because there is
5169 # no limit to the length of command line arguments.
5170 # Libtool will interpret -1 as no limit whatsoever
5171 lt_cv_sys_max_cmd_len=-1;
5172 ;;
5173
5174 cygwin* | mingw* | cegcc*)
5175 # On Win9x/ME, this test blows up -- it succeeds, but takes
5176 # about 5 minutes as the teststring grows exponentially.
5177 # Worse, since 9x/ME are not pre-emptively multitasking,
5178 # you end up with a "frozen" computer, even though with patience
5179 # the test eventually succeeds (with a max line length of 256k).
5180 # Instead, let's just punt: use the minimum linelength reported by
5181 # all of the supported platforms: 8192 (on NT/2K/XP).
5182 lt_cv_sys_max_cmd_len=8192;
5183 ;;
5184
5185 amigaos*)
5186 # On AmigaOS with pdksh, this test takes hours, literally.
5187 # So we just punt and use a minimum line length of 8192.
5188 lt_cv_sys_max_cmd_len=8192;
5189 ;;
5190
5191 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5192 # This has been around since 386BSD, at least. Likely further.
5193 if test -x /sbin/sysctl; then
5194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5195 elif test -x /usr/sbin/sysctl; then
5196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5197 else
5198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5199 fi
5200 # And add a safety zone
5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5203 ;;
5204
5205 interix*)
5206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5207 lt_cv_sys_max_cmd_len=196608
5208 ;;
5209
5210 osf*)
5211 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5212 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5213 # nice to cause kernel panics so lets avoid the loop below.
5214 # First set a reasonable default.
5215 lt_cv_sys_max_cmd_len=16384
5216 #
5217 if test -x /sbin/sysconfig; then
5218 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5219 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5220 esac
5221 fi
5222 ;;
5223 sco3.2v5*)
5224 lt_cv_sys_max_cmd_len=102400
5225 ;;
5226 sysv5* | sco5v6* | sysv4.2uw2*)
5227 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5228 if test -n "$kargmax"; then
5229 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5230 else
5231 lt_cv_sys_max_cmd_len=32768
5232 fi
5233 ;;
5234 *)
5235 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5236 if test -n "$lt_cv_sys_max_cmd_len"; then
5237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5239 else
5240 # Make teststring a little bigger before we do anything with it.
5241 # a 1K string should be a reasonable start.
5242 for i in 1 2 3 4 5 6 7 8 ; do
5243 teststring=$teststring$teststring
5244 done
5245 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5246 # If test is not a shell built-in, we'll probably end up computing a
5247 # maximum length that is only half of the actual maximum length, but
5248 # we can't tell.
5249 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5250 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5251 test $i != 17 # 1/2 MB should be enough
5252 do
5253 i=`expr $i + 1`
5254 teststring=$teststring$teststring
5255 done
5256 # Only check the string length outside the loop.
5257 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5258 teststring=
5259 # Add a significant safety factor because C++ compilers can tack on
5260 # massive amounts of additional arguments before passing them to the
5261 # linker. It appears as though 1/2 is a usable value.
5262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5263 fi
5264 ;;
5265 esac
5266
5267fi
5268
5269if test -n $lt_cv_sys_max_cmd_len ; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005271$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5272else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005274$as_echo "none" >&6; }
5275fi
5276max_cmd_len=$lt_cv_sys_max_cmd_len
5277
5278
5279
5280
5281
5282
5283: ${CP="cp -f"}
5284: ${MV="mv -f"}
5285: ${RM="rm -f"}
5286
Scott James Remnantfde82c92009-09-22 10:04:15 -07005287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005288$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5289# Try some XSI features
5290xsi_shell=no
5291( _lt_dummy="a/b/c"
5292 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5293 = c,a/b,, \
5294 && eval 'test $(( 1 + 1 )) -eq 2 \
5295 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5296 && xsi_shell=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005298$as_echo "$xsi_shell" >&6; }
5299
5300
Scott James Remnantfde82c92009-09-22 10:04:15 -07005301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005302$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5303lt_shell_append=no
5304( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5305 >/dev/null 2>&1 \
5306 && lt_shell_append=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005308$as_echo "$lt_shell_append" >&6; }
5309
5310
5311if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5312 lt_unset=unset
5313else
5314 lt_unset=false
5315fi
5316
5317
5318
5319
5320
5321# test EBCDIC or ASCII
5322case `echo X|tr X '\101'` in
5323 A) # ASCII based system
5324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5325 lt_SP2NL='tr \040 \012'
5326 lt_NL2SP='tr \015\012 \040\040'
5327 ;;
5328 *) # EBCDIC based system
5329 lt_SP2NL='tr \100 \n'
5330 lt_NL2SP='tr \r\n \100\100'
5331 ;;
5332esac
5333
5334
5335
5336
5337
5338
5339
5340
5341
Scott James Remnantfde82c92009-09-22 10:04:15 -07005342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005343$as_echo_n "checking for $LD option to reload object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005344if test "${lt_cv_ld_reload_flag+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005345 $as_echo_n "(cached) " >&6
5346else
5347 lt_cv_ld_reload_flag='-r'
5348fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005350$as_echo "$lt_cv_ld_reload_flag" >&6; }
5351reload_flag=$lt_cv_ld_reload_flag
5352case $reload_flag in
5353"" | " "*) ;;
5354*) reload_flag=" $reload_flag" ;;
5355esac
5356reload_cmds='$LD$reload_flag -o $output$reload_objs'
5357case $host_os in
5358 darwin*)
5359 if test "$GCC" = yes; then
5360 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5361 else
5362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5363 fi
5364 ;;
5365esac
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5377set dummy ${ac_tool_prefix}objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005379$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005380if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005381 $as_echo_n "(cached) " >&6
5382else
5383 if test -n "$OBJDUMP"; then
5384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005391 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005395 break 2
5396 fi
5397done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005398 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005399IFS=$as_save_IFS
5400
5401fi
5402fi
5403OBJDUMP=$ac_cv_prog_OBJDUMP
5404if test -n "$OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005406$as_echo "$OBJDUMP" >&6; }
5407else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005409$as_echo "no" >&6; }
5410fi
5411
5412
5413fi
5414if test -z "$ac_cv_prog_OBJDUMP"; then
5415 ac_ct_OBJDUMP=$OBJDUMP
5416 # Extract the first word of "objdump", so it can be a program name with args.
5417set dummy objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005419$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005420if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005421 $as_echo_n "(cached) " >&6
5422else
5423 if test -n "$ac_ct_OBJDUMP"; then
5424 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005431 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005435 break 2
5436 fi
5437done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005438 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005439IFS=$as_save_IFS
5440
5441fi
5442fi
5443ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5444if test -n "$ac_ct_OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005446$as_echo "$ac_ct_OBJDUMP" >&6; }
5447else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005449$as_echo "no" >&6; }
5450fi
5451
5452 if test "x$ac_ct_OBJDUMP" = x; then
5453 OBJDUMP="false"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005457{ $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 +01005458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459ac_tool_warned=yes ;;
5460esac
5461 OBJDUMP=$ac_ct_OBJDUMP
5462 fi
5463else
5464 OBJDUMP="$ac_cv_prog_OBJDUMP"
5465fi
5466
5467test -z "$OBJDUMP" && OBJDUMP=objdump
5468
5469
5470
5471
5472
5473
5474
5475
5476
Scott James Remnantfde82c92009-09-22 10:04:15 -07005477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005478$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005479if test "${lt_cv_deplibs_check_method+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005480 $as_echo_n "(cached) " >&6
5481else
5482 lt_cv_file_magic_cmd='$MAGIC_CMD'
5483lt_cv_file_magic_test_file=
5484lt_cv_deplibs_check_method='unknown'
5485# Need to set the preceding variable on all platforms that support
5486# interlibrary dependencies.
5487# 'none' -- dependencies not supported.
5488# `unknown' -- same as none, but documents that we really don't know.
5489# 'pass_all' -- all dependencies passed with no checks.
5490# 'test_compile' -- check by making test program.
5491# 'file_magic [[regex]]' -- check by looking for files in library path
5492# which responds to the $file_magic_cmd with a given extended regex.
5493# If you have `file' or equivalent on your system and you're not sure
5494# whether `pass_all' will *always* work, you probably want this one.
5495
5496case $host_os in
5497aix[4-9]*)
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
5500
5501beos*)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505bsdi[45]*)
5506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5507 lt_cv_file_magic_cmd='/usr/bin/file -L'
5508 lt_cv_file_magic_test_file=/shlib/libc.so
5509 ;;
5510
5511cygwin*)
5512 # func_win32_libid is a shell function defined in ltmain.sh
5513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5514 lt_cv_file_magic_cmd='func_win32_libid'
5515 ;;
5516
5517mingw* | pw32*)
5518 # Base MSYS/MinGW do not provide the 'file' command needed by
5519 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5520 # unless we find 'file', for example because we are cross-compiling.
5521 if ( file / ) >/dev/null 2>&1; then
5522 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5523 lt_cv_file_magic_cmd='func_win32_libid'
5524 else
5525 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5526 lt_cv_file_magic_cmd='$OBJDUMP -f'
5527 fi
5528 ;;
5529
5530cegcc)
5531 # use the weaker test based on 'objdump'. See mingw*.
5532 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5533 lt_cv_file_magic_cmd='$OBJDUMP -f'
5534 ;;
5535
5536darwin* | rhapsody*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540freebsd* | dragonfly*)
5541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5542 case $host_cpu in
5543 i*86 )
5544 # Not sure whether the presence of OpenBSD here was a mistake.
5545 # Let's accept both of them until this is cleared up.
5546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5547 lt_cv_file_magic_cmd=/usr/bin/file
5548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5549 ;;
5550 esac
5551 else
5552 lt_cv_deplibs_check_method=pass_all
5553 fi
5554 ;;
5555
5556gnu*)
5557 lt_cv_deplibs_check_method=pass_all
5558 ;;
5559
5560hpux10.20* | hpux11*)
5561 lt_cv_file_magic_cmd=/usr/bin/file
5562 case $host_cpu in
5563 ia64*)
5564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5566 ;;
5567 hppa*64*)
5568 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]'
5569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5570 ;;
5571 *)
5572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5573 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5574 ;;
5575 esac
5576 ;;
5577
5578interix[3-9]*)
5579 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5581 ;;
5582
5583irix5* | irix6* | nonstopux*)
5584 case $LD in
5585 *-32|*"-32 ") libmagic=32-bit;;
5586 *-n32|*"-n32 ") libmagic=N32;;
5587 *-64|*"-64 ") libmagic=64-bit;;
5588 *) libmagic=never-match;;
5589 esac
5590 lt_cv_deplibs_check_method=pass_all
5591 ;;
5592
5593# This must be Linux ELF.
5594linux* | k*bsd*-gnu)
5595 lt_cv_deplibs_check_method=pass_all
5596 ;;
5597
5598netbsd* | netbsdelf*-gnu)
5599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5601 else
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5603 fi
5604 ;;
5605
5606newos6*)
5607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5608 lt_cv_file_magic_cmd=/usr/bin/file
5609 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5610 ;;
5611
5612*nto* | *qnx*)
5613 lt_cv_deplibs_check_method=pass_all
5614 ;;
5615
5616openbsd*)
5617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5619 else
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621 fi
5622 ;;
5623
5624osf3* | osf4* | osf5*)
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628rdos*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632solaris*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640sysv4 | sysv4.3*)
5641 case $host_vendor in
5642 motorola)
5643 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]'
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5645 ;;
5646 ncr)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649 sequent)
5650 lt_cv_file_magic_cmd='/bin/file'
5651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5652 ;;
5653 sni)
5654 lt_cv_file_magic_cmd='/bin/file'
5655 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5656 lt_cv_file_magic_test_file=/lib/libc.so
5657 ;;
5658 siemens)
5659 lt_cv_deplibs_check_method=pass_all
5660 ;;
5661 pc)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664 esac
5665 ;;
5666
5667tpf*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670esac
5671
5672fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005674$as_echo "$lt_cv_deplibs_check_method" >&6; }
5675file_magic_cmd=$lt_cv_file_magic_cmd
5676deplibs_check_method=$lt_cv_deplibs_check_method
5677test -z "$deplibs_check_method" && deplibs_check_method=unknown
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5692set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005694$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005695if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005696 $as_echo_n "(cached) " >&6
5697else
5698 if test -n "$AR"; then
5699 ac_cv_prog_AR="$AR" # Let the user override the test.
5700else
5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005706 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005710 break 2
5711 fi
5712done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005713 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005714IFS=$as_save_IFS
5715
5716fi
5717fi
5718AR=$ac_cv_prog_AR
5719if test -n "$AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005721$as_echo "$AR" >&6; }
5722else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005724$as_echo "no" >&6; }
5725fi
5726
5727
5728fi
5729if test -z "$ac_cv_prog_AR"; then
5730 ac_ct_AR=$AR
5731 # Extract the first word of "ar", so it can be a program name with args.
5732set dummy ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005734$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005735if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005736 $as_echo_n "(cached) " >&6
5737else
5738 if test -n "$ac_ct_AR"; then
5739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5740else
5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742for as_dir in $PATH
5743do
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005746 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005750 break 2
5751 fi
5752done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005753 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005754IFS=$as_save_IFS
5755
5756fi
5757fi
5758ac_ct_AR=$ac_cv_prog_ac_ct_AR
5759if test -n "$ac_ct_AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005761$as_echo "$ac_ct_AR" >&6; }
5762else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005764$as_echo "no" >&6; }
5765fi
5766
5767 if test "x$ac_ct_AR" = x; then
5768 AR="false"
5769 else
5770 case $cross_compiling:$ac_tool_warned in
5771yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005772{ $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 +01005773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774ac_tool_warned=yes ;;
5775esac
5776 AR=$ac_ct_AR
5777 fi
5778else
5779 AR="$ac_cv_prog_AR"
5780fi
5781
5782test -z "$AR" && AR=ar
5783test -z "$AR_FLAGS" && AR_FLAGS=cru
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795if test -n "$ac_tool_prefix"; then
5796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5797set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005799$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005800if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005801 $as_echo_n "(cached) " >&6
5802else
5803 if test -n "$STRIP"; then
5804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005811 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005815 break 2
5816 fi
5817done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005818 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005819IFS=$as_save_IFS
5820
5821fi
5822fi
5823STRIP=$ac_cv_prog_STRIP
5824if test -n "$STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005826$as_echo "$STRIP" >&6; }
5827else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005829$as_echo "no" >&6; }
5830fi
5831
5832
5833fi
5834if test -z "$ac_cv_prog_STRIP"; then
5835 ac_ct_STRIP=$STRIP
5836 # Extract the first word of "strip", so it can be a program name with args.
5837set dummy strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005839$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005840if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005841 $as_echo_n "(cached) " >&6
5842else
5843 if test -n "$ac_ct_STRIP"; then
5844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5845else
5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847for as_dir in $PATH
5848do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005851 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005855 break 2
5856 fi
5857done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005858 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005859IFS=$as_save_IFS
5860
5861fi
5862fi
5863ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5864if test -n "$ac_ct_STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005866$as_echo "$ac_ct_STRIP" >&6; }
5867else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005869$as_echo "no" >&6; }
5870fi
5871
5872 if test "x$ac_ct_STRIP" = x; then
5873 STRIP=":"
5874 else
5875 case $cross_compiling:$ac_tool_warned in
5876yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005877{ $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 +01005878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5879ac_tool_warned=yes ;;
5880esac
5881 STRIP=$ac_ct_STRIP
5882 fi
5883else
5884 STRIP="$ac_cv_prog_STRIP"
5885fi
5886
5887test -z "$STRIP" && STRIP=:
5888
5889
5890
5891
5892
5893
5894if test -n "$ac_tool_prefix"; then
5895 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5896set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005898$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005899if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005900 $as_echo_n "(cached) " >&6
5901else
5902 if test -n "$RANLIB"; then
5903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5904else
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908 IFS=$as_save_IFS
5909 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005910 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005914 break 2
5915 fi
5916done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005917 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005918IFS=$as_save_IFS
5919
5920fi
5921fi
5922RANLIB=$ac_cv_prog_RANLIB
5923if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005925$as_echo "$RANLIB" >&6; }
5926else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005928$as_echo "no" >&6; }
5929fi
5930
5931
5932fi
5933if test -z "$ac_cv_prog_RANLIB"; then
5934 ac_ct_RANLIB=$RANLIB
5935 # Extract the first word of "ranlib", so it can be a program name with args.
5936set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005938$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005939if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005940 $as_echo_n "(cached) " >&6
5941else
5942 if test -n "$ac_ct_RANLIB"; then
5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5944else
5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946for as_dir in $PATH
5947do
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005950 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005954 break 2
5955 fi
5956done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005957 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005958IFS=$as_save_IFS
5959
5960fi
5961fi
5962ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5963if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005965$as_echo "$ac_ct_RANLIB" >&6; }
5966else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005968$as_echo "no" >&6; }
5969fi
5970
5971 if test "x$ac_ct_RANLIB" = x; then
5972 RANLIB=":"
5973 else
5974 case $cross_compiling:$ac_tool_warned in
5975yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005976{ $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 +01005977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5978ac_tool_warned=yes ;;
5979esac
5980 RANLIB=$ac_ct_RANLIB
5981 fi
5982else
5983 RANLIB="$ac_cv_prog_RANLIB"
5984fi
5985
5986test -z "$RANLIB" && RANLIB=:
5987
5988
5989
5990
5991
5992
5993# Determine commands to create old-style static archives.
5994old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5995old_postinstall_cmds='chmod 644 $oldlib'
5996old_postuninstall_cmds=
5997
5998if test -n "$RANLIB"; then
5999 case $host_os in
6000 openbsd*)
6001 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6002 ;;
6003 *)
6004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6005 ;;
6006 esac
6007 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6008fi
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043# If no C compiler was specified, use CC.
6044LTCC=${LTCC-"$CC"}
6045
6046# If no C compiler flags were specified, use CFLAGS.
6047LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6048
6049# Allow CC to be a program name with arguments.
6050compiler=$CC
6051
6052
6053# Check for command to grab the raw symbol name followed by C symbol from nm.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006054{ $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 +01006055$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006056if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006057 $as_echo_n "(cached) " >&6
6058else
6059
6060# These are sane defaults that work on at least a few old systems.
6061# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6062
6063# Character class describing NM global symbol codes.
6064symcode='[BCDEGRST]'
6065
6066# Regexp to match symbols that can be accessed directly from C.
6067sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6068
6069# Define system-specific variables.
6070case $host_os in
6071aix*)
6072 symcode='[BCDT]'
6073 ;;
6074cygwin* | mingw* | pw32* | cegcc*)
6075 symcode='[ABCDGISTW]'
6076 ;;
6077hpux*)
6078 if test "$host_cpu" = ia64; then
6079 symcode='[ABCDEGRST]'
6080 fi
6081 ;;
6082irix* | nonstopux*)
6083 symcode='[BCDEGRST]'
6084 ;;
6085osf*)
6086 symcode='[BCDEGQRST]'
6087 ;;
6088solaris*)
6089 symcode='[BDRT]'
6090 ;;
6091sco3.2v5*)
6092 symcode='[DT]'
6093 ;;
6094sysv4.2uw2*)
6095 symcode='[DT]'
6096 ;;
6097sysv5* | sco5v6* | unixware* | OpenUNIX*)
6098 symcode='[ABDT]'
6099 ;;
6100sysv4)
6101 symcode='[DFNSTU]'
6102 ;;
6103esac
6104
6105# If we're using GNU nm, then use its standard symbol codes.
6106case `$NM -V 2>&1` in
6107*GNU* | *'with BFD'*)
6108 symcode='[ABCDGIRSTW]' ;;
6109esac
6110
6111# Transform an extracted symbol line into a proper C declaration.
6112# Some systems (esp. on ia64) link data and code symbols differently,
6113# so use this general approach.
6114lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6115
6116# Transform an extracted symbol line into symbol name and symbol address
6117lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6118lt_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'"
6119
6120# Handle CRLF in mingw tool chain
6121opt_cr=
6122case $build_os in
6123mingw*)
6124 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6125 ;;
6126esac
6127
6128# Try without a prefix underscore, then with it.
6129for ac_symprfx in "" "_"; do
6130
6131 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6132 symxfrm="\\1 $ac_symprfx\\2 \\2"
6133
6134 # Write the raw and C identifiers.
6135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 # Fake it for dumpbin and say T for any non-static function
6137 # and D for any global variable.
6138 # Also find C++ and __fastcall symbols from MSVC++,
6139 # which start with @ or ?.
6140 lt_cv_sys_global_symbol_pipe="$AWK '"\
6141" {last_section=section; section=\$ 3};"\
6142" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6143" \$ 0!~/External *\|/{next};"\
6144" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6145" {if(hide[section]) next};"\
6146" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6147" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6148" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6149" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6150" ' prfx=^$ac_symprfx"
6151 else
6152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6153 fi
6154
6155 # Check to see that the pipe works correctly.
6156 pipe_works=no
6157
6158 rm -f conftest*
6159 cat > conftest.$ac_ext <<_LT_EOF
6160#ifdef __cplusplus
6161extern "C" {
6162#endif
6163char nm_test_var;
6164void nm_test_func(void);
6165void nm_test_func(void){}
6166#ifdef __cplusplus
6167}
6168#endif
6169int main(){nm_test_var='a';nm_test_func();return(0);}
6170_LT_EOF
6171
Scott James Remnantfde82c92009-09-22 10:04:15 -07006172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006173 (eval $ac_compile) 2>&5
6174 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6176 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006177 # Now try to grab the symbols.
6178 nlist=conftest.nm
Scott James Remnantfde82c92009-09-22 10:04:15 -07006179 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 +01006180 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6181 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183 test $ac_status = 0; } && test -s "$nlist"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006184 # Try sorting and uniquifying the output.
6185 if sort "$nlist" | uniq > "$nlist"T; then
6186 mv -f "$nlist"T "$nlist"
6187 else
6188 rm -f "$nlist"T
6189 fi
6190
6191 # Make sure that we snagged all the symbols we need.
6192 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6193 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6194 cat <<_LT_EOF > conftest.$ac_ext
6195#ifdef __cplusplus
6196extern "C" {
6197#endif
6198
6199_LT_EOF
6200 # Now generate the symbol file.
6201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6202
6203 cat <<_LT_EOF >> conftest.$ac_ext
6204
6205/* The mapping between symbol names and symbols. */
6206const struct {
6207 const char *name;
6208 void *address;
6209}
6210lt__PROGRAM__LTX_preloaded_symbols[] =
6211{
6212 { "@PROGRAM@", (void *) 0 },
6213_LT_EOF
6214 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6215 cat <<\_LT_EOF >> conftest.$ac_ext
6216 {0, (void *) 0}
6217};
6218
6219/* This works around a problem in FreeBSD linker */
6220#ifdef FREEBSD_WORKAROUND
6221static const void *lt_preloaded_setup() {
6222 return lt__PROGRAM__LTX_preloaded_symbols;
6223}
6224#endif
6225
6226#ifdef __cplusplus
6227}
6228#endif
6229_LT_EOF
6230 # Now try linking the two files.
6231 mv conftest.$ac_objext conftstm.$ac_objext
6232 lt_save_LIBS="$LIBS"
6233 lt_save_CFLAGS="$CFLAGS"
6234 LIBS="conftstm.$ac_objext"
6235 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006237 (eval $ac_link) 2>&5
6238 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006241 pipe_works=yes
6242 fi
6243 LIBS="$lt_save_LIBS"
6244 CFLAGS="$lt_save_CFLAGS"
6245 else
6246 echo "cannot find nm_test_func in $nlist" >&5
6247 fi
6248 else
6249 echo "cannot find nm_test_var in $nlist" >&5
6250 fi
6251 else
6252 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6253 fi
6254 else
6255 echo "$progname: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 fi
6258 rm -rf conftest* conftst*
6259
6260 # Do not use the global_symbol_pipe unless it works.
6261 if test "$pipe_works" = yes; then
6262 break
6263 else
6264 lt_cv_sys_global_symbol_pipe=
6265 fi
6266done
6267
6268fi
6269
6270if test -z "$lt_cv_sys_global_symbol_pipe"; then
6271 lt_cv_sys_global_symbol_to_cdecl=
6272fi
6273if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006275$as_echo "failed" >&6; }
6276else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006278$as_echo "ok" >&6; }
6279fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302# Check whether --enable-libtool-lock was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006303if test "${enable_libtool_lock+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006304 enableval=$enable_libtool_lock;
6305fi
6306
6307test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6308
6309# Some flags need to be propagated to the compiler or linker for good
6310# libtool support.
6311case $host in
6312ia64-*-hpux*)
6313 # Find out which ABI we are using.
6314 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006316 (eval $ac_compile) 2>&5
6317 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6319 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006320 case `/usr/bin/file conftest.$ac_objext` in
6321 *ELF-32*)
6322 HPUX_IA64_MODE="32"
6323 ;;
6324 *ELF-64*)
6325 HPUX_IA64_MODE="64"
6326 ;;
6327 esac
6328 fi
6329 rm -rf conftest*
6330 ;;
6331*-*-irix6*)
6332 # Find out which ABI we are using.
Scott James Remnantc5b65582009-09-23 14:16:28 -07006333 echo '#line 6333 "configure"' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006335 (eval $ac_compile) 2>&5
6336 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006339 if test "$lt_cv_prog_gnu_ld" = yes; then
6340 case `/usr/bin/file conftest.$ac_objext` in
6341 *32-bit*)
6342 LD="${LD-ld} -melf32bsmip"
6343 ;;
6344 *N32*)
6345 LD="${LD-ld} -melf32bmipn32"
6346 ;;
6347 *64-bit*)
6348 LD="${LD-ld} -melf64bmip"
6349 ;;
6350 esac
6351 else
6352 case `/usr/bin/file conftest.$ac_objext` in
6353 *32-bit*)
6354 LD="${LD-ld} -32"
6355 ;;
6356 *N32*)
6357 LD="${LD-ld} -n32"
6358 ;;
6359 *64-bit*)
6360 LD="${LD-ld} -64"
6361 ;;
6362 esac
6363 fi
6364 fi
6365 rm -rf conftest*
6366 ;;
6367
6368x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6369s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6370 # Find out which ABI we are using.
6371 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006373 (eval $ac_compile) 2>&5
6374 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006377 case `/usr/bin/file conftest.o` in
6378 *32-bit*)
6379 case $host in
6380 x86_64-*kfreebsd*-gnu)
6381 LD="${LD-ld} -m elf_i386_fbsd"
6382 ;;
6383 x86_64-*linux*)
6384 LD="${LD-ld} -m elf_i386"
6385 ;;
6386 ppc64-*linux*|powerpc64-*linux*)
6387 LD="${LD-ld} -m elf32ppclinux"
6388 ;;
6389 s390x-*linux*)
6390 LD="${LD-ld} -m elf_s390"
6391 ;;
6392 sparc64-*linux*)
6393 LD="${LD-ld} -m elf32_sparc"
6394 ;;
6395 esac
6396 ;;
6397 *64-bit*)
6398 case $host in
6399 x86_64-*kfreebsd*-gnu)
6400 LD="${LD-ld} -m elf_x86_64_fbsd"
6401 ;;
6402 x86_64-*linux*)
6403 LD="${LD-ld} -m elf_x86_64"
6404 ;;
6405 ppc*-*linux*|powerpc*-*linux*)
6406 LD="${LD-ld} -m elf64ppc"
6407 ;;
6408 s390*-*linux*|s390*-*tpf*)
6409 LD="${LD-ld} -m elf64_s390"
6410 ;;
6411 sparc*-*linux*)
6412 LD="${LD-ld} -m elf64_sparc"
6413 ;;
6414 esac
6415 ;;
6416 esac
6417 fi
6418 rm -rf conftest*
6419 ;;
6420
6421*-*-sco3.2v5*)
6422 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6423 SAVE_CFLAGS="$CFLAGS"
6424 CFLAGS="$CFLAGS -belf"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006426$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006427if test "${lt_cv_cc_needs_belf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006428 $as_echo_n "(cached) " >&6
6429else
6430 ac_ext=c
6431ac_cpp='$CPP $CPPFLAGS'
6432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6434ac_compiler_gnu=$ac_cv_c_compiler_gnu
6435
Scott James Remnantfde82c92009-09-22 10:04:15 -07006436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006437/* end confdefs.h. */
6438
6439int
6440main ()
6441{
6442
6443 ;
6444 return 0;
6445}
6446_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07006447if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006448 lt_cv_cc_needs_belf=yes
6449else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006450 lt_cv_cc_needs_belf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006451fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006452rm -f core conftest.err conftest.$ac_objext \
6453 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006454 ac_ext=c
6455ac_cpp='$CPP $CPPFLAGS'
6456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459
6460fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006462$as_echo "$lt_cv_cc_needs_belf" >&6; }
6463 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6464 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6465 CFLAGS="$SAVE_CFLAGS"
6466 fi
6467 ;;
6468sparc*-*solaris*)
6469 # Find out which ABI we are using.
6470 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006472 (eval $ac_compile) 2>&5
6473 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006476 case `/usr/bin/file conftest.o` in
6477 *64-bit*)
6478 case $lt_cv_prog_gnu_ld in
6479 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6480 *)
6481 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6482 LD="${LD-ld} -64"
6483 fi
6484 ;;
6485 esac
6486 ;;
6487 esac
6488 fi
6489 rm -rf conftest*
6490 ;;
6491esac
6492
6493need_locks="$enable_libtool_lock"
6494
6495
6496 case $host_os in
6497 rhapsody* | darwin*)
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6500set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006502$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006503if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006504 $as_echo_n "(cached) " >&6
6505else
6506 if test -n "$DSYMUTIL"; then
6507 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006514 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006518 break 2
6519 fi
6520done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006521 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006522IFS=$as_save_IFS
6523
6524fi
6525fi
6526DSYMUTIL=$ac_cv_prog_DSYMUTIL
6527if test -n "$DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006529$as_echo "$DSYMUTIL" >&6; }
6530else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006532$as_echo "no" >&6; }
6533fi
6534
6535
6536fi
6537if test -z "$ac_cv_prog_DSYMUTIL"; then
6538 ac_ct_DSYMUTIL=$DSYMUTIL
6539 # Extract the first word of "dsymutil", so it can be a program name with args.
6540set dummy dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006542$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006543if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006544 $as_echo_n "(cached) " >&6
6545else
6546 if test -n "$ac_ct_DSYMUTIL"; then
6547 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6548else
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006554 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006558 break 2
6559 fi
6560done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006561 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006562IFS=$as_save_IFS
6563
6564fi
6565fi
6566ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6567if test -n "$ac_ct_DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006569$as_echo "$ac_ct_DSYMUTIL" >&6; }
6570else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006572$as_echo "no" >&6; }
6573fi
6574
6575 if test "x$ac_ct_DSYMUTIL" = x; then
6576 DSYMUTIL=":"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006580{ $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 +01006581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582ac_tool_warned=yes ;;
6583esac
6584 DSYMUTIL=$ac_ct_DSYMUTIL
6585 fi
6586else
6587 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6588fi
6589
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6592set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006594$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006595if test "${ac_cv_prog_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006596 $as_echo_n "(cached) " >&6
6597else
6598 if test -n "$NMEDIT"; then
6599 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6600else
6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602for as_dir in $PATH
6603do
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006606 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006610 break 2
6611 fi
6612done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006613 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006614IFS=$as_save_IFS
6615
6616fi
6617fi
6618NMEDIT=$ac_cv_prog_NMEDIT
6619if test -n "$NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006621$as_echo "$NMEDIT" >&6; }
6622else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006624$as_echo "no" >&6; }
6625fi
6626
6627
6628fi
6629if test -z "$ac_cv_prog_NMEDIT"; then
6630 ac_ct_NMEDIT=$NMEDIT
6631 # Extract the first word of "nmedit", so it can be a program name with args.
6632set dummy nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006634$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006635if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006636 $as_echo_n "(cached) " >&6
6637else
6638 if test -n "$ac_ct_NMEDIT"; then
6639 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6640else
6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006646 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006650 break 2
6651 fi
6652done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006653 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006654IFS=$as_save_IFS
6655
6656fi
6657fi
6658ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6659if test -n "$ac_ct_NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006661$as_echo "$ac_ct_NMEDIT" >&6; }
6662else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006664$as_echo "no" >&6; }
6665fi
6666
6667 if test "x$ac_ct_NMEDIT" = x; then
6668 NMEDIT=":"
6669 else
6670 case $cross_compiling:$ac_tool_warned in
6671yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006672{ $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 +01006673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674ac_tool_warned=yes ;;
6675esac
6676 NMEDIT=$ac_ct_NMEDIT
6677 fi
6678else
6679 NMEDIT="$ac_cv_prog_NMEDIT"
6680fi
6681
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6684set dummy ${ac_tool_prefix}lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006686$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006687if test "${ac_cv_prog_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006688 $as_echo_n "(cached) " >&6
6689else
6690 if test -n "$LIPO"; then
6691 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006698 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006702 break 2
6703 fi
6704done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006705 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006706IFS=$as_save_IFS
6707
6708fi
6709fi
6710LIPO=$ac_cv_prog_LIPO
6711if test -n "$LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006713$as_echo "$LIPO" >&6; }
6714else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006716$as_echo "no" >&6; }
6717fi
6718
6719
6720fi
6721if test -z "$ac_cv_prog_LIPO"; then
6722 ac_ct_LIPO=$LIPO
6723 # Extract the first word of "lipo", so it can be a program name with args.
6724set dummy lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006726$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006727if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006728 $as_echo_n "(cached) " >&6
6729else
6730 if test -n "$ac_ct_LIPO"; then
6731 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6732else
6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006738 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_LIPO="lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006742 break 2
6743 fi
6744done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006745 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006746IFS=$as_save_IFS
6747
6748fi
6749fi
6750ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6751if test -n "$ac_ct_LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006753$as_echo "$ac_ct_LIPO" >&6; }
6754else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006756$as_echo "no" >&6; }
6757fi
6758
6759 if test "x$ac_ct_LIPO" = x; then
6760 LIPO=":"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006764{ $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 +01006765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766ac_tool_warned=yes ;;
6767esac
6768 LIPO=$ac_ct_LIPO
6769 fi
6770else
6771 LIPO="$ac_cv_prog_LIPO"
6772fi
6773
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6776set dummy ${ac_tool_prefix}otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006778$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006779if test "${ac_cv_prog_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006780 $as_echo_n "(cached) " >&6
6781else
6782 if test -n "$OTOOL"; then
6783 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6784else
6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006790 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006794 break 2
6795 fi
6796done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006797 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006798IFS=$as_save_IFS
6799
6800fi
6801fi
6802OTOOL=$ac_cv_prog_OTOOL
6803if test -n "$OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006805$as_echo "$OTOOL" >&6; }
6806else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006808$as_echo "no" >&6; }
6809fi
6810
6811
6812fi
6813if test -z "$ac_cv_prog_OTOOL"; then
6814 ac_ct_OTOOL=$OTOOL
6815 # Extract the first word of "otool", so it can be a program name with args.
6816set dummy otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006818$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006819if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006820 $as_echo_n "(cached) " >&6
6821else
6822 if test -n "$ac_ct_OTOOL"; then
6823 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6824else
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006830 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_ac_ct_OTOOL="otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006834 break 2
6835 fi
6836done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006837 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006838IFS=$as_save_IFS
6839
6840fi
6841fi
6842ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6843if test -n "$ac_ct_OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006845$as_echo "$ac_ct_OTOOL" >&6; }
6846else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006848$as_echo "no" >&6; }
6849fi
6850
6851 if test "x$ac_ct_OTOOL" = x; then
6852 OTOOL=":"
6853 else
6854 case $cross_compiling:$ac_tool_warned in
6855yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006856{ $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 +01006857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858ac_tool_warned=yes ;;
6859esac
6860 OTOOL=$ac_ct_OTOOL
6861 fi
6862else
6863 OTOOL="$ac_cv_prog_OTOOL"
6864fi
6865
6866 if test -n "$ac_tool_prefix"; then
6867 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6868set dummy ${ac_tool_prefix}otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006870$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006871if test "${ac_cv_prog_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006872 $as_echo_n "(cached) " >&6
6873else
6874 if test -n "$OTOOL64"; then
6875 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6876else
6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006882 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006886 break 2
6887 fi
6888done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006889 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006890IFS=$as_save_IFS
6891
6892fi
6893fi
6894OTOOL64=$ac_cv_prog_OTOOL64
6895if test -n "$OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006897$as_echo "$OTOOL64" >&6; }
6898else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006900$as_echo "no" >&6; }
6901fi
6902
6903
6904fi
6905if test -z "$ac_cv_prog_OTOOL64"; then
6906 ac_ct_OTOOL64=$OTOOL64
6907 # Extract the first word of "otool64", so it can be a program name with args.
6908set dummy otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006910$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006911if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006912 $as_echo_n "(cached) " >&6
6913else
6914 if test -n "$ac_ct_OTOOL64"; then
6915 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006922 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_ac_ct_OTOOL64="otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006926 break 2
6927 fi
6928done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006929 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006930IFS=$as_save_IFS
6931
6932fi
6933fi
6934ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6935if test -n "$ac_ct_OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006937$as_echo "$ac_ct_OTOOL64" >&6; }
6938else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006940$as_echo "no" >&6; }
6941fi
6942
6943 if test "x$ac_ct_OTOOL64" = x; then
6944 OTOOL64=":"
6945 else
6946 case $cross_compiling:$ac_tool_warned in
6947yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006948{ $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 +01006949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950ac_tool_warned=yes ;;
6951esac
6952 OTOOL64=$ac_ct_OTOOL64
6953 fi
6954else
6955 OTOOL64="$ac_cv_prog_OTOOL64"
6956fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
Scott James Remnantfde82c92009-09-22 10:04:15 -07006984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006985$as_echo_n "checking for -single_module linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006986if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006987 $as_echo_n "(cached) " >&6
6988else
6989 lt_cv_apple_cc_single_mod=no
6990 if test -z "${LT_MULTI_MODULE}"; then
6991 # By default we will add the -single_module flag. You can override
6992 # by either setting the environment variable LT_MULTI_MODULE
6993 # non-empty at configure time, or by adding -multi_module to the
6994 # link flags.
6995 rm -rf libconftest.dylib*
6996 echo "int foo(void){return 1;}" > conftest.c
6997 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6998-dynamiclib -Wl,-single_module conftest.c" >&5
6999 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7000 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7001 _lt_result=$?
7002 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7003 lt_cv_apple_cc_single_mod=yes
7004 else
7005 cat conftest.err >&5
7006 fi
7007 rm -rf libconftest.dylib*
7008 rm -f conftest.*
7009 fi
7010fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007012$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007014$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007015if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007016 $as_echo_n "(cached) " >&6
7017else
7018 lt_cv_ld_exported_symbols_list=no
7019 save_LDFLAGS=$LDFLAGS
7020 echo "_main" > conftest.sym
7021 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007023/* end confdefs.h. */
7024
7025int
7026main ()
7027{
7028
7029 ;
7030 return 0;
7031}
7032_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007033if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007034 lt_cv_ld_exported_symbols_list=yes
7035else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007036 lt_cv_ld_exported_symbols_list=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01007037fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007038rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007040 LDFLAGS="$save_LDFLAGS"
7041
7042fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007044$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7045 case $host_os in
7046 rhapsody* | darwin1.[012])
7047 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7048 darwin1.*)
7049 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7050 darwin*) # darwin 5.x on
7051 # if running on 10.5 or later, the deployment target defaults
7052 # to the OS version, if on x86, and 10.4, the deployment
7053 # target defaults to 10.4. Don't you love it?
7054 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7055 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7056 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7057 10.[012]*)
7058 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7059 10.*)
7060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7061 esac
7062 ;;
7063 esac
7064 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7065 _lt_dar_single_mod='$single_module'
7066 fi
7067 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7068 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7069 else
7070 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7071 fi
7072 if test "$DSYMUTIL" != ":"; then
7073 _lt_dsymutil='~$DSYMUTIL $lib || :'
7074 else
7075 _lt_dsymutil=
7076 fi
7077 ;;
7078 esac
7079
Scott James Remnant65f683d2009-07-14 13:05:17 +01007080for ac_header in dlfcn.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07007081do :
7082 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7083"
7084if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007085 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007086#define HAVE_DLFCN_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +01007087_ACEOF
7088
7089fi
7090
7091done
7092
7093
7094
7095# Set options
7096
7097
7098
7099 enable_dlopen=no
7100
7101
7102 enable_win32_dll=no
7103
7104
7105 # Check whether --enable-shared was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007106if test "${enable_shared+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007107 enableval=$enable_shared; p=${PACKAGE-default}
7108 case $enableval in
7109 yes) enable_shared=yes ;;
7110 no) enable_shared=no ;;
7111 *)
7112 enable_shared=no
7113 # Look at the argument we got. We use all the common list separators.
7114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7115 for pkg in $enableval; do
7116 IFS="$lt_save_ifs"
7117 if test "X$pkg" = "X$p"; then
7118 enable_shared=yes
7119 fi
7120 done
7121 IFS="$lt_save_ifs"
7122 ;;
7123 esac
7124else
7125 enable_shared=yes
7126fi
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 # Check whether --enable-static was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007137if test "${enable_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007138 enableval=$enable_static; p=${PACKAGE-default}
7139 case $enableval in
7140 yes) enable_static=yes ;;
7141 no) enable_static=no ;;
7142 *)
7143 enable_static=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_static=yes
7150 fi
7151 done
7152 IFS="$lt_save_ifs"
7153 ;;
7154 esac
7155else
7156 enable_static=yes
7157fi
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168# Check whether --with-pic was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007169if test "${with_pic+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007170 withval=$with_pic; pic_mode="$withval"
7171else
7172 pic_mode=default
7173fi
7174
7175
7176test -z "$pic_mode" && pic_mode=default
7177
7178
7179
7180
7181
7182
7183
7184 # Check whether --enable-fast-install was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007185if test "${enable_fast_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007186 enableval=$enable_fast_install; p=${PACKAGE-default}
7187 case $enableval in
7188 yes) enable_fast_install=yes ;;
7189 no) enable_fast_install=no ;;
7190 *)
7191 enable_fast_install=no
7192 # Look at the argument we got. We use all the common list separators.
7193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7194 for pkg in $enableval; do
7195 IFS="$lt_save_ifs"
7196 if test "X$pkg" = "X$p"; then
7197 enable_fast_install=yes
7198 fi
7199 done
7200 IFS="$lt_save_ifs"
7201 ;;
7202 esac
7203else
7204 enable_fast_install=yes
7205fi
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217# This can be used to rebuild libtool when needed
7218LIBTOOL_DEPS="$ltmain"
7219
7220# Always use our own libtool.
7221LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247test -z "$LN_S" && LN_S="ln -s"
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262if test -n "${ZSH_VERSION+set}" ; then
7263 setopt NO_GLOB_SUBST
7264fi
7265
Scott James Remnantfde82c92009-09-22 10:04:15 -07007266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007267$as_echo_n "checking for objdir... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007268if test "${lt_cv_objdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007269 $as_echo_n "(cached) " >&6
7270else
7271 rm -f .libs 2>/dev/null
7272mkdir .libs 2>/dev/null
7273if test -d .libs; then
7274 lt_cv_objdir=.libs
7275else
7276 # MS-DOS does not allow filenames that begin with a dot.
7277 lt_cv_objdir=_libs
7278fi
7279rmdir .libs 2>/dev/null
7280fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007282$as_echo "$lt_cv_objdir" >&6; }
7283objdir=$lt_cv_objdir
7284
7285
7286
7287
7288
7289cat >>confdefs.h <<_ACEOF
7290#define LT_OBJDIR "$lt_cv_objdir/"
7291_ACEOF
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309case $host_os in
7310aix3*)
7311 # AIX sometimes has problems with the GCC collect2 program. For some
7312 # reason, if we set the COLLECT_NAMES environment variable, the problems
7313 # vanish in a puff of smoke.
7314 if test "X${COLLECT_NAMES+set}" != Xset; then
7315 COLLECT_NAMES=
7316 export COLLECT_NAMES
7317 fi
7318 ;;
7319esac
7320
7321# Sed substitution that helps us do robust quoting. It backslashifies
7322# metacharacters that are still active within double-quoted strings.
7323sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7324
7325# Same as above, but do not quote variable references.
7326double_quote_subst='s/\(["`\\]\)/\\\1/g'
7327
7328# Sed substitution to delay expansion of an escaped shell variable in a
7329# double_quote_subst'ed string.
7330delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7331
7332# Sed substitution to delay expansion of an escaped single quote.
7333delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7334
7335# Sed substitution to avoid accidental globbing in evaled expressions
7336no_glob_subst='s/\*/\\\*/g'
7337
7338# Global variables:
7339ofile=libtool
7340can_build_shared=yes
7341
7342# All known linkers require a `.a' archive for static linking (except MSVC,
7343# which needs '.lib').
7344libext=a
7345
7346with_gnu_ld="$lt_cv_prog_gnu_ld"
7347
7348old_CC="$CC"
7349old_CFLAGS="$CFLAGS"
7350
7351# Set sane defaults for various variables
7352test -z "$CC" && CC=cc
7353test -z "$LTCC" && LTCC=$CC
7354test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7355test -z "$LD" && LD=ld
7356test -z "$ac_objext" && ac_objext=o
7357
7358for cc_temp in $compiler""; do
7359 case $cc_temp in
7360 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7361 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7362 \-*) ;;
7363 *) break;;
7364 esac
7365done
7366cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7367
7368
7369# Only perform the check for file, if the check method requires it
7370test -z "$MAGIC_CMD" && MAGIC_CMD=file
7371case $deplibs_check_method in
7372file_magic*)
7373 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007375$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007376if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007377 $as_echo_n "(cached) " >&6
7378else
7379 case $MAGIC_CMD in
7380[\\/*] | ?:[\\/]*)
7381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7382 ;;
7383*)
7384 lt_save_MAGIC_CMD="$MAGIC_CMD"
7385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7387 for ac_dir in $ac_dummy; do
7388 IFS="$lt_save_ifs"
7389 test -z "$ac_dir" && ac_dir=.
7390 if test -f $ac_dir/${ac_tool_prefix}file; then
7391 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7392 if test -n "$file_magic_test_file"; then
7393 case $deplibs_check_method in
7394 "file_magic "*)
7395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7398 $EGREP "$file_magic_regex" > /dev/null; then
7399 :
7400 else
7401 cat <<_LT_EOF 1>&2
7402
7403*** Warning: the command libtool uses to detect shared libraries,
7404*** $file_magic_cmd, produces output that libtool cannot recognize.
7405*** The result is that libtool may fail to recognize shared libraries
7406*** as such. This will affect the creation of libtool libraries that
7407*** depend on shared libraries, but programs linked with such libtool
7408*** libraries will work regardless of this problem. Nevertheless, you
7409*** may want to report the problem to your system manager and/or to
7410*** bug-libtool@gnu.org
7411
7412_LT_EOF
7413 fi ;;
7414 esac
7415 fi
7416 break
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 MAGIC_CMD="$lt_save_MAGIC_CMD"
7421 ;;
7422esac
7423fi
7424
7425MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7426if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007428$as_echo "$MAGIC_CMD" >&6; }
7429else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007431$as_echo "no" >&6; }
7432fi
7433
7434
7435
7436
7437
7438if test -z "$lt_cv_path_MAGIC_CMD"; then
7439 if test -n "$ac_tool_prefix"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007441$as_echo_n "checking for file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007442if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007443 $as_echo_n "(cached) " >&6
7444else
7445 case $MAGIC_CMD in
7446[\\/*] | ?:[\\/]*)
7447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7448 ;;
7449*)
7450 lt_save_MAGIC_CMD="$MAGIC_CMD"
7451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7453 for ac_dir in $ac_dummy; do
7454 IFS="$lt_save_ifs"
7455 test -z "$ac_dir" && ac_dir=.
7456 if test -f $ac_dir/file; then
7457 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7458 if test -n "$file_magic_test_file"; then
7459 case $deplibs_check_method in
7460 "file_magic "*)
7461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7464 $EGREP "$file_magic_regex" > /dev/null; then
7465 :
7466 else
7467 cat <<_LT_EOF 1>&2
7468
7469*** Warning: the command libtool uses to detect shared libraries,
7470*** $file_magic_cmd, produces output that libtool cannot recognize.
7471*** The result is that libtool may fail to recognize shared libraries
7472*** as such. This will affect the creation of libtool libraries that
7473*** depend on shared libraries, but programs linked with such libtool
7474*** libraries will work regardless of this problem. Nevertheless, you
7475*** may want to report the problem to your system manager and/or to
7476*** bug-libtool@gnu.org
7477
7478_LT_EOF
7479 fi ;;
7480 esac
7481 fi
7482 break
7483 fi
7484 done
7485 IFS="$lt_save_ifs"
7486 MAGIC_CMD="$lt_save_MAGIC_CMD"
7487 ;;
7488esac
7489fi
7490
7491MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7492if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007494$as_echo "$MAGIC_CMD" >&6; }
7495else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007497$as_echo "no" >&6; }
7498fi
7499
7500
7501 else
7502 MAGIC_CMD=:
7503 fi
7504fi
7505
7506 fi
7507 ;;
7508esac
7509
7510# Use C for the default configuration in the libtool script
7511
7512lt_save_CC="$CC"
7513ac_ext=c
7514ac_cpp='$CPP $CPPFLAGS'
7515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519
7520# Source file extension for C test sources.
7521ac_ext=c
7522
7523# Object file extension for compiled C test sources.
7524objext=o
7525objext=$objext
7526
7527# Code to be used in simple compile tests
7528lt_simple_compile_test_code="int some_variable = 0;"
7529
7530# Code to be used in simple link tests
7531lt_simple_link_test_code='int main(){return(0);}'
7532
7533
7534
7535
7536
7537
7538
7539# If no C compiler was specified, use CC.
7540LTCC=${LTCC-"$CC"}
7541
7542# If no C compiler flags were specified, use CFLAGS.
7543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7544
7545# Allow CC to be a program name with arguments.
7546compiler=$CC
7547
7548# Save the default compiler, since it gets overwritten when the other
7549# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7550compiler_DEFAULT=$CC
7551
7552# save warnings/boilerplate of simple test code
7553ac_outfile=conftest.$ac_objext
7554echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7555eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7556_lt_compiler_boilerplate=`cat conftest.err`
7557$RM conftest*
7558
7559ac_outfile=conftest.$ac_objext
7560echo "$lt_simple_link_test_code" >conftest.$ac_ext
7561eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7562_lt_linker_boilerplate=`cat conftest.err`
7563$RM -r conftest*
7564
7565
7566## CAVEAT EMPTOR:
7567## There is no encapsulation within the following macros, do not change
7568## the running order or otherwise move them around unless you know exactly
7569## what you are doing...
7570if test -n "$compiler"; then
7571
7572lt_prog_compiler_no_builtin_flag=
7573
7574if test "$GCC" = yes; then
7575 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7576
Scott James Remnantfde82c92009-09-22 10:04:15 -07007577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007578$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007579if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007580 $as_echo_n "(cached) " >&6
7581else
7582 lt_cv_prog_compiler_rtti_exceptions=no
7583 ac_outfile=conftest.$ac_objext
7584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7585 lt_compiler_flag="-fno-rtti -fno-exceptions"
7586 # Insert the option either (1) after the last *FLAGS variable, or
7587 # (2) before a word containing "conftest.", or (3) at the end.
7588 # Note that $ac_compile itself does not contain backslashes and begins
7589 # with a dollar sign (not a hyphen), so the echo should work correctly.
7590 # The option is referenced via a variable to avoid confusing sed.
7591 lt_compile=`echo "$ac_compile" | $SED \
7592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantc5b65582009-09-23 14:16:28 -07007595 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007596 (eval "$lt_compile" 2>conftest.err)
7597 ac_status=$?
7598 cat conftest.err >&5
Scott James Remnantc5b65582009-09-23 14:16:28 -07007599 echo "$as_me:7599: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007600 if (exit $ac_status) && test -s "$ac_outfile"; then
7601 # The compiler can only warn and ignore the option if not recognized
7602 # So say no if there are warnings other than the usual output.
7603 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7606 lt_cv_prog_compiler_rtti_exceptions=yes
7607 fi
7608 fi
7609 $RM conftest*
7610
7611fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007613$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7614
7615if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7616 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7617else
7618 :
7619fi
7620
7621fi
7622
7623
7624
7625
7626
7627
7628 lt_prog_compiler_wl=
7629lt_prog_compiler_pic=
7630lt_prog_compiler_static=
7631
Scott James Remnantfde82c92009-09-22 10:04:15 -07007632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007633$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7634
7635 if test "$GCC" = yes; then
7636 lt_prog_compiler_wl='-Wl,'
7637 lt_prog_compiler_static='-static'
7638
7639 case $host_os in
7640 aix*)
7641 # All AIX code is PIC.
7642 if test "$host_cpu" = ia64; then
7643 # AIX 5 now supports IA64 processor
7644 lt_prog_compiler_static='-Bstatic'
7645 fi
7646 ;;
7647
7648 amigaos*)
7649 case $host_cpu in
7650 powerpc)
7651 # see comment about AmigaOS4 .so support
7652 lt_prog_compiler_pic='-fPIC'
7653 ;;
7654 m68k)
7655 # FIXME: we need at least 68020 code to build shared libraries, but
7656 # adding the `-m68020' flag to GCC prevents building anything better,
7657 # like `-m68040'.
7658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7659 ;;
7660 esac
7661 ;;
7662
7663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7664 # PIC is the default for these OSes.
7665 ;;
7666
7667 mingw* | cygwin* | pw32* | os2* | cegcc*)
7668 # This hack is so that the source file can tell whether it is being
7669 # built for inclusion in a dll (and should export symbols for example).
7670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7671 # (--disable-auto-import) libraries
7672 lt_prog_compiler_pic='-DDLL_EXPORT'
7673 ;;
7674
7675 darwin* | rhapsody*)
7676 # PIC is the default on this platform
7677 # Common symbols not allowed in MH_DYLIB files
7678 lt_prog_compiler_pic='-fno-common'
7679 ;;
7680
7681 hpux*)
7682 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7683 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7684 # sets the default TLS model and affects inlining.
7685 case $host_cpu in
7686 hppa*64*)
7687 # +Z the default
7688 ;;
7689 *)
7690 lt_prog_compiler_pic='-fPIC'
7691 ;;
7692 esac
7693 ;;
7694
7695 interix[3-9]*)
7696 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7697 # Instead, we relocate shared libraries at runtime.
7698 ;;
7699
7700 msdosdjgpp*)
7701 # Just because we use GCC doesn't mean we suddenly get shared libraries
7702 # on systems that don't support them.
7703 lt_prog_compiler_can_build_shared=no
7704 enable_shared=no
7705 ;;
7706
7707 *nto* | *qnx*)
7708 # QNX uses GNU C++, but need to define -shared option too, otherwise
7709 # it will coredump.
7710 lt_prog_compiler_pic='-fPIC -shared'
7711 ;;
7712
7713 sysv4*MP*)
7714 if test -d /usr/nec; then
7715 lt_prog_compiler_pic=-Kconform_pic
7716 fi
7717 ;;
7718
7719 *)
7720 lt_prog_compiler_pic='-fPIC'
7721 ;;
7722 esac
7723 else
7724 # PORTME Check for flag to pass linker flags through the system compiler.
7725 case $host_os in
7726 aix*)
7727 lt_prog_compiler_wl='-Wl,'
7728 if test "$host_cpu" = ia64; then
7729 # AIX 5 now supports IA64 processor
7730 lt_prog_compiler_static='-Bstatic'
7731 else
7732 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7733 fi
7734 ;;
7735
7736 mingw* | cygwin* | pw32* | os2* | cegcc*)
7737 # This hack is so that the source file can tell whether it is being
7738 # built for inclusion in a dll (and should export symbols for example).
7739 lt_prog_compiler_pic='-DDLL_EXPORT'
7740 ;;
7741
7742 hpux9* | hpux10* | hpux11*)
7743 lt_prog_compiler_wl='-Wl,'
7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745 # not for PA HP-UX.
7746 case $host_cpu in
7747 hppa*64*|ia64*)
7748 # +Z the default
7749 ;;
7750 *)
7751 lt_prog_compiler_pic='+Z'
7752 ;;
7753 esac
7754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7755 lt_prog_compiler_static='${wl}-a ${wl}archive'
7756 ;;
7757
7758 irix5* | irix6* | nonstopux*)
7759 lt_prog_compiler_wl='-Wl,'
7760 # PIC (with -KPIC) is the default.
7761 lt_prog_compiler_static='-non_shared'
7762 ;;
7763
7764 linux* | k*bsd*-gnu)
7765 case $cc_basename in
7766 # old Intel for x86_64 which still supported -KPIC.
7767 ecc*)
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-static'
7771 ;;
7772 # icc used to be incompatible with GCC.
7773 # ICC 10 doesn't accept -KPIC any more.
7774 icc* | ifort*)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-fPIC'
7777 lt_prog_compiler_static='-static'
7778 ;;
7779 # Lahey Fortran 8.1.
7780 lf95*)
7781 lt_prog_compiler_wl='-Wl,'
7782 lt_prog_compiler_pic='--shared'
7783 lt_prog_compiler_static='--static'
7784 ;;
7785 pgcc* | pgf77* | pgf90* | pgf95*)
7786 # Portland Group compilers (*not* the Pentium gcc compiler,
7787 # which looks to be a dead project)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-fpic'
7790 lt_prog_compiler_static='-Bstatic'
7791 ;;
7792 ccc*)
7793 lt_prog_compiler_wl='-Wl,'
7794 # All Alpha code is PIC.
7795 lt_prog_compiler_static='-non_shared'
7796 ;;
7797 xl*)
7798 # IBM XL C 8.0/Fortran 10.1 on PPC
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-qpic'
7801 lt_prog_compiler_static='-qstaticlink'
7802 ;;
7803 *)
7804 case `$CC -V 2>&1 | sed 5q` in
7805 *Sun\ C*)
7806 # Sun C 5.9
7807 lt_prog_compiler_pic='-KPIC'
7808 lt_prog_compiler_static='-Bstatic'
7809 lt_prog_compiler_wl='-Wl,'
7810 ;;
7811 *Sun\ F*)
7812 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7815 lt_prog_compiler_wl=''
7816 ;;
7817 esac
7818 ;;
7819 esac
7820 ;;
7821
7822 newsos6)
7823 lt_prog_compiler_pic='-KPIC'
7824 lt_prog_compiler_static='-Bstatic'
7825 ;;
7826
7827 *nto* | *qnx*)
7828 # QNX uses GNU C++, but need to define -shared option too, otherwise
7829 # it will coredump.
7830 lt_prog_compiler_pic='-fPIC -shared'
7831 ;;
7832
7833 osf3* | osf4* | osf5*)
7834 lt_prog_compiler_wl='-Wl,'
7835 # All OSF/1 code is PIC.
7836 lt_prog_compiler_static='-non_shared'
7837 ;;
7838
7839 rdos*)
7840 lt_prog_compiler_static='-non_shared'
7841 ;;
7842
7843 solaris*)
7844 lt_prog_compiler_pic='-KPIC'
7845 lt_prog_compiler_static='-Bstatic'
7846 case $cc_basename in
7847 f77* | f90* | f95*)
7848 lt_prog_compiler_wl='-Qoption ld ';;
7849 *)
7850 lt_prog_compiler_wl='-Wl,';;
7851 esac
7852 ;;
7853
7854 sunos4*)
7855 lt_prog_compiler_wl='-Qoption ld '
7856 lt_prog_compiler_pic='-PIC'
7857 lt_prog_compiler_static='-Bstatic'
7858 ;;
7859
7860 sysv4 | sysv4.2uw2* | sysv4.3*)
7861 lt_prog_compiler_wl='-Wl,'
7862 lt_prog_compiler_pic='-KPIC'
7863 lt_prog_compiler_static='-Bstatic'
7864 ;;
7865
7866 sysv4*MP*)
7867 if test -d /usr/nec ;then
7868 lt_prog_compiler_pic='-Kconform_pic'
7869 lt_prog_compiler_static='-Bstatic'
7870 fi
7871 ;;
7872
7873 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-KPIC'
7876 lt_prog_compiler_static='-Bstatic'
7877 ;;
7878
7879 unicos*)
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_can_build_shared=no
7882 ;;
7883
7884 uts4*)
7885 lt_prog_compiler_pic='-pic'
7886 lt_prog_compiler_static='-Bstatic'
7887 ;;
7888
7889 *)
7890 lt_prog_compiler_can_build_shared=no
7891 ;;
7892 esac
7893 fi
7894
7895case $host_os in
7896 # For platforms which do not support PIC, -DPIC is meaningless:
7897 *djgpp*)
7898 lt_prog_compiler_pic=
7899 ;;
7900 *)
7901 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7902 ;;
7903esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07007904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007905$as_echo "$lt_prog_compiler_pic" >&6; }
7906
7907
7908
7909
7910
7911
7912#
7913# Check to make sure the PIC flag actually works.
7914#
7915if test -n "$lt_prog_compiler_pic"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007916 { $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 +01007917$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007918if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007919 $as_echo_n "(cached) " >&6
7920else
7921 lt_cv_prog_compiler_pic_works=no
7922 ac_outfile=conftest.$ac_objext
7923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7924 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7925 # Insert the option either (1) after the last *FLAGS variable, or
7926 # (2) before a word containing "conftest.", or (3) at the end.
7927 # Note that $ac_compile itself does not contain backslashes and begins
7928 # with a dollar sign (not a hyphen), so the echo should work correctly.
7929 # The option is referenced via a variable to avoid confusing sed.
7930 lt_compile=`echo "$ac_compile" | $SED \
7931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantc5b65582009-09-23 14:16:28 -07007934 (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007935 (eval "$lt_compile" 2>conftest.err)
7936 ac_status=$?
7937 cat conftest.err >&5
Scott James Remnantc5b65582009-09-23 14:16:28 -07007938 echo "$as_me:7938: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007939 if (exit $ac_status) && test -s "$ac_outfile"; then
7940 # The compiler can only warn and ignore the option if not recognized
7941 # So say no if there are warnings other than the usual output.
7942 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7945 lt_cv_prog_compiler_pic_works=yes
7946 fi
7947 fi
7948 $RM conftest*
7949
7950fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007952$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7953
7954if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7955 case $lt_prog_compiler_pic in
7956 "" | " "*) ;;
7957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7958 esac
7959else
7960 lt_prog_compiler_pic=
7961 lt_prog_compiler_can_build_shared=no
7962fi
7963
7964fi
7965
7966
7967
7968
7969
7970
7971#
7972# Check to make sure the static flag actually works.
7973#
7974wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007975{ $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 +01007976$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007977if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007978 $as_echo_n "(cached) " >&6
7979else
7980 lt_cv_prog_compiler_static_works=no
7981 save_LDFLAGS="$LDFLAGS"
7982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7983 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7985 # The linker can only warn and ignore the option if not recognized
7986 # So say no if there are warnings
7987 if test -s conftest.err; then
7988 # Append any errors to the config.log.
7989 cat conftest.err 1>&5
7990 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7992 if diff conftest.exp conftest.er2 >/dev/null; then
7993 lt_cv_prog_compiler_static_works=yes
7994 fi
7995 else
7996 lt_cv_prog_compiler_static_works=yes
7997 fi
7998 fi
7999 $RM -r conftest*
8000 LDFLAGS="$save_LDFLAGS"
8001
8002fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008004$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8005
8006if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8007 :
8008else
8009 lt_prog_compiler_static=
8010fi
8011
8012
8013
8014
8015
8016
8017
Scott James Remnantfde82c92009-09-22 10:04:15 -07008018 { $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 +01008019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008020if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008021 $as_echo_n "(cached) " >&6
8022else
8023 lt_cv_prog_compiler_c_o=no
8024 $RM -r conftest 2>/dev/null
8025 mkdir conftest
8026 cd conftest
8027 mkdir out
8028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8029
8030 lt_compiler_flag="-o out/conftest2.$ac_objext"
8031 # Insert the option either (1) after the last *FLAGS variable, or
8032 # (2) before a word containing "conftest.", or (3) at the end.
8033 # Note that $ac_compile itself does not contain backslashes and begins
8034 # with a dollar sign (not a hyphen), so the echo should work correctly.
8035 lt_compile=`echo "$ac_compile" | $SED \
8036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8038 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantc5b65582009-09-23 14:16:28 -07008039 (eval echo "\"\$as_me:8039: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008040 (eval "$lt_compile" 2>out/conftest.err)
8041 ac_status=$?
8042 cat out/conftest.err >&5
Scott James Remnantc5b65582009-09-23 14:16:28 -07008043 echo "$as_me:8043: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8045 then
8046 # The compiler can only warn and ignore the option if not recognized
8047 # So say no if there are warnings
8048 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8051 lt_cv_prog_compiler_c_o=yes
8052 fi
8053 fi
8054 chmod u+w . 2>&5
8055 $RM conftest*
8056 # SGI C++ compiler will create directory out/ii_files/ for
8057 # template instantiation
8058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8059 $RM out/* && rmdir out
8060 cd ..
8061 $RM -r conftest
8062 $RM conftest*
8063
8064fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008066$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8067
8068
8069
8070
8071
8072
Scott James Remnantfde82c92009-09-22 10:04:15 -07008073 { $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 +01008074$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008075if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008076 $as_echo_n "(cached) " >&6
8077else
8078 lt_cv_prog_compiler_c_o=no
8079 $RM -r conftest 2>/dev/null
8080 mkdir conftest
8081 cd conftest
8082 mkdir out
8083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8084
8085 lt_compiler_flag="-o out/conftest2.$ac_objext"
8086 # Insert the option either (1) after the last *FLAGS variable, or
8087 # (2) before a word containing "conftest.", or (3) at the end.
8088 # Note that $ac_compile itself does not contain backslashes and begins
8089 # with a dollar sign (not a hyphen), so the echo should work correctly.
8090 lt_compile=`echo "$ac_compile" | $SED \
8091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8093 -e 's:$: $lt_compiler_flag:'`
Scott James Remnantc5b65582009-09-23 14:16:28 -07008094 (eval echo "\"\$as_me:8094: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008095 (eval "$lt_compile" 2>out/conftest.err)
8096 ac_status=$?
8097 cat out/conftest.err >&5
Scott James Remnantc5b65582009-09-23 14:16:28 -07008098 echo "$as_me:8098: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8100 then
8101 # The compiler can only warn and ignore the option if not recognized
8102 # So say no if there are warnings
8103 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8106 lt_cv_prog_compiler_c_o=yes
8107 fi
8108 fi
8109 chmod u+w . 2>&5
8110 $RM conftest*
8111 # SGI C++ compiler will create directory out/ii_files/ for
8112 # template instantiation
8113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8114 $RM out/* && rmdir out
8115 cd ..
8116 $RM -r conftest
8117 $RM conftest*
8118
8119fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008121$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8122
8123
8124
8125
8126hard_links="nottested"
8127if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8128 # do not overwrite the value of need_locks provided by the user
Scott James Remnantfde82c92009-09-22 10:04:15 -07008129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008130$as_echo_n "checking if we can lock with hard links... " >&6; }
8131 hard_links=yes
8132 $RM conftest*
8133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8134 touch conftest.a
8135 ln conftest.a conftest.b 2>&5 || hard_links=no
8136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Scott James Remnantfde82c92009-09-22 10:04:15 -07008137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008138$as_echo "$hard_links" >&6; }
8139 if test "$hard_links" = no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07008140 { $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 +01008141$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8142 need_locks=warn
8143 fi
8144else
8145 need_locks=no
8146fi
8147
8148
8149
8150
8151
8152
Scott James Remnantfde82c92009-09-22 10:04:15 -07008153 { $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 +01008154$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8155
8156 runpath_var=
8157 allow_undefined_flag=
8158 always_export_symbols=no
8159 archive_cmds=
8160 archive_expsym_cmds=
8161 compiler_needs_object=no
8162 enable_shared_with_static_runtimes=no
8163 export_dynamic_flag_spec=
8164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8165 hardcode_automatic=no
8166 hardcode_direct=no
8167 hardcode_direct_absolute=no
8168 hardcode_libdir_flag_spec=
8169 hardcode_libdir_flag_spec_ld=
8170 hardcode_libdir_separator=
8171 hardcode_minus_L=no
8172 hardcode_shlibpath_var=unsupported
8173 inherit_rpath=no
8174 link_all_deplibs=unknown
8175 module_cmds=
8176 module_expsym_cmds=
8177 old_archive_from_new_cmds=
8178 old_archive_from_expsyms_cmds=
8179 thread_safe_flag_spec=
8180 whole_archive_flag_spec=
8181 # include_expsyms should be a list of space-separated symbols to be *always*
8182 # included in the symbol list
8183 include_expsyms=
8184 # exclude_expsyms can be an extended regexp of symbols to exclude
8185 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8186 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8187 # as well as any symbol that contains `d'.
8188 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8189 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8190 # platforms (ab)use it in PIC code, but their linkers get confused if
8191 # the symbol is explicitly referenced. Since portable code cannot
8192 # rely on this symbol name, it's probably fine to never include it in
8193 # preloaded symbol tables.
8194 # Exclude shared library initialization/finalization symbols.
8195 extract_expsyms_cmds=
8196
8197 case $host_os in
8198 cygwin* | mingw* | pw32* | cegcc*)
8199 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8200 # When not using gcc, we currently assume that we are using
8201 # Microsoft Visual C++.
8202 if test "$GCC" != yes; then
8203 with_gnu_ld=no
8204 fi
8205 ;;
8206 interix*)
8207 # we just hope/assume this is gcc and not c89 (= MSVC++)
8208 with_gnu_ld=yes
8209 ;;
8210 openbsd*)
8211 with_gnu_ld=no
8212 ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008213 linux* | k*bsd*-gnu)
8214 link_all_deplibs=no
8215 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01008216 esac
8217
8218 ld_shlibs=yes
8219 if test "$with_gnu_ld" = yes; then
8220 # If archive_cmds runs LD, not CC, wlarc should be empty
8221 wlarc='${wl}'
8222
8223 # Set some defaults for GNU ld with shared library support. These
8224 # are reset later if shared libraries are not supported. Putting them
8225 # here allows them to be overridden if necessary.
8226 runpath_var=LD_RUN_PATH
8227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8228 export_dynamic_flag_spec='${wl}--export-dynamic'
8229 # ancient GNU ld didn't support --whole-archive et. al.
8230 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8231 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8232 else
8233 whole_archive_flag_spec=
8234 fi
8235 supports_anon_versioning=no
8236 case `$LD -v 2>&1` in
8237 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8238 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8239 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8240 *\ 2.11.*) ;; # other 2.11 versions
8241 *) supports_anon_versioning=yes ;;
8242 esac
8243
8244 # See if GNU ld supports shared libraries.
8245 case $host_os in
8246 aix[3-9]*)
8247 # On AIX/PPC, the GNU linker is very broken
8248 if test "$host_cpu" != ia64; then
8249 ld_shlibs=no
8250 cat <<_LT_EOF 1>&2
8251
8252*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8253*** to be unable to reliably create shared libraries on AIX.
8254*** Therefore, libtool is disabling shared libraries support. If you
8255*** really care for shared libraries, you may want to modify your PATH
8256*** so that a non-GNU linker is found, and then restart.
8257
8258_LT_EOF
8259 fi
8260 ;;
8261
8262 amigaos*)
8263 case $host_cpu in
8264 powerpc)
8265 # see comment about AmigaOS4 .so support
8266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267 archive_expsym_cmds=''
8268 ;;
8269 m68k)
8270 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)'
8271 hardcode_libdir_flag_spec='-L$libdir'
8272 hardcode_minus_L=yes
8273 ;;
8274 esac
8275 ;;
8276
8277 beos*)
8278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8279 allow_undefined_flag=unsupported
8280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8281 # support --undefined. This deserves some investigation. FIXME
8282 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 else
8284 ld_shlibs=no
8285 fi
8286 ;;
8287
8288 cygwin* | mingw* | pw32* | cegcc*)
8289 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8290 # as there is no search path for DLLs.
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 allow_undefined_flag=unsupported
8293 always_export_symbols=no
8294 enable_shared_with_static_runtimes=yes
8295 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8296
8297 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8299 # If the export-symbols file already is a .def file (1st line
8300 # is EXPORTS), use it as is; otherwise, prepend...
8301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8302 cp $export_symbols $output_objdir/$soname.def;
8303 else
8304 echo EXPORTS > $output_objdir/$soname.def;
8305 cat $export_symbols >> $output_objdir/$soname.def;
8306 fi~
8307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8308 else
8309 ld_shlibs=no
8310 fi
8311 ;;
8312
8313 interix[3-9]*)
8314 hardcode_direct=no
8315 hardcode_shlibpath_var=no
8316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317 export_dynamic_flag_spec='${wl}-E'
8318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8319 # Instead, shared libraries are loaded at an image base (0x10000000 by
8320 # default) and relocated if they conflict, which is a slow very memory
8321 # consuming and fragmenting process. To avoid this, we pick a random,
8322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8325 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'
8326 ;;
8327
8328 gnu* | linux* | tpf* | k*bsd*-gnu)
8329 tmp_diet=no
8330 if test "$host_os" = linux-dietlibc; then
8331 case $cc_basename in
8332 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8333 esac
8334 fi
8335 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8336 && test "$tmp_diet" = no
8337 then
8338 tmp_addflag=
8339 tmp_sharedflag='-shared'
8340 case $cc_basename,$host_cpu in
8341 pgcc*) # Portland Group C compiler
8342 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'
8343 tmp_addflag=' $pic_flag'
8344 ;;
8345 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8346 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'
8347 tmp_addflag=' $pic_flag -Mnomain' ;;
8348 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8349 tmp_addflag=' -i_dynamic' ;;
8350 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8351 tmp_addflag=' -i_dynamic -nofor_main' ;;
8352 ifc* | ifort*) # Intel Fortran compiler
8353 tmp_addflag=' -nofor_main' ;;
8354 lf95*) # Lahey Fortran 8.1
8355 whole_archive_flag_spec=
8356 tmp_sharedflag='--shared' ;;
8357 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8358 tmp_sharedflag='-qmkshrobj'
8359 tmp_addflag= ;;
8360 esac
8361 case `$CC -V 2>&1 | sed 5q` in
8362 *Sun\ C*) # Sun C 5.9
8363 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'
8364 compiler_needs_object=yes
8365 tmp_sharedflag='-G' ;;
8366 *Sun\ F*) # Sun Fortran 8.3
8367 tmp_sharedflag='-G' ;;
8368 esac
8369 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370
8371 if test "x$supports_anon_versioning" = xyes; then
8372 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8373 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8374 echo "local: *; };" >> $output_objdir/$libname.ver~
8375 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8376 fi
8377
8378 case $cc_basename in
8379 xlf*)
8380 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8381 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8382 hardcode_libdir_flag_spec=
8383 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8384 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8385 if test "x$supports_anon_versioning" = xyes; then
8386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8388 echo "local: *; };" >> $output_objdir/$libname.ver~
8389 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8390 fi
8391 ;;
8392 esac
8393 else
8394 ld_shlibs=no
8395 fi
8396 ;;
8397
8398 netbsd* | netbsdelf*-gnu)
8399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8400 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8401 wlarc=
8402 else
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 fi
8406 ;;
8407
8408 solaris*)
8409 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8410 ld_shlibs=no
8411 cat <<_LT_EOF 1>&2
8412
8413*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8414*** create shared libraries on Solaris systems. Therefore, libtool
8415*** is disabling shared libraries support. We urge you to upgrade GNU
8416*** binutils to release 2.9.1 or newer. Another option is to modify
8417*** your PATH or compiler configuration so that the native linker is
8418*** used, and then restart.
8419
8420_LT_EOF
8421 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8424 else
8425 ld_shlibs=no
8426 fi
8427 ;;
8428
8429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8430 case `$LD -v 2>&1` in
8431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8432 ld_shlibs=no
8433 cat <<_LT_EOF 1>&2
8434
8435*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8436*** reliably create shared libraries on SCO systems. Therefore, libtool
8437*** is disabling shared libraries support. We urge you to upgrade GNU
8438*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8439*** your PATH or compiler configuration so that the native linker is
8440*** used, and then restart.
8441
8442_LT_EOF
8443 ;;
8444 *)
8445 # For security reasons, it is highly recommended that you always
8446 # use absolute paths for naming shared libraries, and exclude the
8447 # DT_RUNPATH tag from executables and libraries. But doing so
8448 # requires that you compile everything twice, which is a pain.
8449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8453 else
8454 ld_shlibs=no
8455 fi
8456 ;;
8457 esac
8458 ;;
8459
8460 sunos4*)
8461 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462 wlarc=
8463 hardcode_direct=yes
8464 hardcode_shlibpath_var=no
8465 ;;
8466
8467 *)
8468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8471 else
8472 ld_shlibs=no
8473 fi
8474 ;;
8475 esac
8476
8477 if test "$ld_shlibs" = no; then
8478 runpath_var=
8479 hardcode_libdir_flag_spec=
8480 export_dynamic_flag_spec=
8481 whole_archive_flag_spec=
8482 fi
8483 else
8484 # PORTME fill in a description of your system's linker (not GNU ld)
8485 case $host_os in
8486 aix3*)
8487 allow_undefined_flag=unsupported
8488 always_export_symbols=yes
8489 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'
8490 # Note: this linker hardcodes the directories in LIBPATH if there
8491 # are no directories specified by -L.
8492 hardcode_minus_L=yes
8493 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8494 # Neither direct hardcoding nor static linking is supported with a
8495 # broken collect2.
8496 hardcode_direct=unsupported
8497 fi
8498 ;;
8499
8500 aix[4-9]*)
8501 if test "$host_cpu" = ia64; then
8502 # On IA64, the linker does run time linking by default, so we don't
8503 # have to do anything special.
8504 aix_use_runtimelinking=no
8505 exp_sym_flag='-Bexport'
8506 no_entry_flag=""
8507 else
8508 # If we're using GNU nm, then we don't want the "-C" option.
8509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8510 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8511 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'
8512 else
8513 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'
8514 fi
8515 aix_use_runtimelinking=no
8516
8517 # Test if we are trying to use run time linking or normal
8518 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8519 # need to do runtime linking.
8520 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8521 for ld_flag in $LDFLAGS; do
8522 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8523 aix_use_runtimelinking=yes
8524 break
8525 fi
8526 done
8527 ;;
8528 esac
8529
8530 exp_sym_flag='-bexport'
8531 no_entry_flag='-bnoentry'
8532 fi
8533
8534 # When large executables or shared objects are built, AIX ld can
8535 # have problems creating the table of contents. If linking a library
8536 # or program results in "error TOC overflow" add -mminimal-toc to
8537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8539
8540 archive_cmds=''
8541 hardcode_direct=yes
8542 hardcode_direct_absolute=yes
8543 hardcode_libdir_separator=':'
8544 link_all_deplibs=yes
8545 file_list_spec='${wl}-f,'
8546
8547 if test "$GCC" = yes; then
8548 case $host_os in aix4.[012]|aix4.[012].*)
8549 # We only want to do this on AIX 4.2 and lower, the check
8550 # below for broken collect2 doesn't work under 4.3+
8551 collect2name=`${CC} -print-prog-name=collect2`
8552 if test -f "$collect2name" &&
8553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8554 then
8555 # We have reworked collect2
8556 :
8557 else
8558 # We have old collect2
8559 hardcode_direct=unsupported
8560 # It fails to find uninstalled libraries when the uninstalled
8561 # path is not listed in the libpath. Setting hardcode_minus_L
8562 # to unsupported forces relinking
8563 hardcode_minus_L=yes
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 hardcode_libdir_separator=
8566 fi
8567 ;;
8568 esac
8569 shared_flag='-shared'
8570 if test "$aix_use_runtimelinking" = yes; then
8571 shared_flag="$shared_flag "'${wl}-G'
8572 fi
8573 link_all_deplibs=no
8574 else
8575 # not using gcc
8576 if test "$host_cpu" = ia64; then
8577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8578 # chokes on -Wl,-G. The following line is correct:
8579 shared_flag='-G'
8580 else
8581 if test "$aix_use_runtimelinking" = yes; then
8582 shared_flag='${wl}-G'
8583 else
8584 shared_flag='${wl}-bM:SRE'
8585 fi
8586 fi
8587 fi
8588
8589 export_dynamic_flag_spec='${wl}-bexpall'
8590 # It seems that -bexpall does not export symbols beginning with
8591 # underscore (_), so it is better to generate a list of symbols to export.
8592 always_export_symbols=yes
8593 if test "$aix_use_runtimelinking" = yes; then
8594 # Warning - without using the other runtime loading flags (-brtl),
8595 # -berok will link without error, but may produce a broken library.
8596 allow_undefined_flag='-berok'
8597 # Determine the default libpath from the value encoded in an
8598 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008600/* end confdefs.h. */
8601
8602int
8603main ()
8604{
8605
8606 ;
8607 return 0;
8608}
8609_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008610if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008611
8612lt_aix_libpath_sed='
8613 /Import File Strings/,/^$/ {
8614 /^0/ {
8615 s/^0 *\(.*\)$/\1/
8616 p
8617 }
8618 }'
8619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8620# Check for a 64-bit object if we didn't find anything.
8621if test -z "$aix_libpath"; then
8622 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8623fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008624fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008625rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008627if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8628
8629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8630 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"
8631 else
8632 if test "$host_cpu" = ia64; then
8633 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8634 allow_undefined_flag="-z nodefs"
8635 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"
8636 else
8637 # Determine the default libpath from the value encoded in an
8638 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008640/* end confdefs.h. */
8641
8642int
8643main ()
8644{
8645
8646 ;
8647 return 0;
8648}
8649_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008650if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008651
8652lt_aix_libpath_sed='
8653 /Import File Strings/,/^$/ {
8654 /^0/ {
8655 s/^0 *\(.*\)$/\1/
8656 p
8657 }
8658 }'
8659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8660# Check for a 64-bit object if we didn't find anything.
8661if test -z "$aix_libpath"; then
8662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008664fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008665rm -f core conftest.err conftest.$ac_objext \
8666 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8668
8669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8670 # Warning - without using the other run time loading flags,
8671 # -berok will link without error, but may produce a broken library.
8672 no_undefined_flag=' ${wl}-bernotok'
8673 allow_undefined_flag=' ${wl}-berok'
8674 # Exported symbols can be pulled into shared objects from archives
8675 whole_archive_flag_spec='$convenience'
8676 archive_cmds_need_lc=yes
8677 # This is similar to how AIX traditionally builds its shared libraries.
8678 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'
8679 fi
8680 fi
8681 ;;
8682
8683 amigaos*)
8684 case $host_cpu in
8685 powerpc)
8686 # see comment about AmigaOS4 .so support
8687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688 archive_expsym_cmds=''
8689 ;;
8690 m68k)
8691 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)'
8692 hardcode_libdir_flag_spec='-L$libdir'
8693 hardcode_minus_L=yes
8694 ;;
8695 esac
8696 ;;
8697
8698 bsdi[45]*)
8699 export_dynamic_flag_spec=-rdynamic
8700 ;;
8701
8702 cygwin* | mingw* | pw32* | cegcc*)
8703 # When not using gcc, we currently assume that we are using
8704 # Microsoft Visual C++.
8705 # hardcode_libdir_flag_spec is actually meaningless, as there is
8706 # no search path for DLLs.
8707 hardcode_libdir_flag_spec=' '
8708 allow_undefined_flag=unsupported
8709 # Tell ltmain to make .lib files, not .a files.
8710 libext=lib
8711 # Tell ltmain to make .dll files, not .so files.
8712 shrext_cmds=".dll"
8713 # FIXME: Setting linknames here is a bad hack.
8714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8715 # The linker will automatically build a .lib file if we build a DLL.
8716 old_archive_from_new_cmds='true'
8717 # FIXME: Should let the user specify the lib program.
8718 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8719 fix_srcfile_path='`cygpath -w "$srcfile"`'
8720 enable_shared_with_static_runtimes=yes
8721 ;;
8722
8723 darwin* | rhapsody*)
8724
8725
8726 archive_cmds_need_lc=no
8727 hardcode_direct=no
8728 hardcode_automatic=yes
8729 hardcode_shlibpath_var=unsupported
8730 whole_archive_flag_spec=''
8731 link_all_deplibs=yes
8732 allow_undefined_flag="$_lt_dar_allow_undefined"
8733 case $cc_basename in
8734 ifort*) _lt_dar_can_shared=yes ;;
8735 *) _lt_dar_can_shared=$GCC ;;
8736 esac
8737 if test "$_lt_dar_can_shared" = "yes"; then
8738 output_verbose_link_cmd=echo
8739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8741 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}"
8742 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}"
8743
8744 else
8745 ld_shlibs=no
8746 fi
8747
8748 ;;
8749
8750 dgux*)
8751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_libdir_flag_spec='-L$libdir'
8753 hardcode_shlibpath_var=no
8754 ;;
8755
8756 freebsd1*)
8757 ld_shlibs=no
8758 ;;
8759
8760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8761 # support. Future versions do this automatically, but an explicit c++rt0.o
8762 # does not break anything, and helps significantly (at the cost of a little
8763 # extra space).
8764 freebsd2.2*)
8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8766 hardcode_libdir_flag_spec='-R$libdir'
8767 hardcode_direct=yes
8768 hardcode_shlibpath_var=no
8769 ;;
8770
8771 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8772 freebsd2*)
8773 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8774 hardcode_direct=yes
8775 hardcode_minus_L=yes
8776 hardcode_shlibpath_var=no
8777 ;;
8778
8779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8780 freebsd* | dragonfly*)
8781 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8782 hardcode_libdir_flag_spec='-R$libdir'
8783 hardcode_direct=yes
8784 hardcode_shlibpath_var=no
8785 ;;
8786
8787 hpux9*)
8788 if test "$GCC" = yes; then
8789 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'
8790 else
8791 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'
8792 fi
8793 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 hardcode_direct=yes
8796
8797 # hardcode_minus_L: Not really in the search PATH,
8798 # but as the default location of the library.
8799 hardcode_minus_L=yes
8800 export_dynamic_flag_spec='${wl}-E'
8801 ;;
8802
8803 hpux10*)
8804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8805 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8806 else
8807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8808 fi
8809 if test "$with_gnu_ld" = no; then
8810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8811 hardcode_libdir_flag_spec_ld='+b $libdir'
8812 hardcode_libdir_separator=:
8813 hardcode_direct=yes
8814 hardcode_direct_absolute=yes
8815 export_dynamic_flag_spec='${wl}-E'
8816 # hardcode_minus_L: Not really in the search PATH,
8817 # but as the default location of the library.
8818 hardcode_minus_L=yes
8819 fi
8820 ;;
8821
8822 hpux11*)
8823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8824 case $host_cpu in
8825 hppa*64*)
8826 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 ;;
8828 ia64*)
8829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8830 ;;
8831 *)
8832 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833 ;;
8834 esac
8835 else
8836 case $host_cpu in
8837 hppa*64*)
8838 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 ;;
8840 ia64*)
8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8842 ;;
8843 *)
8844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8845 ;;
8846 esac
8847 fi
8848 if test "$with_gnu_ld" = no; then
8849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8850 hardcode_libdir_separator=:
8851
8852 case $host_cpu in
8853 hppa*64*|ia64*)
8854 hardcode_direct=no
8855 hardcode_shlibpath_var=no
8856 ;;
8857 *)
8858 hardcode_direct=yes
8859 hardcode_direct_absolute=yes
8860 export_dynamic_flag_spec='${wl}-E'
8861
8862 # hardcode_minus_L: Not really in the search PATH,
8863 # but as the default location of the library.
8864 hardcode_minus_L=yes
8865 ;;
8866 esac
8867 fi
8868 ;;
8869
8870 irix5* | irix6* | nonstopux*)
8871 if test "$GCC" = yes; then
8872 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'
8873 # Try to use the -exported_symbol ld option, if it does not
8874 # work, assume that -exports_file does not work either and
8875 # implicitly export all symbols.
8876 save_LDFLAGS="$LDFLAGS"
8877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Scott James Remnantfde82c92009-09-22 10:04:15 -07008878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h. */
Scott James Remnant65f683d2009-07-14 13:05:17 +01008880int foo(void) {}
8881_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008882if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008883 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'
8884
Scott James Remnant65f683d2009-07-14 13:05:17 +01008885fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008886rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008888 LDFLAGS="$save_LDFLAGS"
8889 else
8890 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'
8891 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'
8892 fi
8893 archive_cmds_need_lc='no'
8894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8895 hardcode_libdir_separator=:
8896 inherit_rpath=yes
8897 link_all_deplibs=yes
8898 ;;
8899
8900 netbsd* | netbsdelf*-gnu)
8901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8903 else
8904 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8905 fi
8906 hardcode_libdir_flag_spec='-R$libdir'
8907 hardcode_direct=yes
8908 hardcode_shlibpath_var=no
8909 ;;
8910
8911 newsos6)
8912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8913 hardcode_direct=yes
8914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator=:
8916 hardcode_shlibpath_var=no
8917 ;;
8918
8919 *nto* | *qnx*)
8920 ;;
8921
8922 openbsd*)
8923 if test -f /usr/libexec/ld.so; then
8924 hardcode_direct=yes
8925 hardcode_shlibpath_var=no
8926 hardcode_direct_absolute=yes
8927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8929 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8931 export_dynamic_flag_spec='${wl}-E'
8932 else
8933 case $host_os in
8934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8936 hardcode_libdir_flag_spec='-R$libdir'
8937 ;;
8938 *)
8939 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8940 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8941 ;;
8942 esac
8943 fi
8944 else
8945 ld_shlibs=no
8946 fi
8947 ;;
8948
8949 os2*)
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_minus_L=yes
8952 allow_undefined_flag=unsupported
8953 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'
8954 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8955 ;;
8956
8957 osf3*)
8958 if test "$GCC" = yes; then
8959 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8960 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'
8961 else
8962 allow_undefined_flag=' -expect_unresolved \*'
8963 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'
8964 fi
8965 archive_cmds_need_lc='no'
8966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967 hardcode_libdir_separator=:
8968 ;;
8969
8970 osf4* | osf5*) # as osf3* with the addition of -msym flag
8971 if test "$GCC" = yes; then
8972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973 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'
8974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975 else
8976 allow_undefined_flag=' -expect_unresolved \*'
8977 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'
8978 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~
8979 $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'
8980
8981 # Both c and cxx compiler support -rpath directly
8982 hardcode_libdir_flag_spec='-rpath $libdir'
8983 fi
8984 archive_cmds_need_lc='no'
8985 hardcode_libdir_separator=:
8986 ;;
8987
8988 solaris*)
8989 no_undefined_flag=' -z defs'
8990 if test "$GCC" = yes; then
8991 wlarc='${wl}'
8992 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8995 else
8996 case `$CC -V 2>&1` in
8997 *"Compilers 5.0"*)
8998 wlarc=''
8999 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9002 ;;
9003 *)
9004 wlarc='${wl}'
9005 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9008 ;;
9009 esac
9010 fi
9011 hardcode_libdir_flag_spec='-R$libdir'
9012 hardcode_shlibpath_var=no
9013 case $host_os in
9014 solaris2.[0-5] | solaris2.[0-5].*) ;;
9015 *)
9016 # The compiler driver will combine and reorder linker options,
9017 # but understands `-z linker_flag'. GCC discards it without `$wl',
9018 # but is careful enough not to reorder.
9019 # Supported since Solaris 2.6 (maybe 2.5.1?)
9020 if test "$GCC" = yes; then
9021 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9022 else
9023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9024 fi
9025 ;;
9026 esac
9027 link_all_deplibs=yes
9028 ;;
9029
9030 sunos4*)
9031 if test "x$host_vendor" = xsequent; then
9032 # Use $CC to link under sequent, because it throws in some extra .o
9033 # files that make .init and .fini sections work.
9034 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9035 else
9036 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9037 fi
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_direct=yes
9040 hardcode_minus_L=yes
9041 hardcode_shlibpath_var=no
9042 ;;
9043
9044 sysv4)
9045 case $host_vendor in
9046 sni)
9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048 hardcode_direct=yes # is this really true???
9049 ;;
9050 siemens)
9051 ## LD is ld it makes a PLAMLIB
9052 ## CC just makes a GrossModule.
9053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9054 reload_cmds='$CC -r -o $output$reload_objs'
9055 hardcode_direct=no
9056 ;;
9057 motorola)
9058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9060 ;;
9061 esac
9062 runpath_var='LD_RUN_PATH'
9063 hardcode_shlibpath_var=no
9064 ;;
9065
9066 sysv4.3*)
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_shlibpath_var=no
9069 export_dynamic_flag_spec='-Bexport'
9070 ;;
9071
9072 sysv4*MP*)
9073 if test -d /usr/nec; then
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_shlibpath_var=no
9076 runpath_var=LD_RUN_PATH
9077 hardcode_runpath_var=yes
9078 ld_shlibs=yes
9079 fi
9080 ;;
9081
9082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9083 no_undefined_flag='${wl}-z,text'
9084 archive_cmds_need_lc=no
9085 hardcode_shlibpath_var=no
9086 runpath_var='LD_RUN_PATH'
9087
9088 if test "$GCC" = yes; then
9089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 else
9092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 fi
9095 ;;
9096
9097 sysv5* | sco3.2v5* | sco5v6*)
9098 # Note: We can NOT use -z defs as we might desire, because we do not
9099 # link with -lc, and that would cause any symbols used from libc to
9100 # always be unresolved, which means just about no library would
9101 # ever link correctly. If we're not using GNU ld we use -z text
9102 # though, which does catch some bad symbols but isn't as heavy-handed
9103 # as -z defs.
9104 no_undefined_flag='${wl}-z,text'
9105 allow_undefined_flag='${wl}-z,nodefs'
9106 archive_cmds_need_lc=no
9107 hardcode_shlibpath_var=no
9108 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9109 hardcode_libdir_separator=':'
9110 link_all_deplibs=yes
9111 export_dynamic_flag_spec='${wl}-Bexport'
9112 runpath_var='LD_RUN_PATH'
9113
9114 if test "$GCC" = yes; then
9115 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 else
9118 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 fi
9121 ;;
9122
9123 uts4*)
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_shlibpath_var=no
9127 ;;
9128
9129 *)
9130 ld_shlibs=no
9131 ;;
9132 esac
9133
9134 if test x$host_vendor = xsni; then
9135 case $host in
9136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9137 export_dynamic_flag_spec='${wl}-Blargedynsym'
9138 ;;
9139 esac
9140 fi
9141 fi
9142
Scott James Remnantfde82c92009-09-22 10:04:15 -07009143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009144$as_echo "$ld_shlibs" >&6; }
9145test "$ld_shlibs" = no && can_build_shared=no
9146
9147with_gnu_ld=$with_gnu_ld
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163#
9164# Do we need to explicitly link libc?
9165#
9166case "x$archive_cmds_need_lc" in
9167x|xyes)
9168 # Assume -lc should be added
9169 archive_cmds_need_lc=yes
9170
9171 if test "$enable_shared" = yes && test "$GCC" = yes; then
9172 case $archive_cmds in
9173 *'~'*)
9174 # FIXME: we may have to deal with multi-command sequences.
9175 ;;
9176 '$CC '*)
9177 # Test whether the compiler implicitly links with -lc since on some
9178 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9179 # to ld, don't add -lc before -lgcc.
Scott James Remnantfde82c92009-09-22 10:04:15 -07009180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009181$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9182 $RM conftest*
9183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184
Scott James Remnantfde82c92009-09-22 10:04:15 -07009185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009186 (eval $ac_compile) 2>&5
9187 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9189 test $ac_status = 0; } 2>conftest.err; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009190 soname=conftest
9191 lib=conftest
9192 libobjs=conftest.$ac_objext
9193 deplibs=
9194 wl=$lt_prog_compiler_wl
9195 pic_flag=$lt_prog_compiler_pic
9196 compiler_flags=-v
9197 linker_flags=-v
9198 verstring=
9199 output_objdir=.
9200 libname=conftest
9201 lt_save_allow_undefined_flag=$allow_undefined_flag
9202 allow_undefined_flag=
Scott James Remnantfde82c92009-09-22 10:04:15 -07009203 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 +01009204 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9205 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9207 test $ac_status = 0; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01009208 then
9209 archive_cmds_need_lc=no
9210 else
9211 archive_cmds_need_lc=yes
9212 fi
9213 allow_undefined_flag=$lt_save_allow_undefined_flag
9214 else
9215 cat conftest.err 1>&5
9216 fi
9217 $RM conftest*
Scott James Remnantfde82c92009-09-22 10:04:15 -07009218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009219$as_echo "$archive_cmds_need_lc" >&6; }
9220 ;;
9221 esac
9222 fi
9223 ;;
9224esac
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
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
Scott James Remnantfde82c92009-09-22 10:04:15 -07009382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009383$as_echo_n "checking dynamic linker characteristics... " >&6; }
9384
9385if test "$GCC" = yes; then
9386 case $host_os in
9387 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9388 *) lt_awk_arg="/^libraries:/" ;;
9389 esac
9390 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9391 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9392 # if the path contains ";" then we assume it to be the separator
9393 # otherwise default to the standard path separator (i.e. ":") - it is
9394 # assumed that no part of a normal pathname contains ";" but that should
9395 # okay in the real world where ";" in dirpaths is itself problematic.
9396 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9397 else
9398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9399 fi
9400 # Ok, now we have the path, separated by spaces, we can step through it
9401 # and add multilib dir if necessary.
9402 lt_tmp_lt_search_path_spec=
9403 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9404 for lt_sys_path in $lt_search_path_spec; do
9405 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9407 else
9408 test -d "$lt_sys_path" && \
9409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9410 fi
9411 done
9412 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9413BEGIN {RS=" "; FS="/|\n";} {
9414 lt_foo="";
9415 lt_count=0;
9416 for (lt_i = NF; lt_i > 0; lt_i--) {
9417 if ($lt_i != "" && $lt_i != ".") {
9418 if ($lt_i == "..") {
9419 lt_count++;
9420 } else {
9421 if (lt_count == 0) {
9422 lt_foo="/" $lt_i lt_foo;
9423 } else {
9424 lt_count--;
9425 }
9426 }
9427 }
9428 }
9429 if (lt_foo != "") { lt_freq[lt_foo]++; }
9430 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9431}'`
9432 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9433else
9434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9435fi
9436library_names_spec=
9437libname_spec='lib$name'
9438soname_spec=
9439shrext_cmds=".so"
9440postinstall_cmds=
9441postuninstall_cmds=
9442finish_cmds=
9443finish_eval=
9444shlibpath_var=
9445shlibpath_overrides_runpath=unknown
9446version_type=none
9447dynamic_linker="$host_os ld.so"
9448sys_lib_dlsearch_path_spec="/lib /usr/lib"
9449need_lib_prefix=unknown
9450hardcode_into_libs=no
9451
9452# when you set need_version to no, make sure it does not cause -set_version
9453# flags to be left without arguments
9454need_version=unknown
9455
9456case $host_os in
9457aix3*)
9458 version_type=linux
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9460 shlibpath_var=LIBPATH
9461
9462 # AIX 3 has no versioning support, so we append a major version to the name.
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 ;;
9465
9466aix[4-9]*)
9467 version_type=linux
9468 need_lib_prefix=no
9469 need_version=no
9470 hardcode_into_libs=yes
9471 if test "$host_cpu" = ia64; then
9472 # AIX 5 supports IA64
9473 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 else
9476 # With GCC up to 2.95.x, collect2 would create an import file
9477 # for dependence libraries. The import file would start with
9478 # the line `#! .'. This would cause the generated library to
9479 # depend on `.', always an invalid library. This was fixed in
9480 # development snapshots of GCC prior to 3.0.
9481 case $host_os in
9482 aix4 | aix4.[01] | aix4.[01].*)
9483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9484 echo ' yes '
9485 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9486 :
9487 else
9488 can_build_shared=no
9489 fi
9490 ;;
9491 esac
9492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9493 # soname into executable. Probably we can add versioning support to
9494 # collect2, so additional links can be useful in future.
9495 if test "$aix_use_runtimelinking" = yes; then
9496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9497 # instead of lib<name>.a to let people know that these are not
9498 # typical AIX shared libraries.
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 else
9501 # We preserve .a as extension for shared libraries through AIX4.2
9502 # and later when we are not doing run time linking.
9503 library_names_spec='${libname}${release}.a $libname.a'
9504 soname_spec='${libname}${release}${shared_ext}$major'
9505 fi
9506 shlibpath_var=LIBPATH
9507 fi
9508 ;;
9509
9510amigaos*)
9511 case $host_cpu in
9512 powerpc)
9513 # Since July 2007 AmigaOS4 officially supports .so libraries.
9514 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516 ;;
9517 m68k)
9518 library_names_spec='$libname.ixlibrary $libname.a'
9519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9520 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'
9521 ;;
9522 esac
9523 ;;
9524
9525beos*)
9526 library_names_spec='${libname}${shared_ext}'
9527 dynamic_linker="$host_os ld.so"
9528 shlibpath_var=LIBRARY_PATH
9529 ;;
9530
9531bsdi[45]*)
9532 version_type=linux
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9540 # the default ld.so.conf also contains /usr/contrib/lib and
9541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9542 # libtool to hard-code these into programs
9543 ;;
9544
9545cygwin* | mingw* | pw32* | cegcc*)
9546 version_type=windows
9547 shrext_cmds=".dll"
9548 need_version=no
9549 need_lib_prefix=no
9550
9551 case $GCC,$host_os in
9552 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9553 library_names_spec='$libname.dll.a'
9554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9555 postinstall_cmds='base_file=`basename \${file}`~
9556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9557 dldir=$destdir/`dirname \$dlpath`~
9558 test -d \$dldir || mkdir -p \$dldir~
9559 $install_prog $dir/$dlname \$dldir/$dlname~
9560 chmod a+x \$dldir/$dlname~
9561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9562 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9563 fi'
9564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9565 dlpath=$dir/\$dldll~
9566 $RM \$dlpath'
9567 shlibpath_overrides_runpath=yes
9568
9569 case $host_os in
9570 cygwin*)
9571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9573 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9574 ;;
9575 mingw* | cegcc*)
9576 # MinGW DLLs use traditional 'lib' prefix
9577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9578 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9579 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9580 # It is most probably a Windows format PATH printed by
9581 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9582 # path with ; separators, and with drive letters. We can handle the
9583 # drive letters (cygwin fileutils understands them), so leave them,
9584 # especially as we might pass files found there to a mingw objdump,
9585 # which wouldn't understand a cygwinified path. Ahh.
9586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9587 else
9588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9589 fi
9590 ;;
9591 pw32*)
9592 # pw32 DLLs use 'pw' prefix rather than 'lib'
9593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9594 ;;
9595 esac
9596 ;;
9597
9598 *)
9599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9600 ;;
9601 esac
9602 dynamic_linker='Win32 ld.exe'
9603 # FIXME: first we should search . and the directory the executable is in
9604 shlibpath_var=PATH
9605 ;;
9606
9607darwin* | rhapsody*)
9608 dynamic_linker="$host_os dyld"
9609 version_type=darwin
9610 need_lib_prefix=no
9611 need_version=no
9612 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9613 soname_spec='${libname}${release}${major}$shared_ext'
9614 shlibpath_overrides_runpath=yes
9615 shlibpath_var=DYLD_LIBRARY_PATH
9616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9617
9618 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9619 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9620 ;;
9621
9622dgux*)
9623 version_type=linux
9624 need_lib_prefix=no
9625 need_version=no
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 ;;
9630
9631freebsd1*)
9632 dynamic_linker=no
9633 ;;
9634
9635freebsd* | dragonfly*)
9636 # DragonFly does not have aout. When/if they implement a new
9637 # versioning mechanism, adjust this.
9638 if test -x /usr/bin/objformat; then
9639 objformat=`/usr/bin/objformat`
9640 else
9641 case $host_os in
9642 freebsd[123]*) objformat=aout ;;
9643 *) objformat=elf ;;
9644 esac
9645 fi
9646 version_type=freebsd-$objformat
9647 case $version_type in
9648 freebsd-elf*)
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9650 need_version=no
9651 need_lib_prefix=no
9652 ;;
9653 freebsd-*)
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9655 need_version=yes
9656 ;;
9657 esac
9658 shlibpath_var=LD_LIBRARY_PATH
9659 case $host_os in
9660 freebsd2*)
9661 shlibpath_overrides_runpath=yes
9662 ;;
9663 freebsd3.[01]* | freebsdelf3.[01]*)
9664 shlibpath_overrides_runpath=yes
9665 hardcode_into_libs=yes
9666 ;;
9667 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9668 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9669 shlibpath_overrides_runpath=no
9670 hardcode_into_libs=yes
9671 ;;
9672 *) # from 4.6 on, and DragonFly
9673 shlibpath_overrides_runpath=yes
9674 hardcode_into_libs=yes
9675 ;;
9676 esac
9677 ;;
9678
9679gnu*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 hardcode_into_libs=yes
9687 ;;
9688
9689hpux9* | hpux10* | hpux11*)
9690 # Give a soname corresponding to the major version so that dld.sl refuses to
9691 # link against other versions.
9692 version_type=sunos
9693 need_lib_prefix=no
9694 need_version=no
9695 case $host_cpu in
9696 ia64*)
9697 shrext_cmds='.so'
9698 hardcode_into_libs=yes
9699 dynamic_linker="$host_os dld.so"
9700 shlibpath_var=LD_LIBRARY_PATH
9701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 if test "X$HPUX_IA64_MODE" = X32; then
9705 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9706 else
9707 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9708 fi
9709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9710 ;;
9711 hppa*64*)
9712 shrext_cmds='.sl'
9713 hardcode_into_libs=yes
9714 dynamic_linker="$host_os dld.sl"
9715 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718 soname_spec='${libname}${release}${shared_ext}$major'
9719 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9720 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9721 ;;
9722 *)
9723 shrext_cmds='.sl'
9724 dynamic_linker="$host_os dld.sl"
9725 shlibpath_var=SHLIB_PATH
9726 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 ;;
9730 esac
9731 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9732 postinstall_cmds='chmod 555 $lib'
9733 ;;
9734
9735interix[3-9]*)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 shlibpath_overrides_runpath=no
9744 hardcode_into_libs=yes
9745 ;;
9746
9747irix5* | irix6* | nonstopux*)
9748 case $host_os in
9749 nonstopux*) version_type=nonstopux ;;
9750 *)
9751 if test "$lt_cv_prog_gnu_ld" = yes; then
9752 version_type=linux
9753 else
9754 version_type=irix
9755 fi ;;
9756 esac
9757 need_lib_prefix=no
9758 need_version=no
9759 soname_spec='${libname}${release}${shared_ext}$major'
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9761 case $host_os in
9762 irix5* | nonstopux*)
9763 libsuff= shlibsuff=
9764 ;;
9765 *)
9766 case $LD in # libtool.m4 will add one of these switches to LD
9767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9768 libsuff= shlibsuff= libmagic=32-bit;;
9769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9770 libsuff=32 shlibsuff=N32 libmagic=N32;;
9771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9773 *) libsuff= shlibsuff= libmagic=never-match;;
9774 esac
9775 ;;
9776 esac
9777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9778 shlibpath_overrides_runpath=no
9779 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9780 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9781 hardcode_into_libs=yes
9782 ;;
9783
9784# No shared lib support for Linux oldld, aout, or coff.
9785linux*oldld* | linux*aout* | linux*coff*)
9786 dynamic_linker=no
9787 ;;
9788
9789# This must be Linux ELF.
9790linux* | k*bsd*-gnu)
9791 version_type=linux
9792 need_lib_prefix=no
9793 need_version=no
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=no
9799 # Some binutils ld are patched to set DT_RUNPATH
9800 save_LDFLAGS=$LDFLAGS
9801 save_libdir=$libdir
9802 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9803 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Scott James Remnantfde82c92009-09-22 10:04:15 -07009804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009805/* end confdefs.h. */
9806
9807int
9808main ()
9809{
9810
9811 ;
9812 return 0;
9813}
9814_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07009815if ac_fn_c_try_link "$LINENO"; then :
9816 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01009817 shlibpath_overrides_runpath=yes
9818fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01009819fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07009820rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009822 LDFLAGS=$save_LDFLAGS
9823 libdir=$save_libdir
9824
9825 # This implies no fast_install, which is unacceptable.
9826 # Some rework will be needed to allow for fast_install
9827 # before this can be enabled.
9828 hardcode_into_libs=yes
9829
9830 # Append ld.so.conf contents to the search path
9831 if test -f /etc/ld.so.conf; then
9832 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' ' '`
9833 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9834 fi
9835
9836 # We used to test for /lib/ld.so.1 and disable shared libraries on
9837 # powerpc, because MkLinux only supported shared libraries with the
9838 # GNU dynamic linker. Since this was broken with cross compilers,
9839 # most powerpc-linux boxes support dynamic linking these days and
9840 # people can always --disable-shared, the test was removed, and we
9841 # assume the GNU/Linux dynamic linker is in use.
9842 dynamic_linker='GNU/Linux ld.so'
9843 ;;
9844
9845netbsdelf*-gnu)
9846 version_type=linux
9847 need_lib_prefix=no
9848 need_version=no
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 shlibpath_overrides_runpath=no
9853 hardcode_into_libs=yes
9854 dynamic_linker='NetBSD ld.elf_so'
9855 ;;
9856
9857netbsd*)
9858 version_type=sunos
9859 need_lib_prefix=no
9860 need_version=no
9861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9864 dynamic_linker='NetBSD (a.out) ld.so'
9865 else
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 dynamic_linker='NetBSD ld.elf_so'
9869 fi
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=yes
9872 hardcode_into_libs=yes
9873 ;;
9874
9875newsos6)
9876 version_type=linux
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 shlibpath_var=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath=yes
9880 ;;
9881
9882*nto* | *qnx*)
9883 version_type=qnx
9884 need_lib_prefix=no
9885 need_version=no
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 soname_spec='${libname}${release}${shared_ext}$major'
9888 shlibpath_var=LD_LIBRARY_PATH
9889 shlibpath_overrides_runpath=no
9890 hardcode_into_libs=yes
9891 dynamic_linker='ldqnx.so'
9892 ;;
9893
9894openbsd*)
9895 version_type=sunos
9896 sys_lib_dlsearch_path_spec="/usr/lib"
9897 need_lib_prefix=no
9898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9899 case $host_os in
9900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9901 *) need_version=no ;;
9902 esac
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9907 case $host_os in
9908 openbsd2.[89] | openbsd2.[89].*)
9909 shlibpath_overrides_runpath=no
9910 ;;
9911 *)
9912 shlibpath_overrides_runpath=yes
9913 ;;
9914 esac
9915 else
9916 shlibpath_overrides_runpath=yes
9917 fi
9918 ;;
9919
9920os2*)
9921 libname_spec='$name'
9922 shrext_cmds=".dll"
9923 need_lib_prefix=no
9924 library_names_spec='$libname${shared_ext} $libname.a'
9925 dynamic_linker='OS/2 ld.exe'
9926 shlibpath_var=LIBPATH
9927 ;;
9928
9929osf3* | osf4* | osf5*)
9930 version_type=osf
9931 need_lib_prefix=no
9932 need_version=no
9933 soname_spec='${libname}${release}${shared_ext}$major'
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9938 ;;
9939
9940rdos*)
9941 dynamic_linker=no
9942 ;;
9943
9944solaris*)
9945 version_type=linux
9946 need_lib_prefix=no
9947 need_version=no
9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec='${libname}${release}${shared_ext}$major'
9950 shlibpath_var=LD_LIBRARY_PATH
9951 shlibpath_overrides_runpath=yes
9952 hardcode_into_libs=yes
9953 # ldd complains unless libraries are executable
9954 postinstall_cmds='chmod +x $lib'
9955 ;;
9956
9957sunos4*)
9958 version_type=sunos
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 shlibpath_overrides_runpath=yes
9963 if test "$with_gnu_ld" = yes; then
9964 need_lib_prefix=no
9965 fi
9966 need_version=yes
9967 ;;
9968
9969sysv4 | sysv4.3*)
9970 version_type=linux
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 case $host_vendor in
9975 sni)
9976 shlibpath_overrides_runpath=no
9977 need_lib_prefix=no
9978 runpath_var=LD_RUN_PATH
9979 ;;
9980 siemens)
9981 need_lib_prefix=no
9982 ;;
9983 motorola)
9984 need_lib_prefix=no
9985 need_version=no
9986 shlibpath_overrides_runpath=no
9987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9988 ;;
9989 esac
9990 ;;
9991
9992sysv4*MP*)
9993 if test -d /usr/nec ;then
9994 version_type=linux
9995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9996 soname_spec='$libname${shared_ext}.$major'
9997 shlibpath_var=LD_LIBRARY_PATH
9998 fi
9999 ;;
10000
10001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10002 version_type=freebsd-elf
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=yes
10009 hardcode_into_libs=yes
10010 if test "$with_gnu_ld" = yes; then
10011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10012 else
10013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10014 case $host_os in
10015 sco3.2v5*)
10016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10017 ;;
10018 esac
10019 fi
10020 sys_lib_dlsearch_path_spec='/usr/lib'
10021 ;;
10022
10023tpf*)
10024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10025 version_type=linux
10026 need_lib_prefix=no
10027 need_version=no
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=no
10031 hardcode_into_libs=yes
10032 ;;
10033
10034uts4*)
10035 version_type=linux
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 ;;
10040
10041*)
10042 dynamic_linker=no
10043 ;;
10044esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010046$as_echo "$dynamic_linker" >&6; }
10047test "$dynamic_linker" = no && can_build_shared=no
10048
10049variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10050if test "$GCC" = yes; then
10051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10052fi
10053
10054if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10055 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10056fi
10057if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10058 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10059fi
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
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
Scott James Remnantfde82c92009-09-22 10:04:15 -070010147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010148$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10149hardcode_action=
10150if test -n "$hardcode_libdir_flag_spec" ||
10151 test -n "$runpath_var" ||
10152 test "X$hardcode_automatic" = "Xyes" ; then
10153
10154 # We can hardcode non-existent directories.
10155 if test "$hardcode_direct" != no &&
10156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10157 # have to relink, otherwise we might link with an installed library
10158 # when we should be linking with a yet-to-be-installed one
10159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10160 test "$hardcode_minus_L" != no; then
10161 # Linking always hardcodes the temporary library directory.
10162 hardcode_action=relink
10163 else
10164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10165 hardcode_action=immediate
10166 fi
10167else
10168 # We cannot hardcode anything, or else we can only hardcode existing
10169 # directories.
10170 hardcode_action=unsupported
10171fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010173$as_echo "$hardcode_action" >&6; }
10174
10175if test "$hardcode_action" = relink ||
10176 test "$inherit_rpath" = yes; then
10177 # Fast installation is not supported
10178 enable_fast_install=no
10179elif test "$shlibpath_overrides_runpath" = yes ||
10180 test "$enable_shared" = no; then
10181 # Fast installation is not necessary
10182 enable_fast_install=needless
10183fi
10184
10185
10186
10187
10188
10189
10190 if test "x$enable_dlopen" != xyes; then
10191 enable_dlopen=unknown
10192 enable_dlopen_self=unknown
10193 enable_dlopen_self_static=unknown
10194else
10195 lt_cv_dlopen=no
10196 lt_cv_dlopen_libs=
10197
10198 case $host_os in
10199 beos*)
10200 lt_cv_dlopen="load_add_on"
10201 lt_cv_dlopen_libs=
10202 lt_cv_dlopen_self=yes
10203 ;;
10204
10205 mingw* | pw32* | cegcc*)
10206 lt_cv_dlopen="LoadLibrary"
10207 lt_cv_dlopen_libs=
10208 ;;
10209
10210 cygwin*)
10211 lt_cv_dlopen="dlopen"
10212 lt_cv_dlopen_libs=
10213 ;;
10214
10215 darwin*)
10216 # if libdl is installed we need to link against it
Scott James Remnantfde82c92009-09-22 10:04:15 -070010217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010218$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010219if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010220 $as_echo_n "(cached) " >&6
10221else
10222 ac_check_lib_save_LIBS=$LIBS
10223LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010225/* end confdefs.h. */
10226
10227/* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
10230#ifdef __cplusplus
10231extern "C"
10232#endif
10233char dlopen ();
10234int
10235main ()
10236{
10237return dlopen ();
10238 ;
10239 return 0;
10240}
10241_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010242if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010243 ac_cv_lib_dl_dlopen=yes
10244else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010245 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010246fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010247rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010249LIBS=$ac_check_lib_save_LIBS
10250fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010252$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010253if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10255else
10256
10257 lt_cv_dlopen="dyld"
10258 lt_cv_dlopen_libs=
10259 lt_cv_dlopen_self=yes
10260
10261fi
10262
10263 ;;
10264
10265 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010266 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10267if test "x$ac_cv_func_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010268 lt_cv_dlopen="shl_load"
10269else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010271$as_echo_n "checking for shl_load in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010272if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010273 $as_echo_n "(cached) " >&6
10274else
10275 ac_check_lib_save_LIBS=$LIBS
10276LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010278/* end confdefs.h. */
10279
10280/* Override any GCC internal prototype to avoid an error.
10281 Use char because int might match the return type of a GCC
10282 builtin and then its argument prototype would still apply. */
10283#ifdef __cplusplus
10284extern "C"
10285#endif
10286char shl_load ();
10287int
10288main ()
10289{
10290return shl_load ();
10291 ;
10292 return 0;
10293}
10294_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010295if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010296 ac_cv_lib_dld_shl_load=yes
10297else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010298 ac_cv_lib_dld_shl_load=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010299fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010300rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010302LIBS=$ac_check_lib_save_LIBS
10303fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010305$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010306if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10308else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10310if test "x$ac_cv_func_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010311 lt_cv_dlopen="dlopen"
10312else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010314$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010315if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010316 $as_echo_n "(cached) " >&6
10317else
10318 ac_check_lib_save_LIBS=$LIBS
10319LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010321/* end confdefs.h. */
10322
10323/* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10326#ifdef __cplusplus
10327extern "C"
10328#endif
10329char dlopen ();
10330int
10331main ()
10332{
10333return dlopen ();
10334 ;
10335 return 0;
10336}
10337_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010338if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010339 ac_cv_lib_dl_dlopen=yes
10340else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010341 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010342fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010343rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010345LIBS=$ac_check_lib_save_LIBS
10346fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010348$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010349if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010350 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10351else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010353$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010354if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010355 $as_echo_n "(cached) " >&6
10356else
10357 ac_check_lib_save_LIBS=$LIBS
10358LIBS="-lsvld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010360/* end confdefs.h. */
10361
10362/* Override any GCC internal prototype to avoid an error.
10363 Use char because int might match the return type of a GCC
10364 builtin and then its argument prototype would still apply. */
10365#ifdef __cplusplus
10366extern "C"
10367#endif
10368char dlopen ();
10369int
10370main ()
10371{
10372return dlopen ();
10373 ;
10374 return 0;
10375}
10376_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010377if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010378 ac_cv_lib_svld_dlopen=yes
10379else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010380 ac_cv_lib_svld_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010381fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010382rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010384LIBS=$ac_check_lib_save_LIBS
10385fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010387$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010388if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10390else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010392$as_echo_n "checking for dld_link in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010393if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010394 $as_echo_n "(cached) " >&6
10395else
10396 ac_check_lib_save_LIBS=$LIBS
10397LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010399/* end confdefs.h. */
10400
10401/* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404#ifdef __cplusplus
10405extern "C"
10406#endif
10407char dld_link ();
10408int
10409main ()
10410{
10411return dld_link ();
10412 ;
10413 return 0;
10414}
10415_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010416if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010417 ac_cv_lib_dld_dld_link=yes
10418else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010419 ac_cv_lib_dld_dld_link=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010420fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010421rm -f core conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010423LIBS=$ac_check_lib_save_LIBS
10424fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010426$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010427if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010428 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10429fi
10430
10431
10432fi
10433
10434
10435fi
10436
10437
10438fi
10439
10440
10441fi
10442
10443
10444fi
10445
10446 ;;
10447 esac
10448
10449 if test "x$lt_cv_dlopen" != xno; then
10450 enable_dlopen=yes
10451 else
10452 enable_dlopen=no
10453 fi
10454
10455 case $lt_cv_dlopen in
10456 dlopen)
10457 save_CPPFLAGS="$CPPFLAGS"
10458 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10459
10460 save_LDFLAGS="$LDFLAGS"
10461 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10462
10463 save_LIBS="$LIBS"
10464 LIBS="$lt_cv_dlopen_libs $LIBS"
10465
Scott James Remnantfde82c92009-09-22 10:04:15 -070010466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010467$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010468if test "${lt_cv_dlopen_self+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010469 $as_echo_n "(cached) " >&6
10470else
10471 if test "$cross_compiling" = yes; then :
10472 lt_cv_dlopen_self=cross
10473else
10474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10475 lt_status=$lt_dlunknown
10476 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantc5b65582009-09-23 14:16:28 -070010477#line 10477 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010478#include "confdefs.h"
10479
10480#if HAVE_DLFCN_H
10481#include <dlfcn.h>
10482#endif
10483
10484#include <stdio.h>
10485
10486#ifdef RTLD_GLOBAL
10487# define LT_DLGLOBAL RTLD_GLOBAL
10488#else
10489# ifdef DL_GLOBAL
10490# define LT_DLGLOBAL DL_GLOBAL
10491# else
10492# define LT_DLGLOBAL 0
10493# endif
10494#endif
10495
10496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10497 find out it does not work in some platform. */
10498#ifndef LT_DLLAZY_OR_NOW
10499# ifdef RTLD_LAZY
10500# define LT_DLLAZY_OR_NOW RTLD_LAZY
10501# else
10502# ifdef DL_LAZY
10503# define LT_DLLAZY_OR_NOW DL_LAZY
10504# else
10505# ifdef RTLD_NOW
10506# define LT_DLLAZY_OR_NOW RTLD_NOW
10507# else
10508# ifdef DL_NOW
10509# define LT_DLLAZY_OR_NOW DL_NOW
10510# else
10511# define LT_DLLAZY_OR_NOW 0
10512# endif
10513# endif
10514# endif
10515# endif
10516#endif
10517
10518void fnord() { int i=42;}
10519int main ()
10520{
10521 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10522 int status = $lt_dlunknown;
10523
10524 if (self)
10525 {
10526 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10527 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10528 /* dlclose (self); */
10529 }
10530 else
10531 puts (dlerror ());
10532
10533 return status;
10534}
10535_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010537 (eval $ac_link) 2>&5
10538 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10540 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010541 (./conftest; exit; ) >&5 2>/dev/null
10542 lt_status=$?
10543 case x$lt_status in
10544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10546 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10547 esac
10548 else :
10549 # compilation failed
10550 lt_cv_dlopen_self=no
10551 fi
10552fi
10553rm -fr conftest*
10554
10555
10556fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010558$as_echo "$lt_cv_dlopen_self" >&6; }
10559
10560 if test "x$lt_cv_dlopen_self" = xyes; then
10561 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010562 { $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 +010010563$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010564if test "${lt_cv_dlopen_self_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010565 $as_echo_n "(cached) " >&6
10566else
10567 if test "$cross_compiling" = yes; then :
10568 lt_cv_dlopen_self_static=cross
10569else
10570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571 lt_status=$lt_dlunknown
10572 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnantc5b65582009-09-23 14:16:28 -070010573#line 10573 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010574#include "confdefs.h"
10575
10576#if HAVE_DLFCN_H
10577#include <dlfcn.h>
10578#endif
10579
10580#include <stdio.h>
10581
10582#ifdef RTLD_GLOBAL
10583# define LT_DLGLOBAL RTLD_GLOBAL
10584#else
10585# ifdef DL_GLOBAL
10586# define LT_DLGLOBAL DL_GLOBAL
10587# else
10588# define LT_DLGLOBAL 0
10589# endif
10590#endif
10591
10592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593 find out it does not work in some platform. */
10594#ifndef LT_DLLAZY_OR_NOW
10595# ifdef RTLD_LAZY
10596# define LT_DLLAZY_OR_NOW RTLD_LAZY
10597# else
10598# ifdef DL_LAZY
10599# define LT_DLLAZY_OR_NOW DL_LAZY
10600# else
10601# ifdef RTLD_NOW
10602# define LT_DLLAZY_OR_NOW RTLD_NOW
10603# else
10604# ifdef DL_NOW
10605# define LT_DLLAZY_OR_NOW DL_NOW
10606# else
10607# define LT_DLLAZY_OR_NOW 0
10608# endif
10609# endif
10610# endif
10611# endif
10612#endif
10613
10614void fnord() { int i=42;}
10615int main ()
10616{
10617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10618 int status = $lt_dlunknown;
10619
10620 if (self)
10621 {
10622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10623 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10624 /* dlclose (self); */
10625 }
10626 else
10627 puts (dlerror ());
10628
10629 return status;
10630}
10631_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010633 (eval $ac_link) 2>&5
10634 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010637 (./conftest; exit; ) >&5 2>/dev/null
10638 lt_status=$?
10639 case x$lt_status in
10640 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10641 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10642 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10643 esac
10644 else :
10645 # compilation failed
10646 lt_cv_dlopen_self_static=no
10647 fi
10648fi
10649rm -fr conftest*
10650
10651
10652fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010654$as_echo "$lt_cv_dlopen_self_static" >&6; }
10655 fi
10656
10657 CPPFLAGS="$save_CPPFLAGS"
10658 LDFLAGS="$save_LDFLAGS"
10659 LIBS="$save_LIBS"
10660 ;;
10661 esac
10662
10663 case $lt_cv_dlopen_self in
10664 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10665 *) enable_dlopen_self=unknown ;;
10666 esac
10667
10668 case $lt_cv_dlopen_self_static in
10669 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10670 *) enable_dlopen_self_static=unknown ;;
10671 esac
10672fi
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690striplib=
10691old_striplib=
Scott James Remnantfde82c92009-09-22 10:04:15 -070010692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010693$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10694if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10695 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10696 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010698$as_echo "yes" >&6; }
10699else
10700# FIXME - insert some real tests, host_os isn't really good enough
10701 case $host_os in
10702 darwin*)
10703 if test -n "$STRIP" ; then
10704 striplib="$STRIP -x"
10705 old_striplib="$STRIP -S"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010707$as_echo "yes" >&6; }
10708 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010710$as_echo "no" >&6; }
10711 fi
10712 ;;
10713 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010715$as_echo "no" >&6; }
10716 ;;
10717 esac
10718fi
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731 # Report which library types will actually be built
Scott James Remnantfde82c92009-09-22 10:04:15 -070010732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010733$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010735$as_echo "$can_build_shared" >&6; }
10736
Scott James Remnantfde82c92009-09-22 10:04:15 -070010737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010738$as_echo_n "checking whether to build shared libraries... " >&6; }
10739 test "$can_build_shared" = "no" && enable_shared=no
10740
10741 # On AIX, shared libraries and static libraries use the same namespace, and
10742 # are all built from PIC.
10743 case $host_os in
10744 aix3*)
10745 test "$enable_shared" = yes && enable_static=no
10746 if test -n "$RANLIB"; then
10747 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10748 postinstall_cmds='$RANLIB $lib'
10749 fi
10750 ;;
10751
10752 aix[4-9]*)
10753 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10754 test "$enable_shared" = yes && enable_static=no
10755 fi
10756 ;;
10757 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010759$as_echo "$enable_shared" >&6; }
10760
Scott James Remnantfde82c92009-09-22 10:04:15 -070010761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010762$as_echo_n "checking whether to build static libraries... " >&6; }
10763 # Make sure either enable_shared or enable_static is yes.
10764 test "$enable_shared" = yes || enable_static=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070010765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010766$as_echo "$enable_static" >&6; }
10767
10768
10769
10770
10771fi
10772ac_ext=c
10773ac_cpp='$CPP $CPPFLAGS'
10774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10776ac_compiler_gnu=$ac_cv_c_compiler_gnu
10777
10778CC="$lt_save_CC"
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792 ac_config_commands="$ac_config_commands libtool"
10793
10794
10795
10796
10797# Only expand once:
10798
10799
10800
10801
10802
Scott James Remnantfde82c92009-09-22 10:04:15 -070010803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010804$as_echo_n "checking whether NLS is requested... " >&6; }
10805 # Check whether --enable-nls was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010806if test "${enable_nls+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010807 enableval=$enable_nls; USE_NLS=$enableval
10808else
10809 USE_NLS=yes
10810fi
10811
Scott James Remnantfde82c92009-09-22 10:04:15 -070010812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010813$as_echo "$USE_NLS" >&6; }
10814
10815
10816
10817
10818
10819
10820# Prepare PATH_SEPARATOR.
10821# The user is always right.
10822if test "${PATH_SEPARATOR+set}" != set; then
10823 echo "#! /bin/sh" >conf$$.sh
10824 echo "exit 0" >>conf$$.sh
10825 chmod +x conf$$.sh
10826 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10827 PATH_SEPARATOR=';'
10828 else
10829 PATH_SEPARATOR=:
10830 fi
10831 rm -f conf$$.sh
10832fi
10833
10834# Find out how to test for executable files. Don't use a zero-byte file,
10835# as systems may use methods other than mode bits to determine executability.
10836cat >conf$$.file <<_ASEOF
10837#! /bin/sh
10838exit 0
10839_ASEOF
10840chmod +x conf$$.file
10841if test -x conf$$.file >/dev/null 2>&1; then
10842 ac_executable_p="test -x"
10843else
10844 ac_executable_p="test -f"
10845fi
10846rm -f conf$$.file
10847
10848# Extract the first word of "msgfmt", so it can be a program name with args.
10849set dummy msgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010851$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010852if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010853 $as_echo_n "(cached) " >&6
10854else
10855 case "$MSGFMT" in
10856 [\\/]* | ?:[\\/]*)
10857 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10858 ;;
10859 *)
10860 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10861 for ac_dir in $PATH; do
10862 IFS="$ac_save_IFS"
10863 test -z "$ac_dir" && ac_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10866 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10867 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10868 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10869 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10870 break 2
10871 fi
10872 fi
10873 done
10874 done
10875 IFS="$ac_save_IFS"
10876 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10877 ;;
10878esac
10879fi
10880MSGFMT="$ac_cv_path_MSGFMT"
10881if test "$MSGFMT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010883$as_echo "$MSGFMT" >&6; }
10884else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010886$as_echo "no" >&6; }
10887fi
10888
10889 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10890set dummy gmsgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010892$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010893if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010894 $as_echo_n "(cached) " >&6
10895else
10896 case $GMSGFMT in
10897 [\\/]* | ?:[\\/]*)
10898 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10899 ;;
10900 *)
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902for as_dir in $PATH
10903do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010906 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010010907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10908 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010910 break 2
10911 fi
10912done
Scott James Remnantfde82c92009-09-22 10:04:15 -070010913 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010010914IFS=$as_save_IFS
10915
10916 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10917 ;;
10918esac
10919fi
10920GMSGFMT=$ac_cv_path_GMSGFMT
10921if test -n "$GMSGFMT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010923$as_echo "$GMSGFMT" >&6; }
10924else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010926$as_echo "no" >&6; }
10927fi
10928
10929
10930
10931 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10932 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10933 *) MSGFMT_015=$MSGFMT ;;
10934 esac
10935
10936 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10937 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10938 *) GMSGFMT_015=$GMSGFMT ;;
10939 esac
10940
10941
10942
10943# Prepare PATH_SEPARATOR.
10944# The user is always right.
10945if test "${PATH_SEPARATOR+set}" != set; then
10946 echo "#! /bin/sh" >conf$$.sh
10947 echo "exit 0" >>conf$$.sh
10948 chmod +x conf$$.sh
10949 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10950 PATH_SEPARATOR=';'
10951 else
10952 PATH_SEPARATOR=:
10953 fi
10954 rm -f conf$$.sh
10955fi
10956
10957# Find out how to test for executable files. Don't use a zero-byte file,
10958# as systems may use methods other than mode bits to determine executability.
10959cat >conf$$.file <<_ASEOF
10960#! /bin/sh
10961exit 0
10962_ASEOF
10963chmod +x conf$$.file
10964if test -x conf$$.file >/dev/null 2>&1; then
10965 ac_executable_p="test -x"
10966else
10967 ac_executable_p="test -f"
10968fi
10969rm -f conf$$.file
10970
10971# Extract the first word of "xgettext", so it can be a program name with args.
10972set dummy xgettext; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010974$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010975if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010976 $as_echo_n "(cached) " >&6
10977else
10978 case "$XGETTEXT" in
10979 [\\/]* | ?:[\\/]*)
10980 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10981 ;;
10982 *)
10983 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10984 for ac_dir in $PATH; do
10985 IFS="$ac_save_IFS"
10986 test -z "$ac_dir" && ac_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10989 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10990 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10991 (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
10992 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10993 break 2
10994 fi
10995 fi
10996 done
10997 done
10998 IFS="$ac_save_IFS"
10999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11000 ;;
11001esac
11002fi
11003XGETTEXT="$ac_cv_path_XGETTEXT"
11004if test "$XGETTEXT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011006$as_echo "$XGETTEXT" >&6; }
11007else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011009$as_echo "no" >&6; }
11010fi
11011
11012 rm -f messages.po
11013
11014 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11015 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11016 *) XGETTEXT_015=$XGETTEXT ;;
11017 esac
11018
11019
11020
11021# Prepare PATH_SEPARATOR.
11022# The user is always right.
11023if test "${PATH_SEPARATOR+set}" != set; then
11024 echo "#! /bin/sh" >conf$$.sh
11025 echo "exit 0" >>conf$$.sh
11026 chmod +x conf$$.sh
11027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11028 PATH_SEPARATOR=';'
11029 else
11030 PATH_SEPARATOR=:
11031 fi
11032 rm -f conf$$.sh
11033fi
11034
11035# Find out how to test for executable files. Don't use a zero-byte file,
11036# as systems may use methods other than mode bits to determine executability.
11037cat >conf$$.file <<_ASEOF
11038#! /bin/sh
11039exit 0
11040_ASEOF
11041chmod +x conf$$.file
11042if test -x conf$$.file >/dev/null 2>&1; then
11043 ac_executable_p="test -x"
11044else
11045 ac_executable_p="test -f"
11046fi
11047rm -f conf$$.file
11048
11049# Extract the first word of "msgmerge", so it can be a program name with args.
11050set dummy msgmerge; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011052$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011053if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011054 $as_echo_n "(cached) " >&6
11055else
11056 case "$MSGMERGE" in
11057 [\\/]* | ?:[\\/]*)
11058 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11059 ;;
11060 *)
11061 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11062 for ac_dir in $PATH; do
11063 IFS="$ac_save_IFS"
11064 test -z "$ac_dir" && ac_dir=.
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11067 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11068 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11069 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11070 break 2
11071 fi
11072 fi
11073 done
11074 done
11075 IFS="$ac_save_IFS"
11076 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11077 ;;
11078esac
11079fi
11080MSGMERGE="$ac_cv_path_MSGMERGE"
11081if test "$MSGMERGE" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011083$as_echo "$MSGMERGE" >&6; }
11084else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011086$as_echo "no" >&6; }
11087fi
11088
11089
11090 test -n "$localedir" || localedir='${datadir}/locale'
11091
11092
11093 ac_config_commands="$ac_config_commands po-directories"
11094
11095
11096
Scott James Remnantfde82c92009-09-22 10:04:15 -070011097 { $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 +010011098$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011099if test "${ac_cv_gnu_library_2+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011100 $as_echo_n "(cached) " >&6
11101else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011103/* end confdefs.h. */
11104
11105#include <features.h>
11106#ifdef __GNU_LIBRARY__
11107 #if (__GLIBC__ >= 2)
11108 Lucky GNU user
11109 #endif
11110#endif
11111
11112_ACEOF
11113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011114 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011115 ac_cv_gnu_library_2=yes
11116else
11117 ac_cv_gnu_library_2=no
11118fi
11119rm -f conftest*
11120
11121
11122
11123fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011125$as_echo "$ac_cv_gnu_library_2" >&6; }
11126
11127 GLIBC2="$ac_cv_gnu_library_2"
11128
11129
11130if test -n "$ac_tool_prefix"; then
11131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11132set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011134$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011135if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011136 $as_echo_n "(cached) " >&6
11137else
11138 if test -n "$RANLIB"; then
11139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11140else
11141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142for as_dir in $PATH
11143do
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011146 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011150 break 2
11151 fi
11152done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011153 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011154IFS=$as_save_IFS
11155
11156fi
11157fi
11158RANLIB=$ac_cv_prog_RANLIB
11159if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011161$as_echo "$RANLIB" >&6; }
11162else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011164$as_echo "no" >&6; }
11165fi
11166
11167
11168fi
11169if test -z "$ac_cv_prog_RANLIB"; then
11170 ac_ct_RANLIB=$RANLIB
11171 # Extract the first word of "ranlib", so it can be a program name with args.
11172set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011174$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011175if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011176 $as_echo_n "(cached) " >&6
11177else
11178 if test -n "$ac_ct_RANLIB"; then
11179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11180else
11181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182for as_dir in $PATH
11183do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011186 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011190 break 2
11191 fi
11192done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011193 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011194IFS=$as_save_IFS
11195
11196fi
11197fi
11198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11199if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011201$as_echo "$ac_ct_RANLIB" >&6; }
11202else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011204$as_echo "no" >&6; }
11205fi
11206
11207 if test "x$ac_ct_RANLIB" = x; then
11208 RANLIB=":"
11209 else
11210 case $cross_compiling:$ac_tool_warned in
11211yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070011212{ $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 +010011213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11214ac_tool_warned=yes ;;
11215esac
11216 RANLIB=$ac_ct_RANLIB
11217 fi
11218else
11219 RANLIB="$ac_cv_prog_RANLIB"
11220fi
11221
11222
11223
11224 CFLAG_VISIBILITY=
11225 HAVE_VISIBILITY=0
11226 if test -n "$GCC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011228$as_echo_n "checking for simple visibility declarations... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011229 if test "${gl_cv_cc_visibility+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011230 $as_echo_n "(cached) " >&6
11231else
11232
11233 gl_save_CFLAGS="$CFLAGS"
11234 CFLAGS="$CFLAGS -fvisibility=hidden"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011236/* end confdefs.h. */
11237extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11238 extern __attribute__((__visibility__("default"))) int exportedvar;
11239 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11240 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11241int
11242main ()
11243{
11244
11245 ;
11246 return 0;
11247}
11248_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011249if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011250 gl_cv_cc_visibility=yes
11251else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011252 gl_cv_cc_visibility=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011253fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255 CFLAGS="$gl_save_CFLAGS"
11256fi
11257
Scott James Remnantfde82c92009-09-22 10:04:15 -070011258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011259$as_echo "$gl_cv_cc_visibility" >&6; }
11260 if test $gl_cv_cc_visibility = yes; then
11261 CFLAG_VISIBILITY="-fvisibility=hidden"
11262 HAVE_VISIBILITY=1
11263 fi
11264 fi
11265
11266
11267
11268cat >>confdefs.h <<_ACEOF
11269#define HAVE_VISIBILITY $HAVE_VISIBILITY
11270_ACEOF
11271
11272
Scott James Remnantfde82c92009-09-22 10:04:15 -070011273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011274$as_echo_n "checking for inline... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011275if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011276 $as_echo_n "(cached) " >&6
11277else
11278 ac_cv_c_inline=no
11279for ac_kw in inline __inline__ __inline; do
Scott James Remnantfde82c92009-09-22 10:04:15 -070011280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011281/* end confdefs.h. */
11282#ifndef __cplusplus
11283typedef int foo_t;
11284static $ac_kw foo_t static_foo () {return 0; }
11285$ac_kw foo_t foo () {return 0; }
11286#endif
11287
11288_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011289if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011290 ac_cv_c_inline=$ac_kw
Scott James Remnant65f683d2009-07-14 13:05:17 +010011291fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 test "$ac_cv_c_inline" != no && break
11294done
11295
11296fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011298$as_echo "$ac_cv_c_inline" >&6; }
11299
Scott James Remnant65f683d2009-07-14 13:05:17 +010011300case $ac_cv_c_inline in
11301 inline | yes) ;;
11302 *)
11303 case $ac_cv_c_inline in
11304 no) ac_val=;;
11305 *) ac_val=$ac_cv_c_inline;;
11306 esac
11307 cat >>confdefs.h <<_ACEOF
11308#ifndef __cplusplus
11309#define inline $ac_val
11310#endif
11311_ACEOF
11312 ;;
11313esac
11314
Scott James Remnantfde82c92009-09-22 10:04:15 -070011315ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11316if test "x$ac_cv_type_size_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011317
Scott James Remnant65f683d2009-07-14 13:05:17 +010011318else
11319
11320cat >>confdefs.h <<_ACEOF
11321#define size_t unsigned int
11322_ACEOF
11323
11324fi
11325
11326
Scott James Remnantfde82c92009-09-22 10:04:15 -070011327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011328$as_echo_n "checking for stdint.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011329if test "${gl_cv_header_stdint_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011330 $as_echo_n "(cached) " >&6
11331else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011333/* end confdefs.h. */
11334#include <sys/types.h>
11335#include <stdint.h>
11336int
11337main ()
11338{
11339uintmax_t i = (uintmax_t) -1; return !i;
11340 ;
11341 return 0;
11342}
11343_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011344if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011345 gl_cv_header_stdint_h=yes
11346else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011347 gl_cv_header_stdint_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011348fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011352$as_echo "$gl_cv_header_stdint_h" >&6; }
11353 if test $gl_cv_header_stdint_h = yes; then
11354
11355cat >>confdefs.h <<_ACEOF
11356#define HAVE_STDINT_H_WITH_UINTMAX 1
11357_ACEOF
11358
11359 fi
11360
11361# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11362# for constant arguments. Useless!
Scott James Remnantfde82c92009-09-22 10:04:15 -070011363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011364$as_echo_n "checking for working alloca.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011365if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011366 $as_echo_n "(cached) " >&6
11367else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011369/* end confdefs.h. */
11370#include <alloca.h>
11371int
11372main ()
11373{
11374char *p = (char *) alloca (2 * sizeof (int));
11375 if (p) return 0;
11376 ;
11377 return 0;
11378}
11379_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011380if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011381 ac_cv_working_alloca_h=yes
11382else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011383 ac_cv_working_alloca_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011384fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011385rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011387fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011389$as_echo "$ac_cv_working_alloca_h" >&6; }
11390if test $ac_cv_working_alloca_h = yes; then
11391
Scott James Remnantfde82c92009-09-22 10:04:15 -070011392$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011393
11394fi
11395
Scott James Remnantfde82c92009-09-22 10:04:15 -070011396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011397$as_echo_n "checking for alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011398if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011399 $as_echo_n "(cached) " >&6
11400else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011402/* end confdefs.h. */
11403#ifdef __GNUC__
11404# define alloca __builtin_alloca
11405#else
11406# ifdef _MSC_VER
11407# include <malloc.h>
11408# define alloca _alloca
11409# else
11410# ifdef HAVE_ALLOCA_H
11411# include <alloca.h>
11412# else
11413# ifdef _AIX
11414 #pragma alloca
11415# else
11416# ifndef alloca /* predefined by HP cc +Olibcalls */
11417char *alloca ();
11418# endif
11419# endif
11420# endif
11421# endif
11422#endif
11423
11424int
11425main ()
11426{
11427char *p = (char *) alloca (1);
11428 if (p) return 0;
11429 ;
11430 return 0;
11431}
11432_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011433if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011434 ac_cv_func_alloca_works=yes
11435else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011436 ac_cv_func_alloca_works=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011437fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011438rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011440fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011442$as_echo "$ac_cv_func_alloca_works" >&6; }
11443
11444if test $ac_cv_func_alloca_works = yes; then
11445
Scott James Remnantfde82c92009-09-22 10:04:15 -070011446$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011447
11448else
11449 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11450# that cause trouble. Some versions do not even contain alloca or
11451# contain a buggy version. If you still want to use their alloca,
11452# use ar to extract alloca.o from them instead of compiling alloca.c.
11453
11454ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11455
Scott James Remnantfde82c92009-09-22 10:04:15 -070011456$as_echo "#define C_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011457
11458
Scott James Remnantfde82c92009-09-22 10:04:15 -070011459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011460$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011461if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011462 $as_echo_n "(cached) " >&6
11463else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011465/* end confdefs.h. */
11466#if defined CRAY && ! defined CRAY2
11467webecray
11468#else
11469wenotbecray
11470#endif
11471
11472_ACEOF
11473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011474 $EGREP "webecray" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011475 ac_cv_os_cray=yes
11476else
11477 ac_cv_os_cray=no
11478fi
11479rm -f conftest*
11480
11481fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011483$as_echo "$ac_cv_os_cray" >&6; }
11484if test $ac_cv_os_cray = yes; then
11485 for ac_func in _getb67 GETB67 getb67; do
11486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Scott James Remnantfde82c92009-09-22 10:04:15 -070011487ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11488eval as_val=\$$as_ac_var
11489 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011490
11491cat >>confdefs.h <<_ACEOF
11492#define CRAY_STACKSEG_END $ac_func
11493_ACEOF
11494
11495 break
11496fi
11497
11498 done
11499fi
11500
Scott James Remnantfde82c92009-09-22 10:04:15 -070011501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011502$as_echo_n "checking stack direction for C alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011503if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011504 $as_echo_n "(cached) " >&6
11505else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011506 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011507 ac_cv_c_stack_direction=0
11508else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011510/* end confdefs.h. */
11511$ac_includes_default
11512int
11513find_stack_direction ()
11514{
11515 static char *addr = 0;
11516 auto char dummy;
11517 if (addr == 0)
11518 {
11519 addr = &dummy;
11520 return find_stack_direction ();
11521 }
11522 else
11523 return (&dummy > addr) ? 1 : -1;
11524}
11525
11526int
11527main ()
11528{
11529 return find_stack_direction () < 0;
11530}
11531_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011532if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011533 ac_cv_c_stack_direction=1
11534else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011535 ac_cv_c_stack_direction=-1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011536fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11538 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011539fi
11540
Scott James Remnant65f683d2009-07-14 13:05:17 +010011541fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011543$as_echo "$ac_cv_c_stack_direction" >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010011544cat >>confdefs.h <<_ACEOF
11545#define STACK_DIRECTION $ac_cv_c_stack_direction
11546_ACEOF
11547
11548
11549fi
11550
Scott James Remnant65f683d2009-07-14 13:05:17 +010011551for ac_header in stdlib.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070011552do :
11553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11554ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11555eval as_val=\$$as_ac_Header
11556 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011557 cat >>confdefs.h <<_ACEOF
11558#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11559_ACEOF
11560
11561fi
11562
11563done
11564
Scott James Remnant65f683d2009-07-14 13:05:17 +010011565for ac_func in getpagesize
Scott James Remnantfde82c92009-09-22 10:04:15 -070011566do :
11567 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11568if test "x$ac_cv_func_getpagesize" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011569 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011570#define HAVE_GETPAGESIZE 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011571_ACEOF
11572
11573fi
11574done
11575
Scott James Remnantfde82c92009-09-22 10:04:15 -070011576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011577$as_echo_n "checking for working mmap... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011578if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011579 $as_echo_n "(cached) " >&6
11580else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011581 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011582 ac_cv_func_mmap_fixed_mapped=no
11583else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011585/* end confdefs.h. */
11586$ac_includes_default
11587/* malloc might have been renamed as rpl_malloc. */
11588#undef malloc
11589
11590/* Thanks to Mike Haertel and Jim Avera for this test.
11591 Here is a matrix of mmap possibilities:
11592 mmap private not fixed
11593 mmap private fixed at somewhere currently unmapped
11594 mmap private fixed at somewhere already mapped
11595 mmap shared not fixed
11596 mmap shared fixed at somewhere currently unmapped
11597 mmap shared fixed at somewhere already mapped
11598 For private mappings, we should verify that changes cannot be read()
11599 back from the file, nor mmap's back from the file at a different
11600 address. (There have been systems where private was not correctly
11601 implemented like the infamous i386 svr4.0, and systems where the
11602 VM page cache was not coherent with the file system buffer cache
11603 like early versions of FreeBSD and possibly contemporary NetBSD.)
11604 For shared mappings, we should conversely verify that changes get
11605 propagated back to all the places they're supposed to be.
11606
11607 Grep wants private fixed already mapped.
11608 The main things grep needs to know about mmap are:
11609 * does it exist and is it safe to write into the mmap'd area
11610 * how to use it (BSD variants) */
11611
11612#include <fcntl.h>
11613#include <sys/mman.h>
11614
11615#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11616char *malloc ();
11617#endif
11618
11619/* This mess was copied from the GNU getpagesize.h. */
11620#ifndef HAVE_GETPAGESIZE
11621/* Assume that all systems that can run configure have sys/param.h. */
11622# ifndef HAVE_SYS_PARAM_H
11623# define HAVE_SYS_PARAM_H 1
11624# endif
11625
11626# ifdef _SC_PAGESIZE
11627# define getpagesize() sysconf(_SC_PAGESIZE)
11628# else /* no _SC_PAGESIZE */
11629# ifdef HAVE_SYS_PARAM_H
11630# include <sys/param.h>
11631# ifdef EXEC_PAGESIZE
11632# define getpagesize() EXEC_PAGESIZE
11633# else /* no EXEC_PAGESIZE */
11634# ifdef NBPG
11635# define getpagesize() NBPG * CLSIZE
11636# ifndef CLSIZE
11637# define CLSIZE 1
11638# endif /* no CLSIZE */
11639# else /* no NBPG */
11640# ifdef NBPC
11641# define getpagesize() NBPC
11642# else /* no NBPC */
11643# ifdef PAGESIZE
11644# define getpagesize() PAGESIZE
11645# endif /* PAGESIZE */
11646# endif /* no NBPC */
11647# endif /* no NBPG */
11648# endif /* no EXEC_PAGESIZE */
11649# else /* no HAVE_SYS_PARAM_H */
11650# define getpagesize() 8192 /* punt totally */
11651# endif /* no HAVE_SYS_PARAM_H */
11652# endif /* no _SC_PAGESIZE */
11653
11654#endif /* no HAVE_GETPAGESIZE */
11655
11656int
11657main ()
11658{
11659 char *data, *data2, *data3;
11660 int i, pagesize;
11661 int fd;
11662
11663 pagesize = getpagesize ();
11664
11665 /* First, make a file with some known garbage in it. */
11666 data = (char *) malloc (pagesize);
11667 if (!data)
11668 return 1;
11669 for (i = 0; i < pagesize; ++i)
11670 *(data + i) = rand ();
11671 umask (0);
11672 fd = creat ("conftest.mmap", 0600);
11673 if (fd < 0)
11674 return 1;
11675 if (write (fd, data, pagesize) != pagesize)
11676 return 1;
11677 close (fd);
11678
11679 /* Next, try to mmap the file at a fixed address which already has
11680 something else allocated at it. If we can, also make sure that
11681 we see the same garbage. */
11682 fd = open ("conftest.mmap", O_RDWR);
11683 if (fd < 0)
11684 return 1;
11685 data2 = (char *) malloc (2 * pagesize);
11686 if (!data2)
11687 return 1;
11688 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11689 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11690 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11691 return 1;
11692 for (i = 0; i < pagesize; ++i)
11693 if (*(data + i) != *(data2 + i))
11694 return 1;
11695
11696 /* Finally, make sure that changes to the mapped area do not
11697 percolate back to the file as seen by read(). (This is a bug on
11698 some variants of i386 svr4.0.) */
11699 for (i = 0; i < pagesize; ++i)
11700 *(data2 + i) = *(data2 + i) + 1;
11701 data3 = (char *) malloc (pagesize);
11702 if (!data3)
11703 return 1;
11704 if (read (fd, data3, pagesize) != pagesize)
11705 return 1;
11706 for (i = 0; i < pagesize; ++i)
11707 if (*(data + i) != *(data3 + i))
11708 return 1;
11709 close (fd);
11710 return 0;
11711}
11712_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011713if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011714 ac_cv_func_mmap_fixed_mapped=yes
11715else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011716 ac_cv_func_mmap_fixed_mapped=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011717fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11719 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011720fi
11721
Scott James Remnant65f683d2009-07-14 13:05:17 +010011722fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011724$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11725if test $ac_cv_func_mmap_fixed_mapped = yes; then
11726
Scott James Remnantfde82c92009-09-22 10:04:15 -070011727$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011728
11729fi
11730rm -f conftest.mmap
11731
11732
11733
Scott James Remnantfde82c92009-09-22 10:04:15 -070011734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011735$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011736if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011737 $as_echo_n "(cached) " >&6
11738else
11739
Scott James Remnantfde82c92009-09-22 10:04:15 -070011740 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011741
11742 # Guess based on the CPU.
11743 case "$host_cpu" in
11744 alpha* | i3456786 | m68k | s390*)
11745 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11746 *)
11747 gt_cv_int_divbyzero_sigfpe="guessing no";;
11748 esac
11749
11750else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011752/* end confdefs.h. */
11753
11754#include <stdlib.h>
11755#include <signal.h>
11756
11757static void
11758#ifdef __cplusplus
11759sigfpe_handler (int sig)
11760#else
11761sigfpe_handler (sig) int sig;
11762#endif
11763{
11764 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11765 exit (sig != SIGFPE);
11766}
11767
11768int x = 1;
11769int y = 0;
11770int z;
11771int nan;
11772
11773int main ()
11774{
11775 signal (SIGFPE, sigfpe_handler);
11776/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11777#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11778 signal (SIGTRAP, sigfpe_handler);
11779#endif
11780/* Linux/SPARC yields signal SIGILL. */
11781#if defined (__sparc__) && defined (__linux__)
11782 signal (SIGILL, sigfpe_handler);
11783#endif
11784
11785 z = x / y;
11786 nan = y / y;
11787 exit (1);
11788}
11789
11790_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011791if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011792 gt_cv_int_divbyzero_sigfpe=yes
11793else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011794 gt_cv_int_divbyzero_sigfpe=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011795fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011796rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11797 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011798fi
11799
11800
Scott James Remnant65f683d2009-07-14 13:05:17 +010011801fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011803$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11804 case "$gt_cv_int_divbyzero_sigfpe" in
11805 *yes) value=1;;
11806 *) value=0;;
11807 esac
11808
11809cat >>confdefs.h <<_ACEOF
11810#define INTDIV0_RAISES_SIGFPE $value
11811_ACEOF
11812
11813
11814
Scott James Remnantfde82c92009-09-22 10:04:15 -070011815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011816$as_echo_n "checking for inttypes.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011817if test "${gl_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011818 $as_echo_n "(cached) " >&6
11819else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011821/* end confdefs.h. */
11822#include <sys/types.h>
11823#include <inttypes.h>
11824int
11825main ()
11826{
11827uintmax_t i = (uintmax_t) -1; return !i;
11828 ;
11829 return 0;
11830}
11831_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011832if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011833 gl_cv_header_inttypes_h=yes
11834else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011835 gl_cv_header_inttypes_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011836fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011840$as_echo "$gl_cv_header_inttypes_h" >&6; }
11841 if test $gl_cv_header_inttypes_h = yes; then
11842
11843cat >>confdefs.h <<_ACEOF
11844#define HAVE_INTTYPES_H_WITH_UINTMAX 1
11845_ACEOF
11846
11847 fi
11848
11849
Scott James Remnantfde82c92009-09-22 10:04:15 -070011850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011851$as_echo_n "checking for unsigned long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011852if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011853 $as_echo_n "(cached) " >&6
11854else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011856/* end confdefs.h. */
11857unsigned long long int ull = 18446744073709551615ULL;
11858 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11859 ? 1 : -1)];
11860 int i = 63;
11861int
11862main ()
11863{
11864unsigned long long int ullmax = 18446744073709551615ull;
11865 return (ull << 63 | ull >> 63 | ull << i | ull >> i
11866 | ullmax / ull | ullmax % ull);
11867 ;
11868 return 0;
11869}
11870_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011871if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011872 ac_cv_type_unsigned_long_long_int=yes
11873else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011874 ac_cv_type_unsigned_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011875fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011876rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011878fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011880$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11881 if test $ac_cv_type_unsigned_long_long_int = yes; then
11882
Scott James Remnantfde82c92009-09-22 10:04:15 -070011883$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011884
11885 fi
11886
11887
11888
11889 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
11890 if test $ac_cv_type_unsigned_long_long = yes; then
11891
Scott James Remnantfde82c92009-09-22 10:04:15 -070011892$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011893
11894 fi
11895
11896
11897
11898
11899 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11900
11901 test $ac_cv_type_unsigned_long_long = yes \
11902 && ac_type='unsigned long long' \
11903 || ac_type='unsigned long'
11904
11905cat >>confdefs.h <<_ACEOF
11906#define uintmax_t $ac_type
11907_ACEOF
11908
11909 else
11910
Scott James Remnantfde82c92009-09-22 10:04:15 -070011911$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011912
11913 fi
11914
11915
Scott James Remnantfde82c92009-09-22 10:04:15 -070011916 for ac_header in inttypes.h
11917do :
11918 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11919if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011920 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011921#define HAVE_INTTYPES_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011922_ACEOF
11923
11924fi
11925
11926done
11927
11928 if test $ac_cv_header_inttypes_h = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011929 { $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 +010011930$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011931if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011932 $as_echo_n "(cached) " >&6
11933else
11934
Scott James Remnantfde82c92009-09-22 10:04:15 -070011935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011936/* end confdefs.h. */
11937#include <inttypes.h>
11938#ifdef PRId32
11939char *p = PRId32;
11940#endif
11941
11942int
11943main ()
11944{
11945
11946 ;
11947 return 0;
11948}
11949_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011950if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011951 gt_cv_inttypes_pri_broken=no
11952else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011953 gt_cv_inttypes_pri_broken=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010011954fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956
11957fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011959$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11960 fi
11961 if test "$gt_cv_inttypes_pri_broken" = yes; then
11962
11963cat >>confdefs.h <<_ACEOF
11964#define PRI_MACROS_BROKEN 1
11965_ACEOF
11966
11967 PRI_MACROS_BROKEN=1
11968 else
11969 PRI_MACROS_BROKEN=0
11970 fi
11971
11972
11973
11974
11975
11976 # Check whether --enable-threads was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011977if test "${enable_threads+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011978 enableval=$enable_threads; gl_use_threads=$enableval
11979else
11980 case "$host_os" in
11981 osf*) gl_use_threads=no ;;
11982 *) gl_use_threads=yes ;;
11983 esac
11984
11985fi
11986
11987 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
11988 # For using <pthread.h>:
11989 case "$host_os" in
11990 osf*)
11991 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
11992 # groks <pthread.h>. cc also understands the flag -pthread, but
11993 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
11994 # 2. putting a flag into CPPFLAGS that has an effect on the linker
11995 # causes the AC_TRY_LINK test below to succeed unexpectedly,
11996 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
11997 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11998 ;;
11999 esac
12000 # Some systems optimize for single-threaded programs by default, and
12001 # need special flags to disable these optimizations. For example, the
12002 # definition of 'errno' in <errno.h>.
12003 case "$host_os" in
12004 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
12005 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
12006 esac
12007 fi
12008
12009
12010
12011
12012
12013 if test "X$prefix" = "XNONE"; then
12014 acl_final_prefix="$ac_default_prefix"
12015 else
12016 acl_final_prefix="$prefix"
12017 fi
12018 if test "X$exec_prefix" = "XNONE"; then
12019 acl_final_exec_prefix='${prefix}'
12020 else
12021 acl_final_exec_prefix="$exec_prefix"
12022 fi
12023 acl_save_prefix="$prefix"
12024 prefix="$acl_final_prefix"
12025 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12026 prefix="$acl_save_prefix"
12027
12028
12029# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012030if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12032else
12033 with_gnu_ld=no
12034fi
12035
12036# Prepare PATH_SEPARATOR.
12037# The user is always right.
12038if test "${PATH_SEPARATOR+set}" != set; then
12039 echo "#! /bin/sh" >conf$$.sh
12040 echo "exit 0" >>conf$$.sh
12041 chmod +x conf$$.sh
12042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12043 PATH_SEPARATOR=';'
12044 else
12045 PATH_SEPARATOR=:
12046 fi
12047 rm -f conf$$.sh
12048fi
12049ac_prog=ld
12050if test "$GCC" = yes; then
12051 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012053$as_echo_n "checking for ld used by GCC... " >&6; }
12054 case $host in
12055 *-*-mingw*)
12056 # gcc leaves a trailing carriage return which upsets mingw
12057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12058 *)
12059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12060 esac
12061 case $ac_prog in
12062 # Accept absolute paths.
12063 [\\/]* | [A-Za-z]:[\\/]*)
12064 re_direlt='/[^/][^/]*/\.\./'
12065 # Canonicalize the path of ld
12066 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12067 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12068 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12069 done
12070 test -z "$LD" && LD="$ac_prog"
12071 ;;
12072 "")
12073 # If it fails, then pretend we aren't using GCC.
12074 ac_prog=ld
12075 ;;
12076 *)
12077 # If it is relative, then search for the first ld in PATH.
12078 with_gnu_ld=unknown
12079 ;;
12080 esac
12081elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012083$as_echo_n "checking for GNU ld... " >&6; }
12084else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012086$as_echo_n "checking for non-GNU ld... " >&6; }
12087fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012088if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012089 $as_echo_n "(cached) " >&6
12090else
12091 if test -z "$LD"; then
12092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12093 for ac_dir in $PATH; do
12094 test -z "$ac_dir" && ac_dir=.
12095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12096 acl_cv_path_LD="$ac_dir/$ac_prog"
12097 # Check to see if the program is GNU ld. I'd rather use --version,
12098 # but apparently some GNU ld's only accept -v.
12099 # Break only if it was the GNU/non-GNU ld that we prefer.
12100 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12101 *GNU* | *'with BFD'*)
12102 test "$with_gnu_ld" != no && break ;;
12103 *)
12104 test "$with_gnu_ld" != yes && break ;;
12105 esac
12106 fi
12107 done
12108 IFS="$ac_save_ifs"
12109else
12110 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12111fi
12112fi
12113
12114LD="$acl_cv_path_LD"
12115if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012117$as_echo "$LD" >&6; }
12118else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012120$as_echo "no" >&6; }
12121fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012122test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012124$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012125if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012126 $as_echo_n "(cached) " >&6
12127else
12128 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12129case `$LD -v 2>&1 </dev/null` in
12130*GNU* | *'with BFD'*)
12131 acl_cv_prog_gnu_ld=yes ;;
12132*)
12133 acl_cv_prog_gnu_ld=no ;;
12134esac
12135fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012137$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12138with_gnu_ld=$acl_cv_prog_gnu_ld
12139
12140
12141
12142
Scott James Remnantfde82c92009-09-22 10:04:15 -070012143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012144$as_echo_n "checking for shared library run path origin... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012145if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012146 $as_echo_n "(cached) " >&6
12147else
12148
12149 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12150 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12151 . ./conftest.sh
12152 rm -f ./conftest.sh
12153 acl_cv_rpath=done
12154
12155fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012157$as_echo "$acl_cv_rpath" >&6; }
12158 wl="$acl_cv_wl"
12159 libext="$acl_cv_libext"
12160 shlibext="$acl_cv_shlibext"
12161 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12162 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12163 hardcode_direct="$acl_cv_hardcode_direct"
12164 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12165 # Check whether --enable-rpath was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012166if test "${enable_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012167 enableval=$enable_rpath; :
12168else
12169 enable_rpath=yes
12170fi
12171
12172
12173
12174 acl_libdirstem=lib
12175 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12176 if test -n "$searchpath"; then
12177 acl_save_IFS="${IFS= }"; IFS=":"
12178 for searchdir in $searchpath; do
12179 if test -d "$searchdir"; then
12180 case "$searchdir" in
12181 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12182 *) searchdir=`cd "$searchdir" && pwd`
12183 case "$searchdir" in
12184 */lib64 ) acl_libdirstem=lib64 ;;
12185 esac ;;
12186 esac
12187 fi
12188 done
12189 IFS="$acl_save_IFS"
12190 fi
12191
12192
12193
12194 gl_threads_api=none
12195 LIBTHREAD=
12196 LTLIBTHREAD=
12197 LIBMULTITHREAD=
12198 LTLIBMULTITHREAD=
12199 if test "$gl_use_threads" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012201$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12202 gl_have_weak=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070012203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012204/* end confdefs.h. */
12205extern void xyzzy ();
12206#pragma weak xyzzy
12207int
12208main ()
12209{
12210xyzzy();
12211 ;
12212 return 0;
12213}
12214_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012215if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012216 gl_have_weak=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012217fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012218rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012221$as_echo "$gl_have_weak" >&6; }
12222 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12223 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12224 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012225 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12226if test "x$ac_cv_header_pthread_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012227 gl_have_pthread_h=yes
12228else
12229 gl_have_pthread_h=no
12230fi
12231
12232
12233 if test "$gl_have_pthread_h" = yes; then
12234 # Other possible tests:
12235 # -lpthreads (FSU threads, PCthreads)
12236 # -lgthreads
12237 gl_have_pthread=
12238 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12239 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12240 # the second one only in libpthread, and lock.c needs it.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012242/* end confdefs.h. */
12243#include <pthread.h>
12244int
12245main ()
12246{
12247pthread_mutex_lock((pthread_mutex_t*)0);
12248 pthread_mutexattr_init((pthread_mutexattr_t*)0);
12249 ;
12250 return 0;
12251}
12252_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012253if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012254 gl_have_pthread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012255fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012256rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012258 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12259 # since it is defined as a macro on OSF/1.)
12260 if test -n "$gl_have_pthread"; then
12261 # The program links fine without libpthread. But it may actually
12262 # need to link with libpthread in order to create multiple threads.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012264$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012265if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012266 $as_echo_n "(cached) " >&6
12267else
12268 ac_check_lib_save_LIBS=$LIBS
12269LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012271/* end confdefs.h. */
12272
12273/* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12276#ifdef __cplusplus
12277extern "C"
12278#endif
12279char pthread_kill ();
12280int
12281main ()
12282{
12283return pthread_kill ();
12284 ;
12285 return 0;
12286}
12287_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012288if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012289 ac_cv_lib_pthread_pthread_kill=yes
12290else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012291 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012292fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012293rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012295LIBS=$ac_check_lib_save_LIBS
12296fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012298$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012299if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012300 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12301 # On Solaris and HP-UX, most pthread functions exist also in libc.
12302 # Therefore pthread_in_use() needs to actually try to create a
12303 # thread: pthread_create from libc will fail, whereas
12304 # pthread_create will actually create a thread.
12305 case "$host_os" in
12306 solaris* | hpux*)
12307
Scott James Remnantfde82c92009-09-22 10:04:15 -070012308$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012309
12310 esac
12311
12312fi
12313
12314 else
12315 # Some library is needed. Try libpthread and libc_r.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012317$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012318if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012319 $as_echo_n "(cached) " >&6
12320else
12321 ac_check_lib_save_LIBS=$LIBS
12322LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012324/* end confdefs.h. */
12325
12326/* Override any GCC internal prototype to avoid an error.
12327 Use char because int might match the return type of a GCC
12328 builtin and then its argument prototype would still apply. */
12329#ifdef __cplusplus
12330extern "C"
12331#endif
12332char pthread_kill ();
12333int
12334main ()
12335{
12336return pthread_kill ();
12337 ;
12338 return 0;
12339}
12340_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012341if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012342 ac_cv_lib_pthread_pthread_kill=yes
12343else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012344 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012345fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012346rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012348LIBS=$ac_check_lib_save_LIBS
12349fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012351$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012352if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012353 gl_have_pthread=yes
12354 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
12355 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12356fi
12357
12358 if test -z "$gl_have_pthread"; then
12359 # For FreeBSD 4.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012361$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012362if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012363 $as_echo_n "(cached) " >&6
12364else
12365 ac_check_lib_save_LIBS=$LIBS
12366LIBS="-lc_r $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012368/* end confdefs.h. */
12369
12370/* Override any GCC internal prototype to avoid an error.
12371 Use char because int might match the return type of a GCC
12372 builtin and then its argument prototype would still apply. */
12373#ifdef __cplusplus
12374extern "C"
12375#endif
12376char pthread_kill ();
12377int
12378main ()
12379{
12380return pthread_kill ();
12381 ;
12382 return 0;
12383}
12384_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012385if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012386 ac_cv_lib_c_r_pthread_kill=yes
12387else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012388 ac_cv_lib_c_r_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012389fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012390rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012392LIBS=$ac_check_lib_save_LIBS
12393fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012395$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012396if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012397 gl_have_pthread=yes
12398 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12399 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12400fi
12401
12402 fi
12403 fi
12404 if test -n "$gl_have_pthread"; then
12405 gl_threads_api=posix
12406
Scott James Remnantfde82c92009-09-22 10:04:15 -070012407$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012408
12409 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12410 if test $gl_have_weak = yes; then
12411
Scott James Remnantfde82c92009-09-22 10:04:15 -070012412$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012413
12414 LIBTHREAD=
12415 LTLIBTHREAD=
12416 fi
12417 fi
12418 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
12419 # pthread_rwlock_* functions.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012420 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
12421"
12422if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012423
Scott James Remnantfde82c92009-09-22 10:04:15 -070012424$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012425
12426fi
12427
12428 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012430/* end confdefs.h. */
12431#include <pthread.h>
12432int
12433main ()
12434{
12435#if __FreeBSD__ == 4
12436error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
12437#else
12438int x = (int)PTHREAD_MUTEX_RECURSIVE;
12439return !x;
12440#endif
12441 ;
12442 return 0;
12443}
12444_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012445if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012446
Scott James Remnantfde82c92009-09-22 10:04:15 -070012447$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012448
12449fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010012450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 fi
12453 fi
12454 if test -z "$gl_have_pthread"; then
12455 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12456 gl_have_solaristhread=
12457 gl_save_LIBS="$LIBS"
12458 LIBS="$LIBS -lthread"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012460/* end confdefs.h. */
12461#include <thread.h>
12462#include <synch.h>
12463int
12464main ()
12465{
12466thr_self();
12467 ;
12468 return 0;
12469}
12470_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012471if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012472 gl_have_solaristhread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012473fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012474rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012476 LIBS="$gl_save_LIBS"
12477 if test -n "$gl_have_solaristhread"; then
12478 gl_threads_api=solaris
12479 LIBTHREAD=-lthread
12480 LTLIBTHREAD=-lthread
12481 LIBMULTITHREAD="$LIBTHREAD"
12482 LTLIBMULTITHREAD="$LTLIBTHREAD"
12483
Scott James Remnantfde82c92009-09-22 10:04:15 -070012484$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012485
12486 if test $gl_have_weak = yes; then
12487
Scott James Remnantfde82c92009-09-22 10:04:15 -070012488$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012489
12490 LIBTHREAD=
12491 LTLIBTHREAD=
12492 fi
12493 fi
12494 fi
12495 fi
12496 if test "$gl_use_threads" = pth; then
12497 gl_save_CPPFLAGS="$CPPFLAGS"
12498
12499
12500
12501
12502
Scott James Remnantfde82c92009-09-22 10:04:15 -070012503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012504$as_echo_n "checking how to link with libpth... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012505if test "${ac_cv_libpth_libs+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012506 $as_echo_n "(cached) " >&6
12507else
12508
12509
12510
12511
12512 use_additional=yes
12513
12514 acl_save_prefix="$prefix"
12515 prefix="$acl_final_prefix"
12516 acl_save_exec_prefix="$exec_prefix"
12517 exec_prefix="$acl_final_exec_prefix"
12518
12519 eval additional_includedir=\"$includedir\"
12520 eval additional_libdir=\"$libdir\"
12521
12522 exec_prefix="$acl_save_exec_prefix"
12523 prefix="$acl_save_prefix"
12524
12525
12526# Check whether --with-libpth-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012527if test "${with_libpth_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012528 withval=$with_libpth_prefix;
12529 if test "X$withval" = "Xno"; then
12530 use_additional=no
12531 else
12532 if test "X$withval" = "X"; then
12533
12534 acl_save_prefix="$prefix"
12535 prefix="$acl_final_prefix"
12536 acl_save_exec_prefix="$exec_prefix"
12537 exec_prefix="$acl_final_exec_prefix"
12538
12539 eval additional_includedir=\"$includedir\"
12540 eval additional_libdir=\"$libdir\"
12541
12542 exec_prefix="$acl_save_exec_prefix"
12543 prefix="$acl_save_prefix"
12544
12545 else
12546 additional_includedir="$withval/include"
12547 additional_libdir="$withval/$acl_libdirstem"
12548 fi
12549 fi
12550
12551fi
12552
12553 LIBPTH=
12554 LTLIBPTH=
12555 INCPTH=
12556 rpathdirs=
12557 ltrpathdirs=
12558 names_already_handled=
12559 names_next_round='pth '
12560 while test -n "$names_next_round"; do
12561 names_this_round="$names_next_round"
12562 names_next_round=
12563 for name in $names_this_round; do
12564 already_handled=
12565 for n in $names_already_handled; do
12566 if test "$n" = "$name"; then
12567 already_handled=yes
12568 break
12569 fi
12570 done
12571 if test -z "$already_handled"; then
12572 names_already_handled="$names_already_handled $name"
12573 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12574 eval value=\"\$HAVE_LIB$uppername\"
12575 if test -n "$value"; then
12576 if test "$value" = yes; then
12577 eval value=\"\$LIB$uppername\"
12578 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12579 eval value=\"\$LTLIB$uppername\"
12580 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12581 else
12582 :
12583 fi
12584 else
12585 found_dir=
12586 found_la=
12587 found_so=
12588 found_a=
12589 if test $use_additional = yes; then
12590 if test -n "$shlibext" \
12591 && { test -f "$additional_libdir/lib$name.$shlibext" \
12592 || { test "$shlibext" = dll \
12593 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12594 found_dir="$additional_libdir"
12595 if test -f "$additional_libdir/lib$name.$shlibext"; then
12596 found_so="$additional_libdir/lib$name.$shlibext"
12597 else
12598 found_so="$additional_libdir/lib$name.dll.a"
12599 fi
12600 if test -f "$additional_libdir/lib$name.la"; then
12601 found_la="$additional_libdir/lib$name.la"
12602 fi
12603 else
12604 if test -f "$additional_libdir/lib$name.$libext"; then
12605 found_dir="$additional_libdir"
12606 found_a="$additional_libdir/lib$name.$libext"
12607 if test -f "$additional_libdir/lib$name.la"; then
12608 found_la="$additional_libdir/lib$name.la"
12609 fi
12610 fi
12611 fi
12612 fi
12613 if test "X$found_dir" = "X"; then
12614 for x in $LDFLAGS $LTLIBPTH; do
12615
12616 acl_save_prefix="$prefix"
12617 prefix="$acl_final_prefix"
12618 acl_save_exec_prefix="$exec_prefix"
12619 exec_prefix="$acl_final_exec_prefix"
12620 eval x=\"$x\"
12621 exec_prefix="$acl_save_exec_prefix"
12622 prefix="$acl_save_prefix"
12623
12624 case "$x" in
12625 -L*)
12626 dir=`echo "X$x" | sed -e 's/^X-L//'`
12627 if test -n "$shlibext" \
12628 && { test -f "$dir/lib$name.$shlibext" \
12629 || { test "$shlibext" = dll \
12630 && test -f "$dir/lib$name.dll.a"; }; }; then
12631 found_dir="$dir"
12632 if test -f "$dir/lib$name.$shlibext"; then
12633 found_so="$dir/lib$name.$shlibext"
12634 else
12635 found_so="$dir/lib$name.dll.a"
12636 fi
12637 if test -f "$dir/lib$name.la"; then
12638 found_la="$dir/lib$name.la"
12639 fi
12640 else
12641 if test -f "$dir/lib$name.$libext"; then
12642 found_dir="$dir"
12643 found_a="$dir/lib$name.$libext"
12644 if test -f "$dir/lib$name.la"; then
12645 found_la="$dir/lib$name.la"
12646 fi
12647 fi
12648 fi
12649 ;;
12650 esac
12651 if test "X$found_dir" != "X"; then
12652 break
12653 fi
12654 done
12655 fi
12656 if test "X$found_dir" != "X"; then
12657 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12658 if test "X$found_so" != "X"; then
12659 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12660 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12661 else
12662 haveit=
12663 for x in $ltrpathdirs; do
12664 if test "X$x" = "X$found_dir"; then
12665 haveit=yes
12666 break
12667 fi
12668 done
12669 if test -z "$haveit"; then
12670 ltrpathdirs="$ltrpathdirs $found_dir"
12671 fi
12672 if test "$hardcode_direct" = yes; then
12673 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12674 else
12675 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12676 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12677 haveit=
12678 for x in $rpathdirs; do
12679 if test "X$x" = "X$found_dir"; then
12680 haveit=yes
12681 break
12682 fi
12683 done
12684 if test -z "$haveit"; then
12685 rpathdirs="$rpathdirs $found_dir"
12686 fi
12687 else
12688 haveit=
12689 for x in $LDFLAGS $LIBPTH; do
12690
12691 acl_save_prefix="$prefix"
12692 prefix="$acl_final_prefix"
12693 acl_save_exec_prefix="$exec_prefix"
12694 exec_prefix="$acl_final_exec_prefix"
12695 eval x=\"$x\"
12696 exec_prefix="$acl_save_exec_prefix"
12697 prefix="$acl_save_prefix"
12698
12699 if test "X$x" = "X-L$found_dir"; then
12700 haveit=yes
12701 break
12702 fi
12703 done
12704 if test -z "$haveit"; then
12705 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12706 fi
12707 if test "$hardcode_minus_L" != no; then
12708 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12709 else
12710 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12711 fi
12712 fi
12713 fi
12714 fi
12715 else
12716 if test "X$found_a" != "X"; then
12717 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12718 else
12719 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12720 fi
12721 fi
12722 additional_includedir=
12723 case "$found_dir" in
12724 */$acl_libdirstem | */$acl_libdirstem/)
12725 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12726 additional_includedir="$basedir/include"
12727 ;;
12728 esac
12729 if test "X$additional_includedir" != "X"; then
12730 if test "X$additional_includedir" != "X/usr/include"; then
12731 haveit=
12732 if test "X$additional_includedir" = "X/usr/local/include"; then
12733 if test -n "$GCC"; then
12734 case $host_os in
12735 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12736 esac
12737 fi
12738 fi
12739 if test -z "$haveit"; then
12740 for x in $CPPFLAGS $INCPTH; do
12741
12742 acl_save_prefix="$prefix"
12743 prefix="$acl_final_prefix"
12744 acl_save_exec_prefix="$exec_prefix"
12745 exec_prefix="$acl_final_exec_prefix"
12746 eval x=\"$x\"
12747 exec_prefix="$acl_save_exec_prefix"
12748 prefix="$acl_save_prefix"
12749
12750 if test "X$x" = "X-I$additional_includedir"; then
12751 haveit=yes
12752 break
12753 fi
12754 done
12755 if test -z "$haveit"; then
12756 if test -d "$additional_includedir"; then
12757 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12758 fi
12759 fi
12760 fi
12761 fi
12762 fi
12763 if test -n "$found_la"; then
12764 save_libdir="$libdir"
12765 case "$found_la" in
12766 */* | *\\*) . "$found_la" ;;
12767 *) . "./$found_la" ;;
12768 esac
12769 libdir="$save_libdir"
12770 for dep in $dependency_libs; do
12771 case "$dep" in
12772 -L*)
12773 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12774 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12775 haveit=
12776 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12777 if test -n "$GCC"; then
12778 case $host_os in
12779 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12780 esac
12781 fi
12782 fi
12783 if test -z "$haveit"; then
12784 haveit=
12785 for x in $LDFLAGS $LIBPTH; do
12786
12787 acl_save_prefix="$prefix"
12788 prefix="$acl_final_prefix"
12789 acl_save_exec_prefix="$exec_prefix"
12790 exec_prefix="$acl_final_exec_prefix"
12791 eval x=\"$x\"
12792 exec_prefix="$acl_save_exec_prefix"
12793 prefix="$acl_save_prefix"
12794
12795 if test "X$x" = "X-L$additional_libdir"; then
12796 haveit=yes
12797 break
12798 fi
12799 done
12800 if test -z "$haveit"; then
12801 if test -d "$additional_libdir"; then
12802 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12803 fi
12804 fi
12805 haveit=
12806 for x in $LDFLAGS $LTLIBPTH; do
12807
12808 acl_save_prefix="$prefix"
12809 prefix="$acl_final_prefix"
12810 acl_save_exec_prefix="$exec_prefix"
12811 exec_prefix="$acl_final_exec_prefix"
12812 eval x=\"$x\"
12813 exec_prefix="$acl_save_exec_prefix"
12814 prefix="$acl_save_prefix"
12815
12816 if test "X$x" = "X-L$additional_libdir"; then
12817 haveit=yes
12818 break
12819 fi
12820 done
12821 if test -z "$haveit"; then
12822 if test -d "$additional_libdir"; then
12823 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12824 fi
12825 fi
12826 fi
12827 fi
12828 ;;
12829 -R*)
12830 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12831 if test "$enable_rpath" != no; then
12832 haveit=
12833 for x in $rpathdirs; do
12834 if test "X$x" = "X$dir"; then
12835 haveit=yes
12836 break
12837 fi
12838 done
12839 if test -z "$haveit"; then
12840 rpathdirs="$rpathdirs $dir"
12841 fi
12842 haveit=
12843 for x in $ltrpathdirs; do
12844 if test "X$x" = "X$dir"; then
12845 haveit=yes
12846 break
12847 fi
12848 done
12849 if test -z "$haveit"; then
12850 ltrpathdirs="$ltrpathdirs $dir"
12851 fi
12852 fi
12853 ;;
12854 -l*)
12855 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12856 ;;
12857 *.la)
12858 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12859 ;;
12860 *)
12861 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12862 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12863 ;;
12864 esac
12865 done
12866 fi
12867 else
12868 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12869 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12870 fi
12871 fi
12872 fi
12873 done
12874 done
12875 if test "X$rpathdirs" != "X"; then
12876 if test -n "$hardcode_libdir_separator"; then
12877 alldirs=
12878 for found_dir in $rpathdirs; do
12879 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12880 done
12881 acl_save_libdir="$libdir"
12882 libdir="$alldirs"
12883 eval flag=\"$hardcode_libdir_flag_spec\"
12884 libdir="$acl_save_libdir"
12885 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12886 else
12887 for found_dir in $rpathdirs; do
12888 acl_save_libdir="$libdir"
12889 libdir="$found_dir"
12890 eval flag=\"$hardcode_libdir_flag_spec\"
12891 libdir="$acl_save_libdir"
12892 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12893 done
12894 fi
12895 fi
12896 if test "X$ltrpathdirs" != "X"; then
12897 for found_dir in $ltrpathdirs; do
12898 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12899 done
12900 fi
12901
12902 ac_cv_libpth_libs="$LIBPTH"
12903 ac_cv_libpth_ltlibs="$LTLIBPTH"
12904 ac_cv_libpth_cppflags="$INCPTH"
12905
12906fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012908$as_echo "$ac_cv_libpth_libs" >&6; }
12909 LIBPTH="$ac_cv_libpth_libs"
12910 LTLIBPTH="$ac_cv_libpth_ltlibs"
12911 INCPTH="$ac_cv_libpth_cppflags"
12912
12913 for element in $INCPTH; do
12914 haveit=
12915 for x in $CPPFLAGS; do
12916
12917 acl_save_prefix="$prefix"
12918 prefix="$acl_final_prefix"
12919 acl_save_exec_prefix="$exec_prefix"
12920 exec_prefix="$acl_final_exec_prefix"
12921 eval x=\"$x\"
12922 exec_prefix="$acl_save_exec_prefix"
12923 prefix="$acl_save_prefix"
12924
12925 if test "X$x" = "X$element"; then
12926 haveit=yes
12927 break
12928 fi
12929 done
12930 if test -z "$haveit"; then
12931 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12932 fi
12933 done
12934
12935
12936
12937 HAVE_LIBPTH=yes
12938
12939
12940
12941 gl_have_pth=
12942 gl_save_LIBS="$LIBS"
12943 LIBS="$LIBS -lpth"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012945/* end confdefs.h. */
12946#include <pth.h>
12947int
12948main ()
12949{
12950pth_self();
12951 ;
12952 return 0;
12953}
12954_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012955if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012956 gl_have_pth=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012957fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012958rm -f core conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012960 LIBS="$gl_save_LIBS"
12961 if test -n "$gl_have_pth"; then
12962 gl_threads_api=pth
12963 LIBTHREAD="$LIBPTH"
12964 LTLIBTHREAD="$LTLIBPTH"
12965 LIBMULTITHREAD="$LIBTHREAD"
12966 LTLIBMULTITHREAD="$LTLIBTHREAD"
12967
Scott James Remnantfde82c92009-09-22 10:04:15 -070012968$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012969
12970 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12971 if test $gl_have_weak = yes; then
12972
Scott James Remnantfde82c92009-09-22 10:04:15 -070012973$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012974
12975 LIBTHREAD=
12976 LTLIBTHREAD=
12977 fi
12978 fi
12979 else
12980 CPPFLAGS="$gl_save_CPPFLAGS"
12981 fi
12982 fi
12983 if test -z "$gl_have_pthread"; then
12984 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
12985 if { case "$host_os" in
12986 mingw*) true;;
12987 *) false;;
12988 esac
12989 }; then
12990 gl_threads_api=win32
12991
Scott James Remnantfde82c92009-09-22 10:04:15 -070012992$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012993
12994 fi
12995 fi
12996 fi
12997 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012999$as_echo_n "checking for multithread API to use... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013001$as_echo "$gl_threads_api" >&6; }
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021 use_additional=yes
13022
13023 acl_save_prefix="$prefix"
13024 prefix="$acl_final_prefix"
13025 acl_save_exec_prefix="$exec_prefix"
13026 exec_prefix="$acl_final_exec_prefix"
13027
13028 eval additional_includedir=\"$includedir\"
13029 eval additional_libdir=\"$libdir\"
13030
13031 exec_prefix="$acl_save_exec_prefix"
13032 prefix="$acl_save_prefix"
13033
13034
13035# Check whether --with-libiconv-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013036if test "${with_libiconv_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013037 withval=$with_libiconv_prefix;
13038 if test "X$withval" = "Xno"; then
13039 use_additional=no
13040 else
13041 if test "X$withval" = "X"; then
13042
13043 acl_save_prefix="$prefix"
13044 prefix="$acl_final_prefix"
13045 acl_save_exec_prefix="$exec_prefix"
13046 exec_prefix="$acl_final_exec_prefix"
13047
13048 eval additional_includedir=\"$includedir\"
13049 eval additional_libdir=\"$libdir\"
13050
13051 exec_prefix="$acl_save_exec_prefix"
13052 prefix="$acl_save_prefix"
13053
13054 else
13055 additional_includedir="$withval/include"
13056 additional_libdir="$withval/$acl_libdirstem"
13057 fi
13058 fi
13059
13060fi
13061
13062 LIBICONV=
13063 LTLIBICONV=
13064 INCICONV=
13065 rpathdirs=
13066 ltrpathdirs=
13067 names_already_handled=
13068 names_next_round='iconv '
13069 while test -n "$names_next_round"; do
13070 names_this_round="$names_next_round"
13071 names_next_round=
13072 for name in $names_this_round; do
13073 already_handled=
13074 for n in $names_already_handled; do
13075 if test "$n" = "$name"; then
13076 already_handled=yes
13077 break
13078 fi
13079 done
13080 if test -z "$already_handled"; then
13081 names_already_handled="$names_already_handled $name"
13082 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13083 eval value=\"\$HAVE_LIB$uppername\"
13084 if test -n "$value"; then
13085 if test "$value" = yes; then
13086 eval value=\"\$LIB$uppername\"
13087 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13088 eval value=\"\$LTLIB$uppername\"
13089 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13090 else
13091 :
13092 fi
13093 else
13094 found_dir=
13095 found_la=
13096 found_so=
13097 found_a=
13098 if test $use_additional = yes; then
13099 if test -n "$shlibext" \
13100 && { test -f "$additional_libdir/lib$name.$shlibext" \
13101 || { test "$shlibext" = dll \
13102 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13103 found_dir="$additional_libdir"
13104 if test -f "$additional_libdir/lib$name.$shlibext"; then
13105 found_so="$additional_libdir/lib$name.$shlibext"
13106 else
13107 found_so="$additional_libdir/lib$name.dll.a"
13108 fi
13109 if test -f "$additional_libdir/lib$name.la"; then
13110 found_la="$additional_libdir/lib$name.la"
13111 fi
13112 else
13113 if test -f "$additional_libdir/lib$name.$libext"; then
13114 found_dir="$additional_libdir"
13115 found_a="$additional_libdir/lib$name.$libext"
13116 if test -f "$additional_libdir/lib$name.la"; then
13117 found_la="$additional_libdir/lib$name.la"
13118 fi
13119 fi
13120 fi
13121 fi
13122 if test "X$found_dir" = "X"; then
13123 for x in $LDFLAGS $LTLIBICONV; do
13124
13125 acl_save_prefix="$prefix"
13126 prefix="$acl_final_prefix"
13127 acl_save_exec_prefix="$exec_prefix"
13128 exec_prefix="$acl_final_exec_prefix"
13129 eval x=\"$x\"
13130 exec_prefix="$acl_save_exec_prefix"
13131 prefix="$acl_save_prefix"
13132
13133 case "$x" in
13134 -L*)
13135 dir=`echo "X$x" | sed -e 's/^X-L//'`
13136 if test -n "$shlibext" \
13137 && { test -f "$dir/lib$name.$shlibext" \
13138 || { test "$shlibext" = dll \
13139 && test -f "$dir/lib$name.dll.a"; }; }; then
13140 found_dir="$dir"
13141 if test -f "$dir/lib$name.$shlibext"; then
13142 found_so="$dir/lib$name.$shlibext"
13143 else
13144 found_so="$dir/lib$name.dll.a"
13145 fi
13146 if test -f "$dir/lib$name.la"; then
13147 found_la="$dir/lib$name.la"
13148 fi
13149 else
13150 if test -f "$dir/lib$name.$libext"; then
13151 found_dir="$dir"
13152 found_a="$dir/lib$name.$libext"
13153 if test -f "$dir/lib$name.la"; then
13154 found_la="$dir/lib$name.la"
13155 fi
13156 fi
13157 fi
13158 ;;
13159 esac
13160 if test "X$found_dir" != "X"; then
13161 break
13162 fi
13163 done
13164 fi
13165 if test "X$found_dir" != "X"; then
13166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13167 if test "X$found_so" != "X"; then
13168 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13169 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13170 else
13171 haveit=
13172 for x in $ltrpathdirs; do
13173 if test "X$x" = "X$found_dir"; then
13174 haveit=yes
13175 break
13176 fi
13177 done
13178 if test -z "$haveit"; then
13179 ltrpathdirs="$ltrpathdirs $found_dir"
13180 fi
13181 if test "$hardcode_direct" = yes; then
13182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13183 else
13184 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13186 haveit=
13187 for x in $rpathdirs; do
13188 if test "X$x" = "X$found_dir"; then
13189 haveit=yes
13190 break
13191 fi
13192 done
13193 if test -z "$haveit"; then
13194 rpathdirs="$rpathdirs $found_dir"
13195 fi
13196 else
13197 haveit=
13198 for x in $LDFLAGS $LIBICONV; do
13199
13200 acl_save_prefix="$prefix"
13201 prefix="$acl_final_prefix"
13202 acl_save_exec_prefix="$exec_prefix"
13203 exec_prefix="$acl_final_exec_prefix"
13204 eval x=\"$x\"
13205 exec_prefix="$acl_save_exec_prefix"
13206 prefix="$acl_save_prefix"
13207
13208 if test "X$x" = "X-L$found_dir"; then
13209 haveit=yes
13210 break
13211 fi
13212 done
13213 if test -z "$haveit"; then
13214 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13215 fi
13216 if test "$hardcode_minus_L" != no; then
13217 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13218 else
13219 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13220 fi
13221 fi
13222 fi
13223 fi
13224 else
13225 if test "X$found_a" != "X"; then
13226 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13227 else
13228 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13229 fi
13230 fi
13231 additional_includedir=
13232 case "$found_dir" in
13233 */$acl_libdirstem | */$acl_libdirstem/)
13234 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13235 additional_includedir="$basedir/include"
13236 ;;
13237 esac
13238 if test "X$additional_includedir" != "X"; then
13239 if test "X$additional_includedir" != "X/usr/include"; then
13240 haveit=
13241 if test "X$additional_includedir" = "X/usr/local/include"; then
13242 if test -n "$GCC"; then
13243 case $host_os in
13244 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13245 esac
13246 fi
13247 fi
13248 if test -z "$haveit"; then
13249 for x in $CPPFLAGS $INCICONV; do
13250
13251 acl_save_prefix="$prefix"
13252 prefix="$acl_final_prefix"
13253 acl_save_exec_prefix="$exec_prefix"
13254 exec_prefix="$acl_final_exec_prefix"
13255 eval x=\"$x\"
13256 exec_prefix="$acl_save_exec_prefix"
13257 prefix="$acl_save_prefix"
13258
13259 if test "X$x" = "X-I$additional_includedir"; then
13260 haveit=yes
13261 break
13262 fi
13263 done
13264 if test -z "$haveit"; then
13265 if test -d "$additional_includedir"; then
13266 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13267 fi
13268 fi
13269 fi
13270 fi
13271 fi
13272 if test -n "$found_la"; then
13273 save_libdir="$libdir"
13274 case "$found_la" in
13275 */* | *\\*) . "$found_la" ;;
13276 *) . "./$found_la" ;;
13277 esac
13278 libdir="$save_libdir"
13279 for dep in $dependency_libs; do
13280 case "$dep" in
13281 -L*)
13282 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13283 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13284 haveit=
13285 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13286 if test -n "$GCC"; then
13287 case $host_os in
13288 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13289 esac
13290 fi
13291 fi
13292 if test -z "$haveit"; then
13293 haveit=
13294 for x in $LDFLAGS $LIBICONV; do
13295
13296 acl_save_prefix="$prefix"
13297 prefix="$acl_final_prefix"
13298 acl_save_exec_prefix="$exec_prefix"
13299 exec_prefix="$acl_final_exec_prefix"
13300 eval x=\"$x\"
13301 exec_prefix="$acl_save_exec_prefix"
13302 prefix="$acl_save_prefix"
13303
13304 if test "X$x" = "X-L$additional_libdir"; then
13305 haveit=yes
13306 break
13307 fi
13308 done
13309 if test -z "$haveit"; then
13310 if test -d "$additional_libdir"; then
13311 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13312 fi
13313 fi
13314 haveit=
13315 for x in $LDFLAGS $LTLIBICONV; do
13316
13317 acl_save_prefix="$prefix"
13318 prefix="$acl_final_prefix"
13319 acl_save_exec_prefix="$exec_prefix"
13320 exec_prefix="$acl_final_exec_prefix"
13321 eval x=\"$x\"
13322 exec_prefix="$acl_save_exec_prefix"
13323 prefix="$acl_save_prefix"
13324
13325 if test "X$x" = "X-L$additional_libdir"; then
13326 haveit=yes
13327 break
13328 fi
13329 done
13330 if test -z "$haveit"; then
13331 if test -d "$additional_libdir"; then
13332 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13333 fi
13334 fi
13335 fi
13336 fi
13337 ;;
13338 -R*)
13339 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13340 if test "$enable_rpath" != no; then
13341 haveit=
13342 for x in $rpathdirs; do
13343 if test "X$x" = "X$dir"; then
13344 haveit=yes
13345 break
13346 fi
13347 done
13348 if test -z "$haveit"; then
13349 rpathdirs="$rpathdirs $dir"
13350 fi
13351 haveit=
13352 for x in $ltrpathdirs; do
13353 if test "X$x" = "X$dir"; then
13354 haveit=yes
13355 break
13356 fi
13357 done
13358 if test -z "$haveit"; then
13359 ltrpathdirs="$ltrpathdirs $dir"
13360 fi
13361 fi
13362 ;;
13363 -l*)
13364 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13365 ;;
13366 *.la)
13367 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13368 ;;
13369 *)
13370 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13371 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13372 ;;
13373 esac
13374 done
13375 fi
13376 else
13377 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13378 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13379 fi
13380 fi
13381 fi
13382 done
13383 done
13384 if test "X$rpathdirs" != "X"; then
13385 if test -n "$hardcode_libdir_separator"; then
13386 alldirs=
13387 for found_dir in $rpathdirs; do
13388 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13389 done
13390 acl_save_libdir="$libdir"
13391 libdir="$alldirs"
13392 eval flag=\"$hardcode_libdir_flag_spec\"
13393 libdir="$acl_save_libdir"
13394 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13395 else
13396 for found_dir in $rpathdirs; do
13397 acl_save_libdir="$libdir"
13398 libdir="$found_dir"
13399 eval flag=\"$hardcode_libdir_flag_spec\"
13400 libdir="$acl_save_libdir"
13401 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13402 done
13403 fi
13404 fi
13405 if test "X$ltrpathdirs" != "X"; then
13406 for found_dir in $ltrpathdirs; do
13407 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13408 done
13409 fi
13410
13411
13412
13413
13414
Scott James Remnantfde82c92009-09-22 10:04:15 -070013415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013416/* end confdefs.h. */
13417int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13418int
13419main ()
13420{
13421
13422 ;
13423 return 0;
13424}
13425_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013426if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013427
Scott James Remnantfde82c92009-09-22 10:04:15 -070013428$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013429
13430fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013431rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013433
Scott James Remnantfde82c92009-09-22 10:04:15 -070013434 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
13435do :
13436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13438eval as_val=\$$as_ac_Header
13439 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013440 cat >>confdefs.h <<_ACEOF
13441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13442_ACEOF
13443
13444fi
13445
13446done
13447
Scott James Remnantfde82c92009-09-22 10:04:15 -070013448 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
Scott James Remnant65f683d2009-07-14 13:05:17 +010013449 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
13450 argz_next __fsetlocking
Scott James Remnantfde82c92009-09-22 10:04:15 -070013451do :
13452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13453ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13454eval as_val=\$$as_ac_var
13455 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013456 cat >>confdefs.h <<_ACEOF
13457#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13458_ACEOF
13459
13460fi
13461done
13462
13463
13464
Scott James Remnantfde82c92009-09-22 10:04:15 -070013465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013466$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013467if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013468 $as_echo_n "(cached) " >&6
13469else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013471/* end confdefs.h. */
13472#include <stdio.h>
13473int
13474main ()
13475{
13476
13477#ifndef feof_unlocked
13478 char *p = (char *) feof_unlocked;
13479#endif
13480
13481 ;
13482 return 0;
13483}
13484_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013485if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013486 ac_cv_have_decl_feof_unlocked=yes
13487else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013488 ac_cv_have_decl_feof_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013489fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013493$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
13494 if test $ac_cv_have_decl_feof_unlocked = yes; then
13495 gt_value=1
13496 else
13497 gt_value=0
13498 fi
13499
13500cat >>confdefs.h <<_ACEOF
13501#define HAVE_DECL_FEOF_UNLOCKED $gt_value
13502_ACEOF
13503
13504
13505
Scott James Remnantfde82c92009-09-22 10:04:15 -070013506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013507$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013508if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013509 $as_echo_n "(cached) " >&6
13510else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013512/* end confdefs.h. */
13513#include <stdio.h>
13514int
13515main ()
13516{
13517
13518#ifndef fgets_unlocked
13519 char *p = (char *) fgets_unlocked;
13520#endif
13521
13522 ;
13523 return 0;
13524}
13525_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013526if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013527 ac_cv_have_decl_fgets_unlocked=yes
13528else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013529 ac_cv_have_decl_fgets_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013530fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013534$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
13535 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13536 gt_value=1
13537 else
13538 gt_value=0
13539 fi
13540
13541cat >>confdefs.h <<_ACEOF
13542#define HAVE_DECL_FGETS_UNLOCKED $gt_value
13543_ACEOF
13544
13545
13546
13547
13548
13549
13550
13551
13552 am_save_CPPFLAGS="$CPPFLAGS"
13553
13554 for element in $INCICONV; do
13555 haveit=
13556 for x in $CPPFLAGS; do
13557
13558 acl_save_prefix="$prefix"
13559 prefix="$acl_final_prefix"
13560 acl_save_exec_prefix="$exec_prefix"
13561 exec_prefix="$acl_final_exec_prefix"
13562 eval x=\"$x\"
13563 exec_prefix="$acl_save_exec_prefix"
13564 prefix="$acl_save_prefix"
13565
13566 if test "X$x" = "X$element"; then
13567 haveit=yes
13568 break
13569 fi
13570 done
13571 if test -z "$haveit"; then
13572 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13573 fi
13574 done
13575
13576
Scott James Remnantfde82c92009-09-22 10:04:15 -070013577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013578$as_echo_n "checking for iconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013579if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013580 $as_echo_n "(cached) " >&6
13581else
13582
13583 am_cv_func_iconv="no, consider installing GNU libiconv"
13584 am_cv_lib_iconv=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070013585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013586/* end confdefs.h. */
13587#include <stdlib.h>
13588#include <iconv.h>
13589int
13590main ()
13591{
13592iconv_t cd = iconv_open("","");
13593 iconv(cd,NULL,NULL,NULL,NULL);
13594 iconv_close(cd);
13595 ;
13596 return 0;
13597}
13598_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013599if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013600 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013601fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013602rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013604 if test "$am_cv_func_iconv" != yes; then
13605 am_save_LIBS="$LIBS"
13606 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013608/* end confdefs.h. */
13609#include <stdlib.h>
13610#include <iconv.h>
13611int
13612main ()
13613{
13614iconv_t cd = iconv_open("","");
13615 iconv(cd,NULL,NULL,NULL,NULL);
13616 iconv_close(cd);
13617 ;
13618 return 0;
13619}
13620_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013621if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013622 am_cv_lib_iconv=yes
13623 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013624fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013625rm -f core conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013627 LIBS="$am_save_LIBS"
13628 fi
13629
13630fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013632$as_echo "$am_cv_func_iconv" >&6; }
13633 if test "$am_cv_func_iconv" = yes; then
13634
Scott James Remnantfde82c92009-09-22 10:04:15 -070013635$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013636
13637 fi
13638 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013640$as_echo_n "checking how to link with libiconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013642$as_echo "$LIBICONV" >&6; }
13643 else
13644 CPPFLAGS="$am_save_CPPFLAGS"
13645 LIBICONV=
13646 LTLIBICONV=
13647 fi
13648
13649
13650
13651 if test "$am_cv_func_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013653$as_echo_n "checking for iconv declaration... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013654 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013655 $as_echo_n "(cached) " >&6
13656else
13657
Scott James Remnantfde82c92009-09-22 10:04:15 -070013658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013659/* end confdefs.h. */
13660
13661#include <stdlib.h>
13662#include <iconv.h>
13663extern
13664#ifdef __cplusplus
13665"C"
13666#endif
13667#if defined(__STDC__) || defined(__cplusplus)
13668size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13669#else
13670size_t iconv();
13671#endif
13672
13673int
13674main ()
13675{
13676
13677 ;
13678 return 0;
13679}
13680_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013681if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013682 am_cv_proto_iconv_arg1=""
13683else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013684 am_cv_proto_iconv_arg1="const"
Scott James Remnant65f683d2009-07-14 13:05:17 +010013685fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 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);"
13688fi
13689
13690 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070013691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Scott James Remnant65f683d2009-07-14 13:05:17 +010013692 }$am_cv_proto_iconv" >&5
13693$as_echo "${ac_t:-
13694 }$am_cv_proto_iconv" >&6; }
13695
13696cat >>confdefs.h <<_ACEOF
13697#define ICONV_CONST $am_cv_proto_iconv_arg1
13698_ACEOF
13699
13700 fi
13701
13702
Scott James Remnantfde82c92009-09-22 10:04:15 -070013703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013704$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013705if test "${gt_cv_nl_locale_name+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013706 $as_echo_n "(cached) " >&6
13707else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013709/* end confdefs.h. */
13710#include <langinfo.h>
13711#include <locale.h>
13712int
13713main ()
13714{
13715char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
13716 ;
13717 return 0;
13718}
13719_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013720if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013721 gt_cv_nl_locale_name=yes
13722else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013723 gt_cv_nl_locale_name=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013724fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013725rm -f core conftest.err conftest.$ac_objext \
13726 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013727
13728fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013730$as_echo "$gt_cv_nl_locale_name" >&6; }
13731 if test $gt_cv_nl_locale_name = yes; then
13732
Scott James Remnantfde82c92009-09-22 10:04:15 -070013733$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013734
13735 fi
13736
13737 for ac_prog in bison
13738do
13739 # Extract the first word of "$ac_prog", so it can be a program name with args.
13740set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070013741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013742$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013743if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013744 $as_echo_n "(cached) " >&6
13745else
13746 if test -n "$INTLBISON"; then
13747 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13748else
13749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13750for as_dir in $PATH
13751do
13752 IFS=$as_save_IFS
13753 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013754 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010013755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13756 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013758 break 2
13759 fi
13760done
Scott James Remnantfde82c92009-09-22 10:04:15 -070013761 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010013762IFS=$as_save_IFS
13763
13764fi
13765fi
13766INTLBISON=$ac_cv_prog_INTLBISON
13767if test -n "$INTLBISON"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013769$as_echo "$INTLBISON" >&6; }
13770else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013772$as_echo "no" >&6; }
13773fi
13774
13775
13776 test -n "$INTLBISON" && break
13777done
13778
13779 if test -z "$INTLBISON"; then
13780 ac_verc_fail=yes
13781 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013783$as_echo_n "checking version of bison... " >&6; }
13784 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13785 case $ac_prog_version in
13786 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13787 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13788 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13789 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13790 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070013791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013792$as_echo "$ac_prog_version" >&6; }
13793 fi
13794 if test $ac_verc_fail = yes; then
13795 INTLBISON=:
13796 fi
13797
13798
Scott James Remnantfde82c92009-09-22 10:04:15 -070013799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013800$as_echo_n "checking for long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013801if test "${ac_cv_type_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013802 $as_echo_n "(cached) " >&6
13803else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013805/* end confdefs.h. */
13806long long int ll = 9223372036854775807ll;
13807 long long int nll = -9223372036854775807LL;
13808 typedef int a[((-9223372036854775807LL < 0
13809 && 0 < 9223372036854775807ll)
13810 ? 1 : -1)];
13811 int i = 63;
13812int
13813main ()
13814{
13815long long int llmax = 9223372036854775807ll;
13816 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13817 | (llmax / ll) | (llmax % ll));
13818 ;
13819 return 0;
13820}
13821_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013822if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013823 ac_cv_type_long_long_int=yes
13824else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013825 ac_cv_type_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013826fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013827rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013829fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013831$as_echo "$ac_cv_type_long_long_int" >&6; }
13832 if test $ac_cv_type_long_long_int = yes; then
13833
Scott James Remnantfde82c92009-09-22 10:04:15 -070013834$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013835
13836 fi
13837
13838
Scott James Remnantfde82c92009-09-22 10:04:15 -070013839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013840$as_echo_n "checking for long double... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013841if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013842 $as_echo_n "(cached) " >&6
13843else
13844 if test "$GCC" = yes; then
13845 gt_cv_c_long_double=yes
13846 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013848/* end confdefs.h. */
13849
13850 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
13851 long double foo = 0.0;
13852 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13853 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
13854
13855int
13856main ()
13857{
13858
13859 ;
13860 return 0;
13861}
13862_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013863if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013864 gt_cv_c_long_double=yes
13865else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013866 gt_cv_c_long_double=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013867fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 fi
13870fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013872$as_echo "$gt_cv_c_long_double" >&6; }
13873 if test $gt_cv_c_long_double = yes; then
13874
Scott James Remnantfde82c92009-09-22 10:04:15 -070013875$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013876
13877 fi
13878
13879
Scott James Remnantfde82c92009-09-22 10:04:15 -070013880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013881$as_echo_n "checking for wchar_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013882if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013883 $as_echo_n "(cached) " >&6
13884else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013886/* end confdefs.h. */
13887#include <stddef.h>
13888 wchar_t foo = (wchar_t)'\0';
13889int
13890main ()
13891{
13892
13893 ;
13894 return 0;
13895}
13896_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013897if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013898 gt_cv_c_wchar_t=yes
13899else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013900 gt_cv_c_wchar_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013901fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013905$as_echo "$gt_cv_c_wchar_t" >&6; }
13906 if test $gt_cv_c_wchar_t = yes; then
13907
Scott James Remnantfde82c92009-09-22 10:04:15 -070013908$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013909
13910 fi
13911
13912
Scott James Remnantfde82c92009-09-22 10:04:15 -070013913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013914$as_echo_n "checking for wint_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013915if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013916 $as_echo_n "(cached) " >&6
13917else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013919/* end confdefs.h. */
13920#include <wchar.h>
13921 wint_t foo = (wchar_t)'\0';
13922int
13923main ()
13924{
13925
13926 ;
13927 return 0;
13928}
13929_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013930if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013931 gt_cv_c_wint_t=yes
13932else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013933 gt_cv_c_wint_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013934fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13936fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013938$as_echo "$gt_cv_c_wint_t" >&6; }
13939 if test $gt_cv_c_wint_t = yes; then
13940
Scott James Remnantfde82c92009-09-22 10:04:15 -070013941$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013942
13943 fi
13944
13945
13946
13947
Scott James Remnantfde82c92009-09-22 10:04:15 -070013948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013949$as_echo_n "checking for intmax_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013950if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013951 $as_echo_n "(cached) " >&6
13952else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013954/* end confdefs.h. */
13955
13956#include <stddef.h>
13957#include <stdlib.h>
13958#if HAVE_STDINT_H_WITH_UINTMAX
13959#include <stdint.h>
13960#endif
13961#if HAVE_INTTYPES_H_WITH_UINTMAX
13962#include <inttypes.h>
13963#endif
13964
13965int
13966main ()
13967{
13968intmax_t x = -1;
13969 return !x;
13970 ;
13971 return 0;
13972}
13973_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013974if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013975 gt_cv_c_intmax_t=yes
13976else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013977 gt_cv_c_intmax_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013978fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013982$as_echo "$gt_cv_c_intmax_t" >&6; }
13983 if test $gt_cv_c_intmax_t = yes; then
13984
Scott James Remnantfde82c92009-09-22 10:04:15 -070013985$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013986
13987 fi
13988
13989
13990
Scott James Remnantfde82c92009-09-22 10:04:15 -070013991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013992$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013993if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013994 $as_echo_n "(cached) " >&6
13995else
13996
Scott James Remnantfde82c92009-09-22 10:04:15 -070013997 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013998
Scott James Remnantfde82c92009-09-22 10:04:15 -070013999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014000/* end confdefs.h. */
14001
14002#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
14003 notposix
14004#endif
14005
14006_ACEOF
14007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014008 $EGREP "notposix" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014009 gt_cv_func_printf_posix="guessing no"
14010else
14011 gt_cv_func_printf_posix="guessing yes"
14012fi
14013rm -f conftest*
14014
14015
14016else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014018/* end confdefs.h. */
14019
14020#include <stdio.h>
14021#include <string.h>
14022/* The string "%2$d %1$d", with dollar characters protected from the shell's
14023 dollar expansion (possibly an autoconf bug). */
14024static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
14025static char buf[100];
14026int main ()
14027{
14028 sprintf (buf, format, 33, 55);
14029 return (strcmp (buf, "55 33") != 0);
14030}
14031_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014032if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014033 gt_cv_func_printf_posix=yes
14034else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014035 gt_cv_func_printf_posix=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014036fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14038 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014039fi
14040
14041
Scott James Remnant65f683d2009-07-14 13:05:17 +010014042fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014044$as_echo "$gt_cv_func_printf_posix" >&6; }
14045 case $gt_cv_func_printf_posix in
14046 *yes)
14047
Scott James Remnantfde82c92009-09-22 10:04:15 -070014048$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014049
14050 ;;
14051 esac
14052
14053
Scott James Remnantfde82c92009-09-22 10:04:15 -070014054 { $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 +010014055$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 -070014056if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014057 $as_echo_n "(cached) " >&6
14058else
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 <features.h>
14063#ifdef __GNU_LIBRARY__
14064 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14065 Lucky GNU user
14066 #endif
14067#endif
14068
14069_ACEOF
14070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014071 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014072 ac_cv_gnu_library_2_1=yes
14073else
14074 ac_cv_gnu_library_2_1=no
14075fi
14076rm -f conftest*
14077
14078
14079
14080fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014082$as_echo "$ac_cv_gnu_library_2_1" >&6; }
14083
14084 GLIBC21="$ac_cv_gnu_library_2_1"
14085
14086
14087
Scott James Remnantfde82c92009-09-22 10:04:15 -070014088 for ac_header in stdint.h
14089do :
14090 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14091if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014092 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014093#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014094_ACEOF
14095
14096fi
14097
14098done
14099
Scott James Remnantfde82c92009-09-22 10:04:15 -070014100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014101$as_echo_n "checking for SIZE_MAX... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014102 if test "${gl_cv_size_max+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014103 $as_echo_n "(cached) " >&6
14104else
14105
14106 gl_cv_size_max=
Scott James Remnantfde82c92009-09-22 10:04:15 -070014107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014108/* end confdefs.h. */
14109
14110#include <limits.h>
14111#if HAVE_STDINT_H
14112#include <stdint.h>
14113#endif
14114#ifdef SIZE_MAX
14115Found it
14116#endif
14117
14118_ACEOF
14119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014120 $EGREP "Found it" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014121 gl_cv_size_max=yes
14122fi
14123rm -f conftest*
14124
14125 if test -z "$gl_cv_size_max"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014126 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
14127#include <limits.h>"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014128
Scott James Remnant65f683d2009-07-14 13:05:17 +010014129else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014130 size_t_bits_minus_1=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014131fi
14132
Scott James Remnantfde82c92009-09-22 10:04:15 -070014133
14134 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14135
Scott James Remnant65f683d2009-07-14 13:05:17 +010014136else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014137 fits_in_uint=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014138fi
14139
Scott James Remnant65f683d2009-07-14 13:05:17 +010014140
14141 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14142 if test $fits_in_uint = 1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014144/* end confdefs.h. */
14145#include <stddef.h>
14146 extern size_t foo;
14147 extern unsigned long foo;
14148
14149int
14150main ()
14151{
14152
14153 ;
14154 return 0;
14155}
14156_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014157if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014158 fits_in_uint=0
Scott James Remnant65f683d2009-07-14 13:05:17 +010014159fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 fi
14162 if test $fits_in_uint = 1; then
14163 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14164 else
14165 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14166 fi
14167 else
14168 gl_cv_size_max='((size_t)~(size_t)0)'
14169 fi
14170 fi
14171
14172fi
14173
Scott James Remnantfde82c92009-09-22 10:04:15 -070014174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014175$as_echo "$gl_cv_size_max" >&6; }
14176 if test "$gl_cv_size_max" != yes; then
14177
14178cat >>confdefs.h <<_ACEOF
14179#define SIZE_MAX $gl_cv_size_max
14180_ACEOF
14181
14182 fi
14183
14184
14185
14186
Scott James Remnantfde82c92009-09-22 10:04:15 -070014187 for ac_header in stdint.h
14188do :
14189 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14190if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014191 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014192#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014193_ACEOF
14194
14195fi
14196
14197done
14198
14199
14200
Scott James Remnantfde82c92009-09-22 10:04:15 -070014201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014202$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014203if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014204 $as_echo_n "(cached) " >&6
14205else
14206 gt_save_LIBS="$LIBS"
14207 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014209/* end confdefs.h. */
14210#include <CoreFoundation/CFPreferences.h>
14211int
14212main ()
14213{
14214CFPreferencesCopyAppValue(NULL, NULL)
14215 ;
14216 return 0;
14217}
14218_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014219if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014220 gt_cv_func_CFPreferencesCopyAppValue=yes
14221else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014222 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014223fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014224rm -f core conftest.err conftest.$ac_objext \
14225 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014226 LIBS="$gt_save_LIBS"
14227fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014229$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14230 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14231
Scott James Remnantfde82c92009-09-22 10:04:15 -070014232$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014233
14234 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014236$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014237if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014238 $as_echo_n "(cached) " >&6
14239else
14240 gt_save_LIBS="$LIBS"
14241 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014243/* end confdefs.h. */
14244#include <CoreFoundation/CFLocale.h>
14245int
14246main ()
14247{
14248CFLocaleCopyCurrent();
14249 ;
14250 return 0;
14251}
14252_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014253if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014254 gt_cv_func_CFLocaleCopyCurrent=yes
14255else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014256 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014257fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014258rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014260 LIBS="$gt_save_LIBS"
14261fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014263$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14264 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14265
Scott James Remnantfde82c92009-09-22 10:04:15 -070014266$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014267
14268 fi
14269 INTL_MACOSX_LIBS=
14270 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14271 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14272 fi
14273
14274
14275
14276
14277
14278
14279
Scott James Remnantfde82c92009-09-22 10:04:15 -070014280 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14281if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014282
Scott James Remnant2a66c572009-09-15 03:19:16 +010014283else
14284
Scott James Remnantfde82c92009-09-22 10:04:15 -070014285$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant2a66c572009-09-15 03:19:16 +010014286
14287
14288fi
14289
Scott James Remnantfde82c92009-09-22 10:04:15 -070014290 for ac_header in stddef.h stdlib.h string.h
14291do :
14292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14293ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14294eval as_val=\$$as_ac_Header
14295 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014296 cat >>confdefs.h <<_ACEOF
14297#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298_ACEOF
14299
14300fi
14301
14302done
14303
Scott James Remnantfde82c92009-09-22 10:04:15 -070014304 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
14305do :
14306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14307ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14308eval as_val=\$$as_ac_var
14309 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014310 cat >>confdefs.h <<_ACEOF
14311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14312_ACEOF
14313
14314fi
14315done
14316
14317
14318
Scott James Remnantfde82c92009-09-22 10:04:15 -070014319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014320$as_echo_n "checking whether _snprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014321if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014322 $as_echo_n "(cached) " >&6
14323else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014325/* end confdefs.h. */
14326#include <stdio.h>
14327int
14328main ()
14329{
14330
14331#ifndef _snprintf
14332 char *p = (char *) _snprintf;
14333#endif
14334
14335 ;
14336 return 0;
14337}
14338_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014339if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014340 ac_cv_have_decl__snprintf=yes
14341else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014342 ac_cv_have_decl__snprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014343fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014347$as_echo "$ac_cv_have_decl__snprintf" >&6; }
14348 if test $ac_cv_have_decl__snprintf = yes; then
14349 gt_value=1
14350 else
14351 gt_value=0
14352 fi
14353
14354cat >>confdefs.h <<_ACEOF
14355#define HAVE_DECL__SNPRINTF $gt_value
14356_ACEOF
14357
14358
14359
Scott James Remnantfde82c92009-09-22 10:04:15 -070014360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014361$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014362if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014363 $as_echo_n "(cached) " >&6
14364else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014366/* end confdefs.h. */
14367#include <stdio.h>
14368int
14369main ()
14370{
14371
14372#ifndef _snwprintf
14373 char *p = (char *) _snwprintf;
14374#endif
14375
14376 ;
14377 return 0;
14378}
14379_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014380if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014381 ac_cv_have_decl__snwprintf=yes
14382else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014383 ac_cv_have_decl__snwprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014384fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014388$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
14389 if test $ac_cv_have_decl__snwprintf = yes; then
14390 gt_value=1
14391 else
14392 gt_value=0
14393 fi
14394
14395cat >>confdefs.h <<_ACEOF
14396#define HAVE_DECL__SNWPRINTF $gt_value
14397_ACEOF
14398
14399
14400
14401
Scott James Remnantfde82c92009-09-22 10:04:15 -070014402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014403$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014404if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014405 $as_echo_n "(cached) " >&6
14406else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014408/* end confdefs.h. */
14409#include <stdio.h>
14410int
14411main ()
14412{
14413
14414#ifndef getc_unlocked
14415 char *p = (char *) getc_unlocked;
14416#endif
14417
14418 ;
14419 return 0;
14420}
14421_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014422if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014423 ac_cv_have_decl_getc_unlocked=yes
14424else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014425 ac_cv_have_decl_getc_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014426fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014430$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
14431 if test $ac_cv_have_decl_getc_unlocked = yes; then
14432 gt_value=1
14433 else
14434 gt_value=0
14435 fi
14436
14437cat >>confdefs.h <<_ACEOF
14438#define HAVE_DECL_GETC_UNLOCKED $gt_value
14439_ACEOF
14440
14441
14442
14443 case $gt_cv_func_printf_posix in
14444 *yes) HAVE_POSIX_PRINTF=1 ;;
14445 *) HAVE_POSIX_PRINTF=0 ;;
14446 esac
14447
14448 if test "$ac_cv_func_asprintf" = yes; then
14449 HAVE_ASPRINTF=1
14450 else
14451 HAVE_ASPRINTF=0
14452 fi
14453
14454 if test "$ac_cv_func_snprintf" = yes; then
14455 HAVE_SNPRINTF=1
14456 else
14457 HAVE_SNPRINTF=0
14458 fi
14459
14460 if test "$ac_cv_func_wprintf" = yes; then
14461 HAVE_WPRINTF=1
14462 else
14463 HAVE_WPRINTF=0
14464 fi
14465
14466
14467
Scott James Remnantfde82c92009-09-22 10:04:15 -070014468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014469$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014470if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014471 $as_echo_n "(cached) " >&6
14472else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014474/* end confdefs.h. */
14475#include <langinfo.h>
14476int
14477main ()
14478{
14479char* cs = nl_langinfo(CODESET); return !cs;
14480 ;
14481 return 0;
14482}
14483_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014484if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014485 am_cv_langinfo_codeset=yes
14486else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014487 am_cv_langinfo_codeset=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014488fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014489rm -f core conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014491
14492fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014494$as_echo "$am_cv_langinfo_codeset" >&6; }
14495 if test $am_cv_langinfo_codeset = yes; then
14496
Scott James Remnantfde82c92009-09-22 10:04:15 -070014497$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014498
14499 fi
14500
14501
Scott James Remnantfde82c92009-09-22 10:04:15 -070014502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014503$as_echo_n "checking for LC_MESSAGES... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014504if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014505 $as_echo_n "(cached) " >&6
14506else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014508/* end confdefs.h. */
14509#include <locale.h>
14510int
14511main ()
14512{
14513return LC_MESSAGES
14514 ;
14515 return 0;
14516}
14517_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014518if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014519 gt_cv_val_LC_MESSAGES=yes
14520else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014521 gt_cv_val_LC_MESSAGES=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014522fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014523rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014525fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014527$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
14528 if test $gt_cv_val_LC_MESSAGES = yes; then
14529
Scott James Remnantfde82c92009-09-22 10:04:15 -070014530$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014531
14532 fi
14533
14534
14535 if test "$enable_shared" = yes; then
14536 case "$host_os" in
14537 cygwin*) is_woe32dll=yes ;;
14538 *) is_woe32dll=no ;;
14539 esac
14540 else
14541 is_woe32dll=no
14542 fi
14543 WOE32DLL=$is_woe32dll
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
Scott James Remnantfde82c92009-09-22 10:04:15 -070014570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014571$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014572if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014573 $as_echo_n "(cached) " >&6
14574else
14575 gt_save_LIBS="$LIBS"
14576 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014578/* end confdefs.h. */
14579#include <CoreFoundation/CFPreferences.h>
14580int
14581main ()
14582{
14583CFPreferencesCopyAppValue(NULL, NULL)
14584 ;
14585 return 0;
14586}
14587_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014588if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014589 gt_cv_func_CFPreferencesCopyAppValue=yes
14590else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014591 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014592fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014593rm -f core conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014595 LIBS="$gt_save_LIBS"
14596fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014598$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14599 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14600
Scott James Remnantfde82c92009-09-22 10:04:15 -070014601$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014602
14603 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014605$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014606if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014607 $as_echo_n "(cached) " >&6
14608else
14609 gt_save_LIBS="$LIBS"
14610 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014612/* end confdefs.h. */
14613#include <CoreFoundation/CFLocale.h>
14614int
14615main ()
14616{
14617CFLocaleCopyCurrent();
14618 ;
14619 return 0;
14620}
14621_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014622if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014623 gt_cv_func_CFLocaleCopyCurrent=yes
14624else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014625 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014626fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014627rm -f core conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014629 LIBS="$gt_save_LIBS"
14630fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014632$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14633 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14634
Scott James Remnantfde82c92009-09-22 10:04:15 -070014635$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014636
14637 fi
14638 INTL_MACOSX_LIBS=
14639 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14640 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14641 fi
14642
14643
14644
14645
14646
14647
14648 BUILD_INCLUDED_LIBINTL=no
14649 USE_INCLUDED_LIBINTL=no
14650
14651 LIBINTL=
14652 LTLIBINTL=
14653 POSUB=
14654
14655 case " $gt_needs " in
14656 *" need-formatstring-macros "*) gt_api_version=3 ;;
14657 *" need-ngettext "*) gt_api_version=2 ;;
14658 *) gt_api_version=1 ;;
14659 esac
14660 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14661 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14662
14663 if test "$USE_NLS" = "yes"; then
14664 gt_use_preinstalled_gnugettext=no
14665
Scott James Remnantfde82c92009-09-22 10:04:15 -070014666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014667$as_echo_n "checking whether included gettext is requested... " >&6; }
14668
14669# Check whether --with-included-gettext was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014670if test "${with_included_gettext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014671 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14672else
14673 nls_cv_force_use_gnu_gettext=no
14674fi
14675
Scott James Remnantfde82c92009-09-22 10:04:15 -070014676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014677$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14678
14679 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14680 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14681
14682
14683 if test $gt_api_version -ge 3; then
14684 gt_revision_test_code='
14685#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14686#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14687#endif
14688typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14689'
14690 else
14691 gt_revision_test_code=
14692 fi
14693 if test $gt_api_version -ge 2; then
14694 gt_expression_test_code=' + * ngettext ("", "", 0)'
14695 else
14696 gt_expression_test_code=
14697 fi
14698
Scott James Remnantfde82c92009-09-22 10:04:15 -070014699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014700$as_echo_n "checking for GNU gettext in libc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014701if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014702 $as_echo_n "(cached) " >&6
14703else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014705/* end confdefs.h. */
14706#include <libintl.h>
14707$gt_revision_test_code
14708extern int _nl_msg_cat_cntr;
14709extern int *_nl_domain_bindings;
14710int
14711main ()
14712{
14713bindtextdomain ("", "");
14714return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14715 ;
14716 return 0;
14717}
14718_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014719if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014720 eval "$gt_func_gnugettext_libc=yes"
14721else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014722 eval "$gt_func_gnugettext_libc=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010014723fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014724rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014726fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014727eval ac_res=\$$gt_func_gnugettext_libc
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014729$as_echo "$ac_res" >&6; }
14730
14731 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14732
14733
14734
14735
14736 use_additional=yes
14737
14738 acl_save_prefix="$prefix"
14739 prefix="$acl_final_prefix"
14740 acl_save_exec_prefix="$exec_prefix"
14741 exec_prefix="$acl_final_exec_prefix"
14742
14743 eval additional_includedir=\"$includedir\"
14744 eval additional_libdir=\"$libdir\"
14745
14746 exec_prefix="$acl_save_exec_prefix"
14747 prefix="$acl_save_prefix"
14748
14749
14750# Check whether --with-libintl-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014751if test "${with_libintl_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014752 withval=$with_libintl_prefix;
14753 if test "X$withval" = "Xno"; then
14754 use_additional=no
14755 else
14756 if test "X$withval" = "X"; then
14757
14758 acl_save_prefix="$prefix"
14759 prefix="$acl_final_prefix"
14760 acl_save_exec_prefix="$exec_prefix"
14761 exec_prefix="$acl_final_exec_prefix"
14762
14763 eval additional_includedir=\"$includedir\"
14764 eval additional_libdir=\"$libdir\"
14765
14766 exec_prefix="$acl_save_exec_prefix"
14767 prefix="$acl_save_prefix"
14768
14769 else
14770 additional_includedir="$withval/include"
14771 additional_libdir="$withval/$acl_libdirstem"
14772 fi
14773 fi
14774
14775fi
14776
14777 LIBINTL=
14778 LTLIBINTL=
14779 INCINTL=
14780 rpathdirs=
14781 ltrpathdirs=
14782 names_already_handled=
14783 names_next_round='intl '
14784 while test -n "$names_next_round"; do
14785 names_this_round="$names_next_round"
14786 names_next_round=
14787 for name in $names_this_round; do
14788 already_handled=
14789 for n in $names_already_handled; do
14790 if test "$n" = "$name"; then
14791 already_handled=yes
14792 break
14793 fi
14794 done
14795 if test -z "$already_handled"; then
14796 names_already_handled="$names_already_handled $name"
14797 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14798 eval value=\"\$HAVE_LIB$uppername\"
14799 if test -n "$value"; then
14800 if test "$value" = yes; then
14801 eval value=\"\$LIB$uppername\"
14802 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14803 eval value=\"\$LTLIB$uppername\"
14804 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14805 else
14806 :
14807 fi
14808 else
14809 found_dir=
14810 found_la=
14811 found_so=
14812 found_a=
14813 if test $use_additional = yes; then
14814 if test -n "$shlibext" \
14815 && { test -f "$additional_libdir/lib$name.$shlibext" \
14816 || { test "$shlibext" = dll \
14817 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14818 found_dir="$additional_libdir"
14819 if test -f "$additional_libdir/lib$name.$shlibext"; then
14820 found_so="$additional_libdir/lib$name.$shlibext"
14821 else
14822 found_so="$additional_libdir/lib$name.dll.a"
14823 fi
14824 if test -f "$additional_libdir/lib$name.la"; then
14825 found_la="$additional_libdir/lib$name.la"
14826 fi
14827 else
14828 if test -f "$additional_libdir/lib$name.$libext"; then
14829 found_dir="$additional_libdir"
14830 found_a="$additional_libdir/lib$name.$libext"
14831 if test -f "$additional_libdir/lib$name.la"; then
14832 found_la="$additional_libdir/lib$name.la"
14833 fi
14834 fi
14835 fi
14836 fi
14837 if test "X$found_dir" = "X"; then
14838 for x in $LDFLAGS $LTLIBINTL; do
14839
14840 acl_save_prefix="$prefix"
14841 prefix="$acl_final_prefix"
14842 acl_save_exec_prefix="$exec_prefix"
14843 exec_prefix="$acl_final_exec_prefix"
14844 eval x=\"$x\"
14845 exec_prefix="$acl_save_exec_prefix"
14846 prefix="$acl_save_prefix"
14847
14848 case "$x" in
14849 -L*)
14850 dir=`echo "X$x" | sed -e 's/^X-L//'`
14851 if test -n "$shlibext" \
14852 && { test -f "$dir/lib$name.$shlibext" \
14853 || { test "$shlibext" = dll \
14854 && test -f "$dir/lib$name.dll.a"; }; }; then
14855 found_dir="$dir"
14856 if test -f "$dir/lib$name.$shlibext"; then
14857 found_so="$dir/lib$name.$shlibext"
14858 else
14859 found_so="$dir/lib$name.dll.a"
14860 fi
14861 if test -f "$dir/lib$name.la"; then
14862 found_la="$dir/lib$name.la"
14863 fi
14864 else
14865 if test -f "$dir/lib$name.$libext"; then
14866 found_dir="$dir"
14867 found_a="$dir/lib$name.$libext"
14868 if test -f "$dir/lib$name.la"; then
14869 found_la="$dir/lib$name.la"
14870 fi
14871 fi
14872 fi
14873 ;;
14874 esac
14875 if test "X$found_dir" != "X"; then
14876 break
14877 fi
14878 done
14879 fi
14880 if test "X$found_dir" != "X"; then
14881 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14882 if test "X$found_so" != "X"; then
14883 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14884 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14885 else
14886 haveit=
14887 for x in $ltrpathdirs; do
14888 if test "X$x" = "X$found_dir"; then
14889 haveit=yes
14890 break
14891 fi
14892 done
14893 if test -z "$haveit"; then
14894 ltrpathdirs="$ltrpathdirs $found_dir"
14895 fi
14896 if test "$hardcode_direct" = yes; then
14897 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14898 else
14899 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14900 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14901 haveit=
14902 for x in $rpathdirs; do
14903 if test "X$x" = "X$found_dir"; then
14904 haveit=yes
14905 break
14906 fi
14907 done
14908 if test -z "$haveit"; then
14909 rpathdirs="$rpathdirs $found_dir"
14910 fi
14911 else
14912 haveit=
14913 for x in $LDFLAGS $LIBINTL; do
14914
14915 acl_save_prefix="$prefix"
14916 prefix="$acl_final_prefix"
14917 acl_save_exec_prefix="$exec_prefix"
14918 exec_prefix="$acl_final_exec_prefix"
14919 eval x=\"$x\"
14920 exec_prefix="$acl_save_exec_prefix"
14921 prefix="$acl_save_prefix"
14922
14923 if test "X$x" = "X-L$found_dir"; then
14924 haveit=yes
14925 break
14926 fi
14927 done
14928 if test -z "$haveit"; then
14929 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14930 fi
14931 if test "$hardcode_minus_L" != no; then
14932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14933 else
14934 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14935 fi
14936 fi
14937 fi
14938 fi
14939 else
14940 if test "X$found_a" != "X"; then
14941 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14942 else
14943 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14944 fi
14945 fi
14946 additional_includedir=
14947 case "$found_dir" in
14948 */$acl_libdirstem | */$acl_libdirstem/)
14949 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14950 additional_includedir="$basedir/include"
14951 ;;
14952 esac
14953 if test "X$additional_includedir" != "X"; then
14954 if test "X$additional_includedir" != "X/usr/include"; then
14955 haveit=
14956 if test "X$additional_includedir" = "X/usr/local/include"; then
14957 if test -n "$GCC"; then
14958 case $host_os in
14959 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14960 esac
14961 fi
14962 fi
14963 if test -z "$haveit"; then
14964 for x in $CPPFLAGS $INCINTL; do
14965
14966 acl_save_prefix="$prefix"
14967 prefix="$acl_final_prefix"
14968 acl_save_exec_prefix="$exec_prefix"
14969 exec_prefix="$acl_final_exec_prefix"
14970 eval x=\"$x\"
14971 exec_prefix="$acl_save_exec_prefix"
14972 prefix="$acl_save_prefix"
14973
14974 if test "X$x" = "X-I$additional_includedir"; then
14975 haveit=yes
14976 break
14977 fi
14978 done
14979 if test -z "$haveit"; then
14980 if test -d "$additional_includedir"; then
14981 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14982 fi
14983 fi
14984 fi
14985 fi
14986 fi
14987 if test -n "$found_la"; then
14988 save_libdir="$libdir"
14989 case "$found_la" in
14990 */* | *\\*) . "$found_la" ;;
14991 *) . "./$found_la" ;;
14992 esac
14993 libdir="$save_libdir"
14994 for dep in $dependency_libs; do
14995 case "$dep" in
14996 -L*)
14997 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14998 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14999 haveit=
15000 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15001 if test -n "$GCC"; then
15002 case $host_os in
15003 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15004 esac
15005 fi
15006 fi
15007 if test -z "$haveit"; then
15008 haveit=
15009 for x in $LDFLAGS $LIBINTL; do
15010
15011 acl_save_prefix="$prefix"
15012 prefix="$acl_final_prefix"
15013 acl_save_exec_prefix="$exec_prefix"
15014 exec_prefix="$acl_final_exec_prefix"
15015 eval x=\"$x\"
15016 exec_prefix="$acl_save_exec_prefix"
15017 prefix="$acl_save_prefix"
15018
15019 if test "X$x" = "X-L$additional_libdir"; then
15020 haveit=yes
15021 break
15022 fi
15023 done
15024 if test -z "$haveit"; then
15025 if test -d "$additional_libdir"; then
15026 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15027 fi
15028 fi
15029 haveit=
15030 for x in $LDFLAGS $LTLIBINTL; do
15031
15032 acl_save_prefix="$prefix"
15033 prefix="$acl_final_prefix"
15034 acl_save_exec_prefix="$exec_prefix"
15035 exec_prefix="$acl_final_exec_prefix"
15036 eval x=\"$x\"
15037 exec_prefix="$acl_save_exec_prefix"
15038 prefix="$acl_save_prefix"
15039
15040 if test "X$x" = "X-L$additional_libdir"; then
15041 haveit=yes
15042 break
15043 fi
15044 done
15045 if test -z "$haveit"; then
15046 if test -d "$additional_libdir"; then
15047 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15048 fi
15049 fi
15050 fi
15051 fi
15052 ;;
15053 -R*)
15054 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15055 if test "$enable_rpath" != no; then
15056 haveit=
15057 for x in $rpathdirs; do
15058 if test "X$x" = "X$dir"; then
15059 haveit=yes
15060 break
15061 fi
15062 done
15063 if test -z "$haveit"; then
15064 rpathdirs="$rpathdirs $dir"
15065 fi
15066 haveit=
15067 for x in $ltrpathdirs; do
15068 if test "X$x" = "X$dir"; then
15069 haveit=yes
15070 break
15071 fi
15072 done
15073 if test -z "$haveit"; then
15074 ltrpathdirs="$ltrpathdirs $dir"
15075 fi
15076 fi
15077 ;;
15078 -l*)
15079 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15080 ;;
15081 *.la)
15082 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15083 ;;
15084 *)
15085 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15086 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15087 ;;
15088 esac
15089 done
15090 fi
15091 else
15092 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15093 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15094 fi
15095 fi
15096 fi
15097 done
15098 done
15099 if test "X$rpathdirs" != "X"; then
15100 if test -n "$hardcode_libdir_separator"; then
15101 alldirs=
15102 for found_dir in $rpathdirs; do
15103 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15104 done
15105 acl_save_libdir="$libdir"
15106 libdir="$alldirs"
15107 eval flag=\"$hardcode_libdir_flag_spec\"
15108 libdir="$acl_save_libdir"
15109 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15110 else
15111 for found_dir in $rpathdirs; do
15112 acl_save_libdir="$libdir"
15113 libdir="$found_dir"
15114 eval flag=\"$hardcode_libdir_flag_spec\"
15115 libdir="$acl_save_libdir"
15116 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15117 done
15118 fi
15119 fi
15120 if test "X$ltrpathdirs" != "X"; then
15121 for found_dir in $ltrpathdirs; do
15122 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15123 done
15124 fi
15125
Scott James Remnantfde82c92009-09-22 10:04:15 -070015126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015127$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015128if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015129 $as_echo_n "(cached) " >&6
15130else
15131 gt_save_CPPFLAGS="$CPPFLAGS"
15132 CPPFLAGS="$CPPFLAGS $INCINTL"
15133 gt_save_LIBS="$LIBS"
15134 LIBS="$LIBS $LIBINTL"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015136/* end confdefs.h. */
15137#include <libintl.h>
15138$gt_revision_test_code
15139extern int _nl_msg_cat_cntr;
15140extern
15141#ifdef __cplusplus
15142"C"
15143#endif
15144const char *_nl_expand_alias (const char *);
15145int
15146main ()
15147{
15148bindtextdomain ("", "");
15149return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15150 ;
15151 return 0;
15152}
15153_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015154if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015155 eval "$gt_func_gnugettext_libintl=yes"
15156else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015157 eval "$gt_func_gnugettext_libintl=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015158fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015159rm -f core conftest.err conftest.$ac_objext \
15160 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015161 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15162 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015164/* end confdefs.h. */
15165#include <libintl.h>
15166$gt_revision_test_code
15167extern int _nl_msg_cat_cntr;
15168extern
15169#ifdef __cplusplus
15170"C"
15171#endif
15172const char *_nl_expand_alias (const char *);
15173int
15174main ()
15175{
15176bindtextdomain ("", "");
15177return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15178 ;
15179 return 0;
15180}
15181_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015182if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015183 LIBINTL="$LIBINTL $LIBICONV"
15184 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15185 eval "$gt_func_gnugettext_libintl=yes"
15186
Scott James Remnant65f683d2009-07-14 13:05:17 +010015187fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015188rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015190 fi
15191 CPPFLAGS="$gt_save_CPPFLAGS"
15192 LIBS="$gt_save_LIBS"
15193fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015194eval ac_res=\$$gt_func_gnugettext_libintl
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015196$as_echo "$ac_res" >&6; }
15197 fi
15198
15199 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15200 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15201 && test "$PACKAGE" != gettext-runtime \
15202 && test "$PACKAGE" != gettext-tools; }; then
15203 gt_use_preinstalled_gnugettext=yes
15204 else
15205 LIBINTL=
15206 LTLIBINTL=
15207 INCINTL=
15208 fi
15209
15210
15211 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15212 nls_cv_use_gnu_gettext=yes
15213 fi
15214 fi
15215
15216 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15217 BUILD_INCLUDED_LIBINTL=yes
15218 USE_INCLUDED_LIBINTL=yes
15219 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
15220 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
15221 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15222 fi
15223
15224 CATOBJEXT=
15225 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15226 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15227 CATOBJEXT=.gmo
15228 fi
15229
15230
15231 if test -n "$INTL_MACOSX_LIBS"; then
15232 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15233 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15234 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15235 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15236 fi
15237 fi
15238
15239 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15240 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15241
Scott James Remnantfde82c92009-09-22 10:04:15 -070015242$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015243
15244 else
15245 USE_NLS=no
15246 fi
15247 fi
15248
Scott James Remnantfde82c92009-09-22 10:04:15 -070015249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015250$as_echo_n "checking whether to use NLS... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015252$as_echo "$USE_NLS" >&6; }
15253 if test "$USE_NLS" = "yes"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015255$as_echo_n "checking where the gettext function comes from... " >&6; }
15256 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15257 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15258 gt_source="external libintl"
15259 else
15260 gt_source="libc"
15261 fi
15262 else
15263 gt_source="included intl directory"
15264 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015266$as_echo "$gt_source" >&6; }
15267 fi
15268
15269 if test "$USE_NLS" = "yes"; then
15270
15271 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15272 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015274$as_echo_n "checking how to link with libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015276$as_echo "$LIBINTL" >&6; }
15277
15278 for element in $INCINTL; do
15279 haveit=
15280 for x in $CPPFLAGS; do
15281
15282 acl_save_prefix="$prefix"
15283 prefix="$acl_final_prefix"
15284 acl_save_exec_prefix="$exec_prefix"
15285 exec_prefix="$acl_final_exec_prefix"
15286 eval x=\"$x\"
15287 exec_prefix="$acl_save_exec_prefix"
15288 prefix="$acl_save_prefix"
15289
15290 if test "X$x" = "X$element"; then
15291 haveit=yes
15292 break
15293 fi
15294 done
15295 if test -z "$haveit"; then
15296 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15297 fi
15298 done
15299
15300 fi
15301
15302
Scott James Remnantfde82c92009-09-22 10:04:15 -070015303$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015304
15305
Scott James Remnantfde82c92009-09-22 10:04:15 -070015306$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015307
15308 fi
15309
15310 POSUB=po
15311 fi
15312
15313
15314 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
15315 BUILD_INCLUDED_LIBINTL=yes
15316 fi
15317
15318
15319
15320
15321
15322 nls_cv_header_intl=
15323 nls_cv_header_libgt=
15324
15325 DATADIRNAME=share
15326
15327
15328 INSTOBJEXT=.mo
15329
15330
15331 GENCAT=gencat
15332
15333
15334 INTLOBJS=
15335 if test "$USE_INCLUDED_LIBINTL" = yes; then
15336 INTLOBJS="\$(GETTOBJS)"
15337 fi
15338
15339
15340 INTL_LIBTOOL_SUFFIX_PREFIX=
15341
15342
15343
15344 INTLLIBS="$LIBINTL"
15345
15346
15347
15348
15349
15350
15351
15352# Checks for programs.
15353ac_ext=c
15354ac_cpp='$CPP $CPPFLAGS'
15355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15357ac_compiler_gnu=$ac_cv_c_compiler_gnu
15358if test -n "$ac_tool_prefix"; then
15359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15360set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015362$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015363if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015364 $as_echo_n "(cached) " >&6
15365else
15366 if test -n "$CC"; then
15367 ac_cv_prog_CC="$CC" # Let the user override the test.
15368else
15369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370for as_dir in $PATH
15371do
15372 IFS=$as_save_IFS
15373 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015374 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15376 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015378 break 2
15379 fi
15380done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015381 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015382IFS=$as_save_IFS
15383
15384fi
15385fi
15386CC=$ac_cv_prog_CC
15387if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015389$as_echo "$CC" >&6; }
15390else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015392$as_echo "no" >&6; }
15393fi
15394
15395
15396fi
15397if test -z "$ac_cv_prog_CC"; then
15398 ac_ct_CC=$CC
15399 # Extract the first word of "gcc", so it can be a program name with args.
15400set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015402$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015403if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015404 $as_echo_n "(cached) " >&6
15405else
15406 if test -n "$ac_ct_CC"; then
15407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15408else
15409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410for as_dir in $PATH
15411do
15412 IFS=$as_save_IFS
15413 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015414 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15416 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015418 break 2
15419 fi
15420done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015421 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015422IFS=$as_save_IFS
15423
15424fi
15425fi
15426ac_ct_CC=$ac_cv_prog_ac_ct_CC
15427if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015429$as_echo "$ac_ct_CC" >&6; }
15430else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015432$as_echo "no" >&6; }
15433fi
15434
15435 if test "x$ac_ct_CC" = x; then
15436 CC=""
15437 else
15438 case $cross_compiling:$ac_tool_warned in
15439yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015440{ $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 +010015441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15442ac_tool_warned=yes ;;
15443esac
15444 CC=$ac_ct_CC
15445 fi
15446else
15447 CC="$ac_cv_prog_CC"
15448fi
15449
15450if test -z "$CC"; then
15451 if test -n "$ac_tool_prefix"; then
15452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15453set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015455$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015456if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015457 $as_echo_n "(cached) " >&6
15458else
15459 if test -n "$CC"; then
15460 ac_cv_prog_CC="$CC" # Let the user override the test.
15461else
15462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15463for as_dir in $PATH
15464do
15465 IFS=$as_save_IFS
15466 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015467 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15469 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015471 break 2
15472 fi
15473done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015474 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015475IFS=$as_save_IFS
15476
15477fi
15478fi
15479CC=$ac_cv_prog_CC
15480if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015482$as_echo "$CC" >&6; }
15483else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015485$as_echo "no" >&6; }
15486fi
15487
15488
15489 fi
15490fi
15491if test -z "$CC"; then
15492 # Extract the first word of "cc", so it can be a program name with args.
15493set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015495$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015496if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015497 $as_echo_n "(cached) " >&6
15498else
15499 if test -n "$CC"; then
15500 ac_cv_prog_CC="$CC" # Let the user override the test.
15501else
15502 ac_prog_rejected=no
15503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15504for as_dir in $PATH
15505do
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015508 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15511 ac_prog_rejected=yes
15512 continue
15513 fi
15514 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015516 break 2
15517 fi
15518done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015519 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015520IFS=$as_save_IFS
15521
15522if test $ac_prog_rejected = yes; then
15523 # We found a bogon in the path, so make sure we never use it.
15524 set dummy $ac_cv_prog_CC
15525 shift
15526 if test $# != 0; then
15527 # We chose a different compiler from the bogus one.
15528 # However, it has the same basename, so the bogon will be chosen
15529 # first if we set CC to just the basename; use the full file name.
15530 shift
15531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15532 fi
15533fi
15534fi
15535fi
15536CC=$ac_cv_prog_CC
15537if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015539$as_echo "$CC" >&6; }
15540else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015542$as_echo "no" >&6; }
15543fi
15544
15545
15546fi
15547if test -z "$CC"; then
15548 if test -n "$ac_tool_prefix"; then
15549 for ac_prog in cl.exe
15550 do
15551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15552set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015554$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015555if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015556 $as_echo_n "(cached) " >&6
15557else
15558 if test -n "$CC"; then
15559 ac_cv_prog_CC="$CC" # Let the user override the test.
15560else
15561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15562for as_dir in $PATH
15563do
15564 IFS=$as_save_IFS
15565 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015566 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015570 break 2
15571 fi
15572done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015573 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015574IFS=$as_save_IFS
15575
15576fi
15577fi
15578CC=$ac_cv_prog_CC
15579if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015581$as_echo "$CC" >&6; }
15582else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015584$as_echo "no" >&6; }
15585fi
15586
15587
15588 test -n "$CC" && break
15589 done
15590fi
15591if test -z "$CC"; then
15592 ac_ct_CC=$CC
15593 for ac_prog in cl.exe
15594do
15595 # Extract the first word of "$ac_prog", so it can be a program name with args.
15596set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015598$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015599if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015600 $as_echo_n "(cached) " >&6
15601else
15602 if test -n "$ac_ct_CC"; then
15603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15604else
15605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606for as_dir in $PATH
15607do
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015610 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15612 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015614 break 2
15615 fi
15616done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015617 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015618IFS=$as_save_IFS
15619
15620fi
15621fi
15622ac_ct_CC=$ac_cv_prog_ac_ct_CC
15623if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015625$as_echo "$ac_ct_CC" >&6; }
15626else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015628$as_echo "no" >&6; }
15629fi
15630
15631
15632 test -n "$ac_ct_CC" && break
15633done
15634
15635 if test "x$ac_ct_CC" = x; then
15636 CC=""
15637 else
15638 case $cross_compiling:$ac_tool_warned in
15639yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015640{ $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 +010015641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15642ac_tool_warned=yes ;;
15643esac
15644 CC=$ac_ct_CC
15645 fi
15646fi
15647
15648fi
15649
15650
Scott James Remnantfde82c92009-09-22 10:04:15 -070015651test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070015653as_fn_error "no acceptable C compiler found in \$PATH
15654See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010015655
15656# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015657$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015658set X $ac_compile
15659ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015660for ac_option in --version -v -V -qversion; do
15661 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015662case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15665esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15667$as_echo "$ac_try_echo"; } >&5
15668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +010015669 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015670 if test -s conftest.err; then
15671 sed '10a\
15672... rest of stderr output deleted ...
15673 10q' conftest.err >conftest.er1
15674 cat conftest.er1 >&5
15675 rm -f conftest.er1 conftest.err
15676 fi
15677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15678 test $ac_status = 0; }
15679done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015680
Scott James Remnantfde82c92009-09-22 10:04:15 -070015681{ $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 +010015682$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015683if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015684 $as_echo_n "(cached) " >&6
15685else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015687/* end confdefs.h. */
15688
15689int
15690main ()
15691{
15692#ifndef __GNUC__
15693 choke me
15694#endif
15695
15696 ;
15697 return 0;
15698}
15699_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015700if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015701 ac_compiler_gnu=yes
15702else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015703 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015704fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706ac_cv_c_compiler_gnu=$ac_compiler_gnu
15707
15708fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015710$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15711if test $ac_compiler_gnu = yes; then
15712 GCC=yes
15713else
15714 GCC=
15715fi
15716ac_test_CFLAGS=${CFLAGS+set}
15717ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -070015718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015719$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015720if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015721 $as_echo_n "(cached) " >&6
15722else
15723 ac_save_c_werror_flag=$ac_c_werror_flag
15724 ac_c_werror_flag=yes
15725 ac_cv_prog_cc_g=no
15726 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015728/* end confdefs.h. */
15729
15730int
15731main ()
15732{
15733
15734 ;
15735 return 0;
15736}
15737_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015738if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015739 ac_cv_prog_cc_g=yes
15740else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015741 CFLAGS=""
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015743/* end confdefs.h. */
15744
15745int
15746main ()
15747{
15748
15749 ;
15750 return 0;
15751}
15752_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015753if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010015754
Scott James Remnantfde82c92009-09-22 10:04:15 -070015755else
15756 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +010015757 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015759/* end confdefs.h. */
15760
15761int
15762main ()
15763{
15764
15765 ;
15766 return 0;
15767}
15768_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015769if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015770 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010015771fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15773fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777 ac_c_werror_flag=$ac_save_c_werror_flag
15778fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015780$as_echo "$ac_cv_prog_cc_g" >&6; }
15781if test "$ac_test_CFLAGS" = set; then
15782 CFLAGS=$ac_save_CFLAGS
15783elif test $ac_cv_prog_cc_g = yes; then
15784 if test "$GCC" = yes; then
15785 CFLAGS="-g -O2"
15786 else
15787 CFLAGS="-g"
15788 fi
15789else
15790 if test "$GCC" = yes; then
15791 CFLAGS="-O2"
15792 else
15793 CFLAGS=
15794 fi
15795fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015797$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015798if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015799 $as_echo_n "(cached) " >&6
15800else
15801 ac_cv_prog_cc_c89=no
15802ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070015803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015804/* end confdefs.h. */
15805#include <stdarg.h>
15806#include <stdio.h>
15807#include <sys/types.h>
15808#include <sys/stat.h>
15809/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15810struct buf { int x; };
15811FILE * (*rcsopen) (struct buf *, struct stat *, int);
15812static char *e (p, i)
15813 char **p;
15814 int i;
15815{
15816 return p[i];
15817}
15818static char *f (char * (*g) (char **, int), char **p, ...)
15819{
15820 char *s;
15821 va_list v;
15822 va_start (v,p);
15823 s = g (p, va_arg (v,int));
15824 va_end (v);
15825 return s;
15826}
15827
15828/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15829 function prototypes and stuff, but not '\xHH' hex character constants.
15830 These don't provoke an error unfortunately, instead are silently treated
15831 as 'x'. The following induces an error, until -std is added to get
15832 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15833 array size at least. It's necessary to write '\x00'==0 to get something
15834 that's true only with -std. */
15835int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15836
15837/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15838 inside strings and character constants. */
15839#define FOO(x) 'x'
15840int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15841
15842int test (int i, double x);
15843struct s1 {int (*f) (int a);};
15844struct s2 {int (*f) (double a);};
15845int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15846int argc;
15847char **argv;
15848int
15849main ()
15850{
15851return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15857 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15858do
15859 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015860 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015861 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010015862fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015863rm -f core conftest.err conftest.$ac_objext
15864 test "x$ac_cv_prog_cc_c89" != "xno" && break
15865done
15866rm -f conftest.$ac_ext
15867CC=$ac_save_CC
15868
15869fi
15870# AC_CACHE_VAL
15871case "x$ac_cv_prog_cc_c89" in
15872 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015874$as_echo "none needed" >&6; } ;;
15875 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015877$as_echo "unsupported" >&6; } ;;
15878 *)
15879 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015881$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15882esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015883if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015884
Scott James Remnantfde82c92009-09-22 10:04:15 -070015885fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015886
15887ac_ext=c
15888ac_cpp='$CPP $CPPFLAGS'
15889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15891ac_compiler_gnu=$ac_cv_c_compiler_gnu
15892
15893if test "x$CC" != xcc; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015894 { $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 +010015895$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15896else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015898$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15899fi
15900set dummy $CC; ac_cc=`$as_echo "$2" |
15901 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070015902if { 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 +010015903 $as_echo_n "(cached) " >&6
15904else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015906/* end confdefs.h. */
15907
15908int
15909main ()
15910{
15911
15912 ;
15913 return 0;
15914}
15915_ACEOF
15916# Make sure it works both with $CC and with simple cc.
15917# We do the test twice because some compilers refuse to overwrite an
15918# existing .o file with -o, though they will create one.
15919ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15920rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015921if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15926$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015927 (eval "$ac_try") 2>&5
15928 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15930 test $ac_status = 0; } &&
15931 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15936$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015937 (eval "$ac_try") 2>&5
15938 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15940 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015941then
15942 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15943 if test "x$CC" != xcc; then
15944 # Test first that cc exists at all.
15945 if { ac_try='cc -c conftest.$ac_ext >&5'
Scott James Remnantfde82c92009-09-22 10:04:15 -070015946 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15951$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015952 (eval "$ac_try") 2>&5
15953 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15955 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015956 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15957 rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015958 if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15961esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15963$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015964 (eval "$ac_try") 2>&5
15965 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15967 test $ac_status = 0; } &&
15968 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15971esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15973$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015974 (eval "$ac_try") 2>&5
15975 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015978 then
15979 # cc works too.
15980 :
15981 else
15982 # cc exists but doesn't like -o.
15983 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15984 fi
15985 fi
15986 fi
15987else
15988 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15989fi
15990rm -f core conftest*
15991
15992fi
15993if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015995$as_echo "yes" >&6; }
15996else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015998$as_echo "no" >&6; }
15999
Scott James Remnantfde82c92009-09-22 10:04:15 -070016000$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016001
16002fi
16003
16004# FIXME: we rely on the cache variable name because
16005# there is no other way.
16006set dummy $CC
16007am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16008eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16009if test "$am_t" != yes; then
16010 # Losing compiler, so override with the script.
16011 # FIXME: It is wrong to rewrite CC.
16012 # But if we don't then we get into trouble of one sort or another.
16013 # A longer-term fix would be to have automake use am__CC in this case,
16014 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16015 CC="$am_aux_dir/compile $CC"
16016fi
16017
16018
16019
Scott James Remnant2a66c572009-09-15 03:19:16 +010016020
16021if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16022 if test -n "$ac_tool_prefix"; then
16023 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16024set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016026$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016027if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016028 $as_echo_n "(cached) " >&6
16029else
16030 case $PKG_CONFIG in
16031 [\\/]* | ?:[\\/]*)
16032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16033 ;;
16034 *)
16035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036for as_dir in $PATH
16037do
16038 IFS=$as_save_IFS
16039 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016040 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016044 break 2
16045 fi
16046done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016047 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016048IFS=$as_save_IFS
16049
16050 ;;
16051esac
16052fi
16053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16054if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016056$as_echo "$PKG_CONFIG" >&6; }
16057else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016059$as_echo "no" >&6; }
16060fi
16061
16062
16063fi
16064if test -z "$ac_cv_path_PKG_CONFIG"; then
16065 ac_pt_PKG_CONFIG=$PKG_CONFIG
16066 # Extract the first word of "pkg-config", so it can be a program name with args.
16067set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016069$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016070if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016071 $as_echo_n "(cached) " >&6
16072else
16073 case $ac_pt_PKG_CONFIG in
16074 [\\/]* | ?:[\\/]*)
16075 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16076 ;;
16077 *)
16078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16079for as_dir in $PATH
16080do
16081 IFS=$as_save_IFS
16082 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016083 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16085 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016087 break 2
16088 fi
16089done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016090 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016091IFS=$as_save_IFS
16092
16093 ;;
16094esac
16095fi
16096ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16097if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016099$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16100else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016102$as_echo "no" >&6; }
16103fi
16104
16105 if test "x$ac_pt_PKG_CONFIG" = x; then
16106 PKG_CONFIG=""
16107 else
16108 case $cross_compiling:$ac_tool_warned in
16109yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016110{ $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 +010016111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16112ac_tool_warned=yes ;;
16113esac
16114 PKG_CONFIG=$ac_pt_PKG_CONFIG
16115 fi
16116else
16117 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16118fi
16119
16120fi
16121if test -n "$PKG_CONFIG"; then
16122 _pkg_min_version=0.9.0
Scott James Remnantfde82c92009-09-22 10:04:15 -070016123 { $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 +010016124$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16125 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016127$as_echo "yes" >&6; }
16128 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016130$as_echo "no" >&6; }
16131 PKG_CONFIG=""
16132 fi
16133
16134fi
16135
Scott James Remnant65f683d2009-07-14 13:05:17 +010016136# Checks for libraries.
16137
16138
16139
16140 if test "x$nih_install" = "xyes"; then
16141 INSTALL_NIH_TRUE=
16142 INSTALL_NIH_FALSE='#'
16143else
16144 INSTALL_NIH_TRUE='#'
16145 INSTALL_NIH_FALSE=
16146fi
16147
16148
16149
16150
16151if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16152 if test -n "$ac_tool_prefix"; then
16153 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16154set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016156$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016157if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016158 $as_echo_n "(cached) " >&6
16159else
16160 case $PKG_CONFIG in
16161 [\\/]* | ?:[\\/]*)
16162 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16163 ;;
16164 *)
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166for as_dir in $PATH
16167do
16168 IFS=$as_save_IFS
16169 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016170 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16172 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016174 break 2
16175 fi
16176done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016177 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016178IFS=$as_save_IFS
16179
16180 ;;
16181esac
16182fi
16183PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16184if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016186$as_echo "$PKG_CONFIG" >&6; }
16187else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016189$as_echo "no" >&6; }
16190fi
16191
16192
16193fi
16194if test -z "$ac_cv_path_PKG_CONFIG"; then
16195 ac_pt_PKG_CONFIG=$PKG_CONFIG
16196 # Extract the first word of "pkg-config", so it can be a program name with args.
16197set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016199$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016200if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016201 $as_echo_n "(cached) " >&6
16202else
16203 case $ac_pt_PKG_CONFIG in
16204 [\\/]* | ?:[\\/]*)
16205 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16206 ;;
16207 *)
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209for as_dir in $PATH
16210do
16211 IFS=$as_save_IFS
16212 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016213 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16215 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016217 break 2
16218 fi
16219done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016220 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016221IFS=$as_save_IFS
16222
16223 ;;
16224esac
16225fi
16226ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16227if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016229$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16230else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016232$as_echo "no" >&6; }
16233fi
16234
16235 if test "x$ac_pt_PKG_CONFIG" = x; then
16236 PKG_CONFIG=""
16237 else
16238 case $cross_compiling:$ac_tool_warned in
16239yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016240{ $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 +010016241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16242ac_tool_warned=yes ;;
16243esac
16244 PKG_CONFIG=$ac_pt_PKG_CONFIG
16245 fi
16246else
16247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16248fi
16249
16250fi
16251if test -n "$PKG_CONFIG"; then
16252 _pkg_min_version=0.22
Scott James Remnantfde82c92009-09-22 10:04:15 -070016253 { $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 +010016254$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016257$as_echo "yes" >&6; }
16258 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016260$as_echo "no" >&6; }
16261 PKG_CONFIG=""
16262 fi
16263
16264fi
16265
16266# Checks for libraries
16267
16268nih_with_dbus=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070016269if test "x$nih_with_dbus" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016270
16271pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016273$as_echo_n "checking for DBUS... " >&6; }
16274
16275if test -n "$PKG_CONFIG"; then
16276 if test -n "$DBUS_CFLAGS"; then
16277 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16278 else
16279 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016280 { { $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 +010016281 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016282 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16284 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016285 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016286else
16287 pkg_failed=yes
16288fi
16289 fi
16290else
16291 pkg_failed=untried
16292fi
16293if test -n "$PKG_CONFIG"; then
16294 if test -n "$DBUS_LIBS"; then
16295 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16296 else
16297 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016298 { { $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 +010016299 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016300 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16302 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016303 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016304else
16305 pkg_failed=yes
16306fi
16307 fi
16308else
16309 pkg_failed=untried
16310fi
16311
16312
16313
16314if test $pkg_failed = yes; then
16315
16316if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16317 _pkg_short_errors_supported=yes
16318else
16319 _pkg_short_errors_supported=no
16320fi
16321 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016322 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 +010016323 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016324 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016325 fi
16326 # Put the nasty error message in config.log where it belongs
16327 echo "$DBUS_PKG_ERRORS" >&5
16328
Scott James Remnantfde82c92009-09-22 10:04:15 -070016329 as_fn_error "Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010016330
16331$DBUS_PKG_ERRORS
16332
16333Consider adjusting the PKG_CONFIG_PATH environment variable if you
16334installed software in a non-standard prefix.
16335
16336Alternatively, you may set the environment variables DBUS_CFLAGS
16337and DBUS_LIBS to avoid the need to call pkg-config.
16338See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016339" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016340elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070016343as_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 +010016344is in your PATH or set the PKG_CONFIG environment variable to the full
16345path to pkg-config.
16346
16347Alternatively, you may set the environment variables DBUS_CFLAGS
16348and DBUS_LIBS to avoid the need to call pkg-config.
16349See the pkg-config man page for more details.
16350
16351To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016352See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010016353else
16354 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16355 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016357$as_echo "yes" >&6; }
16358 :
16359fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016361$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016362if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016363 $as_echo_n "(cached) " >&6
16364else
16365 ac_check_lib_save_LIBS=$LIBS
16366LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016368/* end confdefs.h. */
16369
16370/* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16373#ifdef __cplusplus
16374extern "C"
16375#endif
16376char XML_ParserCreate ();
16377int
16378main ()
16379{
16380return XML_ParserCreate ();
16381 ;
16382 return 0;
16383}
16384_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016385if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016386 ac_cv_lib_expat_XML_ParserCreate=yes
16387else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016388 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016389fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016390rm -f core conftest.err conftest.$ac_objext \
16391 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016392LIBS=$ac_check_lib_save_LIBS
16393fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016395$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016396if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016398$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016399if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016400 $as_echo_n "(cached) " >&6
16401else
16402 ac_check_lib_save_LIBS=$LIBS
16403LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016405/* end confdefs.h. */
16406
16407/* Override any GCC internal prototype to avoid an error.
16408 Use char because int might match the return type of a GCC
16409 builtin and then its argument prototype would still apply. */
16410#ifdef __cplusplus
16411extern "C"
16412#endif
16413char XML_StopParser ();
16414int
16415main ()
16416{
16417return XML_StopParser ();
16418 ;
16419 return 0;
16420}
16421_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016422if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016423 ac_cv_lib_expat_XML_StopParser=yes
16424else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016425 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016426fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016427rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016429LIBS=$ac_check_lib_save_LIBS
16430fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016432$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016433if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016434 EXPAT_LIBS=-lexpat
16435
16436else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016437 as_fn_error "expat >= 2.0.0 required" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016438fi
16439
16440else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016441 as_fn_error "expat library not found" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016442fi
16443
16444else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016445 if test "x$nih_with_dbus" != "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016446
16447pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016449$as_echo_n "checking for DBUS... " >&6; }
16450
16451if test -n "$PKG_CONFIG"; then
16452 if test -n "$DBUS_CFLAGS"; then
16453 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16454 else
16455 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016456 { { $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 +010016457 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016458 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16460 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016461 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016462else
16463 pkg_failed=yes
16464fi
16465 fi
16466else
16467 pkg_failed=untried
16468fi
16469if test -n "$PKG_CONFIG"; then
16470 if test -n "$DBUS_LIBS"; then
16471 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16472 else
16473 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016474 { { $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 +010016475 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016476 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16478 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016479 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016480else
16481 pkg_failed=yes
16482fi
16483 fi
16484else
16485 pkg_failed=untried
16486fi
16487
16488
16489
16490if test $pkg_failed = yes; then
16491
16492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16493 _pkg_short_errors_supported=yes
16494else
16495 _pkg_short_errors_supported=no
16496fi
16497 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016498 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 +010016499 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016500 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016501 fi
16502 # Put the nasty error message in config.log where it belongs
16503 echo "$DBUS_PKG_ERRORS" >&5
16504
Scott James Remnantfde82c92009-09-22 10:04:15 -070016505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016506$as_echo "no" >&6; }
16507 nih_have_dbus=no
16508elif test $pkg_failed = untried; then
16509 nih_have_dbus=no
16510else
16511 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16512 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016514$as_echo "yes" >&6; }
16515 :
16516fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016518$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016519if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016520 $as_echo_n "(cached) " >&6
16521else
16522 ac_check_lib_save_LIBS=$LIBS
16523LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016525/* end confdefs.h. */
16526
16527/* Override any GCC internal prototype to avoid an error.
16528 Use char because int might match the return type of a GCC
16529 builtin and then its argument prototype would still apply. */
16530#ifdef __cplusplus
16531extern "C"
16532#endif
16533char XML_ParserCreate ();
16534int
16535main ()
16536{
16537return XML_ParserCreate ();
16538 ;
16539 return 0;
16540}
16541_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016542if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016543 ac_cv_lib_expat_XML_ParserCreate=yes
16544else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016545 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016546fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016547rm -f core conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016549LIBS=$ac_check_lib_save_LIBS
16550fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016552$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016553if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016555$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016556if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016557 $as_echo_n "(cached) " >&6
16558else
16559 ac_check_lib_save_LIBS=$LIBS
16560LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016562/* end confdefs.h. */
16563
16564/* Override any GCC internal prototype to avoid an error.
16565 Use char because int might match the return type of a GCC
16566 builtin and then its argument prototype would still apply. */
16567#ifdef __cplusplus
16568extern "C"
16569#endif
16570char XML_StopParser ();
16571int
16572main ()
16573{
16574return XML_StopParser ();
16575 ;
16576 return 0;
16577}
16578_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016579if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016580 ac_cv_lib_expat_XML_StopParser=yes
16581else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016582 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016583fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016584rm -f core conftest.err conftest.$ac_objext \
16585 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016586LIBS=$ac_check_lib_save_LIBS
16587fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016589$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016590if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016591 EXPAT_LIBS=-lexpat
16592
16593else
16594 nih_have_dbus=no
16595fi
16596
16597else
16598 nih_have_dbus=no
16599fi
16600
16601else
16602 nih_have_dbus=no
16603fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016604fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016605 if test "x$nih_have_dbus" != "xno"; then
16606 HAVE_DBUS_TRUE=
16607 HAVE_DBUS_FALSE='#'
16608else
16609 HAVE_DBUS_TRUE='#'
16610 HAVE_DBUS_FALSE=
16611fi
16612
16613
16614
16615# Checks for header files.
Scott James Remnant65f683d2009-07-14 13:05:17 +010016616for ac_header in valgrind/valgrind.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070016617do :
16618 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16619if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016620 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016621#define HAVE_VALGRIND_VALGRIND_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016622_ACEOF
16623
16624fi
16625
16626done
16627
16628
16629# Checks for typedefs, structures, and compiler characteristics.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016631$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016632if test "${ac_cv_prog_cc_c99+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016633 $as_echo_n "(cached) " >&6
16634else
16635 ac_cv_prog_cc_c99=no
16636ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070016637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016638/* end confdefs.h. */
16639#include <stdarg.h>
16640#include <stdbool.h>
16641#include <stdlib.h>
16642#include <wchar.h>
16643#include <stdio.h>
16644
16645// Check varargs macros. These examples are taken from C99 6.10.3.5.
16646#define debug(...) fprintf (stderr, __VA_ARGS__)
16647#define showlist(...) puts (#__VA_ARGS__)
16648#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16649static void
16650test_varargs_macros (void)
16651{
16652 int x = 1234;
16653 int y = 5678;
16654 debug ("Flag");
16655 debug ("X = %d\n", x);
16656 showlist (The first, second, and third items.);
16657 report (x>y, "x is %d but y is %d", x, y);
16658}
16659
16660// Check long long types.
16661#define BIG64 18446744073709551615ull
16662#define BIG32 4294967295ul
16663#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16664#if !BIG_OK
16665 your preprocessor is broken;
16666#endif
16667#if BIG_OK
16668#else
16669 your preprocessor is broken;
16670#endif
16671static long long int bignum = -9223372036854775807LL;
16672static unsigned long long int ubignum = BIG64;
16673
16674struct incomplete_array
16675{
16676 int datasize;
16677 double data[];
16678};
16679
16680struct named_init {
16681 int number;
16682 const wchar_t *name;
16683 double average;
16684};
16685
16686typedef const char *ccp;
16687
16688static inline int
16689test_restrict (ccp restrict text)
16690{
16691 // See if C++-style comments work.
16692 // Iterate through items via the restricted pointer.
16693 // Also check for declarations in for loops.
16694 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16695 continue;
16696 return 0;
16697}
16698
16699// Check varargs and va_copy.
16700static void
16701test_varargs (const char *format, ...)
16702{
16703 va_list args;
16704 va_start (args, format);
16705 va_list args_copy;
16706 va_copy (args_copy, args);
16707
16708 const char *str;
16709 int number;
16710 float fnumber;
16711
16712 while (*format)
16713 {
16714 switch (*format++)
16715 {
16716 case 's': // string
16717 str = va_arg (args_copy, const char *);
16718 break;
16719 case 'd': // int
16720 number = va_arg (args_copy, int);
16721 break;
16722 case 'f': // float
16723 fnumber = va_arg (args_copy, double);
16724 break;
16725 default:
16726 break;
16727 }
16728 }
16729 va_end (args_copy);
16730 va_end (args);
16731}
16732
16733int
16734main ()
16735{
16736
16737 // Check bool.
16738 _Bool success = false;
16739
16740 // Check restrict.
16741 if (test_restrict ("String literal") == 0)
16742 success = true;
16743 char *restrict newvar = "Another string";
16744
16745 // Check varargs.
16746 test_varargs ("s, d' f .", "string", 65, 34.234);
16747 test_varargs_macros ();
16748
16749 // Check flexible array members.
16750 struct incomplete_array *ia =
16751 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16752 ia->datasize = 10;
16753 for (int i = 0; i < ia->datasize; ++i)
16754 ia->data[i] = i * 1.234;
16755
16756 // Check named initializers.
16757 struct named_init ni = {
16758 .number = 34,
16759 .name = L"Test wide string",
16760 .average = 543.34343,
16761 };
16762
16763 ni.number = 58;
16764
16765 int dynamic_array[ni.number];
16766 dynamic_array[ni.number - 1] = 543;
16767
16768 // work around unused variable warnings
16769 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16770 || dynamic_array[ni.number - 1] != 543);
16771
16772 ;
16773 return 0;
16774}
16775_ACEOF
16776for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
16777do
16778 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016779 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016780 ac_cv_prog_cc_c99=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010016781fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016782rm -f core conftest.err conftest.$ac_objext
16783 test "x$ac_cv_prog_cc_c99" != "xno" && break
16784done
16785rm -f conftest.$ac_ext
16786CC=$ac_save_CC
16787
16788fi
16789# AC_CACHE_VAL
16790case "x$ac_cv_prog_cc_c99" in
16791 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016793$as_echo "none needed" >&6; } ;;
16794 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016796$as_echo "unsupported" >&6; } ;;
16797 *)
16798 CC="$CC $ac_cv_prog_cc_c99"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016800$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16801esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070016802if test "x$ac_cv_prog_cc_c99" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016803
Scott James Remnantfde82c92009-09-22 10:04:15 -070016804fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016805
16806
16807# FIXME: we rely on the cache variable name because
16808# there is no other way.
16809set dummy $CC
16810am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16811eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16812if test "$am_t" != yes; then
16813 # Losing compiler, so override with the script.
16814 # FIXME: It is wrong to rewrite CC.
16815 # But if we don't then we get into trouble of one sort or another.
16816 # A longer-term fix would be to have automake use am__CC in this case,
16817 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16818 CC="$am_aux_dir/compile $CC"
16819fi
16820
16821
16822# Check whether --enable-threading was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016823if test "${enable_threading+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016824 enableval=$enable_threading;
16825else
16826 enable_threading=no
16827fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016828if test "x$enable_threading" != "xno" ; then :
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016830$as_echo_n "checking whether compiler supports __thread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016831if test "${nih_cv_c_thread+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016832 $as_echo_n "(cached) " >&6
16833else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016835/* end confdefs.h. */
16836int __thread a;
16837int
16838main ()
16839{
16840
16841 ;
16842 return 0;
16843}
16844_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016845if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016846 nih_cv_c_thread=yes
16847else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016848 nih_cv_c_thread=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016849fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_c_thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016853$as_echo "$nih_cv_c_thread" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016854if test "x$nih_cv_c_thread" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016855
Scott James Remnantfde82c92009-09-22 10:04:15 -070016856$as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016857
16858fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016859else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016860 $as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016861
16862fi
16863
Scott James Remnant65f683d2009-07-14 13:05:17 +010016864# Other checks
16865# Check whether --enable-compiler-warnings was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016866if test "${enable_compiler_warnings+set}" = set; then :
16867 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then :
16868 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016869 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
16870fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016871 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016872 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
16873fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016874fi
16875
Scott James Remnant65f683d2009-07-14 13:05:17 +010016876fi
16877
16878# Check whether --enable-compiler-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016879if test "${enable_compiler_optimisations+set}" = set; then :
16880 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016881 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16882 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16883fi
16884
Scott James Remnant65f683d2009-07-14 13:05:17 +010016885fi
16886
16887# Check whether --enable-compiler-coverage was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016888if test "${enable_compiler_coverage+set}" = set; then :
16889 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then :
16890 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016891 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
16892fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016893 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016894 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
16895fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016896fi
16897
Scott James Remnant65f683d2009-07-14 13:05:17 +010016898fi
16899
16900
16901# Check whether --enable-linker-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016902if test "${enable_linker_optimisations+set}" = set; then :
16903 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016904 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
16905else
16906 LDFLAGS="$LDFLAGS -Wl,-O1"
16907fi
16908
Scott James Remnant65f683d2009-07-14 13:05:17 +010016909fi
16910
Scott James Remnantfde82c92009-09-22 10:04:15 -070016911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version script argument" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016912$as_echo_n "checking for linker version script argument... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016913if test "${nih_cv_version_script+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016914 $as_echo_n "(cached) " >&6
16915else
16916 nih_cv_version_script=none
16917for nih_try_arg in "-Wl,--version-script"; do
16918 nih_old_libs="$LIBS"
16919 LIBS="$LIBS $nih_try_arg=conftest.ver"
16920
16921 cat >conftest.ver <<EOF
16922TEST {
16923 global:
16924 *;
16925};
16926EOF
16927
Scott James Remnantfde82c92009-09-22 10:04:15 -070016928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016929/* end confdefs.h. */
16930
16931int
16932main ()
16933{
16934
16935 ;
16936 return 0;
16937}
16938_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016939if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016940
16941 rm -f conftest.ver
16942 LIBS="$nih_old_libs"
16943 nih_cv_version_script="$nih_try_arg"
16944 break
16945
Scott James Remnant65f683d2009-07-14 13:05:17 +010016946fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016947rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016949
16950 rm -f conftest.ver
16951 LIBS="$nih_old_libs"
16952done
16953fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_version_script" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016955$as_echo "$nih_cv_version_script" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016956if test "x$nih_cv_version_script" != "xnone"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016957 VERSION_SCRIPT_ARG=$nih_cv_version_script
16958
16959fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016960 if test "x$nih_cv_version_script" != "xnone"; then
16961 HAVE_VERSION_SCRIPT_ARG_TRUE=
16962 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
16963else
16964 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
16965 HAVE_VERSION_SCRIPT_ARG_FALSE=
16966fi
16967
16968
16969
16970
16971# Checks for header files.
16972
16973# Checks for typedefs, structures, and compiler characteristics.
16974
16975# Checks for library functions.
16976
16977# Other checks
Scott James Remnantfde82c92009-09-22 10:04:15 -070016978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sbindir in PATH" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016979$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
16980eval upstart_sbindir=\"$sbindir\"
16981case $upstart_sbindir in
16982 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016984$as_echo "no" >&6; }
16985 ;;
16986 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016988$as_echo "yes" >&6; }
16989
16990cat >>confdefs.h <<_ACEOF
16991#define EXTRA_PATH "$upstart_sbindir"
16992_ACEOF
16993
16994 ;;
16995esac
16996
16997
Scott James Remnant2a66c572009-09-15 03:19:16 +010016998pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017000$as_echo_n "checking for UDEV... " >&6; }
17001
17002if test -n "$PKG_CONFIG"; then
17003 if test -n "$UDEV_CFLAGS"; then
17004 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
17005 else
17006 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070017007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017008 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
17009 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070017010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17011 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017012 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 146" 2>/dev/null`
17013else
17014 pkg_failed=yes
17015fi
17016 fi
17017else
17018 pkg_failed=untried
17019fi
17020if test -n "$PKG_CONFIG"; then
17021 if test -n "$UDEV_LIBS"; then
17022 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
17023 else
17024 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070017025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017026 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
17027 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070017028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17029 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017030 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 146" 2>/dev/null`
17031else
17032 pkg_failed=yes
17033fi
17034 fi
17035else
17036 pkg_failed=untried
17037fi
17038
17039
17040
17041if test $pkg_failed = yes; then
17042
17043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17044 _pkg_short_errors_supported=yes
17045else
17046 _pkg_short_errors_supported=no
17047fi
17048 if test $_pkg_short_errors_supported = yes; then
17049 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev >= 146"`
17050 else
17051 UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev >= 146"`
17052 fi
17053 # Put the nasty error message in config.log where it belongs
17054 echo "$UDEV_PKG_ERRORS" >&5
17055
Scott James Remnantfde82c92009-09-22 10:04:15 -070017056 as_fn_error "Package requirements (libudev >= 146) were not met:
Scott James Remnant2a66c572009-09-15 03:19:16 +010017057
17058$UDEV_PKG_ERRORS
17059
17060Consider adjusting the PKG_CONFIG_PATH environment variable if you
17061installed software in a non-standard prefix.
17062
17063Alternatively, you may set the environment variables UDEV_CFLAGS
17064and UDEV_LIBS to avoid the need to call pkg-config.
17065See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017066" "$LINENO" 5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017067elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017070as_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 +010017071is in your PATH or set the PKG_CONFIG environment variable to the full
17072path to pkg-config.
17073
17074Alternatively, you may set the environment variables UDEV_CFLAGS
17075and UDEV_LIBS to avoid the need to call pkg-config.
17076See the pkg-config man page for more details.
17077
17078To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017079See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010017080else
17081 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17082 UDEV_LIBS=$pkg_cv_UDEV_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070017083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017084$as_echo "yes" >&6; }
17085 :
17086fi
17087
17088
17089ac_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 +010017090
17091ac_config_headers="$ac_config_headers config.h"
17092
17093cat >confcache <<\_ACEOF
17094# This file is a shell script that caches the results of configure
17095# tests run on this system so they can be shared between configure
17096# scripts and configure runs, see configure's option --config-cache.
17097# It is not useful on other systems. If it contains results you don't
17098# want to keep, you may remove or edit it.
17099#
17100# config.status only pays attention to the cache file if you give it
17101# the --recheck option to rerun configure.
17102#
17103# `ac_cv_env_foo' variables (set or unset) will be overridden when
17104# loading this file, other *unset* `ac_cv_foo' will be assigned the
17105# following values.
17106
17107_ACEOF
17108
17109# The following way of writing the cache mishandles newlines in values,
17110# but we know of no workaround that is simple, portable, and efficient.
17111# So, we kill variables containing newlines.
17112# Ultrix sh set writes to stderr and can't be redirected directly,
17113# and sets the high bit in the cache file unless we assign to the vars.
17114(
17115 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17116 eval ac_val=\$$ac_var
17117 case $ac_val in #(
17118 *${as_nl}*)
17119 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017120 *_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 +010017121$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17122 esac
17123 case $ac_var in #(
17124 _ | IFS | as_nl) ;; #(
17125 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017126 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017127 esac ;;
17128 esac
17129 done
17130
17131 (set) 2>&1 |
17132 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17133 *${as_nl}ac_space=\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017134 # `set' does not quote correctly, so add quotes: double-quote
17135 # substitution turns \\\\ into \\, and sed turns \\ into \.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017136 sed -n \
17137 "s/'/'\\\\''/g;
17138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17139 ;; #(
17140 *)
17141 # `set' quotes correctly as required by POSIX, so do not add quotes.
17142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17143 ;;
17144 esac |
17145 sort
17146) |
17147 sed '
17148 /^ac_cv_env_/b end
17149 t clear
17150 :clear
17151 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17152 t end
17153 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17154 :end' >>confcache
17155if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17156 if test -w "$cache_file"; then
17157 test "x$cache_file" != "x/dev/null" &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070017158 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017159$as_echo "$as_me: updating cache $cache_file" >&6;}
17160 cat confcache >$cache_file
17161 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017162 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017163$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17164 fi
17165fi
17166rm -f confcache
17167
17168test "x$prefix" = xNONE && prefix=$ac_default_prefix
17169# Let make expand exec_prefix.
17170test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17171
17172DEFS=-DHAVE_CONFIG_H
17173
17174ac_libobjs=
17175ac_ltlibobjs=
17176for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17177 # 1. Remove the extension, and $U if already installed.
17178 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17179 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17180 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17181 # will be set to the directory where LIBOBJS objects are built.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017182 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17183 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017184done
17185LIBOBJS=$ac_libobjs
17186
17187LTLIBOBJS=$ac_ltlibobjs
17188
17189
17190if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017191 as_fn_error "conditional \"AMDEP\" was never defined.
17192Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017193fi
17194if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017195 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17196Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017197fi
Scott James Remnantc5b65582009-09-23 14:16:28 -070017198 if test -n "$EXEEXT"; then
17199 am__EXEEXT_TRUE=
17200 am__EXEEXT_FALSE='#'
17201else
17202 am__EXEEXT_TRUE='#'
17203 am__EXEEXT_FALSE=
17204fi
17205
Scott James Remnant65f683d2009-07-14 13:05:17 +010017206if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017207 as_fn_error "conditional \"INSTALL_NIH\" was never defined.
17208Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017209fi
17210if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017211 as_fn_error "conditional \"HAVE_DBUS\" was never defined.
17212Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017213fi
17214if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017215 as_fn_error "conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
17216Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017217fi
17218
17219: ${CONFIG_STATUS=./config.status}
17220ac_write_fail=0
17221ac_clean_files_save=$ac_clean_files
17222ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070017223{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017224$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017225as_write_fail=0
17226cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017227#! $SHELL
17228# Generated by $as_me.
17229# Run this file to recreate the current configuration.
17230# Compiler output produced by configure, useful for debugging
17231# configure, is in config.log if it exists.
17232
17233debug=false
17234ac_cs_recheck=false
17235ac_cs_silent=false
Scott James Remnant2a66c572009-09-15 03:19:16 +010017236
Scott James Remnantfde82c92009-09-22 10:04:15 -070017237SHELL=\${CONFIG_SHELL-$SHELL}
17238export SHELL
17239_ASEOF
17240cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17241## -------------------- ##
17242## M4sh Initialization. ##
17243## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010017244
17245# Be more Bourne compatible
17246DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnantfde82c92009-09-22 10:04:15 -070017247if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017248 emulate sh
17249 NULLCMD=:
17250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17251 # is contrary to our usage. Disable this feature.
17252 alias -g '${1+"$@"}'='"$@"'
17253 setopt NO_GLOB_SUBST
17254else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017255 case `(set -o) 2>/dev/null` in #(
17256 *posix*) :
17257 set -o posix ;; #(
17258 *) :
17259 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017260esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017261fi
17262
17263
Scott James Remnant65f683d2009-07-14 13:05:17 +010017264as_nl='
17265'
17266export as_nl
17267# Printing a long string crashes Solaris 7 /usr/bin/printf.
17268as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17270as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnantfde82c92009-09-22 10:04:15 -070017271# Prefer a ksh shell builtin over an external printf program on Solaris,
17272# but without wasting forks for bash or zsh.
17273if test -z "$BASH_VERSION$ZSH_VERSION" \
17274 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17275 as_echo='print -r --'
17276 as_echo_n='print -rn --'
17277elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017278 as_echo='printf %s\n'
17279 as_echo_n='printf %s'
17280else
17281 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17282 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17283 as_echo_n='/usr/ucb/echo -n'
17284 else
17285 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17286 as_echo_n_body='eval
17287 arg=$1;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017288 case $arg in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017289 *"$as_nl"*)
17290 expr "X$arg" : "X\\(.*\\)$as_nl";
17291 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17292 esac;
17293 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17294 '
17295 export as_echo_n_body
17296 as_echo_n='sh -c $as_echo_n_body as_echo'
17297 fi
17298 export as_echo_body
17299 as_echo='sh -c $as_echo_body as_echo'
17300fi
17301
17302# The user is always right.
17303if test "${PATH_SEPARATOR+set}" != set; then
17304 PATH_SEPARATOR=:
17305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17306 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17307 PATH_SEPARATOR=';'
17308 }
17309fi
17310
Scott James Remnant65f683d2009-07-14 13:05:17 +010017311
17312# IFS
17313# We need space, tab and new line, in precisely that order. Quoting is
17314# there to prevent editors from complaining about space-tab.
17315# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17316# splitting by setting IFS to empty value.)
17317IFS=" "" $as_nl"
17318
17319# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017320case $0 in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017321 *[\\/]* ) as_myself=$0 ;;
17322 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17323for as_dir in $PATH
17324do
17325 IFS=$as_save_IFS
17326 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017327 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17328 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010017329IFS=$as_save_IFS
17330
17331 ;;
17332esac
17333# We did not find ourselves, most probably we were run as `sh COMMAND'
17334# in which case we are not to be found in the path.
17335if test "x$as_myself" = x; then
17336 as_myself=$0
17337fi
17338if test ! -f "$as_myself"; then
17339 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnantfde82c92009-09-22 10:04:15 -070017340 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017341fi
17342
Scott James Remnantfde82c92009-09-22 10:04:15 -070017343# Unset variables that we do not need and which cause bugs (e.g. in
17344# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17345# suppresses any "Segmentation fault" message there. '((' could
17346# trigger a bug in pdksh 5.2.14.
17347for as_var in BASH_ENV ENV MAIL MAILPATH
17348do eval test x\${$as_var+set} = xset \
17349 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017350done
17351PS1='$ '
17352PS2='> '
17353PS4='+ '
17354
17355# NLS nuisances.
17356LC_ALL=C
17357export LC_ALL
17358LANGUAGE=C
17359export LANGUAGE
17360
Scott James Remnantfde82c92009-09-22 10:04:15 -070017361# CDPATH.
17362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17363
17364
17365# as_fn_error ERROR [LINENO LOG_FD]
17366# ---------------------------------
17367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17369# script with status $?, using 1 if that was 0.
17370as_fn_error ()
17371{
17372 as_status=$?; test $as_status -eq 0 && as_status=1
17373 if test "$3"; then
17374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17376 fi
17377 $as_echo "$as_me: error: $1" >&2
17378 as_fn_exit $as_status
17379} # as_fn_error
17380
17381
17382# as_fn_set_status STATUS
17383# -----------------------
17384# Set $? to STATUS, without forking.
17385as_fn_set_status ()
17386{
17387 return $1
17388} # as_fn_set_status
17389
17390# as_fn_exit STATUS
17391# -----------------
17392# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17393as_fn_exit ()
17394{
17395 set +e
17396 as_fn_set_status $1
17397 exit $1
17398} # as_fn_exit
17399
17400# as_fn_unset VAR
17401# ---------------
17402# Portably unset VAR.
17403as_fn_unset ()
17404{
17405 { eval $1=; unset $1;}
17406}
17407as_unset=as_fn_unset
17408# as_fn_append VAR VALUE
17409# ----------------------
17410# Append the text in VALUE to the end of the definition contained in VAR. Take
17411# advantage of any shell optimizations that allow amortized linear growth over
17412# repeated appends, instead of the typical quadratic growth present in naive
17413# implementations.
17414if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17415 eval 'as_fn_append ()
17416 {
17417 eval $1+=\$2
17418 }'
17419else
17420 as_fn_append ()
17421 {
17422 eval $1=\$$1\$2
17423 }
17424fi # as_fn_append
17425
17426# as_fn_arith ARG...
17427# ------------------
17428# Perform arithmetic evaluation on the ARGs, and store the result in the
17429# global $as_val. Take advantage of shells that can avoid forks. The arguments
17430# must be portable across $(()) and expr.
17431if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17432 eval 'as_fn_arith ()
17433 {
17434 as_val=$(( $* ))
17435 }'
17436else
17437 as_fn_arith ()
17438 {
17439 as_val=`expr "$@" || test $? -eq 1`
17440 }
17441fi # as_fn_arith
17442
17443
Scott James Remnant65f683d2009-07-14 13:05:17 +010017444if expr a : '\(a\)' >/dev/null 2>&1 &&
17445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17446 as_expr=expr
17447else
17448 as_expr=false
17449fi
17450
17451if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17452 as_basename=basename
17453else
17454 as_basename=false
17455fi
17456
Scott James Remnantfde82c92009-09-22 10:04:15 -070017457if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17458 as_dirname=dirname
17459else
17460 as_dirname=false
17461fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017462
Scott James Remnant65f683d2009-07-14 13:05:17 +010017463as_me=`$as_basename -- "$0" ||
17464$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17465 X"$0" : 'X\(//\)$' \| \
17466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17467$as_echo X/"$0" |
17468 sed '/^.*\/\([^/][^/]*\)\/*$/{
17469 s//\1/
17470 q
17471 }
17472 /^X\/\(\/\/\)$/{
17473 s//\1/
17474 q
17475 }
17476 /^X\/\(\/\).*/{
17477 s//\1/
17478 q
17479 }
17480 s/.*/./; q'`
17481
Scott James Remnantfde82c92009-09-22 10:04:15 -070017482# Avoid depending upon Character Ranges.
17483as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17484as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17485as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17486as_cr_digits='0123456789'
17487as_cr_alnum=$as_cr_Letters$as_cr_digits
Scott James Remnant65f683d2009-07-14 13:05:17 +010017488
17489ECHO_C= ECHO_N= ECHO_T=
Scott James Remnantfde82c92009-09-22 10:04:15 -070017490case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017491-n*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017492 case `echo 'xy\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010017493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017494 xy) ECHO_C='\c';;
17495 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17496 ECHO_T=' ';;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017497 esac;;
17498*)
17499 ECHO_N='-n';;
17500esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017501
17502rm -f conf$$ conf$$.exe conf$$.file
17503if test -d conf$$.dir; then
17504 rm -f conf$$.dir/conf$$.file
17505else
17506 rm -f conf$$.dir
17507 mkdir conf$$.dir 2>/dev/null
17508fi
17509if (echo >conf$$.file) 2>/dev/null; then
17510 if ln -s conf$$.file conf$$ 2>/dev/null; then
17511 as_ln_s='ln -s'
17512 # ... but there are two gotchas:
17513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17515 # In both cases, we have to default to `cp -p'.
17516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17517 as_ln_s='cp -p'
17518 elif ln conf$$.file conf$$ 2>/dev/null; then
17519 as_ln_s=ln
17520 else
17521 as_ln_s='cp -p'
17522 fi
17523else
17524 as_ln_s='cp -p'
17525fi
17526rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17527rmdir conf$$.dir 2>/dev/null
17528
Scott James Remnantfde82c92009-09-22 10:04:15 -070017529
17530# as_fn_mkdir_p
17531# -------------
17532# Create "$as_dir" as a directory, including parents if necessary.
17533as_fn_mkdir_p ()
17534{
17535
17536 case $as_dir in #(
17537 -*) as_dir=./$as_dir;;
17538 esac
17539 test -d "$as_dir" || eval $as_mkdir_p || {
17540 as_dirs=
17541 while :; do
17542 case $as_dir in #(
17543 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17544 *) as_qdir=$as_dir;;
17545 esac
17546 as_dirs="'$as_qdir' $as_dirs"
17547 as_dir=`$as_dirname -- "$as_dir" ||
17548$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17549 X"$as_dir" : 'X\(//\)[^/]' \| \
17550 X"$as_dir" : 'X\(//\)$' \| \
17551 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17552$as_echo X"$as_dir" |
17553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17554 s//\1/
17555 q
17556 }
17557 /^X\(\/\/\)[^/].*/{
17558 s//\1/
17559 q
17560 }
17561 /^X\(\/\/\)$/{
17562 s//\1/
17563 q
17564 }
17565 /^X\(\/\).*/{
17566 s//\1/
17567 q
17568 }
17569 s/.*/./; q'`
17570 test -d "$as_dir" && break
17571 done
17572 test -z "$as_dirs" || eval "mkdir $as_dirs"
17573 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17574
17575
17576} # as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010017577if mkdir -p . 2>/dev/null; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017578 as_mkdir_p='mkdir -p "$as_dir"'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017579else
17580 test -d ./-p && rmdir ./-p
17581 as_mkdir_p=false
17582fi
17583
17584if test -x / >/dev/null 2>&1; then
17585 as_test_x='test -x'
17586else
17587 if ls -dL / >/dev/null 2>&1; then
17588 as_ls_L_option=L
17589 else
17590 as_ls_L_option=
17591 fi
17592 as_test_x='
17593 eval sh -c '\''
17594 if test -d "$1"; then
17595 test -d "$1/.";
17596 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017597 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017598 -*)set "./$1";;
17599 esac;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017600 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017601 ???[sx]*):;;*)false;;esac;fi
17602 '\'' sh
17603 '
17604fi
17605as_executable_p=$as_test_x
17606
17607# Sed expression to map a string onto a valid CPP name.
17608as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17609
17610# Sed expression to map a string onto a valid variable name.
17611as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17612
17613
17614exec 6>&1
Scott James Remnantfde82c92009-09-22 10:04:15 -070017615## ----------------------------------- ##
17616## Main body of $CONFIG_STATUS script. ##
17617## ----------------------------------- ##
17618_ASEOF
17619test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017620
Scott James Remnantfde82c92009-09-22 10:04:15 -070017621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622# Save the log message, to keep $0 and so on meaningful, and to
Scott James Remnant65f683d2009-07-14 13:05:17 +010017623# report actual input values of CONFIG_FILES etc. instead of their
17624# values after options handling.
17625ac_log="
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017626This file was extended by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -070017627generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +010017628
17629 CONFIG_FILES = $CONFIG_FILES
17630 CONFIG_HEADERS = $CONFIG_HEADERS
17631 CONFIG_LINKS = $CONFIG_LINKS
17632 CONFIG_COMMANDS = $CONFIG_COMMANDS
17633 $ $0 $@
17634
17635on `(hostname || uname -n) 2>/dev/null | sed 1q`
17636"
17637
17638_ACEOF
17639
17640case $ac_config_files in *"
17641"*) set x $ac_config_files; shift; ac_config_files=$*;;
17642esac
17643
17644case $ac_config_headers in *"
17645"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17646esac
17647
17648
17649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17650# Files that config.status was made for.
17651config_files="$ac_config_files"
17652config_headers="$ac_config_headers"
17653config_commands="$ac_config_commands"
17654
17655_ACEOF
17656
17657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17658ac_cs_usage="\
Scott James Remnantfde82c92009-09-22 10:04:15 -070017659\`$as_me' instantiates files and other configuration actions
17660from templates according to the current configuration. Unless the files
17661and actions are specified as TAGs, all are instantiated by default.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017662
Scott James Remnantfde82c92009-09-22 10:04:15 -070017663Usage: $0 [OPTION]... [TAG]...
Scott James Remnant65f683d2009-07-14 13:05:17 +010017664
17665 -h, --help print this help, then exit
17666 -V, --version print version number and configuration settings, then exit
17667 -q, --quiet, --silent
17668 do not print progress messages
17669 -d, --debug don't remove temporary files
17670 --recheck update $as_me by reconfiguring in the same conditions
17671 --file=FILE[:TEMPLATE]
17672 instantiate the configuration file FILE
17673 --header=FILE[:TEMPLATE]
17674 instantiate the configuration header FILE
17675
17676Configuration files:
17677$config_files
17678
17679Configuration headers:
17680$config_headers
17681
17682Configuration commands:
17683$config_commands
17684
Scott James Remnantfde82c92009-09-22 10:04:15 -070017685Report bugs to <upstart-devel@lists.ubuntu.com>."
Scott James Remnant65f683d2009-07-14 13:05:17 +010017686
17687_ACEOF
17688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17689ac_cs_version="\\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017690upstart config.status 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -070017691configured by $0, generated by GNU Autoconf 2.64,
Scott James Remnant65f683d2009-07-14 13:05:17 +010017692 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17693
Scott James Remnantfde82c92009-09-22 10:04:15 -070017694Copyright (C) 2009 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017695This config.status script is free software; the Free Software Foundation
17696gives unlimited permission to copy, distribute and modify it."
17697
17698ac_pwd='$ac_pwd'
17699srcdir='$srcdir'
17700INSTALL='$INSTALL'
17701MKDIR_P='$MKDIR_P'
17702AWK='$AWK'
17703test -n "\$AWK" || AWK=awk
17704_ACEOF
17705
17706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17707# The default lists apply if the user does not specify any file.
17708ac_need_defaults=:
17709while test $# != 0
17710do
17711 case $1 in
17712 --*=*)
17713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17715 ac_shift=:
17716 ;;
17717 *)
17718 ac_option=$1
17719 ac_optarg=$2
17720 ac_shift=shift
17721 ;;
17722 esac
17723
17724 case $ac_option in
17725 # Handling of the options.
17726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17727 ac_cs_recheck=: ;;
17728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17729 $as_echo "$ac_cs_version"; exit ;;
17730 --debug | --debu | --deb | --de | --d | -d )
17731 debug=: ;;
17732 --file | --fil | --fi | --f )
17733 $ac_shift
17734 case $ac_optarg in
17735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17736 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017737 as_fn_append CONFIG_FILES " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017738 ac_need_defaults=false;;
17739 --header | --heade | --head | --hea )
17740 $ac_shift
17741 case $ac_optarg in
17742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17743 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017744 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017745 ac_need_defaults=false;;
17746 --he | --h)
17747 # Conflict between --help and --header
Scott James Remnantfde82c92009-09-22 10:04:15 -070017748 as_fn_error "ambiguous option: \`$1'
17749Try \`$0 --help' for more information.";;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017750 --help | --hel | -h )
17751 $as_echo "$ac_cs_usage"; exit ;;
17752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17753 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17754 ac_cs_silent=: ;;
17755
17756 # This is an error.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017757 -*) as_fn_error "unrecognized option: \`$1'
17758Try \`$0 --help' for more information." ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017759
Scott James Remnantfde82c92009-09-22 10:04:15 -070017760 *) as_fn_append ac_config_targets " $1"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017761 ac_need_defaults=false ;;
17762
17763 esac
17764 shift
17765done
17766
17767ac_configure_extra_args=
17768
17769if $ac_cs_silent; then
17770 exec 6>/dev/null
17771 ac_configure_extra_args="$ac_configure_extra_args --silent"
17772fi
17773
17774_ACEOF
17775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17776if \$ac_cs_recheck; then
17777 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17778 shift
17779 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17780 CONFIG_SHELL='$SHELL'
17781 export CONFIG_SHELL
17782 exec "\$@"
17783fi
17784
17785_ACEOF
17786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17787exec 5>>config.log
17788{
17789 echo
17790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17791## Running $as_me. ##
17792_ASBOX
17793 $as_echo "$ac_log"
17794} >&5
17795
17796_ACEOF
17797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17798#
17799# INIT-COMMANDS
17800#
17801AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17802
17803
17804# The HP-UX ksh and POSIX shell print the target directory to stdout
17805# if CDPATH is set.
17806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17807
17808sed_quote_subst='$sed_quote_subst'
17809double_quote_subst='$double_quote_subst'
17810delay_variable_subst='$delay_variable_subst'
17811macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17812macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17813enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17814enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17815pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17816enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17817host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17818host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17819host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17820build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17821build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17822build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17823SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17824Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17825GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17826EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17827FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17828LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17829NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17830LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17831max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17832ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17833exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17834lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17835lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17836lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17837reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17838reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17839OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17840deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17841file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17842AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17843AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17844STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17845RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17846old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17847old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17848old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17849CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17850CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17851compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17852GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17853lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17854lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17855lt_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"`'
17856lt_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"`'
17857objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17858SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17859ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17860MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17861lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17862lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17863lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17864lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17865lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17866need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17867DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17868NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17869LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17870OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17871OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17872libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17873shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17874extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17875archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17876enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17877export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17878whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17879compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17880old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17881old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17882archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17883archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17884module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17885module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17886with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17887allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17888no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17889hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17890hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17891hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17892hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17893hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17894hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17895hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17896hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17897inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17898link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17899fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17900always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17901export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17902exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17903include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17904prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17905file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17906variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17907need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17908need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17909version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17910runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17911shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17912shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17913libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17914library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17915soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17916postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17917postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17918finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17919finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17920hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17921sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17922sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17923hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17924enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17925enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17926enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17927old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17928striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17929
17930LTCC='$LTCC'
17931LTCFLAGS='$LTCFLAGS'
17932compiler='$compiler_DEFAULT'
17933
17934# Quote evaled strings.
17935for var in SED \
17936GREP \
17937EGREP \
17938FGREP \
17939LD \
17940NM \
17941LN_S \
17942lt_SP2NL \
17943lt_NL2SP \
17944reload_flag \
17945OBJDUMP \
17946deplibs_check_method \
17947file_magic_cmd \
17948AR \
17949AR_FLAGS \
17950STRIP \
17951RANLIB \
17952CC \
17953CFLAGS \
17954compiler \
17955lt_cv_sys_global_symbol_pipe \
17956lt_cv_sys_global_symbol_to_cdecl \
17957lt_cv_sys_global_symbol_to_c_name_address \
17958lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17959SHELL \
17960ECHO \
17961lt_prog_compiler_no_builtin_flag \
17962lt_prog_compiler_wl \
17963lt_prog_compiler_pic \
17964lt_prog_compiler_static \
17965lt_cv_prog_compiler_c_o \
17966need_locks \
17967DSYMUTIL \
17968NMEDIT \
17969LIPO \
17970OTOOL \
17971OTOOL64 \
17972shrext_cmds \
17973export_dynamic_flag_spec \
17974whole_archive_flag_spec \
17975compiler_needs_object \
17976with_gnu_ld \
17977allow_undefined_flag \
17978no_undefined_flag \
17979hardcode_libdir_flag_spec \
17980hardcode_libdir_flag_spec_ld \
17981hardcode_libdir_separator \
17982fix_srcfile_path \
17983exclude_expsyms \
17984include_expsyms \
17985file_list_spec \
17986variables_saved_for_relink \
17987libname_spec \
17988library_names_spec \
17989soname_spec \
17990finish_eval \
17991old_striplib \
17992striplib; do
17993 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17994 *[\\\\\\\`\\"\\\$]*)
17995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17996 ;;
17997 *)
17998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17999 ;;
18000 esac
18001done
18002
18003# Double-quote double-evaled strings.
18004for var in reload_cmds \
18005old_postinstall_cmds \
18006old_postuninstall_cmds \
18007old_archive_cmds \
18008extract_expsyms_cmds \
18009old_archive_from_new_cmds \
18010old_archive_from_expsyms_cmds \
18011archive_cmds \
18012archive_expsym_cmds \
18013module_cmds \
18014module_expsym_cmds \
18015export_symbols_cmds \
18016prelink_cmds \
18017postinstall_cmds \
18018postuninstall_cmds \
18019finish_cmds \
18020sys_lib_search_path_spec \
18021sys_lib_dlsearch_path_spec; do
18022 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18023 *[\\\\\\\`\\"\\\$]*)
18024 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18025 ;;
18026 *)
18027 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18028 ;;
18029 esac
18030done
18031
18032# Fix-up fallback echo if it was mangled by the above quoting rules.
18033case \$lt_ECHO in
18034*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18035 ;;
18036esac
18037
18038ac_aux_dir='$ac_aux_dir'
18039xsi_shell='$xsi_shell'
18040lt_shell_append='$lt_shell_append'
18041
18042# See if we are running on zsh, and set the options which allow our
18043# commands through without removal of \ escapes INIT.
18044if test -n "\${ZSH_VERSION+set}" ; then
18045 setopt NO_GLOB_SUBST
18046fi
18047
18048
18049 PACKAGE='$PACKAGE'
18050 VERSION='$VERSION'
18051 TIMESTAMP='$TIMESTAMP'
18052 RM='$RM'
18053 ofile='$ofile'
18054
18055
18056
18057# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18058 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18059 # from automake < 1.5.
18060 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18061 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18062 LINGUAS="${LINGUAS-%UNSET%}"
18063
18064
18065_ACEOF
18066
18067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18068
18069# Handling of arguments.
18070for ac_config_target in $ac_config_targets
18071do
18072 case $ac_config_target in
18073 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18074 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18075 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18077 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18078 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18079 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
18080 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
18081 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
18082 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
18083 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
18084 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +010018085 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018086 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
18087 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18088 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18089 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18090 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18091
Scott James Remnantfde82c92009-09-22 10:04:15 -070018092 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018093 esac
18094done
18095
18096
18097# If the user did not use the arguments to specify the items to instantiate,
18098# then the envvar interface is used. Set only those that are not.
18099# We use the long form for the default assignment because of an extremely
18100# bizarre bug on SunOS 4.1.3.
18101if $ac_need_defaults; then
18102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18105fi
18106
18107# Have a temporary directory for convenience. Make it in the build tree
18108# simply because there is no reason against having it here, and in addition,
18109# creating and moving files from /tmp can sometimes cause problems.
18110# Hook for its removal unless debugging.
18111# Note that there is a small window in which the directory will not be cleaned:
18112# after its creation but before its name has been assigned to `$tmp'.
18113$debug ||
18114{
18115 tmp=
18116 trap 'exit_status=$?
18117 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18118' 0
Scott James Remnantfde82c92009-09-22 10:04:15 -070018119 trap 'as_fn_exit 1' 1 2 13 15
Scott James Remnant65f683d2009-07-14 13:05:17 +010018120}
18121# Create a (secure) tmp directory for tmp files.
18122
18123{
18124 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18125 test -n "$tmp" && test -d "$tmp"
18126} ||
18127{
18128 tmp=./conf$$-$RANDOM
18129 (umask 077 && mkdir "$tmp")
Scott James Remnantfde82c92009-09-22 10:04:15 -070018130} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018131
18132# Set up the scripts for CONFIG_FILES section.
18133# No need to generate them if there are no CONFIG_FILES.
18134# This happens for instance with `./config.status config.h'.
18135if test -n "$CONFIG_FILES"; then
18136
18137
Scott James Remnantfde82c92009-09-22 10:04:15 -070018138ac_cr=`echo X | tr X '\015'`
18139# On cygwin, bash can eat \r inside `` if the user requested igncr.
18140# But we know of no other shell where ac_cr would be empty at this
18141# point, so we can use a bashism as a fallback.
18142if test "x$ac_cr" = x; then
18143 eval ac_cr=\$\'\\r\'
18144fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010018145ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18146if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018147 ac_cs_awk_cr='\r'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018148else
18149 ac_cs_awk_cr=$ac_cr
18150fi
18151
18152echo 'BEGIN {' >"$tmp/subs1.awk" &&
18153_ACEOF
18154
18155
18156{
18157 echo "cat >conf$$subs.awk <<_ACEOF" &&
18158 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18159 echo "_ACEOF"
18160} >conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018162ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18163ac_delim='%!_!# '
18164for ac_last_try in false false false false false :; do
18165 . ./conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018166 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018167
18168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18169 if test $ac_delim_n = $ac_delim_num; then
18170 break
18171 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018172 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018173 else
18174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18175 fi
18176done
18177rm -f conf$$subs.sh
18178
18179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18180cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18181_ACEOF
18182sed -n '
18183h
18184s/^/S["/; s/!.*/"]=/
18185p
18186g
18187s/^[^!]*!//
18188:repl
18189t repl
18190s/'"$ac_delim"'$//
18191t delim
18192:nl
18193h
18194s/\(.\{148\}\).*/\1/
18195t more1
18196s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18197p
18198n
18199b repl
18200:more1
18201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18202p
18203g
18204s/.\{148\}//
18205t nl
18206:delim
18207h
18208s/\(.\{148\}\).*/\1/
18209t more2
18210s/["\\]/\\&/g; s/^/"/; s/$/"/
18211p
18212b
18213:more2
18214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18215p
18216g
18217s/.\{148\}//
18218t delim
18219' <conf$$subs.awk | sed '
18220/^[^""]/{
18221 N
18222 s/\n//
18223}
18224' >>$CONFIG_STATUS || ac_write_fail=1
18225rm -f conf$$subs.awk
18226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18227_ACAWK
18228cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18229 for (key in S) S_is_set[key] = 1
18230 FS = ""
18231
18232}
18233{
18234 line = $ 0
18235 nfields = split(line, field, "@")
18236 substed = 0
18237 len = length(field[1])
18238 for (i = 2; i < nfields; i++) {
18239 key = field[i]
18240 keylen = length(key)
18241 if (S_is_set[key]) {
18242 value = S[key]
18243 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18244 len += length(value) + length(field[++i])
18245 substed = 1
18246 } else
18247 len += 1 + keylen
18248 }
18249
18250 print line
18251}
18252
18253_ACAWK
18254_ACEOF
18255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18256if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18257 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18258else
18259 cat
18260fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018261 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018262_ACEOF
18263
18264# VPATH may cause trouble with some makes, so we remove $(srcdir),
18265# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18266# trailing colons and then remove the whole line if VPATH becomes empty
18267# (actually we leave an empty line to preserve line numbers).
18268if test "x$srcdir" = x.; then
18269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18270s/:*\$(srcdir):*/:/
18271s/:*\${srcdir}:*/:/
18272s/:*@srcdir@:*/:/
18273s/^\([^=]*=[ ]*\):*/\1/
18274s/:*$//
18275s/^[^=]*=[ ]*$//
18276}'
18277fi
18278
18279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18280fi # test -n "$CONFIG_FILES"
18281
18282# Set up the scripts for CONFIG_HEADERS section.
18283# No need to generate them if there are no CONFIG_HEADERS.
18284# This happens for instance with `./config.status Makefile'.
18285if test -n "$CONFIG_HEADERS"; then
18286cat >"$tmp/defines.awk" <<\_ACAWK ||
18287BEGIN {
18288_ACEOF
18289
18290# Transform confdefs.h into an awk script `defines.awk', embedded as
18291# here-document in config.status, that substitutes the proper values into
18292# config.h.in to produce config.h.
18293
18294# Create a delimiter string that does not exist in confdefs.h, to ease
18295# handling of long lines.
18296ac_delim='%!_!# '
18297for ac_last_try in false false :; do
18298 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18299 if test -z "$ac_t"; then
18300 break
18301 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018302 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018303 else
18304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18305 fi
18306done
18307
18308# For the awk script, D is an array of macro values keyed by name,
18309# likewise P contains macro parameters if any. Preserve backslash
18310# newline sequences.
18311
18312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18313sed -n '
18314s/.\{148\}/&'"$ac_delim"'/g
18315t rset
18316:rset
18317s/^[ ]*#[ ]*define[ ][ ]*/ /
18318t def
18319d
18320:def
18321s/\\$//
18322t bsnl
18323s/["\\]/\\&/g
18324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18325D["\1"]=" \3"/p
18326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18327d
18328:bsnl
18329s/["\\]/\\&/g
18330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18331D["\1"]=" \3\\\\\\n"\\/p
18332t cont
18333s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18334t cont
18335d
18336:cont
18337n
18338s/.\{148\}/&'"$ac_delim"'/g
18339t clear
18340:clear
18341s/\\$//
18342t bsnlc
18343s/["\\]/\\&/g; s/^/"/; s/$/"/p
18344d
18345:bsnlc
18346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18347b cont
18348' <confdefs.h | sed '
18349s/'"$ac_delim"'/"\\\
18350"/g' >>$CONFIG_STATUS || ac_write_fail=1
18351
18352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18353 for (key in D) D_is_set[key] = 1
18354 FS = ""
18355}
18356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18357 line = \$ 0
18358 split(line, arg, " ")
18359 if (arg[1] == "#") {
18360 defundef = arg[2]
18361 mac1 = arg[3]
18362 } else {
18363 defundef = substr(arg[1], 2)
18364 mac1 = arg[2]
18365 }
18366 split(mac1, mac2, "(") #)
18367 macro = mac2[1]
18368 prefix = substr(line, 1, index(line, defundef) - 1)
18369 if (D_is_set[macro]) {
18370 # Preserve the white space surrounding the "#".
18371 print prefix "define", macro P[macro] D[macro]
18372 next
18373 } else {
18374 # Replace #undef with comments. This is necessary, for example,
18375 # in the case of _POSIX_SOURCE, which is predefined and required
18376 # on some systems where configure will not decide to define it.
18377 if (defundef == "undef") {
18378 print "/*", prefix defundef, macro, "*/"
18379 next
18380 }
18381 }
18382}
18383{ print }
18384_ACAWK
18385_ACEOF
18386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Scott James Remnantfde82c92009-09-22 10:04:15 -070018387 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018388fi # test -n "$CONFIG_HEADERS"
18389
18390
18391eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18392shift
18393for ac_tag
18394do
18395 case $ac_tag in
18396 :[FHLC]) ac_mode=$ac_tag; continue;;
18397 esac
18398 case $ac_mode$ac_tag in
18399 :[FHL]*:*);;
Scott James Remnantfde82c92009-09-22 10:04:15 -070018400 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018401 :[FH]-) ac_tag=-:-;;
18402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18403 esac
18404 ac_save_IFS=$IFS
18405 IFS=:
18406 set x $ac_tag
18407 IFS=$ac_save_IFS
18408 shift
18409 ac_file=$1
18410 shift
18411
18412 case $ac_mode in
18413 :L) ac_source=$1;;
18414 :[FH])
18415 ac_file_inputs=
18416 for ac_f
18417 do
18418 case $ac_f in
18419 -) ac_f="$tmp/stdin";;
18420 *) # Look for the file first in the build tree, then in the source tree
18421 # (if the path is not absolute). The absolute path cannot be DOS-style,
18422 # because $ac_f cannot contain `:'.
18423 test -f "$ac_f" ||
18424 case $ac_f in
18425 [\\/$]*) false;;
18426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18427 esac ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018428 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018429 esac
18430 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070018431 as_fn_append ac_file_inputs " '$ac_f'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010018432 done
18433
18434 # Let's still pretend it is `configure' which instantiates (i.e., don't
18435 # use $as_me), people would be surprised to read:
18436 # /* config.h. Generated by config.status. */
18437 configure_input='Generated from '`
18438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18439 `' by configure.'
18440 if test x"$ac_file" != x-; then
18441 configure_input="$ac_file. $configure_input"
Scott James Remnantfde82c92009-09-22 10:04:15 -070018442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018443$as_echo "$as_me: creating $ac_file" >&6;}
18444 fi
18445 # Neutralize special characters interpreted by sed in replacement strings.
18446 case $configure_input in #(
18447 *\&* | *\|* | *\\* )
18448 ac_sed_conf_input=`$as_echo "$configure_input" |
18449 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18450 *) ac_sed_conf_input=$configure_input;;
18451 esac
18452
18453 case $ac_tag in
18454 *:-:* | *:-) cat >"$tmp/stdin" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018455 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018456 esac
18457 ;;
18458 esac
18459
18460 ac_dir=`$as_dirname -- "$ac_file" ||
18461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18462 X"$ac_file" : 'X\(//\)[^/]' \| \
18463 X"$ac_file" : 'X\(//\)$' \| \
18464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18465$as_echo X"$ac_file" |
18466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18467 s//\1/
18468 q
18469 }
18470 /^X\(\/\/\)[^/].*/{
18471 s//\1/
18472 q
18473 }
18474 /^X\(\/\/\)$/{
18475 s//\1/
18476 q
18477 }
18478 /^X\(\/\).*/{
18479 s//\1/
18480 q
18481 }
18482 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018483 as_dir="$ac_dir"; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018484 ac_builddir=.
18485
18486case "$ac_dir" in
18487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18488*)
18489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18490 # A ".." for each directory in $ac_dir_suffix.
18491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18492 case $ac_top_builddir_sub in
18493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18495 esac ;;
18496esac
18497ac_abs_top_builddir=$ac_pwd
18498ac_abs_builddir=$ac_pwd$ac_dir_suffix
18499# for backward compatibility:
18500ac_top_builddir=$ac_top_build_prefix
18501
18502case $srcdir in
18503 .) # We are building in place.
18504 ac_srcdir=.
18505 ac_top_srcdir=$ac_top_builddir_sub
18506 ac_abs_top_srcdir=$ac_pwd ;;
18507 [\\/]* | ?:[\\/]* ) # Absolute name.
18508 ac_srcdir=$srcdir$ac_dir_suffix;
18509 ac_top_srcdir=$srcdir
18510 ac_abs_top_srcdir=$srcdir ;;
18511 *) # Relative name.
18512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18513 ac_top_srcdir=$ac_top_build_prefix$srcdir
18514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18515esac
18516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18517
18518
18519 case $ac_mode in
18520 :F)
18521 #
18522 # CONFIG_FILE
18523 #
18524
18525 case $INSTALL in
18526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18528 esac
18529 ac_MKDIR_P=$MKDIR_P
18530 case $MKDIR_P in
18531 [\\/$]* | ?:[\\/]* ) ;;
18532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18533 esac
18534_ACEOF
18535
18536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18537# If the template does not know about datarootdir, expand it.
18538# FIXME: This hack should be removed a few years after 2.60.
18539ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant65f683d2009-07-14 13:05:17 +010018540ac_sed_dataroot='
18541/datarootdir/ {
18542 p
18543 q
18544}
18545/@datadir@/p
18546/@docdir@/p
18547/@infodir@/p
18548/@localedir@/p
Scott James Remnantfde82c92009-09-22 10:04:15 -070018549/@mandir@/p'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018550case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18551*datarootdir*) ac_datarootdir_seen=yes;;
18552*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070018553 { $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 +010018554$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18555_ACEOF
18556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18557 ac_datarootdir_hack='
18558 s&@datadir@&$datadir&g
18559 s&@docdir@&$docdir&g
18560 s&@infodir@&$infodir&g
18561 s&@localedir@&$localedir&g
18562 s&@mandir@&$mandir&g
Scott James Remnantfde82c92009-09-22 10:04:15 -070018563 s&\\\${datarootdir}&$datarootdir&g' ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018564esac
18565_ACEOF
18566
18567# Neutralize VPATH when `$srcdir' = `.'.
18568# Shell code in configure.ac might set extrasub.
18569# FIXME: do we really want to maintain this feature?
18570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18571ac_sed_extra="$ac_vpsub
18572$extrasub
18573_ACEOF
18574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18575:t
18576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18577s|@configure_input@|$ac_sed_conf_input|;t t
18578s&@top_builddir@&$ac_top_builddir_sub&;t t
18579s&@top_build_prefix@&$ac_top_build_prefix&;t t
18580s&@srcdir@&$ac_srcdir&;t t
18581s&@abs_srcdir@&$ac_abs_srcdir&;t t
18582s&@top_srcdir@&$ac_top_srcdir&;t t
18583s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18584s&@builddir@&$ac_builddir&;t t
18585s&@abs_builddir@&$ac_abs_builddir&;t t
18586s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18587s&@INSTALL@&$ac_INSTALL&;t t
18588s&@MKDIR_P@&$ac_MKDIR_P&;t t
18589$ac_datarootdir_hack
18590"
18591eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018592 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018593
18594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070018597 { $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 +010018598which seems to be undefined. Please make sure it is defined." >&5
18599$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18600which seems to be undefined. Please make sure it is defined." >&2;}
18601
18602 rm -f "$tmp/stdin"
18603 case $ac_file in
18604 -) cat "$tmp/out" && rm -f "$tmp/out";;
18605 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18606 esac \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018607 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018608 ;;
18609 :H)
18610 #
18611 # CONFIG_HEADER
18612 #
18613 if test x"$ac_file" != x-; then
18614 {
18615 $as_echo "/* $configure_input */" \
18616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18617 } >"$tmp/config.h" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018618 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018619 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018620 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018621$as_echo "$as_me: $ac_file is unchanged" >&6;}
18622 else
18623 rm -f "$ac_file"
18624 mv "$tmp/config.h" "$ac_file" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018625 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018626 fi
18627 else
18628 $as_echo "/* $configure_input */" \
18629 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018630 || as_fn_error "could not create -" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018631 fi
18632# Compute "$ac_file"'s index in $config_headers.
18633_am_arg="$ac_file"
18634_am_stamp_count=1
18635for _am_header in $config_headers :; do
18636 case $_am_header in
18637 $_am_arg | $_am_arg:* )
18638 break ;;
18639 * )
18640 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18641 esac
18642done
18643echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18644$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18645 X"$_am_arg" : 'X\(//\)[^/]' \| \
18646 X"$_am_arg" : 'X\(//\)$' \| \
18647 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18648$as_echo X"$_am_arg" |
18649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18650 s//\1/
18651 q
18652 }
18653 /^X\(\/\/\)[^/].*/{
18654 s//\1/
18655 q
18656 }
18657 /^X\(\/\/\)$/{
18658 s//\1/
18659 q
18660 }
18661 /^X\(\/\).*/{
18662 s//\1/
18663 q
18664 }
18665 s/.*/./; q'`/stamp-h$_am_stamp_count
18666 ;;
18667
Scott James Remnantfde82c92009-09-22 10:04:15 -070018668 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018669$as_echo "$as_me: executing $ac_file commands" >&6;}
18670 ;;
18671 esac
18672
18673
18674 case $ac_file$ac_mode in
18675 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18676 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18677 # are listed without --file. Let's play safe and only enable the eval
18678 # if we detect the quoting.
18679 case $CONFIG_FILES in
18680 *\'*) eval set x "$CONFIG_FILES" ;;
18681 *) set x $CONFIG_FILES ;;
18682 esac
18683 shift
18684 for mf
18685 do
18686 # Strip MF so we end up with the name of the file.
18687 mf=`echo "$mf" | sed -e 's/:.*$//'`
18688 # Check whether this is an Automake generated Makefile or not.
18689 # We used to match only the files named `Makefile.in', but
18690 # some people rename them; so instead we look at the file content.
18691 # Grep'ing the first line is not enough: some people post-process
18692 # each Makefile.in and add a new line on top of each file to say so.
18693 # Grep'ing the whole file is not good either: AIX grep has a line
18694 # limit of 2048, but all sed's we know have understand at least 4000.
18695 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18696 dirpart=`$as_dirname -- "$mf" ||
18697$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18698 X"$mf" : 'X\(//\)[^/]' \| \
18699 X"$mf" : 'X\(//\)$' \| \
18700 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18701$as_echo X"$mf" |
18702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18703 s//\1/
18704 q
18705 }
18706 /^X\(\/\/\)[^/].*/{
18707 s//\1/
18708 q
18709 }
18710 /^X\(\/\/\)$/{
18711 s//\1/
18712 q
18713 }
18714 /^X\(\/\).*/{
18715 s//\1/
18716 q
18717 }
18718 s/.*/./; q'`
18719 else
18720 continue
18721 fi
18722 # Extract the definition of DEPDIR, am__include, and am__quote
18723 # from the Makefile without running `make'.
18724 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18725 test -z "$DEPDIR" && continue
18726 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18727 test -z "am__include" && continue
18728 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18729 # When using ansi2knr, U may be empty or an underscore; expand it
18730 U=`sed -n 's/^U = //p' < "$mf"`
18731 # Find all dependency output files, they are included files with
18732 # $(DEPDIR) in their names. We invoke sed twice because it is the
18733 # simplest approach to changing $(DEPDIR) to its actual value in the
18734 # expansion.
18735 for file in `sed -n "
18736 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18737 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18738 # Make sure the directory exists.
18739 test -f "$dirpart/$file" && continue
18740 fdir=`$as_dirname -- "$file" ||
18741$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18742 X"$file" : 'X\(//\)[^/]' \| \
18743 X"$file" : 'X\(//\)$' \| \
18744 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18745$as_echo X"$file" |
18746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18747 s//\1/
18748 q
18749 }
18750 /^X\(\/\/\)[^/].*/{
18751 s//\1/
18752 q
18753 }
18754 /^X\(\/\/\)$/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\).*/{
18759 s//\1/
18760 q
18761 }
18762 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018763 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018764 # echo "creating $dirpart/$file"
18765 echo '# dummy' > "$dirpart/$file"
18766 done
18767 done
18768}
18769 ;;
18770 "libtool":C)
18771
18772 # See if we are running on zsh, and set the options which allow our
18773 # commands through without removal of \ escapes.
18774 if test -n "${ZSH_VERSION+set}" ; then
18775 setopt NO_GLOB_SUBST
18776 fi
18777
18778 cfgfile="${ofile}T"
18779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18780 $RM "$cfgfile"
18781
18782 cat <<_LT_EOF >> "$cfgfile"
18783#! $SHELL
18784
18785# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18786# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18788# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18789#
18790# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18791# 2006, 2007, 2008 Free Software Foundation, Inc.
18792# Written by Gordon Matzigkeit, 1996
18793#
18794# This file is part of GNU Libtool.
18795#
18796# GNU Libtool is free software; you can redistribute it and/or
18797# modify it under the terms of the GNU General Public License as
18798# published by the Free Software Foundation; either version 2 of
18799# the License, or (at your option) any later version.
18800#
18801# As a special exception to the GNU General Public License,
18802# if you distribute this file as part of a program or library that
18803# is built using GNU Libtool, you may include this file under the
18804# same distribution terms that you use for the rest of that program.
18805#
18806# GNU Libtool is distributed in the hope that it will be useful,
18807# but WITHOUT ANY WARRANTY; without even the implied warranty of
18808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18809# GNU General Public License for more details.
18810#
18811# You should have received a copy of the GNU General Public License
18812# along with GNU Libtool; see the file COPYING. If not, a copy
18813# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18814# obtained by writing to the Free Software Foundation, Inc.,
18815# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18816
18817
18818# The names of the tagged configurations supported by this script.
18819available_tags=""
18820
18821# ### BEGIN LIBTOOL CONFIG
18822
18823# Which release of libtool.m4 was used?
18824macro_version=$macro_version
18825macro_revision=$macro_revision
18826
18827# Whether or not to build shared libraries.
18828build_libtool_libs=$enable_shared
18829
18830# Whether or not to build static libraries.
18831build_old_libs=$enable_static
18832
18833# What type of objects to build.
18834pic_mode=$pic_mode
18835
18836# Whether or not to optimize for fast installation.
18837fast_install=$enable_fast_install
18838
18839# The host system.
18840host_alias=$host_alias
18841host=$host
18842host_os=$host_os
18843
18844# The build system.
18845build_alias=$build_alias
18846build=$build
18847build_os=$build_os
18848
18849# A sed program that does not truncate output.
18850SED=$lt_SED
18851
18852# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18853Xsed="\$SED -e 1s/^X//"
18854
18855# A grep program that handles long lines.
18856GREP=$lt_GREP
18857
18858# An ERE matcher.
18859EGREP=$lt_EGREP
18860
18861# A literal string matcher.
18862FGREP=$lt_FGREP
18863
18864# A BSD- or MS-compatible name lister.
18865NM=$lt_NM
18866
18867# Whether we need soft or hard links.
18868LN_S=$lt_LN_S
18869
18870# What is the maximum length of a command?
18871max_cmd_len=$max_cmd_len
18872
18873# Object file suffix (normally "o").
18874objext=$ac_objext
18875
18876# Executable file suffix (normally "").
18877exeext=$exeext
18878
18879# whether the shell understands "unset".
18880lt_unset=$lt_unset
18881
18882# turn spaces into newlines.
18883SP2NL=$lt_lt_SP2NL
18884
18885# turn newlines into spaces.
18886NL2SP=$lt_lt_NL2SP
18887
18888# How to create reloadable object files.
18889reload_flag=$lt_reload_flag
18890reload_cmds=$lt_reload_cmds
18891
18892# An object symbol dumper.
18893OBJDUMP=$lt_OBJDUMP
18894
18895# Method to check whether dependent libraries are shared objects.
18896deplibs_check_method=$lt_deplibs_check_method
18897
18898# Command to use when deplibs_check_method == "file_magic".
18899file_magic_cmd=$lt_file_magic_cmd
18900
18901# The archiver.
18902AR=$lt_AR
18903AR_FLAGS=$lt_AR_FLAGS
18904
18905# A symbol stripping program.
18906STRIP=$lt_STRIP
18907
18908# Commands used to install an old-style archive.
18909RANLIB=$lt_RANLIB
18910old_postinstall_cmds=$lt_old_postinstall_cmds
18911old_postuninstall_cmds=$lt_old_postuninstall_cmds
18912
18913# A C compiler.
18914LTCC=$lt_CC
18915
18916# LTCC compiler flags.
18917LTCFLAGS=$lt_CFLAGS
18918
18919# Take the output of nm and produce a listing of raw symbols and C names.
18920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18921
18922# Transform the output of nm in a proper C declaration.
18923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18924
18925# Transform the output of nm in a C name address pair.
18926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18927
18928# Transform the output of nm in a C name address pair when lib prefix is needed.
18929global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18930
18931# The name of the directory that contains temporary libtool files.
18932objdir=$objdir
18933
18934# Shell to use when invoking shell scripts.
18935SHELL=$lt_SHELL
18936
18937# An echo program that does not interpret backslashes.
18938ECHO=$lt_ECHO
18939
18940# Used to examine libraries when file_magic_cmd begins with "file".
18941MAGIC_CMD=$MAGIC_CMD
18942
18943# Must we lock files when doing compilation?
18944need_locks=$lt_need_locks
18945
18946# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18947DSYMUTIL=$lt_DSYMUTIL
18948
18949# Tool to change global to local symbols on Mac OS X.
18950NMEDIT=$lt_NMEDIT
18951
18952# Tool to manipulate fat objects and archives on Mac OS X.
18953LIPO=$lt_LIPO
18954
18955# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18956OTOOL=$lt_OTOOL
18957
18958# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18959OTOOL64=$lt_OTOOL64
18960
18961# Old archive suffix (normally "a").
18962libext=$libext
18963
18964# Shared library suffix (normally ".so").
18965shrext_cmds=$lt_shrext_cmds
18966
18967# The commands to extract the exported symbol list from a shared archive.
18968extract_expsyms_cmds=$lt_extract_expsyms_cmds
18969
18970# Variables whose values should be saved in libtool wrapper scripts and
18971# restored at link time.
18972variables_saved_for_relink=$lt_variables_saved_for_relink
18973
18974# Do we need the "lib" prefix for modules?
18975need_lib_prefix=$need_lib_prefix
18976
18977# Do we need a version for libraries?
18978need_version=$need_version
18979
18980# Library versioning type.
18981version_type=$version_type
18982
18983# Shared library runtime path variable.
18984runpath_var=$runpath_var
18985
18986# Shared library path variable.
18987shlibpath_var=$shlibpath_var
18988
18989# Is shlibpath searched before the hard-coded library search path?
18990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18991
18992# Format of library name prefix.
18993libname_spec=$lt_libname_spec
18994
18995# List of archive names. First name is the real one, the rest are links.
18996# The last name is the one that the linker finds with -lNAME
18997library_names_spec=$lt_library_names_spec
18998
18999# The coded name of the library, if different from the real name.
19000soname_spec=$lt_soname_spec
19001
19002# Command to use after installation of a shared archive.
19003postinstall_cmds=$lt_postinstall_cmds
19004
19005# Command to use after uninstallation of a shared archive.
19006postuninstall_cmds=$lt_postuninstall_cmds
19007
19008# Commands used to finish a libtool library installation in a directory.
19009finish_cmds=$lt_finish_cmds
19010
19011# As "finish_cmds", except a single script fragment to be evaled but
19012# not shown.
19013finish_eval=$lt_finish_eval
19014
19015# Whether we should hardcode library paths into libraries.
19016hardcode_into_libs=$hardcode_into_libs
19017
19018# Compile-time system search path for libraries.
19019sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19020
19021# Run-time system search path for libraries.
19022sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19023
19024# Whether dlopen is supported.
19025dlopen_support=$enable_dlopen
19026
19027# Whether dlopen of programs is supported.
19028dlopen_self=$enable_dlopen_self
19029
19030# Whether dlopen of statically linked programs is supported.
19031dlopen_self_static=$enable_dlopen_self_static
19032
19033# Commands to strip libraries.
19034old_striplib=$lt_old_striplib
19035striplib=$lt_striplib
19036
19037
19038# The linker used to build libraries.
19039LD=$lt_LD
19040
19041# Commands used to build an old-style archive.
19042old_archive_cmds=$lt_old_archive_cmds
19043
19044# A language specific compiler.
19045CC=$lt_compiler
19046
19047# Is the compiler the GNU compiler?
19048with_gcc=$GCC
19049
19050# Compiler flag to turn off builtin functions.
19051no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19052
19053# How to pass a linker flag through the compiler.
19054wl=$lt_lt_prog_compiler_wl
19055
19056# Additional compiler flags for building library objects.
19057pic_flag=$lt_lt_prog_compiler_pic
19058
19059# Compiler flag to prevent dynamic linking.
19060link_static_flag=$lt_lt_prog_compiler_static
19061
19062# Does compiler simultaneously support -c and -o options?
19063compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19064
19065# Whether or not to add -lc for building shared libraries.
19066build_libtool_need_lc=$archive_cmds_need_lc
19067
19068# Whether or not to disallow shared libs when runtime libs are static.
19069allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19070
19071# Compiler flag to allow reflexive dlopens.
19072export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19073
19074# Compiler flag to generate shared objects directly from archives.
19075whole_archive_flag_spec=$lt_whole_archive_flag_spec
19076
19077# Whether the compiler copes with passing no objects directly.
19078compiler_needs_object=$lt_compiler_needs_object
19079
19080# Create an old-style archive from a shared archive.
19081old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19082
19083# Create a temporary old-style archive to link instead of a shared archive.
19084old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19085
19086# Commands used to build a shared archive.
19087archive_cmds=$lt_archive_cmds
19088archive_expsym_cmds=$lt_archive_expsym_cmds
19089
19090# Commands used to build a loadable module if different from building
19091# a shared archive.
19092module_cmds=$lt_module_cmds
19093module_expsym_cmds=$lt_module_expsym_cmds
19094
19095# Whether we are building with GNU ld or not.
19096with_gnu_ld=$lt_with_gnu_ld
19097
19098# Flag that allows shared libraries with undefined symbols to be built.
19099allow_undefined_flag=$lt_allow_undefined_flag
19100
19101# Flag that enforces no undefined symbols.
19102no_undefined_flag=$lt_no_undefined_flag
19103
19104# Flag to hardcode \$libdir into a binary during linking.
19105# This must work even if \$libdir does not exist
19106hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19107
19108# If ld is used when linking, flag to hardcode \$libdir into a binary
19109# during linking. This must work even if \$libdir does not exist.
19110hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19111
19112# Whether we need a single "-rpath" flag with a separated argument.
19113hardcode_libdir_separator=$lt_hardcode_libdir_separator
19114
19115# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19116# DIR into the resulting binary.
19117hardcode_direct=$hardcode_direct
19118
19119# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19120# DIR into the resulting binary and the resulting library dependency is
19121# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19122# library is relocated.
19123hardcode_direct_absolute=$hardcode_direct_absolute
19124
19125# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19126# into the resulting binary.
19127hardcode_minus_L=$hardcode_minus_L
19128
19129# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19130# into the resulting binary.
19131hardcode_shlibpath_var=$hardcode_shlibpath_var
19132
19133# Set to "yes" if building a shared library automatically hardcodes DIR
19134# into the library and all subsequent libraries and executables linked
19135# against it.
19136hardcode_automatic=$hardcode_automatic
19137
19138# Set to yes if linker adds runtime paths of dependent libraries
19139# to runtime path list.
19140inherit_rpath=$inherit_rpath
19141
19142# Whether libtool must link a program against all its dependency libraries.
19143link_all_deplibs=$link_all_deplibs
19144
19145# Fix the shell variable \$srcfile for the compiler.
19146fix_srcfile_path=$lt_fix_srcfile_path
19147
19148# Set to "yes" if exported symbols are required.
19149always_export_symbols=$always_export_symbols
19150
19151# The commands to list exported symbols.
19152export_symbols_cmds=$lt_export_symbols_cmds
19153
19154# Symbols that should not be listed in the preloaded symbols.
19155exclude_expsyms=$lt_exclude_expsyms
19156
19157# Symbols that must always be exported.
19158include_expsyms=$lt_include_expsyms
19159
19160# Commands necessary for linking programs (against libraries) with templates.
19161prelink_cmds=$lt_prelink_cmds
19162
19163# Specify filename containing input files.
19164file_list_spec=$lt_file_list_spec
19165
19166# How to hardcode a shared library path into an executable.
19167hardcode_action=$hardcode_action
19168
19169# ### END LIBTOOL CONFIG
19170
19171_LT_EOF
19172
19173 case $host_os in
19174 aix3*)
19175 cat <<\_LT_EOF >> "$cfgfile"
19176# AIX sometimes has problems with the GCC collect2 program. For some
19177# reason, if we set the COLLECT_NAMES environment variable, the problems
19178# vanish in a puff of smoke.
19179if test "X${COLLECT_NAMES+set}" != Xset; then
19180 COLLECT_NAMES=
19181 export COLLECT_NAMES
19182fi
19183_LT_EOF
19184 ;;
19185 esac
19186
19187
19188ltmain="$ac_aux_dir/ltmain.sh"
19189
19190
19191 # We use sed instead of cat because bash on DJGPP gets confused if
19192 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19193 # text mode, it properly converts lines to CR/LF. This bash problem
19194 # is reportedly fixed, but why not run on old versions too?
19195 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19196 || (rm -f "$cfgfile"; exit 1)
19197
19198 case $xsi_shell in
19199 yes)
19200 cat << \_LT_EOF >> "$cfgfile"
19201
19202# func_dirname file append nondir_replacement
19203# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19204# otherwise set result to NONDIR_REPLACEMENT.
19205func_dirname ()
19206{
19207 case ${1} in
19208 */*) func_dirname_result="${1%/*}${2}" ;;
19209 * ) func_dirname_result="${3}" ;;
19210 esac
19211}
19212
19213# func_basename file
19214func_basename ()
19215{
19216 func_basename_result="${1##*/}"
19217}
19218
19219# func_dirname_and_basename file append nondir_replacement
19220# perform func_basename and func_dirname in a single function
19221# call:
19222# dirname: Compute the dirname of FILE. If nonempty,
19223# add APPEND to the result, otherwise set result
19224# to NONDIR_REPLACEMENT.
19225# value returned in "$func_dirname_result"
19226# basename: Compute filename of FILE.
19227# value retuned in "$func_basename_result"
19228# Implementation must be kept synchronized with func_dirname
19229# and func_basename. For efficiency, we do not delegate to
19230# those functions but instead duplicate the functionality here.
19231func_dirname_and_basename ()
19232{
19233 case ${1} in
19234 */*) func_dirname_result="${1%/*}${2}" ;;
19235 * ) func_dirname_result="${3}" ;;
19236 esac
19237 func_basename_result="${1##*/}"
19238}
19239
19240# func_stripname prefix suffix name
19241# strip PREFIX and SUFFIX off of NAME.
19242# PREFIX and SUFFIX must not contain globbing or regex special
19243# characters, hashes, percent signs, but SUFFIX may contain a leading
19244# dot (in which case that matches only a dot).
19245func_stripname ()
19246{
19247 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19248 # positional parameters, so assign one to ordinary parameter first.
19249 func_stripname_result=${3}
19250 func_stripname_result=${func_stripname_result#"${1}"}
19251 func_stripname_result=${func_stripname_result%"${2}"}
19252}
19253
19254# func_opt_split
19255func_opt_split ()
19256{
19257 func_opt_split_opt=${1%%=*}
19258 func_opt_split_arg=${1#*=}
19259}
19260
19261# func_lo2o object
19262func_lo2o ()
19263{
19264 case ${1} in
19265 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19266 *) func_lo2o_result=${1} ;;
19267 esac
19268}
19269
19270# func_xform libobj-or-source
19271func_xform ()
19272{
19273 func_xform_result=${1%.*}.lo
19274}
19275
19276# func_arith arithmetic-term...
19277func_arith ()
19278{
19279 func_arith_result=$(( $* ))
19280}
19281
19282# func_len string
19283# STRING may not start with a hyphen.
19284func_len ()
19285{
19286 func_len_result=${#1}
19287}
19288
19289_LT_EOF
19290 ;;
19291 *) # Bourne compatible functions.
19292 cat << \_LT_EOF >> "$cfgfile"
19293
19294# func_dirname file append nondir_replacement
19295# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19296# otherwise set result to NONDIR_REPLACEMENT.
19297func_dirname ()
19298{
19299 # Extract subdirectory from the argument.
19300 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19301 if test "X$func_dirname_result" = "X${1}"; then
19302 func_dirname_result="${3}"
19303 else
19304 func_dirname_result="$func_dirname_result${2}"
19305 fi
19306}
19307
19308# func_basename file
19309func_basename ()
19310{
19311 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19312}
19313
19314
19315# func_stripname prefix suffix name
19316# strip PREFIX and SUFFIX off of NAME.
19317# PREFIX and SUFFIX must not contain globbing or regex special
19318# characters, hashes, percent signs, but SUFFIX may contain a leading
19319# dot (in which case that matches only a dot).
19320# func_strip_suffix prefix name
19321func_stripname ()
19322{
19323 case ${2} in
19324 .*) func_stripname_result=`$ECHO "X${3}" \
19325 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19326 *) func_stripname_result=`$ECHO "X${3}" \
19327 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19328 esac
19329}
19330
19331# sed scripts:
19332my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19333my_sed_long_arg='1s/^-[^=]*=//'
19334
19335# func_opt_split
19336func_opt_split ()
19337{
19338 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19339 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19340}
19341
19342# func_lo2o object
19343func_lo2o ()
19344{
19345 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19346}
19347
19348# func_xform libobj-or-source
19349func_xform ()
19350{
19351 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19352}
19353
19354# func_arith arithmetic-term...
19355func_arith ()
19356{
19357 func_arith_result=`expr "$@"`
19358}
19359
19360# func_len string
19361# STRING may not start with a hyphen.
19362func_len ()
19363{
19364 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19365}
19366
19367_LT_EOF
19368esac
19369
19370case $lt_shell_append in
19371 yes)
19372 cat << \_LT_EOF >> "$cfgfile"
19373
19374# func_append var value
19375# Append VALUE to the end of shell variable VAR.
19376func_append ()
19377{
19378 eval "$1+=\$2"
19379}
19380_LT_EOF
19381 ;;
19382 *)
19383 cat << \_LT_EOF >> "$cfgfile"
19384
19385# func_append var value
19386# Append VALUE to the end of shell variable VAR.
19387func_append ()
19388{
19389 eval "$1=\$$1\$2"
19390}
19391
19392_LT_EOF
19393 ;;
19394 esac
19395
19396
19397 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19398 || (rm -f "$cfgfile"; exit 1)
19399
19400 mv -f "$cfgfile" "$ofile" ||
19401 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19402 chmod +x "$ofile"
19403
19404 ;;
19405 "po-directories":C)
19406 for ac_file in $CONFIG_FILES; do
19407 # Support "outfile[:infile[:infile...]]"
19408 case "$ac_file" in
19409 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19410 esac
19411 # PO directories have a Makefile.in generated from Makefile.in.in.
19412 case "$ac_file" in */Makefile.in)
19413 # Adjust a relative srcdir.
19414 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19415 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19416 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19417 # In autoconf-2.13 it is called $ac_given_srcdir.
19418 # In autoconf-2.50 it is called $srcdir.
19419 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19420 case "$ac_given_srcdir" in
19421 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19422 /*) top_srcdir="$ac_given_srcdir" ;;
19423 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19424 esac
19425 # Treat a directory as a PO directory if and only if it has a
19426 # POTFILES.in file. This allows packages to have multiple PO
19427 # directories under different names or in different locations.
19428 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19429 rm -f "$ac_dir/POTFILES"
19430 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19431 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19432 POMAKEFILEDEPS="POTFILES.in"
19433 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19434 # on $ac_dir but don't depend on user-specified configuration
19435 # parameters.
19436 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19437 # The LINGUAS file contains the set of available languages.
19438 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19439 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19440 fi
19441 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19442 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19443 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19444 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19445 else
19446 # The set of available languages was given in configure.in.
19447 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19448 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19449 fi
19450 # Compute POFILES
19451 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19452 # Compute UPDATEPOFILES
19453 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19454 # Compute DUMMYPOFILES
19455 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19456 # Compute GMOFILES
19457 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19458 case "$ac_given_srcdir" in
19459 .) srcdirpre= ;;
19460 *) srcdirpre='$(srcdir)/' ;;
19461 esac
19462 POFILES=
19463 UPDATEPOFILES=
19464 DUMMYPOFILES=
19465 GMOFILES=
19466 for lang in $ALL_LINGUAS; do
19467 POFILES="$POFILES $srcdirpre$lang.po"
19468 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19469 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19470 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19471 done
19472 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19473 # environment variable.
19474 INST_LINGUAS=
19475 if test -n "$ALL_LINGUAS"; then
19476 for presentlang in $ALL_LINGUAS; do
19477 useit=no
19478 if test "%UNSET%" != "$LINGUAS"; then
19479 desiredlanguages="$LINGUAS"
19480 else
19481 desiredlanguages="$ALL_LINGUAS"
19482 fi
19483 for desiredlang in $desiredlanguages; do
19484 # Use the presentlang catalog if desiredlang is
19485 # a. equal to presentlang, or
19486 # b. a variant of presentlang (because in this case,
19487 # presentlang can be used as a fallback for messages
19488 # which are not translated in the desiredlang catalog).
19489 case "$desiredlang" in
19490 "$presentlang"*) useit=yes;;
19491 esac
19492 done
19493 if test $useit = yes; then
19494 INST_LINGUAS="$INST_LINGUAS $presentlang"
19495 fi
19496 done
19497 fi
19498 CATALOGS=
19499 if test -n "$INST_LINGUAS"; then
19500 for lang in $INST_LINGUAS; do
19501 CATALOGS="$CATALOGS $lang.gmo"
19502 done
19503 fi
19504 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19505 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"
19506 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19507 if test -f "$f"; then
19508 case "$f" in
19509 *.orig | *.bak | *~) ;;
19510 *) cat "$f" >> "$ac_dir/Makefile" ;;
19511 esac
19512 fi
19513 done
19514 fi
19515 ;;
19516 esac
19517 done ;;
19518
19519 esac
19520done # for ac_tag
19521
19522
Scott James Remnantfde82c92009-09-22 10:04:15 -070019523as_fn_exit 0
Scott James Remnant65f683d2009-07-14 13:05:17 +010019524_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019525ac_clean_files=$ac_clean_files_save
19526
19527test $ac_write_fail = 0 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070019528 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019529
19530
19531# configure is writing to config.log, and then calls config.status.
19532# config.status does its own redirection, appending to config.log.
19533# Unfortunately, on DOS this fails, as config.log is still kept open
19534# by configure, so config.status won't be able to write to it; its
19535# output is simply discarded. So we exec the FD to /dev/null,
19536# effectively closing config.log, so it can be properly (re)opened and
19537# appended to by config.status. When coming back to configure, we
19538# need to make the FD available again.
19539if test "$no_create" != yes; then
19540 ac_cs_success=:
19541 ac_config_status_args=
19542 test "$silent" = yes &&
19543 ac_config_status_args="$ac_config_status_args --quiet"
19544 exec 5>/dev/null
19545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19546 exec 5>>config.log
19547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19548 # would make configure fail if this is the last instruction.
Scott James Remnantfde82c92009-09-22 10:04:15 -070019549 $ac_cs_success || as_fn_exit $?
Scott James Remnant65f683d2009-07-14 13:05:17 +010019550fi
19551if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070019552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019553$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19554fi
19555