blob: 0b4076e3540214bcc38c81c5b77fc75951206b86 [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
Scott James Remnant2c84e532009-10-14 05:31:38 +0100755NIH_DBUS_TOOL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100756HAVE_DBUS_FALSE
757HAVE_DBUS_TRUE
758EXPAT_LIBS
759DBUS_LIBS
760DBUS_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100761INSTALL_NIH_FALSE
762INSTALL_NIH_TRUE
Scott James Remnant2a66c572009-09-15 03:19:16 +0100763PKG_CONFIG
Scott James Remnant65f683d2009-07-14 13:05:17 +0100764POSUB
765LTLIBINTL
766LIBINTL
767INTLLIBS
768INTL_LIBTOOL_SUFFIX_PREFIX
769INTLOBJS
770GENCAT
771INSTOBJEXT
772DATADIRNAME
773CATOBJEXT
774USE_INCLUDED_LIBINTL
775BUILD_INCLUDED_LIBINTL
776WOE32DLL
777HAVE_WPRINTF
778HAVE_SNPRINTF
779HAVE_ASPRINTF
780HAVE_POSIX_PRINTF
781INTL_MACOSX_LIBS
782GLIBC21
783INTLBISON
784LTLIBICONV
785LIBICONV
786LTLIBMULTITHREAD
787LIBMULTITHREAD
788LTLIBTHREAD
789LIBTHREAD
790LTLIBPTH
791LIBPTH
792PRI_MACROS_BROKEN
793ALLOCA
794HAVE_VISIBILITY
795CFLAG_VISIBILITY
796GLIBC2
797MSGMERGE
798XGETTEXT_015
799XGETTEXT
800GMSGFMT_015
801MSGFMT_015
802GMSGFMT
803MSGFMT
804USE_NLS
805OTOOL64
806OTOOL
807LIPO
808NMEDIT
809DSYMUTIL
810lt_ECHO
811RANLIB
812AR
813OBJDUMP
814LN_S
815NM
816ac_ct_DUMPBIN
817DUMPBIN
818LD
819FGREP
820SED
821host_os
822host_vendor
823host_cpu
824host
825build_os
826build_vendor
827build_cpu
828build
829LIBTOOL
830am__fastdepCC_FALSE
831am__fastdepCC_TRUE
832CCDEPMODE
833AMDEPBACKSLASH
834AMDEP_FALSE
835AMDEP_TRUE
836am__quote
837am__include
838DEPDIR
839am__untar
840am__tar
841AMTAR
842am__leading_dot
843SET_MAKE
844AWK
845mkdir_p
846MKDIR_P
847INSTALL_STRIP_PROGRAM
848STRIP
849install_sh
850MAKEINFO
851AUTOHEADER
852AUTOMAKE
853AUTOCONF
854ACLOCAL
855VERSION
856PACKAGE
857CYGPATH_W
858am__isrc
859INSTALL_DATA
860INSTALL_SCRIPT
861INSTALL_PROGRAM
862EGREP
863GREP
864CPP
865OBJEXT
866EXEEXT
867ac_ct_CC
868CPPFLAGS
869LDFLAGS
870CFLAGS
871CC
872target_alias
873host_alias
874build_alias
875LIBS
876ECHO_T
877ECHO_N
878ECHO_C
879DEFS
880PACKAGE_COPYRIGHT
881mandir
882localedir
883libdir
884psdir
885pdfdir
886dvidir
887htmldir
888infodir
889docdir
890oldincludedir
891includedir
892localstatedir
893sharedstatedir
894sysconfdir
895datadir
896datarootdir
897libexecdir
898sbindir
899bindir
900program_transform_name
901prefix
902exec_prefix
Scott James Remnantfde82c92009-09-22 10:04:15 -0700903PACKAGE_URL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100904PACKAGE_BUGREPORT
905PACKAGE_STRING
906PACKAGE_VERSION
907PACKAGE_TARNAME
908PACKAGE_NAME
909PATH_SEPARATOR
910SHELL'
911ac_subst_files=''
912ac_user_opts='
913enable_option_checking
914enable_dependency_tracking
915enable_shared
916enable_static
917with_pic
918enable_fast_install
919with_gnu_ld
920enable_libtool_lock
921enable_nls
922enable_threads
923enable_rpath
924with_libpth_prefix
925with_libiconv_prefix
926with_included_gettext
927with_libintl_prefix
928enable_threading
929enable_compiler_warnings
930enable_compiler_optimisations
931enable_compiler_coverage
932enable_linker_optimisations
933'
934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940LIBS
941CPPFLAGS
942CPP
943PKG_CONFIG
944DBUS_CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100945DBUS_LIBS
Scott James Remnant2c84e532009-10-14 05:31:38 +0100946NIH_DBUS_TOOL
Scott James Remnant2a66c572009-09-15 03:19:16 +0100947UDEV_CFLAGS
948UDEV_LIBS'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100949
950
951# Initialize some variables set by options.
952ac_init_help=
953ac_init_version=false
954ac_unrecognized_opts=
955ac_unrecognized_sep=
956# The variables have the same names as the options, with
957# dashes changed to underlines.
958cache_file=/dev/null
959exec_prefix=NONE
960no_create=
961no_recursion=
962prefix=NONE
963program_prefix=NONE
964program_suffix=NONE
965program_transform_name=s,x,x,
966silent=
967site=
968srcdir=
969verbose=
970x_includes=NONE
971x_libraries=NONE
972
973# Installation directory options.
974# These are left unexpanded so users can "make install exec_prefix=/foo"
975# and all the variables that are supposed to be based on exec_prefix
976# by default will actually change.
977# Use braces instead of parens because sh, perl, etc. also accept them.
978# (The list follows the same order as the GNU Coding Standards.)
979bindir='${exec_prefix}/bin'
980sbindir='${exec_prefix}/sbin'
981libexecdir='${exec_prefix}/libexec'
982datarootdir='${prefix}/share'
983datadir='${datarootdir}'
984sysconfdir='${prefix}/etc'
985sharedstatedir='${prefix}/com'
986localstatedir='${prefix}/var'
987includedir='${prefix}/include'
988oldincludedir='/usr/include'
989docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990infodir='${datarootdir}/info'
991htmldir='${docdir}'
992dvidir='${docdir}'
993pdfdir='${docdir}'
994psdir='${docdir}'
995libdir='${exec_prefix}/lib'
996localedir='${datarootdir}/locale'
997mandir='${datarootdir}/man'
998
999ac_prev=
1000ac_dashdash=
1001for ac_option
1002do
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1006 ac_prev=
1007 continue
1008 fi
1009
1010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
1014
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017 case $ac_dashdash$ac_option in
1018 --)
1019 ac_dashdash=yes ;;
1020
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1025
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1030
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1037
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1040
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1045
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1052
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001057 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062"enable_$ac_useropt"
1063"*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=no ;;
1068
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1073
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1078
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001083 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088"enable_$ac_useropt"
1089"*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1094
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1103
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1107
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1114
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1119
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1125
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1132
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1137
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1142
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1149
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1154
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1161
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1166
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1170
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1174
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1178
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1187
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1192
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1199
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1206
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1223
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1228
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1233
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001287 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1291 *"
1292"with_$ac_useropt"
1293"*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1298
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001303 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308"with_$ac_useropt"
1309"*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1314
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1318
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1325
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1332
Scott James Remnantfde82c92009-09-22 10:04:15 -07001333 -*) as_fn_error "unrecognized option: \`$ac_option'
1334Try \`$0 --help' for more information."
Scott James Remnant65f683d2009-07-14 13:05:17 +01001335 ;;
1336
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
Scott James Remnantfde82c92009-09-22 10:04:15 -07001340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1343 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01001344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1346
1347 *)
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 ;;
1354
1355 esac
1356done
1357
1358if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07001360 as_fn_error "missing argument to $ac_option"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001361fi
1362
1363if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07001366 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1369fi
1370
1371# Check all directory arguments for consistency.
1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1376do
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07001389 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001390done
1391
1392# There might be people who depend on the old broken behavior: `$host'
1393# used to hold the argument of --host etc.
1394# FIXME: To remove some day.
1395build=$build_alias
1396host=$host_alias
1397target=$target_alias
1398
1399# FIXME: To remove some day.
1400if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1404 If a cross compiler is detected then cross compile mode will be used." >&2
1405 elif test "x$build_alias" != "x$host_alias"; then
1406 cross_compiling=yes
1407 fi
1408fi
1409
1410ac_tool_prefix=
1411test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412
1413test "$silent" = yes && exec 6>/dev/null
1414
1415
1416ac_pwd=`pwd` && test -n "$ac_pwd" &&
1417ac_ls_di=`ls -di .` &&
1418ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001419 as_fn_error "working directory cannot be determined"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001420test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001421 as_fn_error "pwd does not report name of working directory"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001422
1423
1424# Find the source files, if location was not specified.
1425if test -z "$srcdir"; then
1426 ac_srcdir_defaulted=yes
1427 # Try the directory containing this script, then the parent directory.
1428 ac_confdir=`$as_dirname -- "$as_myself" ||
1429$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430 X"$as_myself" : 'X\(//\)[^/]' \| \
1431 X"$as_myself" : 'X\(//\)$' \| \
1432 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433$as_echo X"$as_myself" |
1434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)[^/].*/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)$/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\).*/{
1447 s//\1/
1448 q
1449 }
1450 s/.*/./; q'`
1451 srcdir=$ac_confdir
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 srcdir=..
1454 fi
1455else
1456 ac_srcdir_defaulted=no
1457fi
1458if test ! -r "$srcdir/$ac_unique_file"; then
1459 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnantfde82c92009-09-22 10:04:15 -07001460 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001461fi
1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463ac_abs_confdir=`(
Scott James Remnantfde82c92009-09-22 10:04:15 -07001464 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001465 pwd)`
1466# When building in place, set srcdir=.
1467if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1469fi
1470# Remove unnecessary trailing slashes from srcdir.
1471# Double slashes in file names in object file debugging info
1472# mess up M-x gdb in Emacs.
1473case $srcdir in
1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475esac
1476for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481done
1482
1483#
1484# Report the --help message.
1485#
1486if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001490\`configure' configures upstart 0.6.3 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001491
1492Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495VAR=VALUE. See below for descriptions of some of the useful variables.
1496
1497Defaults for the options are specified in brackets.
1498
1499Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509
1510Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1515
1516By default, \`make install' will install all the files in
1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519for instance \`--prefix=\$HOME'.
1520
1521For better control, use the options below.
1522
1523Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543_ACEOF
1544
1545 cat <<\_ACEOF
1546
1547Program names:
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551
1552System types:
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555_ACEOF
1556fi
1557
1558if test -n "$ac_init_help"; then
1559 case $ac_init_help in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001560 short | recursive ) echo "Configuration of upstart 0.6.3:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001561 esac
1562 cat <<\_ACEOF
1563
1564Optional Features:
1565 --disable-option-checking ignore unrecognized --enable/--with options
1566 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1567 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-static[=PKGS] build static libraries [default=yes]
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1575 --disable-nls do not use Native Language Support
1576 --enable-threads={posix|solaris|pth|win32}
1577 specify multithreading API
1578 --disable-threads build without multithread safety
1579 --disable-rpath do not hardcode runtime library paths
1580 --enable-threading Enable support for multi-threading
1581 --enable-compiler-warnings
1582 Enable additional compiler warnings
1583 --disable-compiler-optimisations
1584 Disable compiler optimisations
1585 --enable-compiler-coverage
1586 Enable generation of coverage data
1587 --disable-linker-optimisations
1588 Disable linker optimisations
1589
1590Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pic try to use only PIC/non-PIC objects [default=use
1594 both]
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-gnu-ld assume the C compiler uses GNU ld default=no
1597 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1598 --without-libpth-prefix don't search for libpth in includedir and libdir
1599 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1600 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1601 --with-included-gettext use the GNU gettext library included here
1602 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1603 --without-libintl-prefix don't search for libintl in includedir and libdir
1604
1605Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 CPP C preprocessor
1614 PKG_CONFIG path to pkg-config utility
1615 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1616 DBUS_LIBS linker flags for DBUS, overriding pkg-config
Scott James Remnant2c84e532009-10-14 05:31:38 +01001617 NIH_DBUS_TOOL
1618 Path to external nih-dbus-tool when cross-compiling
Scott James Remnant2a66c572009-09-15 03:19:16 +01001619 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1620 UDEV_LIBS linker flags for UDEV, overriding pkg-config
Scott James Remnant65f683d2009-07-14 13:05:17 +01001621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
1625Report bugs to <upstart-devel@lists.ubuntu.com>.
1626_ACEOF
1627ac_status=$?
1628fi
1629
1630if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
1636 ac_builddir=.
1637
1638case "$ac_dir" in
1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640*)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648esac
1649ac_abs_top_builddir=$ac_pwd
1650ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651# for backward compatibility:
1652ac_top_builddir=$ac_top_build_prefix
1653
1654case $srcdir in
1655 .) # We are building in place.
1656 ac_srcdir=.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1667esac
1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683fi
1684
1685test -n "$ac_init_help" && exit $ac_status
1686if $ac_init_version; then
1687 cat <<\_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001688upstart configure 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -07001689generated by GNU Autoconf 2.64
Scott James Remnant65f683d2009-07-14 13:05:17 +01001690
1691Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnantfde82c92009-09-22 10:04:15 -070016922002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
1693Foundation, Inc.
1694
Scott James Remnant65f683d2009-07-14 13:05:17 +01001695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
1697
1698Copyright © 2009 Canonical Ltd.
1699_ACEOF
1700 exit
1701fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07001702
1703## ------------------------ ##
1704## Autoconf initialization. ##
1705## ------------------------ ##
1706
1707# ac_fn_c_try_compile LINENO
1708# --------------------------
1709# Try to compile conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_compile ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1
1739fi
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1742
1743} # ac_fn_c_try_compile
1744
1745# ac_fn_c_try_cpp LINENO
1746# ----------------------
1747# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748ac_fn_c_try_cpp ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } >/dev/null && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776fi
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 return $ac_retval
1779
1780} # ac_fn_c_try_cpp
1781
1782# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783# -------------------------------------------------------
1784# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785# the include files in INCLUDES and setting the cache variable VAR
1786# accordingly.
1787ac_fn_c_check_header_mongrel ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795fi
1796eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799else
1800 # Is the header compilable?
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802$as_echo_n "checking $2 usability... " >&6; }
1803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h. */
1805$4
1806#include <$2>
1807_ACEOF
1808if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1810else
1811 ac_header_compiler=no
1812fi
1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815$as_echo "$ac_header_compiler" >&6; }
1816
1817# Is the header present?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819$as_echo_n "checking $2 presence... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h. */
1822#include <$2>
1823_ACEOF
1824if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1826else
1827 ac_header_preproc=no
1828fi
1829rm -f conftest.err conftest.$ac_ext
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831$as_echo "$ac_header_preproc" >&6; }
1832
1833# So? What about this header?
1834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 yes:no: )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ;;
1841 no:yes:* )
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852( cat <<\_ASBOX
1853## --------------------------------------------- ##
1854## Report this to upstart-devel@lists.ubuntu.com ##
1855## --------------------------------------------- ##
1856_ASBOX
1857 ) | sed "s/^/$as_me: WARNING: /" >&2
1858 ;;
1859esac
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1863 $as_echo_n "(cached) " >&6
1864else
1865 eval "$3=\$ac_header_compiler"
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870fi
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872
1873} # ac_fn_c_check_header_mongrel
1874
1875# ac_fn_c_try_run LINENO
1876# ----------------------
1877# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878# that executables *can* be run.
1879ac_fn_c_try_run ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1883case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1900 ac_status=$?
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1903 ac_retval=0
1904else
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907sed 's/^/| /' conftest.$ac_ext >&5
1908
1909 ac_retval=$ac_status
1910fi
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1914
1915} # ac_fn_c_try_run
1916
1917# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918# -------------------------------------------------------
1919# Tests whether HEADER exists and can be compiled using the include files in
1920# INCLUDES, setting the cache variable VAR accordingly.
1921ac_fn_c_check_header_compile ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932#include <$2>
1933_ACEOF
1934if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940fi
1941eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943$as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946} # ac_fn_c_check_header_compile
1947
1948# ac_fn_c_try_link LINENO
1949# -----------------------
1950# Try to link conftest.$ac_ext, and return whether this succeeded.
1951ac_fn_c_try_link ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 rm -f conftest.$ac_objext conftest$ac_exeext
1955 if { { ac_try="$ac_link"
1956case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_link") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } && {
1971 test -z "$ac_c_werror_flag" ||
1972 test ! -s conftest.err
1973 } && test -s conftest$ac_exeext && {
1974 test "$cross_compiling" = yes ||
1975 $as_test_x conftest$ac_exeext
1976 }; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
1984 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986 # interfere with the next link command; also delete a directory that is
1987 # left behind by Apple's compiler. We do this before executing the actions.
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 return $ac_retval
1991
1992} # ac_fn_c_try_link
1993
1994# ac_fn_c_check_func LINENO FUNC VAR
1995# ----------------------------------
1996# Tests whether FUNC exists, setting the cache variable VAR accordingly
1997ac_fn_c_check_func ()
1998{
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001$as_echo_n "checking for $2... " >&6; }
2002if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2004else
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2009#define $2 innocuous_$2
2010
2011/* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $2 (); below.
2013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2014 <limits.h> exists even on freestanding compilers. */
2015
2016#ifdef __STDC__
2017# include <limits.h>
2018#else
2019# include <assert.h>
2020#endif
2021
2022#undef $2
2023
2024/* Override any GCC internal prototype to avoid an error.
2025 Use char because int might match the return type of a GCC
2026 builtin and then its argument prototype would still apply. */
2027#ifdef __cplusplus
2028extern "C"
2029#endif
2030char $2 ();
2031/* The GNU C library defines this for functions which it implements
2032 to always fail with ENOSYS. Some functions are actually named
2033 something starting with __ and the normal name is an alias. */
2034#if defined __stub_$2 || defined __stub___$2
2035choke me
2036#endif
2037
2038int
2039main ()
2040{
2041return $2 ();
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_link "$LINENO"; then :
2047 eval "$3=yes"
2048else
2049 eval "$3=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext \
2052 conftest$ac_exeext conftest.$ac_ext
2053fi
2054eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058
2059} # ac_fn_c_check_func
2060
2061# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062# -------------------------------------------
2063# Tests whether TYPE exists after having included INCLUDES, setting cache
2064# variable VAR accordingly.
2065ac_fn_c_check_type ()
2066{
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069$as_echo_n "checking for $2... " >&6; }
2070if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072else
2073 eval "$3=no"
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076$4
2077int
2078main ()
2079{
2080if (sizeof ($2))
2081 return 0;
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090int
2091main ()
2092{
2093if (sizeof (($2)))
2094 return 0;
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100
2101else
2102 eval "$3=yes"
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112
2113} # ac_fn_c_check_type
2114
2115# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116# --------------------------------------------
2117# Tries to find the compile-time value of EXPR in a program that includes
2118# INCLUDES, setting VAR accordingly. Returns whether the value could be
2119# computed
2120ac_fn_c_compute_int ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h. */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) >= 0)];
2132test_array [0] = 0
2133
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_lo=0 ac_mid=0
2140 while :; do
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$4
2144int
2145main ()
2146{
2147static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148test_array [0] = 0
2149
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154if ac_fn_c_try_compile "$LINENO"; then :
2155 ac_hi=$ac_mid; break
2156else
2157 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2158 if test $ac_lo -le $ac_mid; then
2159 ac_lo= ac_hi=
2160 break
2161 fi
2162 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2163fi
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 done
2166else
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h. */
2169$4
2170int
2171main ()
2172{
2173static int test_array [1 - 2 * !(($2) < 0)];
2174test_array [0] = 0
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_hi=-1 ac_mid=-1
2182 while :; do
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2190test_array [0] = 0
2191
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_lo=$ac_mid; break
2198else
2199 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2200 if test $ac_mid -le $ac_hi; then
2201 ac_lo= ac_hi=
2202 break
2203 fi
2204 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 done
2208else
2209 ac_lo= ac_hi=
2210fi
2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212fi
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214# Binary search between lo and hi bounds.
2215while test "x$ac_lo" != "x$ac_hi"; do
2216 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218/* end confdefs.h. */
2219$4
2220int
2221main ()
2222{
2223static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224test_array [0] = 0
2225
2226 ;
2227 return 0;
2228}
2229_ACEOF
2230if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_hi=$ac_mid
2232else
2233 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236done
2237case $ac_lo in #((
2238?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2239'') ac_retval=1 ;;
2240esac
2241 else
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244$4
2245static long int longval () { return $2; }
2246static unsigned long int ulongval () { return $2; }
2247#include <stdio.h>
2248#include <stdlib.h>
2249int
2250main ()
2251{
2252
2253 FILE *f = fopen ("conftest.val", "w");
2254 if (! f)
2255 return 1;
2256 if (($2) < 0)
2257 {
2258 long int i = longval ();
2259 if (i != ($2))
2260 return 1;
2261 fprintf (f, "%ld", i);
2262 }
2263 else
2264 {
2265 unsigned long int i = ulongval ();
2266 if (i != ($2))
2267 return 1;
2268 fprintf (f, "%lu", i);
2269 }
2270 /* Do not output a trailing newline, as this causes \r\n confusion
2271 on some platforms. */
2272 return ferror (f) || fclose (f) != 0;
2273
2274 ;
2275 return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_run "$LINENO"; then :
2279 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2280else
2281 ac_retval=1
2282fi
2283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2284 conftest.$ac_objext conftest.beam conftest.$ac_ext
2285rm -f conftest.val
2286
2287 fi
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289 return $ac_retval
2290
2291} # ac_fn_c_compute_int
Scott James Remnant65f683d2009-07-14 13:05:17 +01002292cat >config.log <<_ACEOF
2293This file contains any messages produced by compilers while
2294running configure, to aid debugging if configure makes a mistake.
2295
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002296It was created by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -07002297generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +01002298
2299 $ $0 $@
2300
2301_ACEOF
2302exec 5>>config.log
2303{
2304cat <<_ASUNAME
2305## --------- ##
2306## Platform. ##
2307## --------- ##
2308
2309hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2310uname -m = `(uname -m) 2>/dev/null || echo unknown`
2311uname -r = `(uname -r) 2>/dev/null || echo unknown`
2312uname -s = `(uname -s) 2>/dev/null || echo unknown`
2313uname -v = `(uname -v) 2>/dev/null || echo unknown`
2314
2315/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2316/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2317
2318/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2319/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2320/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2321/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2322/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2323/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2324/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2325
2326_ASUNAME
2327
2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002333 $as_echo "PATH: $as_dir"
2334 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002335IFS=$as_save_IFS
2336
2337} >&5
2338
2339cat >&5 <<_ACEOF
2340
2341
2342## ----------- ##
2343## Core tests. ##
2344## ----------- ##
2345
2346_ACEOF
2347
2348
2349# Keep a trace of the command line.
2350# Strip out --no-create and --no-recursion so they do not pile up.
2351# Strip out --silent because we don't want to record it for future runs.
2352# Also quote any args containing shell meta-characters.
2353# Make two passes to allow for proper duplicate-argument suppression.
2354ac_configure_args=
2355ac_configure_args0=
2356ac_configure_args1=
2357ac_must_keep_next=false
2358for ac_pass in 1 2
2359do
2360 for ac_arg
2361 do
2362 case $ac_arg in
2363 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2365 | -silent | --silent | --silen | --sile | --sil)
2366 continue ;;
2367 *\'*)
2368 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 esac
2370 case $ac_pass in
Scott James Remnantfde82c92009-09-22 10:04:15 -07002371 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002372 2)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002373 as_fn_append ac_configure_args1 " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002374 if test $ac_must_keep_next = true; then
2375 ac_must_keep_next=false # Got value, back to normal.
2376 else
2377 case $ac_arg in
2378 *=* | --config-cache | -C | -disable-* | --disable-* \
2379 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2380 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2381 | -with-* | --with-* | -without-* | --without-* | --x)
2382 case "$ac_configure_args0 " in
2383 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2384 esac
2385 ;;
2386 -* ) ac_must_keep_next=true ;;
2387 esac
2388 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002389 as_fn_append ac_configure_args " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002390 ;;
2391 esac
2392 done
2393done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002394{ ac_configure_args0=; unset ac_configure_args0;}
2395{ ac_configure_args1=; unset ac_configure_args1;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01002396
2397# When interrupted or exit'd, cleanup temporary files, and complete
2398# config.log. We remove comments because anyway the quotes in there
2399# would cause problems or look ugly.
2400# WARNING: Use '\'' to represent an apostrophe within the trap.
2401# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2402trap 'exit_status=$?
2403 # Save into config.log some information that might help in debugging.
2404 {
2405 echo
2406
2407 cat <<\_ASBOX
2408## ---------------- ##
2409## Cache variables. ##
2410## ---------------- ##
2411_ASBOX
2412 echo
2413 # The following way of writing the cache mishandles newlines in values,
2414(
2415 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in #(
2418 *${as_nl}*)
2419 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002420 *_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 +01002421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422 esac
2423 case $ac_var in #(
2424 _ | IFS | as_nl) ;; #(
2425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002426 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002427 esac ;;
2428 esac
2429 done
2430 (set) 2>&1 |
2431 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2432 *${as_nl}ac_space=\ *)
2433 sed -n \
2434 "s/'\''/'\''\\\\'\'''\''/g;
2435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436 ;; #(
2437 *)
2438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2439 ;;
2440 esac |
2441 sort
2442)
2443 echo
2444
2445 cat <<\_ASBOX
2446## ----------------- ##
2447## Output variables. ##
2448## ----------------- ##
2449_ASBOX
2450 echo
2451 for ac_var in $ac_subst_vars
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460
2461 if test -n "$ac_subst_files"; then
2462 cat <<\_ASBOX
2463## ------------------- ##
2464## File substitutions. ##
2465## ------------------- ##
2466_ASBOX
2467 echo
2468 for ac_var in $ac_subst_files
2469 do
2470 eval ac_val=\$$ac_var
2471 case $ac_val in
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 esac
2474 $as_echo "$ac_var='\''$ac_val'\''"
2475 done | sort
2476 echo
2477 fi
2478
2479 if test -s confdefs.h; then
2480 cat <<\_ASBOX
2481## ----------- ##
2482## confdefs.h. ##
2483## ----------- ##
2484_ASBOX
2485 echo
2486 cat confdefs.h
2487 echo
2488 fi
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2492 } >&5
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 exit $exit_status
2496' 0
2497for ac_signal in 1 2 13 15; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07002498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Scott James Remnant65f683d2009-07-14 13:05:17 +01002499done
2500ac_signal=0
2501
2502# confdefs.h avoids OS command line length limits that DEFS can exceed.
2503rm -f -r conftest* confdefs.h
2504
Scott James Remnantfde82c92009-09-22 10:04:15 -07002505$as_echo "/* confdefs.h */" > confdefs.h
2506
Scott James Remnant65f683d2009-07-14 13:05:17 +01002507# Predefined preprocessor variables.
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_NAME "$PACKAGE_NAME"
2511_ACEOF
2512
Scott James Remnant65f683d2009-07-14 13:05:17 +01002513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515_ACEOF
2516
Scott James Remnant65f683d2009-07-14 13:05:17 +01002517cat >>confdefs.h <<_ACEOF
2518#define PACKAGE_VERSION "$PACKAGE_VERSION"
2519_ACEOF
2520
Scott James Remnant65f683d2009-07-14 13:05:17 +01002521cat >>confdefs.h <<_ACEOF
2522#define PACKAGE_STRING "$PACKAGE_STRING"
2523_ACEOF
2524
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002525cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002526#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002527_ACEOF
2528
Scott James Remnantfde82c92009-09-22 10:04:15 -07002529cat >>confdefs.h <<_ACEOF
2530#define PACKAGE_URL "$PACKAGE_URL"
2531_ACEOF
2532
Scott James Remnant65f683d2009-07-14 13:05:17 +01002533
2534# Let the site file select an alternate cache file if it wants to.
2535# Prefer an explicitly selected file to automatically selected ones.
2536ac_site_file1=NONE
2537ac_site_file2=NONE
2538if test -n "$CONFIG_SITE"; then
2539 ac_site_file1=$CONFIG_SITE
2540elif test "x$prefix" != xNONE; then
2541 ac_site_file1=$prefix/share/config.site
2542 ac_site_file2=$prefix/etc/config.site
2543else
2544 ac_site_file1=$ac_default_prefix/share/config.site
2545 ac_site_file2=$ac_default_prefix/etc/config.site
2546fi
2547for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2548do
2549 test "x$ac_site_file" = xNONE && continue
2550 if test -r "$ac_site_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002551 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002552$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2553 sed 's/^/| /' "$ac_site_file" >&5
2554 . "$ac_site_file"
2555 fi
2556done
2557
2558if test -r "$cache_file"; then
2559 # Some versions of bash will fail to source /dev/null (special
2560 # files actually), so we avoid doing that.
2561 if test -f "$cache_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002562 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002563$as_echo "$as_me: loading cache $cache_file" >&6;}
2564 case $cache_file in
2565 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2566 *) . "./$cache_file";;
2567 esac
2568 fi
2569else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002571$as_echo "$as_me: creating cache $cache_file" >&6;}
2572 >$cache_file
2573fi
2574
2575gt_needs="$gt_needs "
2576# Check that the precious variables saved in the cache have kept the same
2577# value.
2578ac_cache_corrupted=false
2579for ac_var in $ac_precious_vars; do
2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2581 eval ac_new_set=\$ac_env_${ac_var}_set
2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2583 eval ac_new_val=\$ac_env_${ac_var}_value
2584 case $ac_old_set,$ac_new_set in
2585 set,)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002586 { $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 +01002587$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2588 ac_cache_corrupted=: ;;
2589 ,set)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002590 { $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 +01002591$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2592 ac_cache_corrupted=: ;;
2593 ,);;
2594 *)
2595 if test "x$ac_old_val" != "x$ac_new_val"; then
2596 # differences in whitespace do not lead to failure.
2597 ac_old_val_w=`echo x $ac_old_val`
2598 ac_new_val_w=`echo x $ac_new_val`
2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002600 { $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 +01002601$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2602 ac_cache_corrupted=:
2603 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002604 { $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 +01002605$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2606 eval $ac_var=\$ac_old_val
2607 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002608 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002609$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002610 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002611$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2612 fi;;
2613 esac
2614 # Pass precious variables to config.status.
2615 if test "$ac_new_set" = set; then
2616 case $ac_new_val in
2617 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2618 *) ac_arg=$ac_var=$ac_new_val ;;
2619 esac
2620 case " $ac_configure_args " in
2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002622 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002623 esac
2624 fi
2625done
2626if $ac_cache_corrupted; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002629 { $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 +01002630$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002631 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002632fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002633## -------------------- ##
2634## Main body of script. ##
2635## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +01002636
2637ac_ext=c
2638ac_cpp='$CPP $CPPFLAGS'
2639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642
2643
2644
2645
2646
2647
Scott James Remnantfde82c92009-09-22 10:04:15 -07002648$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (C) 2009 Canonical Ltd.\"" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01002649 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2650
2651
2652
2653
2654
2655ac_ext=c
2656ac_cpp='$CPP $CPPFLAGS'
2657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2662set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002664$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002665if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002666 $as_echo_n "(cached) " >&6
2667else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002676 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002680 break 2
2681 fi
2682done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002683 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002684IFS=$as_save_IFS
2685
2686fi
2687fi
2688CC=$ac_cv_prog_CC
2689if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002691$as_echo "$CC" >&6; }
2692else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002694$as_echo "no" >&6; }
2695fi
2696
2697
2698fi
2699if test -z "$ac_cv_prog_CC"; then
2700 ac_ct_CC=$CC
2701 # Extract the first word of "gcc", so it can be a program name with args.
2702set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002704$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002705if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002706 $as_echo_n "(cached) " >&6
2707else
2708 if test -n "$ac_ct_CC"; then
2709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002716 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002720 break 2
2721 fi
2722done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002723 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002724IFS=$as_save_IFS
2725
2726fi
2727fi
2728ac_ct_CC=$ac_cv_prog_ac_ct_CC
2729if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002731$as_echo "$ac_ct_CC" >&6; }
2732else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002734$as_echo "no" >&6; }
2735fi
2736
2737 if test "x$ac_ct_CC" = x; then
2738 CC=""
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002742{ $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 +01002743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744ac_tool_warned=yes ;;
2745esac
2746 CC=$ac_ct_CC
2747 fi
2748else
2749 CC="$ac_cv_prog_CC"
2750fi
2751
2752if test -z "$CC"; then
2753 if test -n "$ac_tool_prefix"; then
2754 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2755set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002757$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002758if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002759 $as_echo_n "(cached) " >&6
2760else
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763else
2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765for as_dir in $PATH
2766do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002769 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002773 break 2
2774 fi
2775done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002776 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002777IFS=$as_save_IFS
2778
2779fi
2780fi
2781CC=$ac_cv_prog_CC
2782if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002784$as_echo "$CC" >&6; }
2785else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002787$as_echo "no" >&6; }
2788fi
2789
2790
2791 fi
2792fi
2793if test -z "$CC"; then
2794 # Extract the first word of "cc", so it can be a program name with args.
2795set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002797$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002798if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002799 $as_echo_n "(cached) " >&6
2800else
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC="$CC" # Let the user override the test.
2803else
2804 ac_prog_rejected=no
2805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002810 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2813 ac_prog_rejected=yes
2814 continue
2815 fi
2816 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002818 break 2
2819 fi
2820done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002821 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002822IFS=$as_save_IFS
2823
2824if test $ac_prog_rejected = yes; then
2825 # We found a bogon in the path, so make sure we never use it.
2826 set dummy $ac_cv_prog_CC
2827 shift
2828 if test $# != 0; then
2829 # We chose a different compiler from the bogus one.
2830 # However, it has the same basename, so the bogon will be chosen
2831 # first if we set CC to just the basename; use the full file name.
2832 shift
2833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2834 fi
2835fi
2836fi
2837fi
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002841$as_echo "$CC" >&6; }
2842else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002844$as_echo "no" >&6; }
2845fi
2846
2847
2848fi
2849if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 for ac_prog in cl.exe
2852 do
2853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002856$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002857if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002858 $as_echo_n "(cached) " >&6
2859else
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002868 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002872 break 2
2873 fi
2874done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002875 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002876IFS=$as_save_IFS
2877
2878fi
2879fi
2880CC=$ac_cv_prog_CC
2881if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002883$as_echo "$CC" >&6; }
2884else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002886$as_echo "no" >&6; }
2887fi
2888
2889
2890 test -n "$CC" && break
2891 done
2892fi
2893if test -z "$CC"; then
2894 ac_ct_CC=$CC
2895 for ac_prog in cl.exe
2896do
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002900$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002901if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002902 $as_echo_n "(cached) " >&6
2903else
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2906else
2907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908for as_dir in $PATH
2909do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002912 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002916 break 2
2917 fi
2918done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002919 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002920IFS=$as_save_IFS
2921
2922fi
2923fi
2924ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002927$as_echo "$ac_ct_CC" >&6; }
2928else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002930$as_echo "no" >&6; }
2931fi
2932
2933
2934 test -n "$ac_ct_CC" && break
2935done
2936
2937 if test "x$ac_ct_CC" = x; then
2938 CC=""
2939 else
2940 case $cross_compiling:$ac_tool_warned in
2941yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002942{ $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 +01002943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2944ac_tool_warned=yes ;;
2945esac
2946 CC=$ac_ct_CC
2947 fi
2948fi
2949
2950fi
2951
2952
Scott James Remnantfde82c92009-09-22 10:04:15 -07002953test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002955as_fn_error "no acceptable C compiler found in \$PATH
2956See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002957
2958# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002959$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002960set X $ac_compile
2961ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002962for ac_option in --version -v -V -qversion; do
2963 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002964case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07002968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969$as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +01002971 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07002972 if test -s conftest.err; then
2973 sed '10a\
2974... rest of stderr output deleted ...
2975 10q' conftest.err >conftest.er1
2976 cat conftest.er1 >&5
2977 rm -f conftest.er1 conftest.err
2978 fi
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }
2981done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002982
Scott James Remnantfde82c92009-09-22 10:04:15 -07002983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01002984/* end confdefs.h. */
Scott James Remnantfde82c92009-09-22 10:04:15 -07002985#include <stdio.h>
Scott James Remnant65f683d2009-07-14 13:05:17 +01002986int
2987main ()
2988{
Scott James Remnantfde82c92009-09-22 10:04:15 -07002989FILE *f = fopen ("conftest.out", "w");
2990 return ferror (f) || fclose (f) != 0;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002991
2992 ;
2993 return 0;
2994}
2995_ACEOF
2996ac_clean_files_save=$ac_clean_files
Scott James Remnantfde82c92009-09-22 10:04:15 -07002997ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002998# Try to create an executable without -o first, disregard a.out.
2999# It will help us diagnose broken compilers, and finding out an intuition
3000# of exeext.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003002$as_echo_n "checking for C compiler default output file name... " >&6; }
3003ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3004
3005# The possible output files:
3006ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3007
3008ac_rmfiles=
3009for ac_file in $ac_files
3010do
3011 case $ac_file in
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3013 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3014 esac
3015done
3016rm -f $ac_rmfiles
3017
Scott James Remnantfde82c92009-09-22 10:04:15 -07003018if { { ac_try="$ac_link_default"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003025 (eval "$ac_link_default") 2>&5
3026 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031# in a Makefile. We should not override ac_cv_exeext if it was cached,
3032# so that the user can short-circuit this test for compilers unknown to
3033# Autoconf.
3034for ac_file in $ac_files ''
3035do
3036 test -f "$ac_file" || continue
3037 case $ac_file in
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3039 ;;
3040 [ab].out )
3041 # We found the default executable, but exeext='' is most
3042 # certainly right.
3043 break;;
3044 *.* )
Scott James Remnantfde82c92009-09-22 10:04:15 -07003045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Scott James Remnant65f683d2009-07-14 13:05:17 +01003046 then :; else
3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048 fi
3049 # We set ac_cv_exeext here because the later test for it is not
3050 # safe: cross compilers may not add the suffix if given an `-o'
3051 # argument, so we may need to know it at that point already.
3052 # Even if this section looks crufty: it has the advantage of
3053 # actually working.
3054 break;;
3055 * )
3056 break;;
3057 esac
3058done
3059test "$ac_cv_exeext" = no && ac_cv_exeext=
3060
3061else
3062 ac_file=''
3063fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003065$as_echo "$ac_file" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003066if test -z "$ac_file"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003067 $as_echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
Scott James Remnantfde82c92009-09-22 10:04:15 -07003070{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003072{ as_fn_set_status 77
3073as_fn_error "C compiler cannot create executables
3074See \`config.log' for more details." "$LINENO" 5; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003075fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003076ac_exeext=$ac_cv_exeext
3077
3078# Check that the compiler produces executables we can run. If not, either
3079# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003081$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003082# If not cross compiling, check that we can run a simple program.
3083if test "$cross_compiling" != yes; then
3084 if { ac_try='./$ac_file'
Scott James Remnantfde82c92009-09-22 10:04:15 -07003085 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +01003086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003091 (eval "$ac_try") 2>&5
3092 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003095 cross_compiling=no
3096 else
3097 if test "$cross_compiling" = maybe; then
3098 cross_compiling=yes
3099 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003102as_fn_error "cannot run C compiled programs.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003103If you meant to cross compile, use \`--host'.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003104See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003105 fi
3106 fi
3107fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003109$as_echo "yes" >&6; }
3110
Scott James Remnantfde82c92009-09-22 10:04:15 -07003111rm -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 +01003112ac_clean_files=$ac_clean_files_save
3113# Check that the compiler produces executables we can run. If not, either
3114# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003116$as_echo_n "checking whether we are cross compiling... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003118$as_echo "$cross_compiling" >&6; }
3119
Scott James Remnantfde82c92009-09-22 10:04:15 -07003120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003121$as_echo_n "checking for suffix of executables... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003122if { { ac_try="$ac_link"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003123case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003129 (eval "$ac_link") 2>&5
3130 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3134# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3135# work properly (i.e., refer to `conftest.exe'), while it won't with
3136# `rm'.
3137for ac_file in conftest.exe conftest conftest.*; do
3138 test -f "$ac_file" || continue
3139 case $ac_file in
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 break;;
3143 * ) break;;
3144 esac
3145done
3146else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003149as_fn_error "cannot compute suffix of executables: cannot compile and link
3150See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003151fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003152rm -f conftest$ac_cv_exeext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003154$as_echo "$ac_cv_exeext" >&6; }
3155
3156rm -f conftest.$ac_ext
3157EXEEXT=$ac_cv_exeext
3158ac_exeext=$EXEEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003160$as_echo_n "checking for suffix of object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003161if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003162 $as_echo_n "(cached) " >&6
3163else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003165/* end confdefs.h. */
3166
3167int
3168main ()
3169{
3170
3171 ;
3172 return 0;
3173}
3174_ACEOF
3175rm -f conftest.o conftest.obj
Scott James Remnantfde82c92009-09-22 10:04:15 -07003176if { { ac_try="$ac_compile"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003177case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003183 (eval "$ac_compile") 2>&5
3184 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003187 for ac_file in conftest.o conftest.obj conftest.*; do
3188 test -f "$ac_file" || continue;
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3192 break;;
3193 esac
3194done
3195else
3196 $as_echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
Scott James Remnantfde82c92009-09-22 10:04:15 -07003199{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003201as_fn_error "cannot compute suffix of object files: cannot compile
3202See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003203fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003204rm -f conftest.$ac_cv_objext conftest.$ac_ext
3205fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003207$as_echo "$ac_cv_objext" >&6; }
3208OBJEXT=$ac_cv_objext
3209ac_objext=$OBJEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003210{ $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 +01003211$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003212if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003213 $as_echo_n "(cached) " >&6
3214else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221#ifndef __GNUC__
3222 choke me
3223#endif
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003229if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003230 ac_compiler_gnu=yes
3231else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003232 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003233fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235ac_cv_c_compiler_gnu=$ac_compiler_gnu
3236
3237fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003239$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3240if test $ac_compiler_gnu = yes; then
3241 GCC=yes
3242else
3243 GCC=
3244fi
3245ac_test_CFLAGS=${CFLAGS+set}
3246ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -07003247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003248$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003249if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003250 $as_echo_n "(cached) " >&6
3251else
3252 ac_save_c_werror_flag=$ac_c_werror_flag
3253 ac_c_werror_flag=yes
3254 ac_cv_prog_cc_g=no
3255 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003257/* end confdefs.h. */
3258
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003267if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003268 ac_cv_prog_cc_g=yes
3269else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003270 CFLAGS=""
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003272/* end confdefs.h. */
3273
3274int
3275main ()
3276{
3277
3278 ;
3279 return 0;
3280}
3281_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003282if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003283
Scott James Remnantfde82c92009-09-22 10:04:15 -07003284else
3285 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +01003286 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003288/* end confdefs.h. */
3289
3290int
3291main ()
3292{
3293
3294 ;
3295 return 0;
3296}
3297_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003298if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003299 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +01003300fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3307fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003309$as_echo "$ac_cv_prog_cc_g" >&6; }
3310if test "$ac_test_CFLAGS" = set; then
3311 CFLAGS=$ac_save_CFLAGS
3312elif test $ac_cv_prog_cc_g = yes; then
3313 if test "$GCC" = yes; then
3314 CFLAGS="-g -O2"
3315 else
3316 CFLAGS="-g"
3317 fi
3318else
3319 if test "$GCC" = yes; then
3320 CFLAGS="-O2"
3321 else
3322 CFLAGS=
3323 fi
3324fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003326$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003327if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003328 $as_echo_n "(cached) " >&6
3329else
3330 ac_cv_prog_cc_c89=no
3331ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -07003332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003333/* end confdefs.h. */
3334#include <stdarg.h>
3335#include <stdio.h>
3336#include <sys/types.h>
3337#include <sys/stat.h>
3338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3339struct buf { int x; };
3340FILE * (*rcsopen) (struct buf *, struct stat *, int);
3341static char *e (p, i)
3342 char **p;
3343 int i;
3344{
3345 return p[i];
3346}
3347static char *f (char * (*g) (char **, int), char **p, ...)
3348{
3349 char *s;
3350 va_list v;
3351 va_start (v,p);
3352 s = g (p, va_arg (v,int));
3353 va_end (v);
3354 return s;
3355}
3356
3357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3358 function prototypes and stuff, but not '\xHH' hex character constants.
3359 These don't provoke an error unfortunately, instead are silently treated
3360 as 'x'. The following induces an error, until -std is added to get
3361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3362 array size at least. It's necessary to write '\x00'==0 to get something
3363 that's true only with -std. */
3364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3365
3366/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3367 inside strings and character constants. */
3368#define FOO(x) 'x'
3369int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3370
3371int test (int i, double x);
3372struct s1 {int (*f) (int a);};
3373struct s2 {int (*f) (double a);};
3374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3375int argc;
3376char **argv;
3377int
3378main ()
3379{
3380return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3387do
3388 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003389 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003390 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +01003391fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003392rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3394done
3395rm -f conftest.$ac_ext
3396CC=$ac_save_CC
3397
3398fi
3399# AC_CACHE_VAL
3400case "x$ac_cv_prog_cc_c89" in
3401 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003403$as_echo "none needed" >&6; } ;;
3404 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003406$as_echo "unsupported" >&6; } ;;
3407 *)
3408 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003410$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3411esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003412if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003413
Scott James Remnantfde82c92009-09-22 10:04:15 -07003414fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003415
3416ac_ext=c
3417ac_cpp='$CPP $CPPFLAGS'
3418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnantfde82c92009-09-22 10:04:15 -07003428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003429$as_echo_n "checking how to run the C preprocessor... " >&6; }
3430# On Suns, sometimes $CPP names a directory.
3431if test -n "$CPP" && test -d "$CPP"; then
3432 CPP=
3433fi
3434if test -z "$CPP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003435 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003436 $as_echo_n "(cached) " >&6
3437else
3438 # Double quotes because CPP needs to be expanded
3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440 do
3441 ac_preproc_ok=false
3442for ac_c_preproc_warn_flag in '' yes
3443do
3444 # Use a header file that comes with gcc, so configuring glibc
3445 # with a fresh cross-compiler works.
3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447 # <limits.h> exists even on freestanding compilers.
3448 # On the NeXT, cc -E runs the code through the compiler's parser,
3449 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003451/* end confdefs.h. */
3452#ifdef __STDC__
3453# include <limits.h>
3454#else
3455# include <assert.h>
3456#endif
3457 Syntax error
3458_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003459if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003460
Scott James Remnantfde82c92009-09-22 10:04:15 -07003461else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003462 # Broken: fails on valid input.
3463continue
3464fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003465rm -f conftest.err conftest.$ac_ext
3466
3467 # OK, works on sane cases. Now check whether nonexistent headers
3468 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003470/* end confdefs.h. */
3471#include <ac_nonexistent.h>
3472_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003473if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003474 # Broken: success on invalid input.
3475continue
3476else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003477 # Passes both tests.
3478ac_preproc_ok=:
3479break
3480fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003481rm -f conftest.err conftest.$ac_ext
3482
3483done
3484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003486if $ac_preproc_ok; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003487 break
3488fi
3489
3490 done
3491 ac_cv_prog_CPP=$CPP
3492
3493fi
3494 CPP=$ac_cv_prog_CPP
3495else
3496 ac_cv_prog_CPP=$CPP
3497fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003499$as_echo "$CPP" >&6; }
3500ac_preproc_ok=false
3501for ac_c_preproc_warn_flag in '' yes
3502do
3503 # Use a header file that comes with gcc, so configuring glibc
3504 # with a fresh cross-compiler works.
3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506 # <limits.h> exists even on freestanding compilers.
3507 # On the NeXT, cc -E runs the code through the compiler's parser,
3508 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003510/* end confdefs.h. */
3511#ifdef __STDC__
3512# include <limits.h>
3513#else
3514# include <assert.h>
3515#endif
3516 Syntax error
3517_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003518if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003519
Scott James Remnantfde82c92009-09-22 10:04:15 -07003520else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003521 # Broken: fails on valid input.
3522continue
3523fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003524rm -f conftest.err conftest.$ac_ext
3525
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003529/* end confdefs.h. */
3530#include <ac_nonexistent.h>
3531_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003532if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003533 # Broken: success on invalid input.
3534continue
3535else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003536 # Passes both tests.
3537ac_preproc_ok=:
3538break
3539fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003540rm -f conftest.err conftest.$ac_ext
3541
3542done
3543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003545if $ac_preproc_ok; then :
3546
Scott James Remnant65f683d2009-07-14 13:05:17 +01003547else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003550as_fn_error "C preprocessor \"$CPP\" fails sanity check
3551See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003552fi
3553
3554ac_ext=c
3555ac_cpp='$CPP $CPPFLAGS'
3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560
Scott James Remnantfde82c92009-09-22 10:04:15 -07003561{ $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 +01003562$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003563if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003564 $as_echo_n "(cached) " >&6
3565else
3566 if test -z "$GREP"; then
3567 ac_path_GREP_found=false
3568 # Loop through the user's path and test for each of PROGNAME-LIST
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003574 for ac_prog in grep ggrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3577 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3578# Check for GNU ac_path_GREP and select it if it is found.
3579 # Check for GNU $ac_path_GREP
3580case `"$ac_path_GREP" --version 2>&1` in
3581*GNU*)
3582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3583*)
3584 ac_count=0
3585 $as_echo_n 0123456789 >"conftest.in"
3586 while :
3587 do
3588 cat "conftest.in" "conftest.in" >"conftest.tmp"
3589 mv "conftest.tmp" "conftest.in"
3590 cp "conftest.in" "conftest.nl"
3591 $as_echo 'GREP' >> "conftest.nl"
3592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003594 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3596 # Best one so far, save it but keep looking for a better one
3597 ac_cv_path_GREP="$ac_path_GREP"
3598 ac_path_GREP_max=$ac_count
3599 fi
3600 # 10*(2^10) chars as input seems more than enough
3601 test $ac_count -gt 10 && break
3602 done
3603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3604esac
3605
3606 $ac_path_GREP_found && break 3
3607 done
3608 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003609 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003610IFS=$as_save_IFS
3611 if test -z "$ac_cv_path_GREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003612 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 +01003613 fi
3614else
3615 ac_cv_path_GREP=$GREP
3616fi
3617
3618fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003620$as_echo "$ac_cv_path_GREP" >&6; }
3621 GREP="$ac_cv_path_GREP"
3622
3623
Scott James Remnantfde82c92009-09-22 10:04:15 -07003624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003625$as_echo_n "checking for egrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003626if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003627 $as_echo_n "(cached) " >&6
3628else
3629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3630 then ac_cv_path_EGREP="$GREP -E"
3631 else
3632 if test -z "$EGREP"; then
3633 ac_path_EGREP_found=false
3634 # Loop through the user's path and test for each of PROGNAME-LIST
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003640 for ac_prog in egrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3643 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3644# Check for GNU ac_path_EGREP and select it if it is found.
3645 # Check for GNU $ac_path_EGREP
3646case `"$ac_path_EGREP" --version 2>&1` in
3647*GNU*)
3648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3649*)
3650 ac_count=0
3651 $as_echo_n 0123456789 >"conftest.in"
3652 while :
3653 do
3654 cat "conftest.in" "conftest.in" >"conftest.tmp"
3655 mv "conftest.tmp" "conftest.in"
3656 cp "conftest.in" "conftest.nl"
3657 $as_echo 'EGREP' >> "conftest.nl"
3658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003660 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3662 # Best one so far, save it but keep looking for a better one
3663 ac_cv_path_EGREP="$ac_path_EGREP"
3664 ac_path_EGREP_max=$ac_count
3665 fi
3666 # 10*(2^10) chars as input seems more than enough
3667 test $ac_count -gt 10 && break
3668 done
3669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670esac
3671
3672 $ac_path_EGREP_found && break 3
3673 done
3674 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003675 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003676IFS=$as_save_IFS
3677 if test -z "$ac_cv_path_EGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003678 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 +01003679 fi
3680else
3681 ac_cv_path_EGREP=$EGREP
3682fi
3683
3684 fi
3685fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003687$as_echo "$ac_cv_path_EGREP" >&6; }
3688 EGREP="$ac_cv_path_EGREP"
3689
3690
Scott James Remnantfde82c92009-09-22 10:04:15 -07003691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003692$as_echo_n "checking for ANSI C header files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003693if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003694 $as_echo_n "(cached) " >&6
3695else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003697/* end confdefs.h. */
3698#include <stdlib.h>
3699#include <stdarg.h>
3700#include <string.h>
3701#include <float.h>
3702
3703int
3704main ()
3705{
3706
3707 ;
3708 return 0;
3709}
3710_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003711if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003712 ac_cv_header_stdc=yes
3713else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003714 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003715fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717
3718if test $ac_cv_header_stdc = yes; then
3719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003721/* end confdefs.h. */
3722#include <string.h>
3723
3724_ACEOF
3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003726 $EGREP "memchr" >/dev/null 2>&1; then :
3727
Scott James Remnant65f683d2009-07-14 13:05:17 +01003728else
3729 ac_cv_header_stdc=no
3730fi
3731rm -f conftest*
3732
3733fi
3734
3735if test $ac_cv_header_stdc = yes; then
3736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003738/* end confdefs.h. */
3739#include <stdlib.h>
3740
3741_ACEOF
3742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003743 $EGREP "free" >/dev/null 2>&1; then :
3744
Scott James Remnant65f683d2009-07-14 13:05:17 +01003745else
3746 ac_cv_header_stdc=no
3747fi
3748rm -f conftest*
3749
3750fi
3751
3752if test $ac_cv_header_stdc = yes; then
3753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003754 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003755 :
3756else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003758/* end confdefs.h. */
3759#include <ctype.h>
3760#include <stdlib.h>
3761#if ((' ' & 0x0FF) == 0x020)
3762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3764#else
3765# define ISLOWER(c) \
3766 (('a' <= (c) && (c) <= 'i') \
3767 || ('j' <= (c) && (c) <= 'r') \
3768 || ('s' <= (c) && (c) <= 'z'))
3769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3770#endif
3771
3772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3773int
3774main ()
3775{
3776 int i;
3777 for (i = 0; i < 256; i++)
3778 if (XOR (islower (i), ISLOWER (i))
3779 || toupper (i) != TOUPPER (i))
3780 return 2;
3781 return 0;
3782}
3783_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003784if ac_fn_c_try_run "$LINENO"; then :
3785
Scott James Remnant65f683d2009-07-14 13:05:17 +01003786else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003787 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003788fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3790 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003791fi
3792
Scott James Remnant65f683d2009-07-14 13:05:17 +01003793fi
3794fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003796$as_echo "$ac_cv_header_stdc" >&6; }
3797if test $ac_cv_header_stdc = yes; then
3798
Scott James Remnantfde82c92009-09-22 10:04:15 -07003799$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003800
3801fi
3802
3803# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003804for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3805 inttypes.h stdint.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07003806do :
3807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3809"
3810eval as_val=\$$as_ac_Header
3811 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003812 cat >>confdefs.h <<_ACEOF
3813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3814_ACEOF
3815
3816fi
3817
3818done
3819
3820
3821
Scott James Remnantfde82c92009-09-22 10:04:15 -07003822 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3823if test "x$ac_cv_header_minix_config_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003824 MINIX=yes
3825else
3826 MINIX=
3827fi
3828
3829
3830 if test "$MINIX" = yes; then
3831
Scott James Remnantfde82c92009-09-22 10:04:15 -07003832$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003833
3834
Scott James Remnantfde82c92009-09-22 10:04:15 -07003835$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003836
3837
Scott James Remnantfde82c92009-09-22 10:04:15 -07003838$as_echo "#define _MINIX 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003839
3840 fi
3841
3842
Scott James Remnantfde82c92009-09-22 10:04:15 -07003843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003844$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003845if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003846 $as_echo_n "(cached) " >&6
3847else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003849/* end confdefs.h. */
3850
3851# define __EXTENSIONS__ 1
3852 $ac_includes_default
3853int
3854main ()
3855{
3856
3857 ;
3858 return 0;
3859}
3860_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003861if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003862 ac_cv_safe_to_define___extensions__=yes
3863else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003864 ac_cv_safe_to_define___extensions__=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003865fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003869$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3870 test $ac_cv_safe_to_define___extensions__ = yes &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07003871 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003872
Scott James Remnantfde82c92009-09-22 10:04:15 -07003873 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003874
Scott James Remnantfde82c92009-09-22 10:04:15 -07003875 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003876
Scott James Remnantfde82c92009-09-22 10:04:15 -07003877 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003878
Scott James Remnantfde82c92009-09-22 10:04:15 -07003879 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3880
Scott James Remnant65f683d2009-07-14 13:05:17 +01003881
3882
3883
Scott James Remnantc5b65582009-09-23 14:16:28 -07003884am__api_version='1.11'
Scott James Remnant65f683d2009-07-14 13:05:17 +01003885
3886ac_aux_dir=
3887for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07003888 for ac_t in install-sh install.sh shtool; do
3889 if test -f "$ac_dir/$ac_t"; then
3890 ac_aux_dir=$ac_dir
3891 ac_install_sh="$ac_aux_dir/$ac_t -c"
3892 break 2
3893 fi
3894 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003895done
3896if test -z "$ac_aux_dir"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003897 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 +01003898fi
3899
3900# These three variables are undocumented and unsupported,
3901# and are intended to be withdrawn in a future Autoconf release.
3902# They can cause serious problems if a builder's source tree is in a directory
3903# whose full name contains unusual characters.
3904ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3905ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3906ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3907
3908
3909# Find a good install program. We prefer a C program (faster),
3910# so one script is as good as another. But avoid the broken or
3911# incompatible versions:
3912# SysV /etc/install, /usr/sbin/install
3913# SunOS /usr/etc/install
3914# IRIX /sbin/install
3915# AIX /bin/install
3916# AmigaOS /C/install, which installs bootblocks on floppy discs
3917# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3918# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3919# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3920# OS/2's system install, which has a completely different semantic
3921# ./install, which can be erroneously created by make from ./install.sh.
3922# Reject install programs that cannot install multiple files.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003924$as_echo_n "checking for a BSD-compatible install... " >&6; }
3925if test -z "$INSTALL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003926if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003927 $as_echo_n "(cached) " >&6
3928else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003934 # Account for people who put trailing slashes in PATH elements.
3935case $as_dir/ in #((
3936 ./ | .// | /[cC]/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003937 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Scott James Remnantfde82c92009-09-22 10:04:15 -07003938 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003939 /usr/ucb/* ) ;;
3940 *)
3941 # OSF1 and SCO ODT 3.0 have their own names for install.
3942 # Don't use installbsd from OSF since it installs stuff as root
3943 # by default.
3944 for ac_prog in ginstall scoinst install; do
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3947 if test $ac_prog = install &&
3948 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3949 # AIX install. It has an incompatible calling convention.
3950 :
3951 elif test $ac_prog = install &&
3952 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3953 # program-specific install script used by HP pwplus--don't use.
3954 :
3955 else
3956 rm -rf conftest.one conftest.two conftest.dir
3957 echo one > conftest.one
3958 echo two > conftest.two
3959 mkdir conftest.dir
3960 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3961 test -s conftest.one && test -s conftest.two &&
3962 test -s conftest.dir/conftest.one &&
3963 test -s conftest.dir/conftest.two
3964 then
3965 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3966 break 3
3967 fi
3968 fi
3969 fi
3970 done
3971 done
3972 ;;
3973esac
3974
Scott James Remnantfde82c92009-09-22 10:04:15 -07003975 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003976IFS=$as_save_IFS
3977
3978rm -rf conftest.one conftest.two conftest.dir
3979
3980fi
3981 if test "${ac_cv_path_install+set}" = set; then
3982 INSTALL=$ac_cv_path_install
3983 else
3984 # As a last resort, use the slow shell script. Don't cache a
3985 # value for INSTALL within a source directory, because that will
3986 # break other packages using the cache if that directory is
3987 # removed, or if the value is a relative name.
3988 INSTALL=$ac_install_sh
3989 fi
3990fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003992$as_echo "$INSTALL" >&6; }
3993
3994# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3995# It thinks the first close brace ends the variable substitution.
3996test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3997
3998test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3999
4000test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4001
Scott James Remnantfde82c92009-09-22 10:04:15 -07004002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004003$as_echo_n "checking whether build environment is sane... " >&6; }
4004# Just in case
4005sleep 1
4006echo timestamp > conftest.file
Scott James Remnantc5b65582009-09-23 14:16:28 -07004007# Reject unsafe characters in $srcdir or the absolute working directory
4008# name. Accept space and tab only in the latter.
4009am_lf='
4010'
4011case `pwd` in
4012 *[\\\"\#\$\&\'\`$am_lf]*)
4013 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4014esac
4015case $srcdir in
4016 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4017 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4018esac
4019
Scott James Remnant65f683d2009-07-14 13:05:17 +01004020# Do `set' in a subshell so we don't clobber the current shell's
4021# arguments. Must try -L first in case configure is actually a
4022# symlink; some systems play weird games with the mod time of symlinks
4023# (eg FreeBSD returns the mod time of the symlink's containing
4024# directory).
4025if (
Scott James Remnantc5b65582009-09-23 14:16:28 -07004026 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004027 if test "$*" = "X"; then
4028 # -L didn't work.
Scott James Remnantc5b65582009-09-23 14:16:28 -07004029 set X `ls -t "$srcdir/configure" conftest.file`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004030 fi
4031 rm -f conftest.file
4032 if test "$*" != "X $srcdir/configure conftest.file" \
4033 && test "$*" != "X conftest.file $srcdir/configure"; then
4034
4035 # If neither matched, then we have a broken ls. This can happen
4036 # if, for instance, CONFIG_SHELL is bash and it inherits a
4037 # broken ls alias from the environment. This has actually
4038 # happened. Such a system could not be considered "sane".
Scott James Remnantfde82c92009-09-22 10:04:15 -07004039 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4040alias in your environment" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004041 fi
4042
4043 test "$2" = conftest.file
4044 )
4045then
4046 # Ok.
4047 :
4048else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004049 as_fn_error "newly created file is older than distributed files!
4050Check your system clock" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004051fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004053$as_echo "yes" >&6; }
4054test "$program_prefix" != NONE &&
4055 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4056# Use a double $ so make ignores it.
4057test "$program_suffix" != NONE &&
4058 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4059# Double any \ or $.
4060# By default was `s,x,x', remove it if useless.
4061ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4062program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4063
4064# expand $ac_aux_dir to an absolute path
4065am_aux_dir=`cd $ac_aux_dir && pwd`
4066
Scott James Remnantc5b65582009-09-23 14:16:28 -07004067if test x"${MISSING+set}" != xset; then
4068 case $am_aux_dir in
4069 *\ * | *\ *)
4070 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4071 *)
4072 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4073 esac
4074fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01004075# Use eval to expand $SHELL
4076if eval "$MISSING --run true"; then
4077 am_missing_run="$MISSING --run "
4078else
4079 am_missing_run=
Scott James Remnantfde82c92009-09-22 10:04:15 -07004080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004081$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4082fi
4083
Scott James Remnantc5b65582009-09-23 14:16:28 -07004084if test x"${install_sh}" != xset; then
4085 case $am_aux_dir in
4086 *\ * | *\ *)
4087 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4088 *)
4089 install_sh="\${SHELL} $am_aux_dir/install-sh"
4090 esac
4091fi
4092
4093# Installed binaries are usually stripped using `strip' when the user
4094# run `make install-strip'. However `strip' might not be the right
4095# tool to use in cross-compilation environments, therefore Automake
4096# will honor the `STRIP' environment variable to overrule this program.
4097if test "$cross_compiling" != no; then
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4100set dummy ${ac_tool_prefix}strip; ac_word=$2
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102$as_echo_n "checking for $ac_word... " >&6; }
4103if test "${ac_cv_prog_STRIP+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4105else
4106 if test -n "$STRIP"; then
4107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4108else
4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110for as_dir in $PATH
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4119 fi
4120done
4121 done
4122IFS=$as_save_IFS
4123
4124fi
4125fi
4126STRIP=$ac_cv_prog_STRIP
4127if test -n "$STRIP"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4129$as_echo "$STRIP" >&6; }
4130else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133fi
4134
4135
4136fi
4137if test -z "$ac_cv_prog_STRIP"; then
4138 ac_ct_STRIP=$STRIP
4139 # Extract the first word of "strip", so it can be a program name with args.
4140set dummy strip; ac_word=$2
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
4143if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4145else
4146 if test -n "$ac_ct_STRIP"; then
4147 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_STRIP="strip"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 break 2
4159 fi
4160done
4161 done
4162IFS=$as_save_IFS
4163
4164fi
4165fi
4166ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4167if test -n "$ac_ct_STRIP"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4169$as_echo "$ac_ct_STRIP" >&6; }
4170else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
4173fi
4174
4175 if test "x$ac_ct_STRIP" = x; then
4176 STRIP=":"
4177 else
4178 case $cross_compiling:$ac_tool_warned in
4179yes:)
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182ac_tool_warned=yes ;;
4183esac
4184 STRIP=$ac_ct_STRIP
4185 fi
4186else
4187 STRIP="$ac_cv_prog_STRIP"
4188fi
4189
4190fi
4191INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4192
Scott James Remnantfde82c92009-09-22 10:04:15 -07004193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004194$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4195if test -z "$MKDIR_P"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004196 if test "${ac_cv_path_mkdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004197 $as_echo_n "(cached) " >&6
4198else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4201do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004204 for ac_prog in mkdir gmkdir; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4207 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4208 'mkdir (GNU coreutils) '* | \
4209 'mkdir (coreutils) '* | \
4210 'mkdir (fileutils) '4.1*)
4211 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4212 break 3;;
4213 esac
4214 done
4215 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004216 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004217IFS=$as_save_IFS
4218
4219fi
4220
4221 if test "${ac_cv_path_mkdir+set}" = set; then
4222 MKDIR_P="$ac_cv_path_mkdir -p"
4223 else
4224 # As a last resort, use the slow shell script. Don't cache a
4225 # value for MKDIR_P within a source directory, because that will
4226 # break other packages using the cache if that directory is
4227 # removed, or if the value is a relative name.
4228 test -d ./--version && rmdir ./--version
4229 MKDIR_P="$ac_install_sh -d"
4230 fi
4231fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004233$as_echo "$MKDIR_P" >&6; }
4234
4235mkdir_p="$MKDIR_P"
4236case $mkdir_p in
4237 [\\/$]* | ?:[\\/]*) ;;
4238 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4239esac
4240
4241for ac_prog in gawk mawk nawk awk
4242do
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004246$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004247if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004248 $as_echo_n "(cached) " >&6
4249else
4250 if test -n "$AWK"; then
4251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004258 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_AWK="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004262 break 2
4263 fi
4264done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004265 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004266IFS=$as_save_IFS
4267
4268fi
4269fi
4270AWK=$ac_cv_prog_AWK
4271if test -n "$AWK"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004273$as_echo "$AWK" >&6; }
4274else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004276$as_echo "no" >&6; }
4277fi
4278
4279
4280 test -n "$AWK" && break
4281done
4282
Scott James Remnantfde82c92009-09-22 10:04:15 -07004283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004284$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4285set x ${MAKE-make}
4286ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07004287if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004288 $as_echo_n "(cached) " >&6
4289else
4290 cat >conftest.make <<\_ACEOF
4291SHELL = /bin/sh
4292all:
4293 @echo '@@@%%%=$(MAKE)=@@@%%%'
4294_ACEOF
4295# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4296case `${MAKE-make} -f conftest.make 2>/dev/null` in
4297 *@@@%%%=?*=@@@%%%*)
4298 eval ac_cv_prog_make_${ac_make}_set=yes;;
4299 *)
4300 eval ac_cv_prog_make_${ac_make}_set=no;;
4301esac
4302rm -f conftest.make
4303fi
4304if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004306$as_echo "yes" >&6; }
4307 SET_MAKE=
4308else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004310$as_echo "no" >&6; }
4311 SET_MAKE="MAKE=${MAKE-make}"
4312fi
4313
4314rm -rf .tst 2>/dev/null
4315mkdir .tst 2>/dev/null
4316if test -d .tst; then
4317 am__leading_dot=.
4318else
4319 am__leading_dot=_
4320fi
4321rmdir .tst 2>/dev/null
4322
4323DEPDIR="${am__leading_dot}deps"
4324
4325ac_config_commands="$ac_config_commands depfiles"
4326
4327
4328am_make=${MAKE-make}
4329cat > confinc << 'END'
4330am__doit:
Scott James Remnantc5b65582009-09-23 14:16:28 -07004331 @echo this is the am__doit target
Scott James Remnant65f683d2009-07-14 13:05:17 +01004332.PHONY: am__doit
4333END
4334# If we don't find an include directive, just comment out the code.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004335{ $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 +01004336$as_echo_n "checking for style of include used by $am_make... " >&6; }
4337am__include="#"
4338am__quote=
4339_am_result=none
4340# First try GNU make style include.
4341echo "include confinc" > confmf
Scott James Remnantc5b65582009-09-23 14:16:28 -07004342# Ignore all kinds of additional output from `make'.
4343case `$am_make -s -f confmf 2> /dev/null` in #(
4344*the\ am__doit\ target*)
4345 am__include=include
4346 am__quote=
4347 _am_result=GNU
4348 ;;
4349esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004350# Now try BSD make style include.
4351if test "$am__include" = "#"; then
4352 echo '.include "confinc"' > confmf
Scott James Remnantc5b65582009-09-23 14:16:28 -07004353 case `$am_make -s -f confmf 2> /dev/null` in #(
4354 *the\ am__doit\ target*)
4355 am__include=.include
4356 am__quote="\""
4357 _am_result=BSD
4358 ;;
4359 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004360fi
4361
4362
Scott James Remnantfde82c92009-09-22 10:04:15 -07004363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004364$as_echo "$_am_result" >&6; }
4365rm -f confinc confmf
4366
4367# Check whether --enable-dependency-tracking was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004368if test "${enable_dependency_tracking+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004369 enableval=$enable_dependency_tracking;
4370fi
4371
4372if test "x$enable_dependency_tracking" != xno; then
4373 am_depcomp="$ac_aux_dir/depcomp"
4374 AMDEPBACKSLASH='\'
4375fi
4376 if test "x$enable_dependency_tracking" != xno; then
4377 AMDEP_TRUE=
4378 AMDEP_FALSE='#'
4379else
4380 AMDEP_TRUE='#'
4381 AMDEP_FALSE=
4382fi
4383
4384
4385if test "`cd $srcdir && pwd`" != "`pwd`"; then
4386 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4387 # is not polluted with repeated "-I."
4388 am__isrc=' -I$(srcdir)'
4389 # test to see if srcdir already configured
4390 if test -f $srcdir/config.status; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004391 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004392 fi
4393fi
4394
4395# test whether we have cygpath
4396if test -z "$CYGPATH_W"; then
4397 if (cygpath --version) >/dev/null 2>/dev/null; then
4398 CYGPATH_W='cygpath -w'
4399 else
4400 CYGPATH_W=echo
4401 fi
4402fi
4403
4404
4405# Define the identity of the package.
4406 PACKAGE='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004407 VERSION='0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004408
4409
4410cat >>confdefs.h <<_ACEOF
4411#define PACKAGE "$PACKAGE"
4412_ACEOF
4413
4414
4415cat >>confdefs.h <<_ACEOF
4416#define VERSION "$VERSION"
4417_ACEOF
4418
4419# Some tools Automake needs.
4420
4421ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4422
4423
4424AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4425
4426
4427AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4428
4429
4430AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4431
4432
4433MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4434
Scott James Remnant65f683d2009-07-14 13:05:17 +01004435# We need awk for the "check" target. The system "awk" is bad on
4436# some platforms.
4437# Always define AMTAR for backward compatibility.
4438
4439AMTAR=${AMTAR-"${am_missing_run}tar"}
4440
4441am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4442
4443
4444
4445
4446depcc="$CC" am_compiler_list=
4447
Scott James Remnantfde82c92009-09-22 10:04:15 -07004448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004449$as_echo_n "checking dependency style of $depcc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004450if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004451 $as_echo_n "(cached) " >&6
4452else
4453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4454 # We make a subdir and do the tests there. Otherwise we can end up
4455 # making bogus files that we don't know about and never remove. For
4456 # instance it was reported that on HP-UX the gcc test will end up
4457 # making a dummy file named `D' -- because `-MD' means `put the output
4458 # in D'.
4459 mkdir conftest.dir
4460 # Copy depcomp to subdir because otherwise we won't find it if we're
4461 # using a relative directory.
4462 cp "$am_depcomp" conftest.dir
4463 cd conftest.dir
4464 # We will build objects and dependencies in a subdirectory because
4465 # it helps to detect inapplicable dependency modes. For instance
4466 # both Tru64's cc and ICC support -MD to output dependencies as a
4467 # side effect of compilation, but ICC will put the dependencies in
4468 # the current directory while Tru64 will put them in the object
4469 # directory.
4470 mkdir sub
4471
4472 am_cv_CC_dependencies_compiler_type=none
4473 if test "$am_compiler_list" = ""; then
4474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475 fi
Scott James Remnantc5b65582009-09-23 14:16:28 -07004476 am__universal=false
4477 case " $depcc " in #(
4478 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4479 esac
4480
Scott James Remnant65f683d2009-07-14 13:05:17 +01004481 for depmode in $am_compiler_list; do
4482 # Setup a source with many dependencies, because some compilers
4483 # like to wrap large dependency lists on column 80 (with \), and
4484 # we should not choose a depcomp mode which is confused by this.
4485 #
4486 # We need to recreate these files for each test, as the compiler may
4487 # overwrite some of them when testing with obscure command lines.
4488 # This happens at least with the AIX C compiler.
4489 : > sub/conftest.c
4490 for i in 1 2 3 4 5 6; do
4491 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4492 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4493 # Solaris 8's {/usr,}/bin/sh.
4494 touch sub/conftst$i.h
4495 done
4496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4497
Scott James Remnantc5b65582009-09-23 14:16:28 -07004498 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4499 # mode. It turns out that the SunPro C++ compiler does not properly
4500 # handle `-M -o', and we need to detect this. Also, some Intel
4501 # versions had trouble with output in subdirs
4502 am__obj=sub/conftest.${OBJEXT-o}
4503 am__minus_obj="-o $am__obj"
Scott James Remnant65f683d2009-07-14 13:05:17 +01004504 case $depmode in
Scott James Remnantc5b65582009-09-23 14:16:28 -07004505 gcc)
4506 # This depmode causes a compiler race in universal mode.
4507 test "$am__universal" = false || continue
4508 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004509 nosideeffect)
4510 # after this tag, mechanisms are not by side-effect, so they'll
4511 # only be used when explicitly requested
4512 if test "x$enable_dependency_tracking" = xyes; then
4513 continue
4514 else
4515 break
4516 fi
4517 ;;
Scott James Remnantc5b65582009-09-23 14:16:28 -07004518 msvisualcpp | msvcmsys)
4519 # This compiler won't grok `-c -o', but also, the minuso test has
4520 # not run yet. These depmodes are late enough in the game, and
4521 # so weak that their functioning should not be impacted.
4522 am__obj=conftest.${OBJEXT-o}
4523 am__minus_obj=
4524 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004525 none) break ;;
4526 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004527 if depmode=$depmode \
Scott James Remnantc5b65582009-09-23 14:16:28 -07004528 source=sub/conftest.c object=$am__obj \
Scott James Remnant65f683d2009-07-14 13:05:17 +01004529 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Scott James Remnantc5b65582009-09-23 14:16:28 -07004530 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Scott James Remnant65f683d2009-07-14 13:05:17 +01004531 >/dev/null 2>conftest.err &&
4532 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Scott James Remnantc5b65582009-09-23 14:16:28 -07004534 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Scott James Remnant65f683d2009-07-14 13:05:17 +01004535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4536 # icc doesn't choke on unknown options, it will just issue warnings
4537 # or remarks (even with -Werror). So we grep stderr for any message
4538 # that says an option was ignored or not supported.
4539 # When given -MP, icc 7.0 and 7.1 complain thusly:
4540 # icc: Command line warning: ignoring option '-M'; no argument required
4541 # The diagnosis changed in icc 8.0:
4542 # icc: Command line remark: option '-MP' not supported
4543 if (grep 'ignoring option' conftest.err ||
4544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4545 am_cv_CC_dependencies_compiler_type=$depmode
4546 break
4547 fi
4548 fi
4549 done
4550
4551 cd ..
4552 rm -rf conftest.dir
4553else
4554 am_cv_CC_dependencies_compiler_type=none
4555fi
4556
4557fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004559$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4560CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561
4562 if
4563 test "x$enable_dependency_tracking" != xno \
4564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4565 am__fastdepCC_TRUE=
4566 am__fastdepCC_FALSE='#'
4567else
4568 am__fastdepCC_TRUE='#'
4569 am__fastdepCC_FALSE=
4570fi
4571
4572
4573
4574
4575
4576case `pwd` in
4577 *\ * | *\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -07004578 { $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 +01004579$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4580esac
4581
4582
4583
4584macro_version='2.2.6'
4585macro_revision='1.3012'
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599ltmain="$ac_aux_dir/ltmain.sh"
4600
4601# Make sure we can run config.sub.
4602$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004603 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004604
Scott James Remnantfde82c92009-09-22 10:04:15 -07004605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004606$as_echo_n "checking build system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004607if test "${ac_cv_build+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004608 $as_echo_n "(cached) " >&6
4609else
4610 ac_build_alias=$build_alias
4611test "x$ac_build_alias" = x &&
4612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4613test "x$ac_build_alias" = x &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07004614 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004615ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004616 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004617
4618fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004620$as_echo "$ac_cv_build" >&6; }
4621case $ac_cv_build in
4622*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004623*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004624esac
4625build=$ac_cv_build
4626ac_save_IFS=$IFS; IFS='-'
4627set x $ac_cv_build
4628shift
4629build_cpu=$1
4630build_vendor=$2
4631shift; shift
4632# Remember, the first character of IFS is used to create $*,
4633# except with old shells:
4634build_os=$*
4635IFS=$ac_save_IFS
4636case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4637
4638
Scott James Remnantfde82c92009-09-22 10:04:15 -07004639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004640$as_echo_n "checking host system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004641if test "${ac_cv_host+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004642 $as_echo_n "(cached) " >&6
4643else
4644 if test "x$host_alias" = x; then
4645 ac_cv_host=$ac_cv_build
4646else
4647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004648 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004649fi
4650
4651fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004653$as_echo "$ac_cv_host" >&6; }
4654case $ac_cv_host in
4655*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004656*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004657esac
4658host=$ac_cv_host
4659ac_save_IFS=$IFS; IFS='-'
4660set x $ac_cv_host
4661shift
4662host_cpu=$1
4663host_vendor=$2
4664shift; shift
4665# Remember, the first character of IFS is used to create $*,
4666# except with old shells:
4667host_os=$*
4668IFS=$ac_save_IFS
4669case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4670
4671
Scott James Remnantfde82c92009-09-22 10:04:15 -07004672{ $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 +01004673$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004674if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004675 $as_echo_n "(cached) " >&6
4676else
4677 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4678 for ac_i in 1 2 3 4 5 6 7; do
4679 ac_script="$ac_script$as_nl$ac_script"
4680 done
4681 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Scott James Remnantfde82c92009-09-22 10:04:15 -07004682 { ac_script=; unset ac_script;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01004683 if test -z "$SED"; then
4684 ac_path_SED_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004691 for ac_prog in sed gsed; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4695# Check for GNU ac_path_SED and select it if it is found.
4696 # Check for GNU $ac_path_SED
4697case `"$ac_path_SED" --version 2>&1` in
4698*GNU*)
4699 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4700*)
4701 ac_count=0
4702 $as_echo_n 0123456789 >"conftest.in"
4703 while :
4704 do
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo '' >> "conftest.nl"
4709 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004711 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004712 if test $ac_count -gt ${ac_path_SED_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_SED="$ac_path_SED"
4715 ac_path_SED_max=$ac_count
4716 fi
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4719 done
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721esac
4722
4723 $ac_path_SED_found && break 3
4724 done
4725 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004726 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004727IFS=$as_save_IFS
4728 if test -z "$ac_cv_path_SED"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004729 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004730 fi
4731else
4732 ac_cv_path_SED=$SED
4733fi
4734
4735fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004737$as_echo "$ac_cv_path_SED" >&6; }
4738 SED="$ac_cv_path_SED"
4739 rm -f conftest.sed
4740
4741test -z "$SED" && SED=sed
4742Xsed="$SED -e 1s/^X//"
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
Scott James Remnantfde82c92009-09-22 10:04:15 -07004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004755$as_echo_n "checking for fgrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004756if test "${ac_cv_path_FGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004757 $as_echo_n "(cached) " >&6
4758else
4759 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4760 then ac_cv_path_FGREP="$GREP -F"
4761 else
4762 if test -z "$FGREP"; then
4763 ac_path_FGREP_found=false
4764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004770 for ac_prog in fgrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4773 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4774# Check for GNU ac_path_FGREP and select it if it is found.
4775 # Check for GNU $ac_path_FGREP
4776case `"$ac_path_FGREP" --version 2>&1` in
4777*GNU*)
4778 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4779*)
4780 ac_count=0
4781 $as_echo_n 0123456789 >"conftest.in"
4782 while :
4783 do
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
4787 $as_echo 'FGREP' >> "conftest.nl"
4788 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004790 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004791 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_FGREP="$ac_path_FGREP"
4794 ac_path_FGREP_max=$ac_count
4795 fi
4796 # 10*(2^10) chars as input seems more than enough
4797 test $ac_count -gt 10 && break
4798 done
4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800esac
4801
4802 $ac_path_FGREP_found && break 3
4803 done
4804 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004805 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004806IFS=$as_save_IFS
4807 if test -z "$ac_cv_path_FGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004808 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 +01004809 fi
4810else
4811 ac_cv_path_FGREP=$FGREP
4812fi
4813
4814 fi
4815fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004817$as_echo "$ac_cv_path_FGREP" >&6; }
4818 FGREP="$ac_cv_path_FGREP"
4819
4820
4821test -z "$GREP" && GREP=grep
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004842if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4844else
4845 with_gnu_ld=no
4846fi
4847
4848ac_prog=ld
4849if test "$GCC" = yes; then
4850 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004852$as_echo_n "checking for ld used by $CC... " >&6; }
4853 case $host in
4854 *-*-mingw*)
4855 # gcc leaves a trailing carriage return which upsets mingw
4856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857 *)
4858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859 esac
4860 case $ac_prog in
4861 # Accept absolute paths.
4862 [\\/]* | ?:[\\/]*)
4863 re_direlt='/[^/][^/]*/\.\./'
4864 # Canonicalize the pathname of ld
4865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4868 done
4869 test -z "$LD" && LD="$ac_prog"
4870 ;;
4871 "")
4872 # If it fails, then pretend we aren't using GCC.
4873 ac_prog=ld
4874 ;;
4875 *)
4876 # If it is relative, then search for the first ld in PATH.
4877 with_gnu_ld=unknown
4878 ;;
4879 esac
4880elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004882$as_echo_n "checking for GNU ld... " >&6; }
4883else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004885$as_echo_n "checking for non-GNU ld... " >&6; }
4886fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004887if test "${lt_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004888 $as_echo_n "(cached) " >&6
4889else
4890 if test -z "$LD"; then
4891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4892 for ac_dir in $PATH; do
4893 IFS="$lt_save_ifs"
4894 test -z "$ac_dir" && ac_dir=.
4895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4896 lt_cv_path_LD="$ac_dir/$ac_prog"
4897 # Check to see if the program is GNU ld. I'd rather use --version,
4898 # but apparently some variants of GNU ld only accept -v.
4899 # Break only if it was the GNU/non-GNU ld that we prefer.
4900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4901 *GNU* | *'with BFD'*)
4902 test "$with_gnu_ld" != no && break
4903 ;;
4904 *)
4905 test "$with_gnu_ld" != yes && break
4906 ;;
4907 esac
4908 fi
4909 done
4910 IFS="$lt_save_ifs"
4911else
4912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913fi
4914fi
4915
4916LD="$lt_cv_path_LD"
4917if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004919$as_echo "$LD" >&6; }
4920else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004922$as_echo "no" >&6; }
4923fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004924test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004926$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004927if test "${lt_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004928 $as_echo_n "(cached) " >&6
4929else
4930 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4931case `$LD -v 2>&1 </dev/null` in
4932*GNU* | *'with BFD'*)
4933 lt_cv_prog_gnu_ld=yes
4934 ;;
4935*)
4936 lt_cv_prog_gnu_ld=no
4937 ;;
4938esac
4939fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004941$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4942with_gnu_ld=$lt_cv_prog_gnu_ld
4943
4944
4945
4946
4947
4948
4949
4950
4951
Scott James Remnantfde82c92009-09-22 10:04:15 -07004952{ $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 +01004953$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004954if test "${lt_cv_path_NM+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004955 $as_echo_n "(cached) " >&6
4956else
4957 if test -n "$NM"; then
4958 # Let the user override the test.
4959 lt_cv_path_NM="$NM"
4960else
4961 lt_nm_to_check="${ac_tool_prefix}nm"
4962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4963 lt_nm_to_check="$lt_nm_to_check nm"
4964 fi
4965 for lt_tmp_nm in $lt_nm_to_check; do
4966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4968 IFS="$lt_save_ifs"
4969 test -z "$ac_dir" && ac_dir=.
4970 tmp_nm="$ac_dir/$lt_tmp_nm"
4971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4972 # Check to see if the nm accepts a BSD-compat flag.
4973 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4974 # nm: unknown option "B" ignored
4975 # Tru64's nm complains that /dev/null is an invalid object file
4976 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4977 */dev/null* | *'Invalid file or object type'*)
4978 lt_cv_path_NM="$tmp_nm -B"
4979 break
4980 ;;
4981 *)
4982 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4983 */dev/null*)
4984 lt_cv_path_NM="$tmp_nm -p"
4985 break
4986 ;;
4987 *)
4988 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4989 continue # so that we can try to find one that supports BSD flags
4990 ;;
4991 esac
4992 ;;
4993 esac
4994 fi
4995 done
4996 IFS="$lt_save_ifs"
4997 done
4998 : ${lt_cv_path_NM=no}
4999fi
5000fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005002$as_echo "$lt_cv_path_NM" >&6; }
5003if test "$lt_cv_path_NM" != "no"; then
5004 NM="$lt_cv_path_NM"
5005else
5006 # Didn't find any BSD compatible name lister, look for dumpbin.
5007 if test -n "$ac_tool_prefix"; then
5008 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5009 do
5010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005013$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005014if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005015 $as_echo_n "(cached) " >&6
5016else
5017 if test -n "$DUMPBIN"; then
5018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005025 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005029 break 2
5030 fi
5031done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005032 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005033IFS=$as_save_IFS
5034
5035fi
5036fi
5037DUMPBIN=$ac_cv_prog_DUMPBIN
5038if test -n "$DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005040$as_echo "$DUMPBIN" >&6; }
5041else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005043$as_echo "no" >&6; }
5044fi
5045
5046
5047 test -n "$DUMPBIN" && break
5048 done
5049fi
5050if test -z "$DUMPBIN"; then
5051 ac_ct_DUMPBIN=$DUMPBIN
5052 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5053do
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005057$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005058if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005059 $as_echo_n "(cached) " >&6
5060else
5061 if test -n "$ac_ct_DUMPBIN"; then
5062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005069 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005073 break 2
5074 fi
5075done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005076 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005077IFS=$as_save_IFS
5078
5079fi
5080fi
5081ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5082if test -n "$ac_ct_DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005084$as_echo "$ac_ct_DUMPBIN" >&6; }
5085else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005087$as_echo "no" >&6; }
5088fi
5089
5090
5091 test -n "$ac_ct_DUMPBIN" && break
5092done
5093
5094 if test "x$ac_ct_DUMPBIN" = x; then
5095 DUMPBIN=":"
5096 else
5097 case $cross_compiling:$ac_tool_warned in
5098yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005099{ $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 +01005100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101ac_tool_warned=yes ;;
5102esac
5103 DUMPBIN=$ac_ct_DUMPBIN
5104 fi
5105fi
5106
5107
5108 if test "$DUMPBIN" != ":"; then
5109 NM="$DUMPBIN"
5110 fi
5111fi
5112test -z "$NM" && NM=nm
5113
5114
5115
5116
5117
5118
Scott James Remnantfde82c92009-09-22 10:04:15 -07005119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005120$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005121if test "${lt_cv_nm_interface+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005122 $as_echo_n "(cached) " >&6
5123else
5124 lt_cv_nm_interface="BSD nm"
5125 echo "int some_variable = 0;" > conftest.$ac_ext
Scott James Remnant2c84e532009-10-14 05:31:38 +01005126 (eval echo "\"\$as_me:5126: $ac_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005127 (eval "$ac_compile" 2>conftest.err)
5128 cat conftest.err >&5
Scott James Remnant2c84e532009-10-14 05:31:38 +01005129 (eval echo "\"\$as_me:5129: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005130 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5131 cat conftest.err >&5
Scott James Remnant2c84e532009-10-14 05:31:38 +01005132 (eval echo "\"\$as_me:5132: output\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005133 cat conftest.out >&5
5134 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5135 lt_cv_nm_interface="MS dumpbin"
5136 fi
5137 rm -f conftest*
5138fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005140$as_echo "$lt_cv_nm_interface" >&6; }
5141
Scott James Remnantfde82c92009-09-22 10:04:15 -07005142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005143$as_echo_n "checking whether ln -s works... " >&6; }
5144LN_S=$as_ln_s
5145if test "$LN_S" = "ln -s"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005147$as_echo "yes" >&6; }
5148else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005150$as_echo "no, using $LN_S" >&6; }
5151fi
5152
5153# find the maximum length of command line arguments
Scott James Remnantfde82c92009-09-22 10:04:15 -07005154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005155$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005156if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005157 $as_echo_n "(cached) " >&6
5158else
5159 i=0
5160 teststring="ABCD"
5161
5162 case $build_os in
5163 msdosdjgpp*)
5164 # On DJGPP, this test can blow up pretty badly due to problems in libc
5165 # (any single argument exceeding 2000 bytes causes a buffer overrun
5166 # during glob expansion). Even if it were fixed, the result of this
5167 # check would be larger than it should be.
5168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5169 ;;
5170
5171 gnu*)
5172 # Under GNU Hurd, this test is not required because there is
5173 # no limit to the length of command line arguments.
5174 # Libtool will interpret -1 as no limit whatsoever
5175 lt_cv_sys_max_cmd_len=-1;
5176 ;;
5177
5178 cygwin* | mingw* | cegcc*)
5179 # On Win9x/ME, this test blows up -- it succeeds, but takes
5180 # about 5 minutes as the teststring grows exponentially.
5181 # Worse, since 9x/ME are not pre-emptively multitasking,
5182 # you end up with a "frozen" computer, even though with patience
5183 # the test eventually succeeds (with a max line length of 256k).
5184 # Instead, let's just punt: use the minimum linelength reported by
5185 # all of the supported platforms: 8192 (on NT/2K/XP).
5186 lt_cv_sys_max_cmd_len=8192;
5187 ;;
5188
5189 amigaos*)
5190 # On AmigaOS with pdksh, this test takes hours, literally.
5191 # So we just punt and use a minimum line length of 8192.
5192 lt_cv_sys_max_cmd_len=8192;
5193 ;;
5194
5195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5196 # This has been around since 386BSD, at least. Likely further.
5197 if test -x /sbin/sysctl; then
5198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5199 elif test -x /usr/sbin/sysctl; then
5200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5201 else
5202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5203 fi
5204 # And add a safety zone
5205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5207 ;;
5208
5209 interix*)
5210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5211 lt_cv_sys_max_cmd_len=196608
5212 ;;
5213
5214 osf*)
5215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217 # nice to cause kernel panics so lets avoid the loop below.
5218 # First set a reasonable default.
5219 lt_cv_sys_max_cmd_len=16384
5220 #
5221 if test -x /sbin/sysconfig; then
5222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5224 esac
5225 fi
5226 ;;
5227 sco3.2v5*)
5228 lt_cv_sys_max_cmd_len=102400
5229 ;;
5230 sysv5* | sco5v6* | sysv4.2uw2*)
5231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232 if test -n "$kargmax"; then
5233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5234 else
5235 lt_cv_sys_max_cmd_len=32768
5236 fi
5237 ;;
5238 *)
5239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240 if test -n "$lt_cv_sys_max_cmd_len"; then
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5243 else
5244 # Make teststring a little bigger before we do anything with it.
5245 # a 1K string should be a reasonable start.
5246 for i in 1 2 3 4 5 6 7 8 ; do
5247 teststring=$teststring$teststring
5248 done
5249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5250 # If test is not a shell built-in, we'll probably end up computing a
5251 # maximum length that is only half of the actual maximum length, but
5252 # we can't tell.
5253 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5254 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5255 test $i != 17 # 1/2 MB should be enough
5256 do
5257 i=`expr $i + 1`
5258 teststring=$teststring$teststring
5259 done
5260 # Only check the string length outside the loop.
5261 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5262 teststring=
5263 # Add a significant safety factor because C++ compilers can tack on
5264 # massive amounts of additional arguments before passing them to the
5265 # linker. It appears as though 1/2 is a usable value.
5266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5267 fi
5268 ;;
5269 esac
5270
5271fi
5272
5273if test -n $lt_cv_sys_max_cmd_len ; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005275$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5276else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005278$as_echo "none" >&6; }
5279fi
5280max_cmd_len=$lt_cv_sys_max_cmd_len
5281
5282
5283
5284
5285
5286
5287: ${CP="cp -f"}
5288: ${MV="mv -f"}
5289: ${RM="rm -f"}
5290
Scott James Remnantfde82c92009-09-22 10:04:15 -07005291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005292$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5293# Try some XSI features
5294xsi_shell=no
5295( _lt_dummy="a/b/c"
5296 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5297 = c,a/b,, \
5298 && eval 'test $(( 1 + 1 )) -eq 2 \
5299 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5300 && xsi_shell=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005302$as_echo "$xsi_shell" >&6; }
5303
5304
Scott James Remnantfde82c92009-09-22 10:04:15 -07005305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005306$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5307lt_shell_append=no
5308( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5309 >/dev/null 2>&1 \
5310 && lt_shell_append=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005312$as_echo "$lt_shell_append" >&6; }
5313
5314
5315if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5316 lt_unset=unset
5317else
5318 lt_unset=false
5319fi
5320
5321
5322
5323
5324
5325# test EBCDIC or ASCII
5326case `echo X|tr X '\101'` in
5327 A) # ASCII based system
5328 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5329 lt_SP2NL='tr \040 \012'
5330 lt_NL2SP='tr \015\012 \040\040'
5331 ;;
5332 *) # EBCDIC based system
5333 lt_SP2NL='tr \100 \n'
5334 lt_NL2SP='tr \r\n \100\100'
5335 ;;
5336esac
5337
5338
5339
5340
5341
5342
5343
5344
5345
Scott James Remnantfde82c92009-09-22 10:04:15 -07005346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005347$as_echo_n "checking for $LD option to reload object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005348if test "${lt_cv_ld_reload_flag+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005349 $as_echo_n "(cached) " >&6
5350else
5351 lt_cv_ld_reload_flag='-r'
5352fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005354$as_echo "$lt_cv_ld_reload_flag" >&6; }
5355reload_flag=$lt_cv_ld_reload_flag
5356case $reload_flag in
5357"" | " "*) ;;
5358*) reload_flag=" $reload_flag" ;;
5359esac
5360reload_cmds='$LD$reload_flag -o $output$reload_objs'
5361case $host_os in
5362 darwin*)
5363 if test "$GCC" = yes; then
5364 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5365 else
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367 fi
5368 ;;
5369esac
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5381set dummy ${ac_tool_prefix}objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005383$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005384if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005385 $as_echo_n "(cached) " >&6
5386else
5387 if test -n "$OBJDUMP"; then
5388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005395 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005399 break 2
5400 fi
5401done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005402 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005403IFS=$as_save_IFS
5404
5405fi
5406fi
5407OBJDUMP=$ac_cv_prog_OBJDUMP
5408if test -n "$OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005410$as_echo "$OBJDUMP" >&6; }
5411else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005413$as_echo "no" >&6; }
5414fi
5415
5416
5417fi
5418if test -z "$ac_cv_prog_OBJDUMP"; then
5419 ac_ct_OBJDUMP=$OBJDUMP
5420 # Extract the first word of "objdump", so it can be a program name with args.
5421set dummy objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005423$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005424if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005425 $as_echo_n "(cached) " >&6
5426else
5427 if test -n "$ac_ct_OBJDUMP"; then
5428 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005435 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005439 break 2
5440 fi
5441done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005442 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005443IFS=$as_save_IFS
5444
5445fi
5446fi
5447ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5448if test -n "$ac_ct_OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005450$as_echo "$ac_ct_OBJDUMP" >&6; }
5451else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005453$as_echo "no" >&6; }
5454fi
5455
5456 if test "x$ac_ct_OBJDUMP" = x; then
5457 OBJDUMP="false"
5458 else
5459 case $cross_compiling:$ac_tool_warned in
5460yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005461{ $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 +01005462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463ac_tool_warned=yes ;;
5464esac
5465 OBJDUMP=$ac_ct_OBJDUMP
5466 fi
5467else
5468 OBJDUMP="$ac_cv_prog_OBJDUMP"
5469fi
5470
5471test -z "$OBJDUMP" && OBJDUMP=objdump
5472
5473
5474
5475
5476
5477
5478
5479
5480
Scott James Remnantfde82c92009-09-22 10:04:15 -07005481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005482$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005483if test "${lt_cv_deplibs_check_method+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005484 $as_echo_n "(cached) " >&6
5485else
5486 lt_cv_file_magic_cmd='$MAGIC_CMD'
5487lt_cv_file_magic_test_file=
5488lt_cv_deplibs_check_method='unknown'
5489# Need to set the preceding variable on all platforms that support
5490# interlibrary dependencies.
5491# 'none' -- dependencies not supported.
5492# `unknown' -- same as none, but documents that we really don't know.
5493# 'pass_all' -- all dependencies passed with no checks.
5494# 'test_compile' -- check by making test program.
5495# 'file_magic [[regex]]' -- check by looking for files in library path
5496# which responds to the $file_magic_cmd with a given extended regex.
5497# If you have `file' or equivalent on your system and you're not sure
5498# whether `pass_all' will *always* work, you probably want this one.
5499
5500case $host_os in
5501aix[4-9]*)
5502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505beos*)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
5509bsdi[45]*)
5510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5511 lt_cv_file_magic_cmd='/usr/bin/file -L'
5512 lt_cv_file_magic_test_file=/shlib/libc.so
5513 ;;
5514
5515cygwin*)
5516 # func_win32_libid is a shell function defined in ltmain.sh
5517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518 lt_cv_file_magic_cmd='func_win32_libid'
5519 ;;
5520
5521mingw* | pw32*)
5522 # Base MSYS/MinGW do not provide the 'file' command needed by
5523 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5524 # unless we find 'file', for example because we are cross-compiling.
5525 if ( file / ) >/dev/null 2>&1; then
5526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5527 lt_cv_file_magic_cmd='func_win32_libid'
5528 else
5529 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5530 lt_cv_file_magic_cmd='$OBJDUMP -f'
5531 fi
5532 ;;
5533
5534cegcc)
5535 # use the weaker test based on 'objdump'. See mingw*.
5536 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5537 lt_cv_file_magic_cmd='$OBJDUMP -f'
5538 ;;
5539
5540darwin* | rhapsody*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544freebsd* | dragonfly*)
5545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5546 case $host_cpu in
5547 i*86 )
5548 # Not sure whether the presence of OpenBSD here was a mistake.
5549 # Let's accept both of them until this is cleared up.
5550 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5551 lt_cv_file_magic_cmd=/usr/bin/file
5552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5553 ;;
5554 esac
5555 else
5556 lt_cv_deplibs_check_method=pass_all
5557 fi
5558 ;;
5559
5560gnu*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564hpux10.20* | hpux11*)
5565 lt_cv_file_magic_cmd=/usr/bin/file
5566 case $host_cpu in
5567 ia64*)
5568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5570 ;;
5571 hppa*64*)
5572 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]'
5573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5574 ;;
5575 *)
5576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5578 ;;
5579 esac
5580 ;;
5581
5582interix[3-9]*)
5583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5585 ;;
5586
5587irix5* | irix6* | nonstopux*)
5588 case $LD in
5589 *-32|*"-32 ") libmagic=32-bit;;
5590 *-n32|*"-n32 ") libmagic=N32;;
5591 *-64|*"-64 ") libmagic=64-bit;;
5592 *) libmagic=never-match;;
5593 esac
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597# This must be Linux ELF.
5598linux* | k*bsd*-gnu)
5599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601
5602netbsd* | netbsdelf*-gnu)
5603 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 else
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5607 fi
5608 ;;
5609
5610newos6*)
5611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5612 lt_cv_file_magic_cmd=/usr/bin/file
5613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5614 ;;
5615
5616*nto* | *qnx*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620openbsd*)
5621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5623 else
5624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5625 fi
5626 ;;
5627
5628osf3* | osf4* | osf5*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632rdos*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636solaris*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
5640sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643
5644sysv4 | sysv4.3*)
5645 case $host_vendor in
5646 motorola)
5647 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]'
5648 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5649 ;;
5650 ncr)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653 sequent)
5654 lt_cv_file_magic_cmd='/bin/file'
5655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5656 ;;
5657 sni)
5658 lt_cv_file_magic_cmd='/bin/file'
5659 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5660 lt_cv_file_magic_test_file=/lib/libc.so
5661 ;;
5662 siemens)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665 pc)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668 esac
5669 ;;
5670
5671tpf*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674esac
5675
5676fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005678$as_echo "$lt_cv_deplibs_check_method" >&6; }
5679file_magic_cmd=$lt_cv_file_magic_cmd
5680deplibs_check_method=$lt_cv_deplibs_check_method
5681test -z "$deplibs_check_method" && deplibs_check_method=unknown
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005698$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005699if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005700 $as_echo_n "(cached) " >&6
5701else
5702 if test -n "$AR"; then
5703 ac_cv_prog_AR="$AR" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005710 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005714 break 2
5715 fi
5716done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005717 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005718IFS=$as_save_IFS
5719
5720fi
5721fi
5722AR=$ac_cv_prog_AR
5723if test -n "$AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005725$as_echo "$AR" >&6; }
5726else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005728$as_echo "no" >&6; }
5729fi
5730
5731
5732fi
5733if test -z "$ac_cv_prog_AR"; then
5734 ac_ct_AR=$AR
5735 # Extract the first word of "ar", so it can be a program name with args.
5736set dummy ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005738$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005739if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005740 $as_echo_n "(cached) " >&6
5741else
5742 if test -n "$ac_ct_AR"; then
5743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005750 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005754 break 2
5755 fi
5756done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005757 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005758IFS=$as_save_IFS
5759
5760fi
5761fi
5762ac_ct_AR=$ac_cv_prog_ac_ct_AR
5763if test -n "$ac_ct_AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005765$as_echo "$ac_ct_AR" >&6; }
5766else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005768$as_echo "no" >&6; }
5769fi
5770
5771 if test "x$ac_ct_AR" = x; then
5772 AR="false"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005776{ $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 +01005777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780 AR=$ac_ct_AR
5781 fi
5782else
5783 AR="$ac_cv_prog_AR"
5784fi
5785
5786test -z "$AR" && AR=ar
5787test -z "$AR_FLAGS" && AR_FLAGS=cru
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005803$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005804if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005805 $as_echo_n "(cached) " >&6
5806else
5807 if test -n "$STRIP"; then
5808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005815 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005819 break 2
5820 fi
5821done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005822 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005823IFS=$as_save_IFS
5824
5825fi
5826fi
5827STRIP=$ac_cv_prog_STRIP
5828if test -n "$STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005830$as_echo "$STRIP" >&6; }
5831else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005833$as_echo "no" >&6; }
5834fi
5835
5836
5837fi
5838if test -z "$ac_cv_prog_STRIP"; then
5839 ac_ct_STRIP=$STRIP
5840 # Extract the first word of "strip", so it can be a program name with args.
5841set dummy strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005843$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005844if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005845 $as_echo_n "(cached) " >&6
5846else
5847 if test -n "$ac_ct_STRIP"; then
5848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005855 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005859 break 2
5860 fi
5861done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005862 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005863IFS=$as_save_IFS
5864
5865fi
5866fi
5867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868if test -n "$ac_ct_STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005870$as_echo "$ac_ct_STRIP" >&6; }
5871else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005873$as_echo "no" >&6; }
5874fi
5875
5876 if test "x$ac_ct_STRIP" = x; then
5877 STRIP=":"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005881{ $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 +01005882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883ac_tool_warned=yes ;;
5884esac
5885 STRIP=$ac_ct_STRIP
5886 fi
5887else
5888 STRIP="$ac_cv_prog_STRIP"
5889fi
5890
5891test -z "$STRIP" && STRIP=:
5892
5893
5894
5895
5896
5897
5898if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005902$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005903if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005904 $as_echo_n "(cached) " >&6
5905else
5906 if test -n "$RANLIB"; then
5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005914 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005918 break 2
5919 fi
5920done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005921 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005922IFS=$as_save_IFS
5923
5924fi
5925fi
5926RANLIB=$ac_cv_prog_RANLIB
5927if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005929$as_echo "$RANLIB" >&6; }
5930else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005932$as_echo "no" >&6; }
5933fi
5934
5935
5936fi
5937if test -z "$ac_cv_prog_RANLIB"; then
5938 ac_ct_RANLIB=$RANLIB
5939 # Extract the first word of "ranlib", so it can be a program name with args.
5940set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005942$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005943if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005944 $as_echo_n "(cached) " >&6
5945else
5946 if test -n "$ac_ct_RANLIB"; then
5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005954 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005958 break 2
5959 fi
5960done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005961 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005962IFS=$as_save_IFS
5963
5964fi
5965fi
5966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005969$as_echo "$ac_ct_RANLIB" >&6; }
5970else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005972$as_echo "no" >&6; }
5973fi
5974
5975 if test "x$ac_ct_RANLIB" = x; then
5976 RANLIB=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005980{ $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 +01005981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984 RANLIB=$ac_ct_RANLIB
5985 fi
5986else
5987 RANLIB="$ac_cv_prog_RANLIB"
5988fi
5989
5990test -z "$RANLIB" && RANLIB=:
5991
5992
5993
5994
5995
5996
5997# Determine commands to create old-style static archives.
5998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5999old_postinstall_cmds='chmod 644 $oldlib'
6000old_postuninstall_cmds=
6001
6002if test -n "$RANLIB"; then
6003 case $host_os in
6004 openbsd*)
6005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6006 ;;
6007 *)
6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6009 ;;
6010 esac
6011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6012fi
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
6044
6045
6046
6047# If no C compiler was specified, use CC.
6048LTCC=${LTCC-"$CC"}
6049
6050# If no C compiler flags were specified, use CFLAGS.
6051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052
6053# Allow CC to be a program name with arguments.
6054compiler=$CC
6055
6056
6057# Check for command to grab the raw symbol name followed by C symbol from nm.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006058{ $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 +01006059$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006060if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006061 $as_echo_n "(cached) " >&6
6062else
6063
6064# These are sane defaults that work on at least a few old systems.
6065# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6066
6067# Character class describing NM global symbol codes.
6068symcode='[BCDEGRST]'
6069
6070# Regexp to match symbols that can be accessed directly from C.
6071sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6072
6073# Define system-specific variables.
6074case $host_os in
6075aix*)
6076 symcode='[BCDT]'
6077 ;;
6078cygwin* | mingw* | pw32* | cegcc*)
6079 symcode='[ABCDGISTW]'
6080 ;;
6081hpux*)
6082 if test "$host_cpu" = ia64; then
6083 symcode='[ABCDEGRST]'
6084 fi
6085 ;;
6086irix* | nonstopux*)
6087 symcode='[BCDEGRST]'
6088 ;;
6089osf*)
6090 symcode='[BCDEGQRST]'
6091 ;;
6092solaris*)
6093 symcode='[BDRT]'
6094 ;;
6095sco3.2v5*)
6096 symcode='[DT]'
6097 ;;
6098sysv4.2uw2*)
6099 symcode='[DT]'
6100 ;;
6101sysv5* | sco5v6* | unixware* | OpenUNIX*)
6102 symcode='[ABDT]'
6103 ;;
6104sysv4)
6105 symcode='[DFNSTU]'
6106 ;;
6107esac
6108
6109# If we're using GNU nm, then use its standard symbol codes.
6110case `$NM -V 2>&1` in
6111*GNU* | *'with BFD'*)
6112 symcode='[ABCDGIRSTW]' ;;
6113esac
6114
6115# Transform an extracted symbol line into a proper C declaration.
6116# Some systems (esp. on ia64) link data and code symbols differently,
6117# so use this general approach.
6118lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6119
6120# Transform an extracted symbol line into symbol name and symbol address
6121lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6122lt_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'"
6123
6124# Handle CRLF in mingw tool chain
6125opt_cr=
6126case $build_os in
6127mingw*)
6128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6129 ;;
6130esac
6131
6132# Try without a prefix underscore, then with it.
6133for ac_symprfx in "" "_"; do
6134
6135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6136 symxfrm="\\1 $ac_symprfx\\2 \\2"
6137
6138 # Write the raw and C identifiers.
6139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6140 # Fake it for dumpbin and say T for any non-static function
6141 # and D for any global variable.
6142 # Also find C++ and __fastcall symbols from MSVC++,
6143 # which start with @ or ?.
6144 lt_cv_sys_global_symbol_pipe="$AWK '"\
6145" {last_section=section; section=\$ 3};"\
6146" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6147" \$ 0!~/External *\|/{next};"\
6148" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6149" {if(hide[section]) next};"\
6150" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6151" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6152" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6153" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6154" ' prfx=^$ac_symprfx"
6155 else
6156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6157 fi
6158
6159 # Check to see that the pipe works correctly.
6160 pipe_works=no
6161
6162 rm -f conftest*
6163 cat > conftest.$ac_ext <<_LT_EOF
6164#ifdef __cplusplus
6165extern "C" {
6166#endif
6167char nm_test_var;
6168void nm_test_func(void);
6169void nm_test_func(void){}
6170#ifdef __cplusplus
6171}
6172#endif
6173int main(){nm_test_var='a';nm_test_func();return(0);}
6174_LT_EOF
6175
Scott James Remnantfde82c92009-09-22 10:04:15 -07006176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006177 (eval $ac_compile) 2>&5
6178 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006181 # Now try to grab the symbols.
6182 nlist=conftest.nm
Scott James Remnantfde82c92009-09-22 10:04:15 -07006183 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 +01006184 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6185 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s "$nlist"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006188 # Try sorting and uniquifying the output.
6189 if sort "$nlist" | uniq > "$nlist"T; then
6190 mv -f "$nlist"T "$nlist"
6191 else
6192 rm -f "$nlist"T
6193 fi
6194
6195 # Make sure that we snagged all the symbols we need.
6196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6198 cat <<_LT_EOF > conftest.$ac_ext
6199#ifdef __cplusplus
6200extern "C" {
6201#endif
6202
6203_LT_EOF
6204 # Now generate the symbol file.
6205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6206
6207 cat <<_LT_EOF >> conftest.$ac_ext
6208
6209/* The mapping between symbol names and symbols. */
6210const struct {
6211 const char *name;
6212 void *address;
6213}
6214lt__PROGRAM__LTX_preloaded_symbols[] =
6215{
6216 { "@PROGRAM@", (void *) 0 },
6217_LT_EOF
6218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6219 cat <<\_LT_EOF >> conftest.$ac_ext
6220 {0, (void *) 0}
6221};
6222
6223/* This works around a problem in FreeBSD linker */
6224#ifdef FREEBSD_WORKAROUND
6225static const void *lt_preloaded_setup() {
6226 return lt__PROGRAM__LTX_preloaded_symbols;
6227}
6228#endif
6229
6230#ifdef __cplusplus
6231}
6232#endif
6233_LT_EOF
6234 # Now try linking the two files.
6235 mv conftest.$ac_objext conftstm.$ac_objext
6236 lt_save_LIBS="$LIBS"
6237 lt_save_CFLAGS="$CFLAGS"
6238 LIBS="conftstm.$ac_objext"
6239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006241 (eval $ac_link) 2>&5
6242 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006245 pipe_works=yes
6246 fi
6247 LIBS="$lt_save_LIBS"
6248 CFLAGS="$lt_save_CFLAGS"
6249 else
6250 echo "cannot find nm_test_func in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot find nm_test_var in $nlist" >&5
6254 fi
6255 else
6256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6257 fi
6258 else
6259 echo "$progname: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 fi
6262 rm -rf conftest* conftst*
6263
6264 # Do not use the global_symbol_pipe unless it works.
6265 if test "$pipe_works" = yes; then
6266 break
6267 else
6268 lt_cv_sys_global_symbol_pipe=
6269 fi
6270done
6271
6272fi
6273
6274if test -z "$lt_cv_sys_global_symbol_pipe"; then
6275 lt_cv_sys_global_symbol_to_cdecl=
6276fi
6277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006279$as_echo "failed" >&6; }
6280else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006282$as_echo "ok" >&6; }
6283fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306# Check whether --enable-libtool-lock was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006307if test "${enable_libtool_lock+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006308 enableval=$enable_libtool_lock;
6309fi
6310
6311test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6312
6313# Some flags need to be propagated to the compiler or linker for good
6314# libtool support.
6315case $host in
6316ia64-*-hpux*)
6317 # Find out which ABI we are using.
6318 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006320 (eval $ac_compile) 2>&5
6321 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006324 case `/usr/bin/file conftest.$ac_objext` in
6325 *ELF-32*)
6326 HPUX_IA64_MODE="32"
6327 ;;
6328 *ELF-64*)
6329 HPUX_IA64_MODE="64"
6330 ;;
6331 esac
6332 fi
6333 rm -rf conftest*
6334 ;;
6335*-*-irix6*)
6336 # Find out which ABI we are using.
Scott James Remnant2c84e532009-10-14 05:31:38 +01006337 echo '#line 6337 "configure"' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006339 (eval $ac_compile) 2>&5
6340 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006343 if test "$lt_cv_prog_gnu_ld" = yes; then
6344 case `/usr/bin/file conftest.$ac_objext` in
6345 *32-bit*)
6346 LD="${LD-ld} -melf32bsmip"
6347 ;;
6348 *N32*)
6349 LD="${LD-ld} -melf32bmipn32"
6350 ;;
6351 *64-bit*)
6352 LD="${LD-ld} -melf64bmip"
6353 ;;
6354 esac
6355 else
6356 case `/usr/bin/file conftest.$ac_objext` in
6357 *32-bit*)
6358 LD="${LD-ld} -32"
6359 ;;
6360 *N32*)
6361 LD="${LD-ld} -n32"
6362 ;;
6363 *64-bit*)
6364 LD="${LD-ld} -64"
6365 ;;
6366 esac
6367 fi
6368 fi
6369 rm -rf conftest*
6370 ;;
6371
6372x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6373s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6374 # Find out which ABI we are using.
6375 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006377 (eval $ac_compile) 2>&5
6378 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006381 case `/usr/bin/file conftest.o` in
6382 *32-bit*)
6383 case $host in
6384 x86_64-*kfreebsd*-gnu)
6385 LD="${LD-ld} -m elf_i386_fbsd"
6386 ;;
6387 x86_64-*linux*)
6388 LD="${LD-ld} -m elf_i386"
6389 ;;
6390 ppc64-*linux*|powerpc64-*linux*)
6391 LD="${LD-ld} -m elf32ppclinux"
6392 ;;
6393 s390x-*linux*)
6394 LD="${LD-ld} -m elf_s390"
6395 ;;
6396 sparc64-*linux*)
6397 LD="${LD-ld} -m elf32_sparc"
6398 ;;
6399 esac
6400 ;;
6401 *64-bit*)
6402 case $host in
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_x86_64_fbsd"
6405 ;;
6406 x86_64-*linux*)
6407 LD="${LD-ld} -m elf_x86_64"
6408 ;;
6409 ppc*-*linux*|powerpc*-*linux*)
6410 LD="${LD-ld} -m elf64ppc"
6411 ;;
6412 s390*-*linux*|s390*-*tpf*)
6413 LD="${LD-ld} -m elf64_s390"
6414 ;;
6415 sparc*-*linux*)
6416 LD="${LD-ld} -m elf64_sparc"
6417 ;;
6418 esac
6419 ;;
6420 esac
6421 fi
6422 rm -rf conftest*
6423 ;;
6424
6425*-*-sco3.2v5*)
6426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427 SAVE_CFLAGS="$CFLAGS"
6428 CFLAGS="$CFLAGS -belf"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006430$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006431if test "${lt_cv_cc_needs_belf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006432 $as_echo_n "(cached) " >&6
6433else
6434 ac_ext=c
6435ac_cpp='$CPP $CPPFLAGS'
6436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
Scott James Remnantfde82c92009-09-22 10:04:15 -07006440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006441/* end confdefs.h. */
6442
6443int
6444main ()
6445{
6446
6447 ;
6448 return 0;
6449}
6450_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07006451if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006452 lt_cv_cc_needs_belf=yes
6453else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006454 lt_cv_cc_needs_belf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006455fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006456rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006458 ac_ext=c
6459ac_cpp='$CPP $CPPFLAGS'
6460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006466$as_echo "$lt_cv_cc_needs_belf" >&6; }
6467 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6468 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6469 CFLAGS="$SAVE_CFLAGS"
6470 fi
6471 ;;
6472sparc*-*solaris*)
6473 # Find out which ABI we are using.
6474 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006476 (eval $ac_compile) 2>&5
6477 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006480 case `/usr/bin/file conftest.o` in
6481 *64-bit*)
6482 case $lt_cv_prog_gnu_ld in
6483 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6484 *)
6485 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486 LD="${LD-ld} -64"
6487 fi
6488 ;;
6489 esac
6490 ;;
6491 esac
6492 fi
6493 rm -rf conftest*
6494 ;;
6495esac
6496
6497need_locks="$enable_libtool_lock"
6498
6499
6500 case $host_os in
6501 rhapsody* | darwin*)
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6504set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006506$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006507if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006508 $as_echo_n "(cached) " >&6
6509else
6510 if test -n "$DSYMUTIL"; then
6511 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006518 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006522 break 2
6523 fi
6524done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006525 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006526IFS=$as_save_IFS
6527
6528fi
6529fi
6530DSYMUTIL=$ac_cv_prog_DSYMUTIL
6531if test -n "$DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006533$as_echo "$DSYMUTIL" >&6; }
6534else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006536$as_echo "no" >&6; }
6537fi
6538
6539
6540fi
6541if test -z "$ac_cv_prog_DSYMUTIL"; then
6542 ac_ct_DSYMUTIL=$DSYMUTIL
6543 # Extract the first word of "dsymutil", so it can be a program name with args.
6544set dummy dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006546$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006547if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$ac_ct_DSYMUTIL"; then
6551 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006558 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006562 break 2
6563 fi
6564done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006565 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006566IFS=$as_save_IFS
6567
6568fi
6569fi
6570ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6571if test -n "$ac_ct_DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006573$as_echo "$ac_ct_DSYMUTIL" >&6; }
6574else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006576$as_echo "no" >&6; }
6577fi
6578
6579 if test "x$ac_ct_DSYMUTIL" = x; then
6580 DSYMUTIL=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006584{ $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 +01006585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586ac_tool_warned=yes ;;
6587esac
6588 DSYMUTIL=$ac_ct_DSYMUTIL
6589 fi
6590else
6591 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6592fi
6593
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6596set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006598$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006599if test "${ac_cv_prog_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006600 $as_echo_n "(cached) " >&6
6601else
6602 if test -n "$NMEDIT"; then
6603 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6604else
6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606for as_dir in $PATH
6607do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006610 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006614 break 2
6615 fi
6616done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006617 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006618IFS=$as_save_IFS
6619
6620fi
6621fi
6622NMEDIT=$ac_cv_prog_NMEDIT
6623if test -n "$NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006625$as_echo "$NMEDIT" >&6; }
6626else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006628$as_echo "no" >&6; }
6629fi
6630
6631
6632fi
6633if test -z "$ac_cv_prog_NMEDIT"; then
6634 ac_ct_NMEDIT=$NMEDIT
6635 # Extract the first word of "nmedit", so it can be a program name with args.
6636set dummy nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006638$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006639if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006640 $as_echo_n "(cached) " >&6
6641else
6642 if test -n "$ac_ct_NMEDIT"; then
6643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6644else
6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646for as_dir in $PATH
6647do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006650 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006654 break 2
6655 fi
6656done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006657 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006658IFS=$as_save_IFS
6659
6660fi
6661fi
6662ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6663if test -n "$ac_ct_NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006665$as_echo "$ac_ct_NMEDIT" >&6; }
6666else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006668$as_echo "no" >&6; }
6669fi
6670
6671 if test "x$ac_ct_NMEDIT" = x; then
6672 NMEDIT=":"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006676{ $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 +01006677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678ac_tool_warned=yes ;;
6679esac
6680 NMEDIT=$ac_ct_NMEDIT
6681 fi
6682else
6683 NMEDIT="$ac_cv_prog_NMEDIT"
6684fi
6685
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6688set dummy ${ac_tool_prefix}lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006690$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006691if test "${ac_cv_prog_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006692 $as_echo_n "(cached) " >&6
6693else
6694 if test -n "$LIPO"; then
6695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006702 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006706 break 2
6707 fi
6708done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006709 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006710IFS=$as_save_IFS
6711
6712fi
6713fi
6714LIPO=$ac_cv_prog_LIPO
6715if test -n "$LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006717$as_echo "$LIPO" >&6; }
6718else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006720$as_echo "no" >&6; }
6721fi
6722
6723
6724fi
6725if test -z "$ac_cv_prog_LIPO"; then
6726 ac_ct_LIPO=$LIPO
6727 # Extract the first word of "lipo", so it can be a program name with args.
6728set dummy lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006730$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006731if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006732 $as_echo_n "(cached) " >&6
6733else
6734 if test -n "$ac_ct_LIPO"; then
6735 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006742 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_ac_ct_LIPO="lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006746 break 2
6747 fi
6748done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006749 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006750IFS=$as_save_IFS
6751
6752fi
6753fi
6754ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6755if test -n "$ac_ct_LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006757$as_echo "$ac_ct_LIPO" >&6; }
6758else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006760$as_echo "no" >&6; }
6761fi
6762
6763 if test "x$ac_ct_LIPO" = x; then
6764 LIPO=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006768{ $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 +01006769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770ac_tool_warned=yes ;;
6771esac
6772 LIPO=$ac_ct_LIPO
6773 fi
6774else
6775 LIPO="$ac_cv_prog_LIPO"
6776fi
6777
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6780set dummy ${ac_tool_prefix}otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006782$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006783if test "${ac_cv_prog_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006784 $as_echo_n "(cached) " >&6
6785else
6786 if test -n "$OTOOL"; then
6787 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006794 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006798 break 2
6799 fi
6800done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006801 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006802IFS=$as_save_IFS
6803
6804fi
6805fi
6806OTOOL=$ac_cv_prog_OTOOL
6807if test -n "$OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006809$as_echo "$OTOOL" >&6; }
6810else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006812$as_echo "no" >&6; }
6813fi
6814
6815
6816fi
6817if test -z "$ac_cv_prog_OTOOL"; then
6818 ac_ct_OTOOL=$OTOOL
6819 # Extract the first word of "otool", so it can be a program name with args.
6820set dummy otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006822$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006823if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006824 $as_echo_n "(cached) " >&6
6825else
6826 if test -n "$ac_ct_OTOOL"; then
6827 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006834 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_OTOOL="otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006838 break 2
6839 fi
6840done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006841 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006842IFS=$as_save_IFS
6843
6844fi
6845fi
6846ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6847if test -n "$ac_ct_OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006849$as_echo "$ac_ct_OTOOL" >&6; }
6850else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006852$as_echo "no" >&6; }
6853fi
6854
6855 if test "x$ac_ct_OTOOL" = x; then
6856 OTOOL=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006860{ $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 +01006861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862ac_tool_warned=yes ;;
6863esac
6864 OTOOL=$ac_ct_OTOOL
6865 fi
6866else
6867 OTOOL="$ac_cv_prog_OTOOL"
6868fi
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6872set dummy ${ac_tool_prefix}otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006874$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006875if test "${ac_cv_prog_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006876 $as_echo_n "(cached) " >&6
6877else
6878 if test -n "$OTOOL64"; then
6879 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6880else
6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882for as_dir in $PATH
6883do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006886 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006890 break 2
6891 fi
6892done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006893 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006894IFS=$as_save_IFS
6895
6896fi
6897fi
6898OTOOL64=$ac_cv_prog_OTOOL64
6899if test -n "$OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006901$as_echo "$OTOOL64" >&6; }
6902else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006904$as_echo "no" >&6; }
6905fi
6906
6907
6908fi
6909if test -z "$ac_cv_prog_OTOOL64"; then
6910 ac_ct_OTOOL64=$OTOOL64
6911 # Extract the first word of "otool64", so it can be a program name with args.
6912set dummy otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006914$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006915if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006916 $as_echo_n "(cached) " >&6
6917else
6918 if test -n "$ac_ct_OTOOL64"; then
6919 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6920else
6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006926 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_OTOOL64="otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006930 break 2
6931 fi
6932done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006933 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006934IFS=$as_save_IFS
6935
6936fi
6937fi
6938ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6939if test -n "$ac_ct_OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006941$as_echo "$ac_ct_OTOOL64" >&6; }
6942else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006944$as_echo "no" >&6; }
6945fi
6946
6947 if test "x$ac_ct_OTOOL64" = x; then
6948 OTOOL64=":"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006952{ $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 +01006953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954ac_tool_warned=yes ;;
6955esac
6956 OTOOL64=$ac_ct_OTOOL64
6957 fi
6958else
6959 OTOOL64="$ac_cv_prog_OTOOL64"
6960fi
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
Scott James Remnantfde82c92009-09-22 10:04:15 -07006988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006989$as_echo_n "checking for -single_module linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006990if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006991 $as_echo_n "(cached) " >&6
6992else
6993 lt_cv_apple_cc_single_mod=no
6994 if test -z "${LT_MULTI_MODULE}"; then
6995 # By default we will add the -single_module flag. You can override
6996 # by either setting the environment variable LT_MULTI_MODULE
6997 # non-empty at configure time, or by adding -multi_module to the
6998 # link flags.
6999 rm -rf libconftest.dylib*
7000 echo "int foo(void){return 1;}" > conftest.c
7001 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7002-dynamiclib -Wl,-single_module conftest.c" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7004 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7005 _lt_result=$?
7006 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7007 lt_cv_apple_cc_single_mod=yes
7008 else
7009 cat conftest.err >&5
7010 fi
7011 rm -rf libconftest.dylib*
7012 rm -f conftest.*
7013 fi
7014fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007016$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007018$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007019if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007020 $as_echo_n "(cached) " >&6
7021else
7022 lt_cv_ld_exported_symbols_list=no
7023 save_LDFLAGS=$LDFLAGS
7024 echo "_main" > conftest.sym
7025 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007027/* end confdefs.h. */
7028
7029int
7030main ()
7031{
7032
7033 ;
7034 return 0;
7035}
7036_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007037if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007038 lt_cv_ld_exported_symbols_list=yes
7039else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007040 lt_cv_ld_exported_symbols_list=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01007041fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007042rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007044 LDFLAGS="$save_LDFLAGS"
7045
7046fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007048$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7049 case $host_os in
7050 rhapsody* | darwin1.[012])
7051 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7052 darwin1.*)
7053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7054 darwin*) # darwin 5.x on
7055 # if running on 10.5 or later, the deployment target defaults
7056 # to the OS version, if on x86, and 10.4, the deployment
7057 # target defaults to 10.4. Don't you love it?
7058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7059 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7061 10.[012]*)
7062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063 10.*)
7064 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7065 esac
7066 ;;
7067 esac
7068 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7069 _lt_dar_single_mod='$single_module'
7070 fi
7071 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7072 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7073 else
7074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7075 fi
7076 if test "$DSYMUTIL" != ":"; then
7077 _lt_dsymutil='~$DSYMUTIL $lib || :'
7078 else
7079 _lt_dsymutil=
7080 fi
7081 ;;
7082 esac
7083
Scott James Remnant65f683d2009-07-14 13:05:17 +01007084for ac_header in dlfcn.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07007085do :
7086 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7087"
7088if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007089 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007090#define HAVE_DLFCN_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +01007091_ACEOF
7092
7093fi
7094
7095done
7096
7097
7098
7099# Set options
7100
7101
7102
7103 enable_dlopen=no
7104
7105
7106 enable_win32_dll=no
7107
7108
7109 # Check whether --enable-shared was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007110if test "${enable_shared+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007111 enableval=$enable_shared; p=${PACKAGE-default}
7112 case $enableval in
7113 yes) enable_shared=yes ;;
7114 no) enable_shared=no ;;
7115 *)
7116 enable_shared=no
7117 # Look at the argument we got. We use all the common list separators.
7118 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7119 for pkg in $enableval; do
7120 IFS="$lt_save_ifs"
7121 if test "X$pkg" = "X$p"; then
7122 enable_shared=yes
7123 fi
7124 done
7125 IFS="$lt_save_ifs"
7126 ;;
7127 esac
7128else
7129 enable_shared=yes
7130fi
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 # Check whether --enable-static was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007141if test "${enable_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007142 enableval=$enable_static; p=${PACKAGE-default}
7143 case $enableval in
7144 yes) enable_static=yes ;;
7145 no) enable_static=no ;;
7146 *)
7147 enable_static=no
7148 # Look at the argument we got. We use all the common list separators.
7149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7150 for pkg in $enableval; do
7151 IFS="$lt_save_ifs"
7152 if test "X$pkg" = "X$p"; then
7153 enable_static=yes
7154 fi
7155 done
7156 IFS="$lt_save_ifs"
7157 ;;
7158 esac
7159else
7160 enable_static=yes
7161fi
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172# Check whether --with-pic was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007173if test "${with_pic+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007174 withval=$with_pic; pic_mode="$withval"
7175else
7176 pic_mode=default
7177fi
7178
7179
7180test -z "$pic_mode" && pic_mode=default
7181
7182
7183
7184
7185
7186
7187
7188 # Check whether --enable-fast-install was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007189if test "${enable_fast_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007190 enableval=$enable_fast_install; p=${PACKAGE-default}
7191 case $enableval in
7192 yes) enable_fast_install=yes ;;
7193 no) enable_fast_install=no ;;
7194 *)
7195 enable_fast_install=no
7196 # Look at the argument we got. We use all the common list separators.
7197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7198 for pkg in $enableval; do
7199 IFS="$lt_save_ifs"
7200 if test "X$pkg" = "X$p"; then
7201 enable_fast_install=yes
7202 fi
7203 done
7204 IFS="$lt_save_ifs"
7205 ;;
7206 esac
7207else
7208 enable_fast_install=yes
7209fi
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221# This can be used to rebuild libtool when needed
7222LIBTOOL_DEPS="$ltmain"
7223
7224# Always use our own libtool.
7225LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251test -z "$LN_S" && LN_S="ln -s"
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266if test -n "${ZSH_VERSION+set}" ; then
7267 setopt NO_GLOB_SUBST
7268fi
7269
Scott James Remnantfde82c92009-09-22 10:04:15 -07007270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007271$as_echo_n "checking for objdir... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007272if test "${lt_cv_objdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007273 $as_echo_n "(cached) " >&6
7274else
7275 rm -f .libs 2>/dev/null
7276mkdir .libs 2>/dev/null
7277if test -d .libs; then
7278 lt_cv_objdir=.libs
7279else
7280 # MS-DOS does not allow filenames that begin with a dot.
7281 lt_cv_objdir=_libs
7282fi
7283rmdir .libs 2>/dev/null
7284fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007286$as_echo "$lt_cv_objdir" >&6; }
7287objdir=$lt_cv_objdir
7288
7289
7290
7291
7292
7293cat >>confdefs.h <<_ACEOF
7294#define LT_OBJDIR "$lt_cv_objdir/"
7295_ACEOF
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313case $host_os in
7314aix3*)
7315 # AIX sometimes has problems with the GCC collect2 program. For some
7316 # reason, if we set the COLLECT_NAMES environment variable, the problems
7317 # vanish in a puff of smoke.
7318 if test "X${COLLECT_NAMES+set}" != Xset; then
7319 COLLECT_NAMES=
7320 export COLLECT_NAMES
7321 fi
7322 ;;
7323esac
7324
7325# Sed substitution that helps us do robust quoting. It backslashifies
7326# metacharacters that are still active within double-quoted strings.
7327sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7328
7329# Same as above, but do not quote variable references.
7330double_quote_subst='s/\(["`\\]\)/\\\1/g'
7331
7332# Sed substitution to delay expansion of an escaped shell variable in a
7333# double_quote_subst'ed string.
7334delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7335
7336# Sed substitution to delay expansion of an escaped single quote.
7337delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7338
7339# Sed substitution to avoid accidental globbing in evaled expressions
7340no_glob_subst='s/\*/\\\*/g'
7341
7342# Global variables:
7343ofile=libtool
7344can_build_shared=yes
7345
7346# All known linkers require a `.a' archive for static linking (except MSVC,
7347# which needs '.lib').
7348libext=a
7349
7350with_gnu_ld="$lt_cv_prog_gnu_ld"
7351
7352old_CC="$CC"
7353old_CFLAGS="$CFLAGS"
7354
7355# Set sane defaults for various variables
7356test -z "$CC" && CC=cc
7357test -z "$LTCC" && LTCC=$CC
7358test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7359test -z "$LD" && LD=ld
7360test -z "$ac_objext" && ac_objext=o
7361
7362for cc_temp in $compiler""; do
7363 case $cc_temp in
7364 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7365 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7366 \-*) ;;
7367 *) break;;
7368 esac
7369done
7370cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7371
7372
7373# Only perform the check for file, if the check method requires it
7374test -z "$MAGIC_CMD" && MAGIC_CMD=file
7375case $deplibs_check_method in
7376file_magic*)
7377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007379$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007380if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007381 $as_echo_n "(cached) " >&6
7382else
7383 case $MAGIC_CMD in
7384[\\/*] | ?:[\\/]*)
7385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7386 ;;
7387*)
7388 lt_save_MAGIC_CMD="$MAGIC_CMD"
7389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7391 for ac_dir in $ac_dummy; do
7392 IFS="$lt_save_ifs"
7393 test -z "$ac_dir" && ac_dir=.
7394 if test -f $ac_dir/${ac_tool_prefix}file; then
7395 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7396 if test -n "$file_magic_test_file"; then
7397 case $deplibs_check_method in
7398 "file_magic "*)
7399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7402 $EGREP "$file_magic_regex" > /dev/null; then
7403 :
7404 else
7405 cat <<_LT_EOF 1>&2
7406
7407*** Warning: the command libtool uses to detect shared libraries,
7408*** $file_magic_cmd, produces output that libtool cannot recognize.
7409*** The result is that libtool may fail to recognize shared libraries
7410*** as such. This will affect the creation of libtool libraries that
7411*** depend on shared libraries, but programs linked with such libtool
7412*** libraries will work regardless of this problem. Nevertheless, you
7413*** may want to report the problem to your system manager and/or to
7414*** bug-libtool@gnu.org
7415
7416_LT_EOF
7417 fi ;;
7418 esac
7419 fi
7420 break
7421 fi
7422 done
7423 IFS="$lt_save_ifs"
7424 MAGIC_CMD="$lt_save_MAGIC_CMD"
7425 ;;
7426esac
7427fi
7428
7429MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7430if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007432$as_echo "$MAGIC_CMD" >&6; }
7433else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007435$as_echo "no" >&6; }
7436fi
7437
7438
7439
7440
7441
7442if test -z "$lt_cv_path_MAGIC_CMD"; then
7443 if test -n "$ac_tool_prefix"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007445$as_echo_n "checking for file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007446if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007447 $as_echo_n "(cached) " >&6
7448else
7449 case $MAGIC_CMD in
7450[\\/*] | ?:[\\/]*)
7451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452 ;;
7453*)
7454 lt_save_MAGIC_CMD="$MAGIC_CMD"
7455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457 for ac_dir in $ac_dummy; do
7458 IFS="$lt_save_ifs"
7459 test -z "$ac_dir" && ac_dir=.
7460 if test -f $ac_dir/file; then
7461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7462 if test -n "$file_magic_test_file"; then
7463 case $deplibs_check_method in
7464 "file_magic "*)
7465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468 $EGREP "$file_magic_regex" > /dev/null; then
7469 :
7470 else
7471 cat <<_LT_EOF 1>&2
7472
7473*** Warning: the command libtool uses to detect shared libraries,
7474*** $file_magic_cmd, produces output that libtool cannot recognize.
7475*** The result is that libtool may fail to recognize shared libraries
7476*** as such. This will affect the creation of libtool libraries that
7477*** depend on shared libraries, but programs linked with such libtool
7478*** libraries will work regardless of this problem. Nevertheless, you
7479*** may want to report the problem to your system manager and/or to
7480*** bug-libtool@gnu.org
7481
7482_LT_EOF
7483 fi ;;
7484 esac
7485 fi
7486 break
7487 fi
7488 done
7489 IFS="$lt_save_ifs"
7490 MAGIC_CMD="$lt_save_MAGIC_CMD"
7491 ;;
7492esac
7493fi
7494
7495MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007498$as_echo "$MAGIC_CMD" >&6; }
7499else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007501$as_echo "no" >&6; }
7502fi
7503
7504
7505 else
7506 MAGIC_CMD=:
7507 fi
7508fi
7509
7510 fi
7511 ;;
7512esac
7513
7514# Use C for the default configuration in the libtool script
7515
7516lt_save_CC="$CC"
7517ac_ext=c
7518ac_cpp='$CPP $CPPFLAGS'
7519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521ac_compiler_gnu=$ac_cv_c_compiler_gnu
7522
7523
7524# Source file extension for C test sources.
7525ac_ext=c
7526
7527# Object file extension for compiled C test sources.
7528objext=o
7529objext=$objext
7530
7531# Code to be used in simple compile tests
7532lt_simple_compile_test_code="int some_variable = 0;"
7533
7534# Code to be used in simple link tests
7535lt_simple_link_test_code='int main(){return(0);}'
7536
7537
7538
7539
7540
7541
7542
7543# If no C compiler was specified, use CC.
7544LTCC=${LTCC-"$CC"}
7545
7546# If no C compiler flags were specified, use CFLAGS.
7547LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7548
7549# Allow CC to be a program name with arguments.
7550compiler=$CC
7551
7552# Save the default compiler, since it gets overwritten when the other
7553# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7554compiler_DEFAULT=$CC
7555
7556# save warnings/boilerplate of simple test code
7557ac_outfile=conftest.$ac_objext
7558echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7559eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7560_lt_compiler_boilerplate=`cat conftest.err`
7561$RM conftest*
7562
7563ac_outfile=conftest.$ac_objext
7564echo "$lt_simple_link_test_code" >conftest.$ac_ext
7565eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7566_lt_linker_boilerplate=`cat conftest.err`
7567$RM -r conftest*
7568
7569
7570## CAVEAT EMPTOR:
7571## There is no encapsulation within the following macros, do not change
7572## the running order or otherwise move them around unless you know exactly
7573## what you are doing...
7574if test -n "$compiler"; then
7575
7576lt_prog_compiler_no_builtin_flag=
7577
7578if test "$GCC" = yes; then
7579 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7580
Scott James Remnantfde82c92009-09-22 10:04:15 -07007581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007582$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007583if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007584 $as_echo_n "(cached) " >&6
7585else
7586 lt_cv_prog_compiler_rtti_exceptions=no
7587 ac_outfile=conftest.$ac_objext
7588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7589 lt_compiler_flag="-fno-rtti -fno-exceptions"
7590 # Insert the option either (1) after the last *FLAGS variable, or
7591 # (2) before a word containing "conftest.", or (3) at the end.
7592 # Note that $ac_compile itself does not contain backslashes and begins
7593 # with a dollar sign (not a hyphen), so the echo should work correctly.
7594 # The option is referenced via a variable to avoid confusing sed.
7595 lt_compile=`echo "$ac_compile" | $SED \
7596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7598 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2c84e532009-10-14 05:31:38 +01007599 (eval echo "\"\$as_me:7599: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007600 (eval "$lt_compile" 2>conftest.err)
7601 ac_status=$?
7602 cat conftest.err >&5
Scott James Remnant2c84e532009-10-14 05:31:38 +01007603 echo "$as_me:7603: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007604 if (exit $ac_status) && test -s "$ac_outfile"; then
7605 # The compiler can only warn and ignore the option if not recognized
7606 # So say no if there are warnings other than the usual output.
7607 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7610 lt_cv_prog_compiler_rtti_exceptions=yes
7611 fi
7612 fi
7613 $RM conftest*
7614
7615fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007617$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7618
7619if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7620 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7621else
7622 :
7623fi
7624
7625fi
7626
7627
7628
7629
7630
7631
7632 lt_prog_compiler_wl=
7633lt_prog_compiler_pic=
7634lt_prog_compiler_static=
7635
Scott James Remnantfde82c92009-09-22 10:04:15 -07007636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007637$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7638
7639 if test "$GCC" = yes; then
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_static='-static'
7642
7643 case $host_os in
7644 aix*)
7645 # All AIX code is PIC.
7646 if test "$host_cpu" = ia64; then
7647 # AIX 5 now supports IA64 processor
7648 lt_prog_compiler_static='-Bstatic'
7649 fi
7650 ;;
7651
7652 amigaos*)
7653 case $host_cpu in
7654 powerpc)
7655 # see comment about AmigaOS4 .so support
7656 lt_prog_compiler_pic='-fPIC'
7657 ;;
7658 m68k)
7659 # FIXME: we need at least 68020 code to build shared libraries, but
7660 # adding the `-m68020' flag to GCC prevents building anything better,
7661 # like `-m68040'.
7662 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7663 ;;
7664 esac
7665 ;;
7666
7667 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7668 # PIC is the default for these OSes.
7669 ;;
7670
7671 mingw* | cygwin* | pw32* | os2* | cegcc*)
7672 # This hack is so that the source file can tell whether it is being
7673 # built for inclusion in a dll (and should export symbols for example).
7674 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7675 # (--disable-auto-import) libraries
7676 lt_prog_compiler_pic='-DDLL_EXPORT'
7677 ;;
7678
7679 darwin* | rhapsody*)
7680 # PIC is the default on this platform
7681 # Common symbols not allowed in MH_DYLIB files
7682 lt_prog_compiler_pic='-fno-common'
7683 ;;
7684
7685 hpux*)
7686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7688 # sets the default TLS model and affects inlining.
7689 case $host_cpu in
7690 hppa*64*)
7691 # +Z the default
7692 ;;
7693 *)
7694 lt_prog_compiler_pic='-fPIC'
7695 ;;
7696 esac
7697 ;;
7698
7699 interix[3-9]*)
7700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7701 # Instead, we relocate shared libraries at runtime.
7702 ;;
7703
7704 msdosdjgpp*)
7705 # Just because we use GCC doesn't mean we suddenly get shared libraries
7706 # on systems that don't support them.
7707 lt_prog_compiler_can_build_shared=no
7708 enable_shared=no
7709 ;;
7710
7711 *nto* | *qnx*)
7712 # QNX uses GNU C++, but need to define -shared option too, otherwise
7713 # it will coredump.
7714 lt_prog_compiler_pic='-fPIC -shared'
7715 ;;
7716
7717 sysv4*MP*)
7718 if test -d /usr/nec; then
7719 lt_prog_compiler_pic=-Kconform_pic
7720 fi
7721 ;;
7722
7723 *)
7724 lt_prog_compiler_pic='-fPIC'
7725 ;;
7726 esac
7727 else
7728 # PORTME Check for flag to pass linker flags through the system compiler.
7729 case $host_os in
7730 aix*)
7731 lt_prog_compiler_wl='-Wl,'
7732 if test "$host_cpu" = ia64; then
7733 # AIX 5 now supports IA64 processor
7734 lt_prog_compiler_static='-Bstatic'
7735 else
7736 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7737 fi
7738 ;;
7739
7740 mingw* | cygwin* | pw32* | os2* | cegcc*)
7741 # This hack is so that the source file can tell whether it is being
7742 # built for inclusion in a dll (and should export symbols for example).
7743 lt_prog_compiler_pic='-DDLL_EXPORT'
7744 ;;
7745
7746 hpux9* | hpux10* | hpux11*)
7747 lt_prog_compiler_wl='-Wl,'
7748 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7749 # not for PA HP-UX.
7750 case $host_cpu in
7751 hppa*64*|ia64*)
7752 # +Z the default
7753 ;;
7754 *)
7755 lt_prog_compiler_pic='+Z'
7756 ;;
7757 esac
7758 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7759 lt_prog_compiler_static='${wl}-a ${wl}archive'
7760 ;;
7761
7762 irix5* | irix6* | nonstopux*)
7763 lt_prog_compiler_wl='-Wl,'
7764 # PIC (with -KPIC) is the default.
7765 lt_prog_compiler_static='-non_shared'
7766 ;;
7767
7768 linux* | k*bsd*-gnu)
7769 case $cc_basename in
7770 # old Intel for x86_64 which still supported -KPIC.
7771 ecc*)
7772 lt_prog_compiler_wl='-Wl,'
7773 lt_prog_compiler_pic='-KPIC'
7774 lt_prog_compiler_static='-static'
7775 ;;
7776 # icc used to be incompatible with GCC.
7777 # ICC 10 doesn't accept -KPIC any more.
7778 icc* | ifort*)
7779 lt_prog_compiler_wl='-Wl,'
7780 lt_prog_compiler_pic='-fPIC'
7781 lt_prog_compiler_static='-static'
7782 ;;
7783 # Lahey Fortran 8.1.
7784 lf95*)
7785 lt_prog_compiler_wl='-Wl,'
7786 lt_prog_compiler_pic='--shared'
7787 lt_prog_compiler_static='--static'
7788 ;;
7789 pgcc* | pgf77* | pgf90* | pgf95*)
7790 # Portland Group compilers (*not* the Pentium gcc compiler,
7791 # which looks to be a dead project)
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-fpic'
7794 lt_prog_compiler_static='-Bstatic'
7795 ;;
7796 ccc*)
7797 lt_prog_compiler_wl='-Wl,'
7798 # All Alpha code is PIC.
7799 lt_prog_compiler_static='-non_shared'
7800 ;;
7801 xl*)
7802 # IBM XL C 8.0/Fortran 10.1 on PPC
7803 lt_prog_compiler_wl='-Wl,'
7804 lt_prog_compiler_pic='-qpic'
7805 lt_prog_compiler_static='-qstaticlink'
7806 ;;
7807 *)
7808 case `$CC -V 2>&1 | sed 5q` in
7809 *Sun\ C*)
7810 # Sun C 5.9
7811 lt_prog_compiler_pic='-KPIC'
7812 lt_prog_compiler_static='-Bstatic'
7813 lt_prog_compiler_wl='-Wl,'
7814 ;;
7815 *Sun\ F*)
7816 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-Bstatic'
7819 lt_prog_compiler_wl=''
7820 ;;
7821 esac
7822 ;;
7823 esac
7824 ;;
7825
7826 newsos6)
7827 lt_prog_compiler_pic='-KPIC'
7828 lt_prog_compiler_static='-Bstatic'
7829 ;;
7830
7831 *nto* | *qnx*)
7832 # QNX uses GNU C++, but need to define -shared option too, otherwise
7833 # it will coredump.
7834 lt_prog_compiler_pic='-fPIC -shared'
7835 ;;
7836
7837 osf3* | osf4* | osf5*)
7838 lt_prog_compiler_wl='-Wl,'
7839 # All OSF/1 code is PIC.
7840 lt_prog_compiler_static='-non_shared'
7841 ;;
7842
7843 rdos*)
7844 lt_prog_compiler_static='-non_shared'
7845 ;;
7846
7847 solaris*)
7848 lt_prog_compiler_pic='-KPIC'
7849 lt_prog_compiler_static='-Bstatic'
7850 case $cc_basename in
7851 f77* | f90* | f95*)
7852 lt_prog_compiler_wl='-Qoption ld ';;
7853 *)
7854 lt_prog_compiler_wl='-Wl,';;
7855 esac
7856 ;;
7857
7858 sunos4*)
7859 lt_prog_compiler_wl='-Qoption ld '
7860 lt_prog_compiler_pic='-PIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 ;;
7863
7864 sysv4 | sysv4.2uw2* | sysv4.3*)
7865 lt_prog_compiler_wl='-Wl,'
7866 lt_prog_compiler_pic='-KPIC'
7867 lt_prog_compiler_static='-Bstatic'
7868 ;;
7869
7870 sysv4*MP*)
7871 if test -d /usr/nec ;then
7872 lt_prog_compiler_pic='-Kconform_pic'
7873 lt_prog_compiler_static='-Bstatic'
7874 fi
7875 ;;
7876
7877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_pic='-KPIC'
7880 lt_prog_compiler_static='-Bstatic'
7881 ;;
7882
7883 unicos*)
7884 lt_prog_compiler_wl='-Wl,'
7885 lt_prog_compiler_can_build_shared=no
7886 ;;
7887
7888 uts4*)
7889 lt_prog_compiler_pic='-pic'
7890 lt_prog_compiler_static='-Bstatic'
7891 ;;
7892
7893 *)
7894 lt_prog_compiler_can_build_shared=no
7895 ;;
7896 esac
7897 fi
7898
7899case $host_os in
7900 # For platforms which do not support PIC, -DPIC is meaningless:
7901 *djgpp*)
7902 lt_prog_compiler_pic=
7903 ;;
7904 *)
7905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7906 ;;
7907esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07007908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007909$as_echo "$lt_prog_compiler_pic" >&6; }
7910
7911
7912
7913
7914
7915
7916#
7917# Check to make sure the PIC flag actually works.
7918#
7919if test -n "$lt_prog_compiler_pic"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007920 { $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 +01007921$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007922if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007923 $as_echo_n "(cached) " >&6
7924else
7925 lt_cv_prog_compiler_pic_works=no
7926 ac_outfile=conftest.$ac_objext
7927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7928 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7929 # Insert the option either (1) after the last *FLAGS variable, or
7930 # (2) before a word containing "conftest.", or (3) at the end.
7931 # Note that $ac_compile itself does not contain backslashes and begins
7932 # with a dollar sign (not a hyphen), so the echo should work correctly.
7933 # The option is referenced via a variable to avoid confusing sed.
7934 lt_compile=`echo "$ac_compile" | $SED \
7935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7937 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2c84e532009-10-14 05:31:38 +01007938 (eval echo "\"\$as_me:7938: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007939 (eval "$lt_compile" 2>conftest.err)
7940 ac_status=$?
7941 cat conftest.err >&5
Scott James Remnant2c84e532009-10-14 05:31:38 +01007942 echo "$as_me:7942: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007943 if (exit $ac_status) && test -s "$ac_outfile"; then
7944 # The compiler can only warn and ignore the option if not recognized
7945 # So say no if there are warnings other than the usual output.
7946 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7949 lt_cv_prog_compiler_pic_works=yes
7950 fi
7951 fi
7952 $RM conftest*
7953
7954fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007956$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7957
7958if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7959 case $lt_prog_compiler_pic in
7960 "" | " "*) ;;
7961 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7962 esac
7963else
7964 lt_prog_compiler_pic=
7965 lt_prog_compiler_can_build_shared=no
7966fi
7967
7968fi
7969
7970
7971
7972
7973
7974
7975#
7976# Check to make sure the static flag actually works.
7977#
7978wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007979{ $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 +01007980$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007981if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007982 $as_echo_n "(cached) " >&6
7983else
7984 lt_cv_prog_compiler_static_works=no
7985 save_LDFLAGS="$LDFLAGS"
7986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7989 # The linker can only warn and ignore the option if not recognized
7990 # So say no if there are warnings
7991 if test -s conftest.err; then
7992 # Append any errors to the config.log.
7993 cat conftest.err 1>&5
7994 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_static_works=yes
7998 fi
7999 else
8000 lt_cv_prog_compiler_static_works=yes
8001 fi
8002 fi
8003 $RM -r conftest*
8004 LDFLAGS="$save_LDFLAGS"
8005
8006fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008008$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8009
8010if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8011 :
8012else
8013 lt_prog_compiler_static=
8014fi
8015
8016
8017
8018
8019
8020
8021
Scott James Remnantfde82c92009-09-22 10:04:15 -07008022 { $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 +01008023$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008024if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008025 $as_echo_n "(cached) " >&6
8026else
8027 lt_cv_prog_compiler_c_o=no
8028 $RM -r conftest 2>/dev/null
8029 mkdir conftest
8030 cd conftest
8031 mkdir out
8032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8033
8034 lt_compiler_flag="-o out/conftest2.$ac_objext"
8035 # Insert the option either (1) after the last *FLAGS variable, or
8036 # (2) before a word containing "conftest.", or (3) at the end.
8037 # Note that $ac_compile itself does not contain backslashes and begins
8038 # with a dollar sign (not a hyphen), so the echo should work correctly.
8039 lt_compile=`echo "$ac_compile" | $SED \
8040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8042 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2c84e532009-10-14 05:31:38 +01008043 (eval echo "\"\$as_me:8043: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008044 (eval "$lt_compile" 2>out/conftest.err)
8045 ac_status=$?
8046 cat out/conftest.err >&5
Scott James Remnant2c84e532009-10-14 05:31:38 +01008047 echo "$as_me:8047: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008048 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8049 then
8050 # The compiler can only warn and ignore the option if not recognized
8051 # So say no if there are warnings
8052 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8053 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8054 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8055 lt_cv_prog_compiler_c_o=yes
8056 fi
8057 fi
8058 chmod u+w . 2>&5
8059 $RM conftest*
8060 # SGI C++ compiler will create directory out/ii_files/ for
8061 # template instantiation
8062 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8063 $RM out/* && rmdir out
8064 cd ..
8065 $RM -r conftest
8066 $RM conftest*
8067
8068fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008070$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8071
8072
8073
8074
8075
8076
Scott James Remnantfde82c92009-09-22 10:04:15 -07008077 { $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 +01008078$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008079if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008080 $as_echo_n "(cached) " >&6
8081else
8082 lt_cv_prog_compiler_c_o=no
8083 $RM -r conftest 2>/dev/null
8084 mkdir conftest
8085 cd conftest
8086 mkdir out
8087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8088
8089 lt_compiler_flag="-o out/conftest2.$ac_objext"
8090 # Insert the option either (1) after the last *FLAGS variable, or
8091 # (2) before a word containing "conftest.", or (3) at the end.
8092 # Note that $ac_compile itself does not contain backslashes and begins
8093 # with a dollar sign (not a hyphen), so the echo should work correctly.
8094 lt_compile=`echo "$ac_compile" | $SED \
8095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8097 -e 's:$: $lt_compiler_flag:'`
Scott James Remnant2c84e532009-10-14 05:31:38 +01008098 (eval echo "\"\$as_me:8098: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008099 (eval "$lt_compile" 2>out/conftest.err)
8100 ac_status=$?
8101 cat out/conftest.err >&5
Scott James Remnant2c84e532009-10-14 05:31:38 +01008102 echo "$as_me:8102: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8104 then
8105 # The compiler can only warn and ignore the option if not recognized
8106 # So say no if there are warnings
8107 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8110 lt_cv_prog_compiler_c_o=yes
8111 fi
8112 fi
8113 chmod u+w . 2>&5
8114 $RM conftest*
8115 # SGI C++ compiler will create directory out/ii_files/ for
8116 # template instantiation
8117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8118 $RM out/* && rmdir out
8119 cd ..
8120 $RM -r conftest
8121 $RM conftest*
8122
8123fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008125$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8126
8127
8128
8129
8130hard_links="nottested"
8131if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8132 # do not overwrite the value of need_locks provided by the user
Scott James Remnantfde82c92009-09-22 10:04:15 -07008133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008134$as_echo_n "checking if we can lock with hard links... " >&6; }
8135 hard_links=yes
8136 $RM conftest*
8137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8138 touch conftest.a
8139 ln conftest.a conftest.b 2>&5 || hard_links=no
8140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Scott James Remnantfde82c92009-09-22 10:04:15 -07008141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008142$as_echo "$hard_links" >&6; }
8143 if test "$hard_links" = no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07008144 { $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 +01008145$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8146 need_locks=warn
8147 fi
8148else
8149 need_locks=no
8150fi
8151
8152
8153
8154
8155
8156
Scott James Remnantfde82c92009-09-22 10:04:15 -07008157 { $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 +01008158$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8159
8160 runpath_var=
8161 allow_undefined_flag=
8162 always_export_symbols=no
8163 archive_cmds=
8164 archive_expsym_cmds=
8165 compiler_needs_object=no
8166 enable_shared_with_static_runtimes=no
8167 export_dynamic_flag_spec=
8168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8169 hardcode_automatic=no
8170 hardcode_direct=no
8171 hardcode_direct_absolute=no
8172 hardcode_libdir_flag_spec=
8173 hardcode_libdir_flag_spec_ld=
8174 hardcode_libdir_separator=
8175 hardcode_minus_L=no
8176 hardcode_shlibpath_var=unsupported
8177 inherit_rpath=no
8178 link_all_deplibs=unknown
8179 module_cmds=
8180 module_expsym_cmds=
8181 old_archive_from_new_cmds=
8182 old_archive_from_expsyms_cmds=
8183 thread_safe_flag_spec=
8184 whole_archive_flag_spec=
8185 # include_expsyms should be a list of space-separated symbols to be *always*
8186 # included in the symbol list
8187 include_expsyms=
8188 # exclude_expsyms can be an extended regexp of symbols to exclude
8189 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8190 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8191 # as well as any symbol that contains `d'.
8192 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8193 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8194 # platforms (ab)use it in PIC code, but their linkers get confused if
8195 # the symbol is explicitly referenced. Since portable code cannot
8196 # rely on this symbol name, it's probably fine to never include it in
8197 # preloaded symbol tables.
8198 # Exclude shared library initialization/finalization symbols.
8199 extract_expsyms_cmds=
8200
8201 case $host_os in
8202 cygwin* | mingw* | pw32* | cegcc*)
8203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8204 # When not using gcc, we currently assume that we are using
8205 # Microsoft Visual C++.
8206 if test "$GCC" != yes; then
8207 with_gnu_ld=no
8208 fi
8209 ;;
8210 interix*)
8211 # we just hope/assume this is gcc and not c89 (= MSVC++)
8212 with_gnu_ld=yes
8213 ;;
8214 openbsd*)
8215 with_gnu_ld=no
8216 ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008217 linux* | k*bsd*-gnu)
8218 link_all_deplibs=no
8219 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01008220 esac
8221
8222 ld_shlibs=yes
8223 if test "$with_gnu_ld" = yes; then
8224 # If archive_cmds runs LD, not CC, wlarc should be empty
8225 wlarc='${wl}'
8226
8227 # Set some defaults for GNU ld with shared library support. These
8228 # are reset later if shared libraries are not supported. Putting them
8229 # here allows them to be overridden if necessary.
8230 runpath_var=LD_RUN_PATH
8231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8232 export_dynamic_flag_spec='${wl}--export-dynamic'
8233 # ancient GNU ld didn't support --whole-archive et. al.
8234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8235 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8236 else
8237 whole_archive_flag_spec=
8238 fi
8239 supports_anon_versioning=no
8240 case `$LD -v 2>&1` in
8241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8244 *\ 2.11.*) ;; # other 2.11 versions
8245 *) supports_anon_versioning=yes ;;
8246 esac
8247
8248 # See if GNU ld supports shared libraries.
8249 case $host_os in
8250 aix[3-9]*)
8251 # On AIX/PPC, the GNU linker is very broken
8252 if test "$host_cpu" != ia64; then
8253 ld_shlibs=no
8254 cat <<_LT_EOF 1>&2
8255
8256*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8257*** to be unable to reliably create shared libraries on AIX.
8258*** Therefore, libtool is disabling shared libraries support. If you
8259*** really care for shared libraries, you may want to modify your PATH
8260*** so that a non-GNU linker is found, and then restart.
8261
8262_LT_EOF
8263 fi
8264 ;;
8265
8266 amigaos*)
8267 case $host_cpu in
8268 powerpc)
8269 # see comment about AmigaOS4 .so support
8270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271 archive_expsym_cmds=''
8272 ;;
8273 m68k)
8274 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)'
8275 hardcode_libdir_flag_spec='-L$libdir'
8276 hardcode_minus_L=yes
8277 ;;
8278 esac
8279 ;;
8280
8281 beos*)
8282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8283 allow_undefined_flag=unsupported
8284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8285 # support --undefined. This deserves some investigation. FIXME
8286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
8291
8292 cygwin* | mingw* | pw32* | cegcc*)
8293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8294 # as there is no search path for DLLs.
8295 hardcode_libdir_flag_spec='-L$libdir'
8296 allow_undefined_flag=unsupported
8297 always_export_symbols=no
8298 enable_shared_with_static_runtimes=yes
8299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8300
8301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8303 # If the export-symbols file already is a .def file (1st line
8304 # is EXPORTS), use it as is; otherwise, prepend...
8305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8306 cp $export_symbols $output_objdir/$soname.def;
8307 else
8308 echo EXPORTS > $output_objdir/$soname.def;
8309 cat $export_symbols >> $output_objdir/$soname.def;
8310 fi~
8311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312 else
8313 ld_shlibs=no
8314 fi
8315 ;;
8316
8317 interix[3-9]*)
8318 hardcode_direct=no
8319 hardcode_shlibpath_var=no
8320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8321 export_dynamic_flag_spec='${wl}-E'
8322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8323 # Instead, shared libraries are loaded at an image base (0x10000000 by
8324 # default) and relocated if they conflict, which is a slow very memory
8325 # consuming and fragmenting process. To avoid this, we pick a random,
8326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8329 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'
8330 ;;
8331
8332 gnu* | linux* | tpf* | k*bsd*-gnu)
8333 tmp_diet=no
8334 if test "$host_os" = linux-dietlibc; then
8335 case $cc_basename in
8336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8337 esac
8338 fi
8339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8340 && test "$tmp_diet" = no
8341 then
8342 tmp_addflag=
8343 tmp_sharedflag='-shared'
8344 case $cc_basename,$host_cpu in
8345 pgcc*) # Portland Group C compiler
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'
8348 ;;
8349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8350 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'
8351 tmp_addflag=' $pic_flag -Mnomain' ;;
8352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8353 tmp_addflag=' -i_dynamic' ;;
8354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8355 tmp_addflag=' -i_dynamic -nofor_main' ;;
8356 ifc* | ifort*) # Intel Fortran compiler
8357 tmp_addflag=' -nofor_main' ;;
8358 lf95*) # Lahey Fortran 8.1
8359 whole_archive_flag_spec=
8360 tmp_sharedflag='--shared' ;;
8361 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8362 tmp_sharedflag='-qmkshrobj'
8363 tmp_addflag= ;;
8364 esac
8365 case `$CC -V 2>&1 | sed 5q` in
8366 *Sun\ C*) # Sun C 5.9
8367 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'
8368 compiler_needs_object=yes
8369 tmp_sharedflag='-G' ;;
8370 *Sun\ F*) # Sun Fortran 8.3
8371 tmp_sharedflag='-G' ;;
8372 esac
8373 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374
8375 if test "x$supports_anon_versioning" = xyes; then
8376 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8378 echo "local: *; };" >> $output_objdir/$libname.ver~
8379 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8380 fi
8381
8382 case $cc_basename in
8383 xlf*)
8384 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8385 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8386 hardcode_libdir_flag_spec=
8387 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8388 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8389 if test "x$supports_anon_versioning" = xyes; then
8390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8392 echo "local: *; };" >> $output_objdir/$libname.ver~
8393 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8394 fi
8395 ;;
8396 esac
8397 else
8398 ld_shlibs=no
8399 fi
8400 ;;
8401
8402 netbsd* | netbsdelf*-gnu)
8403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8404 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8405 wlarc=
8406 else
8407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409 fi
8410 ;;
8411
8412 solaris*)
8413 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8414 ld_shlibs=no
8415 cat <<_LT_EOF 1>&2
8416
8417*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8418*** create shared libraries on Solaris systems. Therefore, libtool
8419*** is disabling shared libraries support. We urge you to upgrade GNU
8420*** binutils to release 2.9.1 or newer. Another option is to modify
8421*** your PATH or compiler configuration so that the native linker is
8422*** used, and then restart.
8423
8424_LT_EOF
8425 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 else
8429 ld_shlibs=no
8430 fi
8431 ;;
8432
8433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8434 case `$LD -v 2>&1` in
8435 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8436 ld_shlibs=no
8437 cat <<_LT_EOF 1>&2
8438
8439*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8440*** reliably create shared libraries on SCO systems. Therefore, libtool
8441*** is disabling shared libraries support. We urge you to upgrade GNU
8442*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8443*** your PATH or compiler configuration so that the native linker is
8444*** used, and then restart.
8445
8446_LT_EOF
8447 ;;
8448 *)
8449 # For security reasons, it is highly recommended that you always
8450 # use absolute paths for naming shared libraries, and exclude the
8451 # DT_RUNPATH tag from executables and libraries. But doing so
8452 # requires that you compile everything twice, which is a pain.
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8457 else
8458 ld_shlibs=no
8459 fi
8460 ;;
8461 esac
8462 ;;
8463
8464 sunos4*)
8465 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466 wlarc=
8467 hardcode_direct=yes
8468 hardcode_shlibpath_var=no
8469 ;;
8470
8471 *)
8472 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8474 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8475 else
8476 ld_shlibs=no
8477 fi
8478 ;;
8479 esac
8480
8481 if test "$ld_shlibs" = no; then
8482 runpath_var=
8483 hardcode_libdir_flag_spec=
8484 export_dynamic_flag_spec=
8485 whole_archive_flag_spec=
8486 fi
8487 else
8488 # PORTME fill in a description of your system's linker (not GNU ld)
8489 case $host_os in
8490 aix3*)
8491 allow_undefined_flag=unsupported
8492 always_export_symbols=yes
8493 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'
8494 # Note: this linker hardcodes the directories in LIBPATH if there
8495 # are no directories specified by -L.
8496 hardcode_minus_L=yes
8497 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8498 # Neither direct hardcoding nor static linking is supported with a
8499 # broken collect2.
8500 hardcode_direct=unsupported
8501 fi
8502 ;;
8503
8504 aix[4-9]*)
8505 if test "$host_cpu" = ia64; then
8506 # On IA64, the linker does run time linking by default, so we don't
8507 # have to do anything special.
8508 aix_use_runtimelinking=no
8509 exp_sym_flag='-Bexport'
8510 no_entry_flag=""
8511 else
8512 # If we're using GNU nm, then we don't want the "-C" option.
8513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8514 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8515 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'
8516 else
8517 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'
8518 fi
8519 aix_use_runtimelinking=no
8520
8521 # Test if we are trying to use run time linking or normal
8522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8523 # need to do runtime linking.
8524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8525 for ld_flag in $LDFLAGS; do
8526 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8527 aix_use_runtimelinking=yes
8528 break
8529 fi
8530 done
8531 ;;
8532 esac
8533
8534 exp_sym_flag='-bexport'
8535 no_entry_flag='-bnoentry'
8536 fi
8537
8538 # When large executables or shared objects are built, AIX ld can
8539 # have problems creating the table of contents. If linking a library
8540 # or program results in "error TOC overflow" add -mminimal-toc to
8541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8543
8544 archive_cmds=''
8545 hardcode_direct=yes
8546 hardcode_direct_absolute=yes
8547 hardcode_libdir_separator=':'
8548 link_all_deplibs=yes
8549 file_list_spec='${wl}-f,'
8550
8551 if test "$GCC" = yes; then
8552 case $host_os in aix4.[012]|aix4.[012].*)
8553 # We only want to do this on AIX 4.2 and lower, the check
8554 # below for broken collect2 doesn't work under 4.3+
8555 collect2name=`${CC} -print-prog-name=collect2`
8556 if test -f "$collect2name" &&
8557 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8558 then
8559 # We have reworked collect2
8560 :
8561 else
8562 # We have old collect2
8563 hardcode_direct=unsupported
8564 # It fails to find uninstalled libraries when the uninstalled
8565 # path is not listed in the libpath. Setting hardcode_minus_L
8566 # to unsupported forces relinking
8567 hardcode_minus_L=yes
8568 hardcode_libdir_flag_spec='-L$libdir'
8569 hardcode_libdir_separator=
8570 fi
8571 ;;
8572 esac
8573 shared_flag='-shared'
8574 if test "$aix_use_runtimelinking" = yes; then
8575 shared_flag="$shared_flag "'${wl}-G'
8576 fi
8577 link_all_deplibs=no
8578 else
8579 # not using gcc
8580 if test "$host_cpu" = ia64; then
8581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8582 # chokes on -Wl,-G. The following line is correct:
8583 shared_flag='-G'
8584 else
8585 if test "$aix_use_runtimelinking" = yes; then
8586 shared_flag='${wl}-G'
8587 else
8588 shared_flag='${wl}-bM:SRE'
8589 fi
8590 fi
8591 fi
8592
8593 export_dynamic_flag_spec='${wl}-bexpall'
8594 # It seems that -bexpall does not export symbols beginning with
8595 # underscore (_), so it is better to generate a list of symbols to export.
8596 always_export_symbols=yes
8597 if test "$aix_use_runtimelinking" = yes; then
8598 # Warning - without using the other runtime loading flags (-brtl),
8599 # -berok will link without error, but may produce a broken library.
8600 allow_undefined_flag='-berok'
8601 # Determine the default libpath from the value encoded in an
8602 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008604/* end confdefs.h. */
8605
8606int
8607main ()
8608{
8609
8610 ;
8611 return 0;
8612}
8613_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008614if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008615
8616lt_aix_libpath_sed='
8617 /Import File Strings/,/^$/ {
8618 /^0/ {
8619 s/^0 *\(.*\)$/\1/
8620 p
8621 }
8622 }'
8623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8624# Check for a 64-bit object if we didn't find anything.
8625if test -z "$aix_libpath"; then
8626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008628fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008629rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008631if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8632
8633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8634 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"
8635 else
8636 if test "$host_cpu" = ia64; then
8637 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8638 allow_undefined_flag="-z nodefs"
8639 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"
8640 else
8641 # Determine the default libpath from the value encoded in an
8642 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008644/* end confdefs.h. */
8645
8646int
8647main ()
8648{
8649
8650 ;
8651 return 0;
8652}
8653_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008654if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008655
8656lt_aix_libpath_sed='
8657 /Import File Strings/,/^$/ {
8658 /^0/ {
8659 s/^0 *\(.*\)$/\1/
8660 p
8661 }
8662 }'
8663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8664# Check for a 64-bit object if we didn't find anything.
8665if test -z "$aix_libpath"; then
8666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008668fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008669rm -f core conftest.err conftest.$ac_objext \
8670 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008671if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8672
8673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8674 # Warning - without using the other run time loading flags,
8675 # -berok will link without error, but may produce a broken library.
8676 no_undefined_flag=' ${wl}-bernotok'
8677 allow_undefined_flag=' ${wl}-berok'
8678 # Exported symbols can be pulled into shared objects from archives
8679 whole_archive_flag_spec='$convenience'
8680 archive_cmds_need_lc=yes
8681 # This is similar to how AIX traditionally builds its shared libraries.
8682 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'
8683 fi
8684 fi
8685 ;;
8686
8687 amigaos*)
8688 case $host_cpu in
8689 powerpc)
8690 # see comment about AmigaOS4 .so support
8691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692 archive_expsym_cmds=''
8693 ;;
8694 m68k)
8695 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)'
8696 hardcode_libdir_flag_spec='-L$libdir'
8697 hardcode_minus_L=yes
8698 ;;
8699 esac
8700 ;;
8701
8702 bsdi[45]*)
8703 export_dynamic_flag_spec=-rdynamic
8704 ;;
8705
8706 cygwin* | mingw* | pw32* | cegcc*)
8707 # When not using gcc, we currently assume that we are using
8708 # Microsoft Visual C++.
8709 # hardcode_libdir_flag_spec is actually meaningless, as there is
8710 # no search path for DLLs.
8711 hardcode_libdir_flag_spec=' '
8712 allow_undefined_flag=unsupported
8713 # Tell ltmain to make .lib files, not .a files.
8714 libext=lib
8715 # Tell ltmain to make .dll files, not .so files.
8716 shrext_cmds=".dll"
8717 # FIXME: Setting linknames here is a bad hack.
8718 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8719 # The linker will automatically build a .lib file if we build a DLL.
8720 old_archive_from_new_cmds='true'
8721 # FIXME: Should let the user specify the lib program.
8722 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8723 fix_srcfile_path='`cygpath -w "$srcfile"`'
8724 enable_shared_with_static_runtimes=yes
8725 ;;
8726
8727 darwin* | rhapsody*)
8728
8729
8730 archive_cmds_need_lc=no
8731 hardcode_direct=no
8732 hardcode_automatic=yes
8733 hardcode_shlibpath_var=unsupported
8734 whole_archive_flag_spec=''
8735 link_all_deplibs=yes
8736 allow_undefined_flag="$_lt_dar_allow_undefined"
8737 case $cc_basename in
8738 ifort*) _lt_dar_can_shared=yes ;;
8739 *) _lt_dar_can_shared=$GCC ;;
8740 esac
8741 if test "$_lt_dar_can_shared" = "yes"; then
8742 output_verbose_link_cmd=echo
8743 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8744 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8745 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}"
8746 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}"
8747
8748 else
8749 ld_shlibs=no
8750 fi
8751
8752 ;;
8753
8754 dgux*)
8755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_libdir_flag_spec='-L$libdir'
8757 hardcode_shlibpath_var=no
8758 ;;
8759
8760 freebsd1*)
8761 ld_shlibs=no
8762 ;;
8763
8764 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8765 # support. Future versions do this automatically, but an explicit c++rt0.o
8766 # does not break anything, and helps significantly (at the cost of a little
8767 # extra space).
8768 freebsd2.2*)
8769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8770 hardcode_libdir_flag_spec='-R$libdir'
8771 hardcode_direct=yes
8772 hardcode_shlibpath_var=no
8773 ;;
8774
8775 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8776 freebsd2*)
8777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_direct=yes
8779 hardcode_minus_L=yes
8780 hardcode_shlibpath_var=no
8781 ;;
8782
8783 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8784 freebsd* | dragonfly*)
8785 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8786 hardcode_libdir_flag_spec='-R$libdir'
8787 hardcode_direct=yes
8788 hardcode_shlibpath_var=no
8789 ;;
8790
8791 hpux9*)
8792 if test "$GCC" = yes; then
8793 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'
8794 else
8795 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'
8796 fi
8797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8798 hardcode_libdir_separator=:
8799 hardcode_direct=yes
8800
8801 # hardcode_minus_L: Not really in the search PATH,
8802 # but as the default location of the library.
8803 hardcode_minus_L=yes
8804 export_dynamic_flag_spec='${wl}-E'
8805 ;;
8806
8807 hpux10*)
8808 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8810 else
8811 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8812 fi
8813 if test "$with_gnu_ld" = no; then
8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8815 hardcode_libdir_flag_spec_ld='+b $libdir'
8816 hardcode_libdir_separator=:
8817 hardcode_direct=yes
8818 hardcode_direct_absolute=yes
8819 export_dynamic_flag_spec='${wl}-E'
8820 # hardcode_minus_L: Not really in the search PATH,
8821 # but as the default location of the library.
8822 hardcode_minus_L=yes
8823 fi
8824 ;;
8825
8826 hpux11*)
8827 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8828 case $host_cpu in
8829 hppa*64*)
8830 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 ;;
8832 ia64*)
8833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8834 ;;
8835 *)
8836 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8837 ;;
8838 esac
8839 else
8840 case $host_cpu in
8841 hppa*64*)
8842 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 ia64*)
8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8846 ;;
8847 *)
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8849 ;;
8850 esac
8851 fi
8852 if test "$with_gnu_ld" = no; then
8853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854 hardcode_libdir_separator=:
8855
8856 case $host_cpu in
8857 hppa*64*|ia64*)
8858 hardcode_direct=no
8859 hardcode_shlibpath_var=no
8860 ;;
8861 *)
8862 hardcode_direct=yes
8863 hardcode_direct_absolute=yes
8864 export_dynamic_flag_spec='${wl}-E'
8865
8866 # hardcode_minus_L: Not really in the search PATH,
8867 # but as the default location of the library.
8868 hardcode_minus_L=yes
8869 ;;
8870 esac
8871 fi
8872 ;;
8873
8874 irix5* | irix6* | nonstopux*)
8875 if test "$GCC" = yes; then
8876 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'
8877 # Try to use the -exported_symbol ld option, if it does not
8878 # work, assume that -exports_file does not work either and
8879 # implicitly export all symbols.
8880 save_LDFLAGS="$LDFLAGS"
8881 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Scott James Remnantfde82c92009-09-22 10:04:15 -07008882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h. */
Scott James Remnant65f683d2009-07-14 13:05:17 +01008884int foo(void) {}
8885_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008886if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008887 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'
8888
Scott James Remnant65f683d2009-07-14 13:05:17 +01008889fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008890rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008892 LDFLAGS="$save_LDFLAGS"
8893 else
8894 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'
8895 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'
8896 fi
8897 archive_cmds_need_lc='no'
8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900 inherit_rpath=yes
8901 link_all_deplibs=yes
8902 ;;
8903
8904 netbsd* | netbsdelf*-gnu)
8905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8907 else
8908 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8909 fi
8910 hardcode_libdir_flag_spec='-R$libdir'
8911 hardcode_direct=yes
8912 hardcode_shlibpath_var=no
8913 ;;
8914
8915 newsos6)
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=yes
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator=:
8920 hardcode_shlibpath_var=no
8921 ;;
8922
8923 *nto* | *qnx*)
8924 ;;
8925
8926 openbsd*)
8927 if test -f /usr/libexec/ld.so; then
8928 hardcode_direct=yes
8929 hardcode_shlibpath_var=no
8930 hardcode_direct_absolute=yes
8931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935 export_dynamic_flag_spec='${wl}-E'
8936 else
8937 case $host_os in
8938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_libdir_flag_spec='-R$libdir'
8941 ;;
8942 *)
8943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945 ;;
8946 esac
8947 fi
8948 else
8949 ld_shlibs=no
8950 fi
8951 ;;
8952
8953 os2*)
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 allow_undefined_flag=unsupported
8957 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'
8958 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8959 ;;
8960
8961 osf3*)
8962 if test "$GCC" = yes; then
8963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964 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'
8965 else
8966 allow_undefined_flag=' -expect_unresolved \*'
8967 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'
8968 fi
8969 archive_cmds_need_lc='no'
8970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971 hardcode_libdir_separator=:
8972 ;;
8973
8974 osf4* | osf5*) # as osf3* with the addition of -msym flag
8975 if test "$GCC" = yes; then
8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977 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'
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 else
8980 allow_undefined_flag=' -expect_unresolved \*'
8981 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'
8982 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~
8983 $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'
8984
8985 # Both c and cxx compiler support -rpath directly
8986 hardcode_libdir_flag_spec='-rpath $libdir'
8987 fi
8988 archive_cmds_need_lc='no'
8989 hardcode_libdir_separator=:
8990 ;;
8991
8992 solaris*)
8993 no_undefined_flag=' -z defs'
8994 if test "$GCC" = yes; then
8995 wlarc='${wl}'
8996 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8999 else
9000 case `$CC -V 2>&1` in
9001 *"Compilers 5.0"*)
9002 wlarc=''
9003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9006 ;;
9007 *)
9008 wlarc='${wl}'
9009 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9012 ;;
9013 esac
9014 fi
9015 hardcode_libdir_flag_spec='-R$libdir'
9016 hardcode_shlibpath_var=no
9017 case $host_os in
9018 solaris2.[0-5] | solaris2.[0-5].*) ;;
9019 *)
9020 # The compiler driver will combine and reorder linker options,
9021 # but understands `-z linker_flag'. GCC discards it without `$wl',
9022 # but is careful enough not to reorder.
9023 # Supported since Solaris 2.6 (maybe 2.5.1?)
9024 if test "$GCC" = yes; then
9025 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9026 else
9027 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9028 fi
9029 ;;
9030 esac
9031 link_all_deplibs=yes
9032 ;;
9033
9034 sunos4*)
9035 if test "x$host_vendor" = xsequent; then
9036 # Use $CC to link under sequent, because it throws in some extra .o
9037 # files that make .init and .fini sections work.
9038 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9041 fi
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_direct=yes
9044 hardcode_minus_L=yes
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 sysv4)
9049 case $host_vendor in
9050 sni)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=yes # is this really true???
9053 ;;
9054 siemens)
9055 ## LD is ld it makes a PLAMLIB
9056 ## CC just makes a GrossModule.
9057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9058 reload_cmds='$CC -r -o $output$reload_objs'
9059 hardcode_direct=no
9060 ;;
9061 motorola)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9064 ;;
9065 esac
9066 runpath_var='LD_RUN_PATH'
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 sysv4.3*)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_shlibpath_var=no
9073 export_dynamic_flag_spec='-Bexport'
9074 ;;
9075
9076 sysv4*MP*)
9077 if test -d /usr/nec; then
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var=no
9080 runpath_var=LD_RUN_PATH
9081 hardcode_runpath_var=yes
9082 ld_shlibs=yes
9083 fi
9084 ;;
9085
9086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9087 no_undefined_flag='${wl}-z,text'
9088 archive_cmds_need_lc=no
9089 hardcode_shlibpath_var=no
9090 runpath_var='LD_RUN_PATH'
9091
9092 if test "$GCC" = yes; then
9093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 else
9096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9098 fi
9099 ;;
9100
9101 sysv5* | sco3.2v5* | sco5v6*)
9102 # Note: We can NOT use -z defs as we might desire, because we do not
9103 # link with -lc, and that would cause any symbols used from libc to
9104 # always be unresolved, which means just about no library would
9105 # ever link correctly. If we're not using GNU ld we use -z text
9106 # though, which does catch some bad symbols but isn't as heavy-handed
9107 # as -z defs.
9108 no_undefined_flag='${wl}-z,text'
9109 allow_undefined_flag='${wl}-z,nodefs'
9110 archive_cmds_need_lc=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 export_dynamic_flag_spec='${wl}-Bexport'
9116 runpath_var='LD_RUN_PATH'
9117
9118 if test "$GCC" = yes; then
9119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 else
9122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9124 fi
9125 ;;
9126
9127 uts4*)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_shlibpath_var=no
9131 ;;
9132
9133 *)
9134 ld_shlibs=no
9135 ;;
9136 esac
9137
9138 if test x$host_vendor = xsni; then
9139 case $host in
9140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9142 ;;
9143 esac
9144 fi
9145 fi
9146
Scott James Remnantfde82c92009-09-22 10:04:15 -07009147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009148$as_echo "$ld_shlibs" >&6; }
9149test "$ld_shlibs" = no && can_build_shared=no
9150
9151with_gnu_ld=$with_gnu_ld
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167#
9168# Do we need to explicitly link libc?
9169#
9170case "x$archive_cmds_need_lc" in
9171x|xyes)
9172 # Assume -lc should be added
9173 archive_cmds_need_lc=yes
9174
9175 if test "$enable_shared" = yes && test "$GCC" = yes; then
9176 case $archive_cmds in
9177 *'~'*)
9178 # FIXME: we may have to deal with multi-command sequences.
9179 ;;
9180 '$CC '*)
9181 # Test whether the compiler implicitly links with -lc since on some
9182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9183 # to ld, don't add -lc before -lgcc.
Scott James Remnantfde82c92009-09-22 10:04:15 -07009184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009185$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9186 $RM conftest*
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9188
Scott James Remnantfde82c92009-09-22 10:04:15 -07009189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009190 (eval $ac_compile) 2>&5
9191 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9193 test $ac_status = 0; } 2>conftest.err; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009194 soname=conftest
9195 lib=conftest
9196 libobjs=conftest.$ac_objext
9197 deplibs=
9198 wl=$lt_prog_compiler_wl
9199 pic_flag=$lt_prog_compiler_pic
9200 compiler_flags=-v
9201 linker_flags=-v
9202 verstring=
9203 output_objdir=.
9204 libname=conftest
9205 lt_save_allow_undefined_flag=$allow_undefined_flag
9206 allow_undefined_flag=
Scott James Remnantfde82c92009-09-22 10:04:15 -07009207 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 +01009208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9211 test $ac_status = 0; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01009212 then
9213 archive_cmds_need_lc=no
9214 else
9215 archive_cmds_need_lc=yes
9216 fi
9217 allow_undefined_flag=$lt_save_allow_undefined_flag
9218 else
9219 cat conftest.err 1>&5
9220 fi
9221 $RM conftest*
Scott James Remnantfde82c92009-09-22 10:04:15 -07009222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009223$as_echo "$archive_cmds_need_lc" >&6; }
9224 ;;
9225 esac
9226 fi
9227 ;;
9228esac
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
9382
9383
9384
9385
Scott James Remnantfde82c92009-09-22 10:04:15 -07009386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009387$as_echo_n "checking dynamic linker characteristics... " >&6; }
9388
9389if test "$GCC" = yes; then
9390 case $host_os in
9391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9392 *) lt_awk_arg="/^libraries:/" ;;
9393 esac
9394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9396 # if the path contains ";" then we assume it to be the separator
9397 # otherwise default to the standard path separator (i.e. ":") - it is
9398 # assumed that no part of a normal pathname contains ";" but that should
9399 # okay in the real world where ";" in dirpaths is itself problematic.
9400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9401 else
9402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9403 fi
9404 # Ok, now we have the path, separated by spaces, we can step through it
9405 # and add multilib dir if necessary.
9406 lt_tmp_lt_search_path_spec=
9407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9408 for lt_sys_path in $lt_search_path_spec; do
9409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9411 else
9412 test -d "$lt_sys_path" && \
9413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9414 fi
9415 done
9416 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9417BEGIN {RS=" "; FS="/|\n";} {
9418 lt_foo="";
9419 lt_count=0;
9420 for (lt_i = NF; lt_i > 0; lt_i--) {
9421 if ($lt_i != "" && $lt_i != ".") {
9422 if ($lt_i == "..") {
9423 lt_count++;
9424 } else {
9425 if (lt_count == 0) {
9426 lt_foo="/" $lt_i lt_foo;
9427 } else {
9428 lt_count--;
9429 }
9430 }
9431 }
9432 }
9433 if (lt_foo != "") { lt_freq[lt_foo]++; }
9434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9435}'`
9436 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9437else
9438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9439fi
9440library_names_spec=
9441libname_spec='lib$name'
9442soname_spec=
9443shrext_cmds=".so"
9444postinstall_cmds=
9445postuninstall_cmds=
9446finish_cmds=
9447finish_eval=
9448shlibpath_var=
9449shlibpath_overrides_runpath=unknown
9450version_type=none
9451dynamic_linker="$host_os ld.so"
9452sys_lib_dlsearch_path_spec="/lib /usr/lib"
9453need_lib_prefix=unknown
9454hardcode_into_libs=no
9455
9456# when you set need_version to no, make sure it does not cause -set_version
9457# flags to be left without arguments
9458need_version=unknown
9459
9460case $host_os in
9461aix3*)
9462 version_type=linux
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9464 shlibpath_var=LIBPATH
9465
9466 # AIX 3 has no versioning support, so we append a major version to the name.
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 ;;
9469
9470aix[4-9]*)
9471 version_type=linux
9472 need_lib_prefix=no
9473 need_version=no
9474 hardcode_into_libs=yes
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 supports IA64
9477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 else
9480 # With GCC up to 2.95.x, collect2 would create an import file
9481 # for dependence libraries. The import file would start with
9482 # the line `#! .'. This would cause the generated library to
9483 # depend on `.', always an invalid library. This was fixed in
9484 # development snapshots of GCC prior to 3.0.
9485 case $host_os in
9486 aix4 | aix4.[01] | aix4.[01].*)
9487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9488 echo ' yes '
9489 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9490 :
9491 else
9492 can_build_shared=no
9493 fi
9494 ;;
9495 esac
9496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9497 # soname into executable. Probably we can add versioning support to
9498 # collect2, so additional links can be useful in future.
9499 if test "$aix_use_runtimelinking" = yes; then
9500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9501 # instead of lib<name>.a to let people know that these are not
9502 # typical AIX shared libraries.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 else
9505 # We preserve .a as extension for shared libraries through AIX4.2
9506 # and later when we are not doing run time linking.
9507 library_names_spec='${libname}${release}.a $libname.a'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9509 fi
9510 shlibpath_var=LIBPATH
9511 fi
9512 ;;
9513
9514amigaos*)
9515 case $host_cpu in
9516 powerpc)
9517 # Since July 2007 AmigaOS4 officially supports .so libraries.
9518 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 ;;
9521 m68k)
9522 library_names_spec='$libname.ixlibrary $libname.a'
9523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9524 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'
9525 ;;
9526 esac
9527 ;;
9528
9529beos*)
9530 library_names_spec='${libname}${shared_ext}'
9531 dynamic_linker="$host_os ld.so"
9532 shlibpath_var=LIBRARY_PATH
9533 ;;
9534
9535bsdi[45]*)
9536 version_type=linux
9537 need_version=no
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9544 # the default ld.so.conf also contains /usr/contrib/lib and
9545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9546 # libtool to hard-code these into programs
9547 ;;
9548
9549cygwin* | mingw* | pw32* | cegcc*)
9550 version_type=windows
9551 shrext_cmds=".dll"
9552 need_version=no
9553 need_lib_prefix=no
9554
9555 case $GCC,$host_os in
9556 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9557 library_names_spec='$libname.dll.a'
9558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9559 postinstall_cmds='base_file=`basename \${file}`~
9560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9561 dldir=$destdir/`dirname \$dlpath`~
9562 test -d \$dldir || mkdir -p \$dldir~
9563 $install_prog $dir/$dlname \$dldir/$dlname~
9564 chmod a+x \$dldir/$dlname~
9565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9567 fi'
9568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9569 dlpath=$dir/\$dldll~
9570 $RM \$dlpath'
9571 shlibpath_overrides_runpath=yes
9572
9573 case $host_os in
9574 cygwin*)
9575 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9576 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9578 ;;
9579 mingw* | cegcc*)
9580 # MinGW DLLs use traditional 'lib' prefix
9581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9582 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9583 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9584 # It is most probably a Windows format PATH printed by
9585 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9586 # path with ; separators, and with drive letters. We can handle the
9587 # drive letters (cygwin fileutils understands them), so leave them,
9588 # especially as we might pass files found there to a mingw objdump,
9589 # which wouldn't understand a cygwinified path. Ahh.
9590 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9591 else
9592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9593 fi
9594 ;;
9595 pw32*)
9596 # pw32 DLLs use 'pw' prefix rather than 'lib'
9597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9598 ;;
9599 esac
9600 ;;
9601
9602 *)
9603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9604 ;;
9605 esac
9606 dynamic_linker='Win32 ld.exe'
9607 # FIXME: first we should search . and the directory the executable is in
9608 shlibpath_var=PATH
9609 ;;
9610
9611darwin* | rhapsody*)
9612 dynamic_linker="$host_os dyld"
9613 version_type=darwin
9614 need_lib_prefix=no
9615 need_version=no
9616 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9617 soname_spec='${libname}${release}${major}$shared_ext'
9618 shlibpath_overrides_runpath=yes
9619 shlibpath_var=DYLD_LIBRARY_PATH
9620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9621
9622 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9623 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9624 ;;
9625
9626dgux*)
9627 version_type=linux
9628 need_lib_prefix=no
9629 need_version=no
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 ;;
9634
9635freebsd1*)
9636 dynamic_linker=no
9637 ;;
9638
9639freebsd* | dragonfly*)
9640 # DragonFly does not have aout. When/if they implement a new
9641 # versioning mechanism, adjust this.
9642 if test -x /usr/bin/objformat; then
9643 objformat=`/usr/bin/objformat`
9644 else
9645 case $host_os in
9646 freebsd[123]*) objformat=aout ;;
9647 *) objformat=elf ;;
9648 esac
9649 fi
9650 version_type=freebsd-$objformat
9651 case $version_type in
9652 freebsd-elf*)
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9654 need_version=no
9655 need_lib_prefix=no
9656 ;;
9657 freebsd-*)
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9659 need_version=yes
9660 ;;
9661 esac
9662 shlibpath_var=LD_LIBRARY_PATH
9663 case $host_os in
9664 freebsd2*)
9665 shlibpath_overrides_runpath=yes
9666 ;;
9667 freebsd3.[01]* | freebsdelf3.[01]*)
9668 shlibpath_overrides_runpath=yes
9669 hardcode_into_libs=yes
9670 ;;
9671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9673 shlibpath_overrides_runpath=no
9674 hardcode_into_libs=yes
9675 ;;
9676 *) # from 4.6 on, and DragonFly
9677 shlibpath_overrides_runpath=yes
9678 hardcode_into_libs=yes
9679 ;;
9680 esac
9681 ;;
9682
9683gnu*)
9684 version_type=linux
9685 need_lib_prefix=no
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 hardcode_into_libs=yes
9691 ;;
9692
9693hpux9* | hpux10* | hpux11*)
9694 # Give a soname corresponding to the major version so that dld.sl refuses to
9695 # link against other versions.
9696 version_type=sunos
9697 need_lib_prefix=no
9698 need_version=no
9699 case $host_cpu in
9700 ia64*)
9701 shrext_cmds='.so'
9702 hardcode_into_libs=yes
9703 dynamic_linker="$host_os dld.so"
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 if test "X$HPUX_IA64_MODE" = X32; then
9709 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9710 else
9711 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9712 fi
9713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9714 ;;
9715 hppa*64*)
9716 shrext_cmds='.sl'
9717 hardcode_into_libs=yes
9718 dynamic_linker="$host_os dld.sl"
9719 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9725 ;;
9726 *)
9727 shrext_cmds='.sl'
9728 dynamic_linker="$host_os dld.sl"
9729 shlibpath_var=SHLIB_PATH
9730 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 ;;
9734 esac
9735 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9736 postinstall_cmds='chmod 555 $lib'
9737 ;;
9738
9739interix[3-9]*)
9740 version_type=linux
9741 need_lib_prefix=no
9742 need_version=no
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=no
9748 hardcode_into_libs=yes
9749 ;;
9750
9751irix5* | irix6* | nonstopux*)
9752 case $host_os in
9753 nonstopux*) version_type=nonstopux ;;
9754 *)
9755 if test "$lt_cv_prog_gnu_ld" = yes; then
9756 version_type=linux
9757 else
9758 version_type=irix
9759 fi ;;
9760 esac
9761 need_lib_prefix=no
9762 need_version=no
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9765 case $host_os in
9766 irix5* | nonstopux*)
9767 libsuff= shlibsuff=
9768 ;;
9769 *)
9770 case $LD in # libtool.m4 will add one of these switches to LD
9771 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9772 libsuff= shlibsuff= libmagic=32-bit;;
9773 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9774 libsuff=32 shlibsuff=N32 libmagic=N32;;
9775 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9776 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9777 *) libsuff= shlibsuff= libmagic=never-match;;
9778 esac
9779 ;;
9780 esac
9781 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9782 shlibpath_overrides_runpath=no
9783 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9784 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9785 hardcode_into_libs=yes
9786 ;;
9787
9788# No shared lib support for Linux oldld, aout, or coff.
9789linux*oldld* | linux*aout* | linux*coff*)
9790 dynamic_linker=no
9791 ;;
9792
9793# This must be Linux ELF.
9794linux* | k*bsd*-gnu)
9795 version_type=linux
9796 need_lib_prefix=no
9797 need_version=no
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799 soname_spec='${libname}${release}${shared_ext}$major'
9800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=no
9803 # Some binutils ld are patched to set DT_RUNPATH
9804 save_LDFLAGS=$LDFLAGS
9805 save_libdir=$libdir
9806 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9807 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Scott James Remnantfde82c92009-09-22 10:04:15 -07009808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009809/* end confdefs.h. */
9810
9811int
9812main ()
9813{
9814
9815 ;
9816 return 0;
9817}
9818_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07009819if ac_fn_c_try_link "$LINENO"; then :
9820 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01009821 shlibpath_overrides_runpath=yes
9822fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01009823fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07009824rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009826 LDFLAGS=$save_LDFLAGS
9827 libdir=$save_libdir
9828
9829 # This implies no fast_install, which is unacceptable.
9830 # Some rework will be needed to allow for fast_install
9831 # before this can be enabled.
9832 hardcode_into_libs=yes
9833
9834 # Append ld.so.conf contents to the search path
9835 if test -f /etc/ld.so.conf; then
9836 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' ' '`
9837 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9838 fi
9839
9840 # We used to test for /lib/ld.so.1 and disable shared libraries on
9841 # powerpc, because MkLinux only supported shared libraries with the
9842 # GNU dynamic linker. Since this was broken with cross compilers,
9843 # most powerpc-linux boxes support dynamic linking these days and
9844 # people can always --disable-shared, the test was removed, and we
9845 # assume the GNU/Linux dynamic linker is in use.
9846 dynamic_linker='GNU/Linux ld.so'
9847 ;;
9848
9849netbsdelf*-gnu)
9850 version_type=linux
9851 need_lib_prefix=no
9852 need_version=no
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9854 soname_spec='${libname}${release}${shared_ext}$major'
9855 shlibpath_var=LD_LIBRARY_PATH
9856 shlibpath_overrides_runpath=no
9857 hardcode_into_libs=yes
9858 dynamic_linker='NetBSD ld.elf_so'
9859 ;;
9860
9861netbsd*)
9862 version_type=sunos
9863 need_lib_prefix=no
9864 need_version=no
9865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9868 dynamic_linker='NetBSD (a.out) ld.so'
9869 else
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9872 dynamic_linker='NetBSD ld.elf_so'
9873 fi
9874 shlibpath_var=LD_LIBRARY_PATH
9875 shlibpath_overrides_runpath=yes
9876 hardcode_into_libs=yes
9877 ;;
9878
9879newsos6)
9880 version_type=linux
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 shlibpath_overrides_runpath=yes
9884 ;;
9885
9886*nto* | *qnx*)
9887 version_type=qnx
9888 need_lib_prefix=no
9889 need_version=no
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 shlibpath_overrides_runpath=no
9894 hardcode_into_libs=yes
9895 dynamic_linker='ldqnx.so'
9896 ;;
9897
9898openbsd*)
9899 version_type=sunos
9900 sys_lib_dlsearch_path_spec="/usr/lib"
9901 need_lib_prefix=no
9902 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9903 case $host_os in
9904 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9905 *) need_version=no ;;
9906 esac
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9911 case $host_os in
9912 openbsd2.[89] | openbsd2.[89].*)
9913 shlibpath_overrides_runpath=no
9914 ;;
9915 *)
9916 shlibpath_overrides_runpath=yes
9917 ;;
9918 esac
9919 else
9920 shlibpath_overrides_runpath=yes
9921 fi
9922 ;;
9923
9924os2*)
9925 libname_spec='$name'
9926 shrext_cmds=".dll"
9927 need_lib_prefix=no
9928 library_names_spec='$libname${shared_ext} $libname.a'
9929 dynamic_linker='OS/2 ld.exe'
9930 shlibpath_var=LIBPATH
9931 ;;
9932
9933osf3* | osf4* | osf5*)
9934 version_type=osf
9935 need_lib_prefix=no
9936 need_version=no
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939 shlibpath_var=LD_LIBRARY_PATH
9940 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9941 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9942 ;;
9943
9944rdos*)
9945 dynamic_linker=no
9946 ;;
9947
9948solaris*)
9949 version_type=linux
9950 need_lib_prefix=no
9951 need_version=no
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 shlibpath_var=LD_LIBRARY_PATH
9955 shlibpath_overrides_runpath=yes
9956 hardcode_into_libs=yes
9957 # ldd complains unless libraries are executable
9958 postinstall_cmds='chmod +x $lib'
9959 ;;
9960
9961sunos4*)
9962 version_type=sunos
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9964 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9967 if test "$with_gnu_ld" = yes; then
9968 need_lib_prefix=no
9969 fi
9970 need_version=yes
9971 ;;
9972
9973sysv4 | sysv4.3*)
9974 version_type=linux
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 case $host_vendor in
9979 sni)
9980 shlibpath_overrides_runpath=no
9981 need_lib_prefix=no
9982 runpath_var=LD_RUN_PATH
9983 ;;
9984 siemens)
9985 need_lib_prefix=no
9986 ;;
9987 motorola)
9988 need_lib_prefix=no
9989 need_version=no
9990 shlibpath_overrides_runpath=no
9991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9992 ;;
9993 esac
9994 ;;
9995
9996sysv4*MP*)
9997 if test -d /usr/nec ;then
9998 version_type=linux
9999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10000 soname_spec='$libname${shared_ext}.$major'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 fi
10003 ;;
10004
10005sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10006 version_type=freebsd-elf
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 hardcode_into_libs=yes
10014 if test "$with_gnu_ld" = yes; then
10015 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10016 else
10017 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10018 case $host_os in
10019 sco3.2v5*)
10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10021 ;;
10022 esac
10023 fi
10024 sys_lib_dlsearch_path_spec='/usr/lib'
10025 ;;
10026
10027tpf*)
10028 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10029 version_type=linux
10030 need_lib_prefix=no
10031 need_version=no
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=no
10035 hardcode_into_libs=yes
10036 ;;
10037
10038uts4*)
10039 version_type=linux
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 ;;
10044
10045*)
10046 dynamic_linker=no
10047 ;;
10048esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010050$as_echo "$dynamic_linker" >&6; }
10051test "$dynamic_linker" = no && can_build_shared=no
10052
10053variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10054if test "$GCC" = yes; then
10055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10056fi
10057
10058if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10059 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10060fi
10061if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10062 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10063fi
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
10147
10148
10149
10150
Scott James Remnantfde82c92009-09-22 10:04:15 -070010151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010152$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10153hardcode_action=
10154if test -n "$hardcode_libdir_flag_spec" ||
10155 test -n "$runpath_var" ||
10156 test "X$hardcode_automatic" = "Xyes" ; then
10157
10158 # We can hardcode non-existent directories.
10159 if test "$hardcode_direct" != no &&
10160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10161 # have to relink, otherwise we might link with an installed library
10162 # when we should be linking with a yet-to-be-installed one
10163 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10164 test "$hardcode_minus_L" != no; then
10165 # Linking always hardcodes the temporary library directory.
10166 hardcode_action=relink
10167 else
10168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10169 hardcode_action=immediate
10170 fi
10171else
10172 # We cannot hardcode anything, or else we can only hardcode existing
10173 # directories.
10174 hardcode_action=unsupported
10175fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010177$as_echo "$hardcode_action" >&6; }
10178
10179if test "$hardcode_action" = relink ||
10180 test "$inherit_rpath" = yes; then
10181 # Fast installation is not supported
10182 enable_fast_install=no
10183elif test "$shlibpath_overrides_runpath" = yes ||
10184 test "$enable_shared" = no; then
10185 # Fast installation is not necessary
10186 enable_fast_install=needless
10187fi
10188
10189
10190
10191
10192
10193
10194 if test "x$enable_dlopen" != xyes; then
10195 enable_dlopen=unknown
10196 enable_dlopen_self=unknown
10197 enable_dlopen_self_static=unknown
10198else
10199 lt_cv_dlopen=no
10200 lt_cv_dlopen_libs=
10201
10202 case $host_os in
10203 beos*)
10204 lt_cv_dlopen="load_add_on"
10205 lt_cv_dlopen_libs=
10206 lt_cv_dlopen_self=yes
10207 ;;
10208
10209 mingw* | pw32* | cegcc*)
10210 lt_cv_dlopen="LoadLibrary"
10211 lt_cv_dlopen_libs=
10212 ;;
10213
10214 cygwin*)
10215 lt_cv_dlopen="dlopen"
10216 lt_cv_dlopen_libs=
10217 ;;
10218
10219 darwin*)
10220 # if libdl is installed we need to link against it
Scott James Remnantfde82c92009-09-22 10:04:15 -070010221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010222$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010223if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010224 $as_echo_n "(cached) " >&6
10225else
10226 ac_check_lib_save_LIBS=$LIBS
10227LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010229/* end confdefs.h. */
10230
10231/* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234#ifdef __cplusplus
10235extern "C"
10236#endif
10237char dlopen ();
10238int
10239main ()
10240{
10241return dlopen ();
10242 ;
10243 return 0;
10244}
10245_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010246if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010247 ac_cv_lib_dl_dlopen=yes
10248else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010249 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010250fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010251rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010253LIBS=$ac_check_lib_save_LIBS
10254fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010256$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010257if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10259else
10260
10261 lt_cv_dlopen="dyld"
10262 lt_cv_dlopen_libs=
10263 lt_cv_dlopen_self=yes
10264
10265fi
10266
10267 ;;
10268
10269 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010270 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10271if test "x$ac_cv_func_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010272 lt_cv_dlopen="shl_load"
10273else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010275$as_echo_n "checking for shl_load in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010276if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010277 $as_echo_n "(cached) " >&6
10278else
10279 ac_check_lib_save_LIBS=$LIBS
10280LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010281cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010282/* end confdefs.h. */
10283
10284/* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10287#ifdef __cplusplus
10288extern "C"
10289#endif
10290char shl_load ();
10291int
10292main ()
10293{
10294return shl_load ();
10295 ;
10296 return 0;
10297}
10298_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010299if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010300 ac_cv_lib_dld_shl_load=yes
10301else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010302 ac_cv_lib_dld_shl_load=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010303fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010304rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010306LIBS=$ac_check_lib_save_LIBS
10307fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010309$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010310if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010311 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10312else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010313 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10314if test "x$ac_cv_func_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010315 lt_cv_dlopen="dlopen"
10316else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010318$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010319if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010320 $as_echo_n "(cached) " >&6
10321else
10322 ac_check_lib_save_LIBS=$LIBS
10323LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010325/* end confdefs.h. */
10326
10327/* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
10330#ifdef __cplusplus
10331extern "C"
10332#endif
10333char dlopen ();
10334int
10335main ()
10336{
10337return dlopen ();
10338 ;
10339 return 0;
10340}
10341_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010342if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010343 ac_cv_lib_dl_dlopen=yes
10344else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010345 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010346fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010347rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010349LIBS=$ac_check_lib_save_LIBS
10350fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010352$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010353if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10355else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010357$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010358if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010359 $as_echo_n "(cached) " >&6
10360else
10361 ac_check_lib_save_LIBS=$LIBS
10362LIBS="-lsvld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010364/* end confdefs.h. */
10365
10366/* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
10369#ifdef __cplusplus
10370extern "C"
10371#endif
10372char dlopen ();
10373int
10374main ()
10375{
10376return dlopen ();
10377 ;
10378 return 0;
10379}
10380_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010381if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010382 ac_cv_lib_svld_dlopen=yes
10383else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010384 ac_cv_lib_svld_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010385fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010386rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010388LIBS=$ac_check_lib_save_LIBS
10389fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010391$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010392if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010393 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10394else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010396$as_echo_n "checking for dld_link in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010397if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010398 $as_echo_n "(cached) " >&6
10399else
10400 ac_check_lib_save_LIBS=$LIBS
10401LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010403/* end confdefs.h. */
10404
10405/* Override any GCC internal prototype to avoid an error.
10406 Use char because int might match the return type of a GCC
10407 builtin and then its argument prototype would still apply. */
10408#ifdef __cplusplus
10409extern "C"
10410#endif
10411char dld_link ();
10412int
10413main ()
10414{
10415return dld_link ();
10416 ;
10417 return 0;
10418}
10419_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010420if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010421 ac_cv_lib_dld_dld_link=yes
10422else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010423 ac_cv_lib_dld_dld_link=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010424fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010425rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010427LIBS=$ac_check_lib_save_LIBS
10428fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010430$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010431if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010432 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10433fi
10434
10435
10436fi
10437
10438
10439fi
10440
10441
10442fi
10443
10444
10445fi
10446
10447
10448fi
10449
10450 ;;
10451 esac
10452
10453 if test "x$lt_cv_dlopen" != xno; then
10454 enable_dlopen=yes
10455 else
10456 enable_dlopen=no
10457 fi
10458
10459 case $lt_cv_dlopen in
10460 dlopen)
10461 save_CPPFLAGS="$CPPFLAGS"
10462 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10463
10464 save_LDFLAGS="$LDFLAGS"
10465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10466
10467 save_LIBS="$LIBS"
10468 LIBS="$lt_cv_dlopen_libs $LIBS"
10469
Scott James Remnantfde82c92009-09-22 10:04:15 -070010470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010471$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010472if test "${lt_cv_dlopen_self+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010473 $as_echo_n "(cached) " >&6
10474else
10475 if test "$cross_compiling" = yes; then :
10476 lt_cv_dlopen_self=cross
10477else
10478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10479 lt_status=$lt_dlunknown
10480 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnant2c84e532009-10-14 05:31:38 +010010481#line 10481 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010482#include "confdefs.h"
10483
10484#if HAVE_DLFCN_H
10485#include <dlfcn.h>
10486#endif
10487
10488#include <stdio.h>
10489
10490#ifdef RTLD_GLOBAL
10491# define LT_DLGLOBAL RTLD_GLOBAL
10492#else
10493# ifdef DL_GLOBAL
10494# define LT_DLGLOBAL DL_GLOBAL
10495# else
10496# define LT_DLGLOBAL 0
10497# endif
10498#endif
10499
10500/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10501 find out it does not work in some platform. */
10502#ifndef LT_DLLAZY_OR_NOW
10503# ifdef RTLD_LAZY
10504# define LT_DLLAZY_OR_NOW RTLD_LAZY
10505# else
10506# ifdef DL_LAZY
10507# define LT_DLLAZY_OR_NOW DL_LAZY
10508# else
10509# ifdef RTLD_NOW
10510# define LT_DLLAZY_OR_NOW RTLD_NOW
10511# else
10512# ifdef DL_NOW
10513# define LT_DLLAZY_OR_NOW DL_NOW
10514# else
10515# define LT_DLLAZY_OR_NOW 0
10516# endif
10517# endif
10518# endif
10519# endif
10520#endif
10521
10522void fnord() { int i=42;}
10523int main ()
10524{
10525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10526 int status = $lt_dlunknown;
10527
10528 if (self)
10529 {
10530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10532 /* dlclose (self); */
10533 }
10534 else
10535 puts (dlerror ());
10536
10537 return status;
10538}
10539_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010541 (eval $ac_link) 2>&5
10542 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010545 (./conftest; exit; ) >&5 2>/dev/null
10546 lt_status=$?
10547 case x$lt_status in
10548 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10549 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10550 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10551 esac
10552 else :
10553 # compilation failed
10554 lt_cv_dlopen_self=no
10555 fi
10556fi
10557rm -fr conftest*
10558
10559
10560fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010562$as_echo "$lt_cv_dlopen_self" >&6; }
10563
10564 if test "x$lt_cv_dlopen_self" = xyes; then
10565 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010566 { $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 +010010567$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010568if test "${lt_cv_dlopen_self_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010569 $as_echo_n "(cached) " >&6
10570else
10571 if test "$cross_compiling" = yes; then :
10572 lt_cv_dlopen_self_static=cross
10573else
10574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10575 lt_status=$lt_dlunknown
10576 cat > conftest.$ac_ext <<_LT_EOF
Scott James Remnant2c84e532009-10-14 05:31:38 +010010577#line 10577 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010578#include "confdefs.h"
10579
10580#if HAVE_DLFCN_H
10581#include <dlfcn.h>
10582#endif
10583
10584#include <stdio.h>
10585
10586#ifdef RTLD_GLOBAL
10587# define LT_DLGLOBAL RTLD_GLOBAL
10588#else
10589# ifdef DL_GLOBAL
10590# define LT_DLGLOBAL DL_GLOBAL
10591# else
10592# define LT_DLGLOBAL 0
10593# endif
10594#endif
10595
10596/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10597 find out it does not work in some platform. */
10598#ifndef LT_DLLAZY_OR_NOW
10599# ifdef RTLD_LAZY
10600# define LT_DLLAZY_OR_NOW RTLD_LAZY
10601# else
10602# ifdef DL_LAZY
10603# define LT_DLLAZY_OR_NOW DL_LAZY
10604# else
10605# ifdef RTLD_NOW
10606# define LT_DLLAZY_OR_NOW RTLD_NOW
10607# else
10608# ifdef DL_NOW
10609# define LT_DLLAZY_OR_NOW DL_NOW
10610# else
10611# define LT_DLLAZY_OR_NOW 0
10612# endif
10613# endif
10614# endif
10615# endif
10616#endif
10617
10618void fnord() { int i=42;}
10619int main ()
10620{
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10623
10624 if (self)
10625 {
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628 /* dlclose (self); */
10629 }
10630 else
10631 puts (dlerror ());
10632
10633 return status;
10634}
10635_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010637 (eval $ac_link) 2>&5
10638 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10640 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010641 (./conftest; exit; ) >&5 2>/dev/null
10642 lt_status=$?
10643 case x$lt_status in
10644 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10645 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10646 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10647 esac
10648 else :
10649 # compilation failed
10650 lt_cv_dlopen_self_static=no
10651 fi
10652fi
10653rm -fr conftest*
10654
10655
10656fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010658$as_echo "$lt_cv_dlopen_self_static" >&6; }
10659 fi
10660
10661 CPPFLAGS="$save_CPPFLAGS"
10662 LDFLAGS="$save_LDFLAGS"
10663 LIBS="$save_LIBS"
10664 ;;
10665 esac
10666
10667 case $lt_cv_dlopen_self in
10668 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10669 *) enable_dlopen_self=unknown ;;
10670 esac
10671
10672 case $lt_cv_dlopen_self_static in
10673 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10674 *) enable_dlopen_self_static=unknown ;;
10675 esac
10676fi
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694striplib=
10695old_striplib=
Scott James Remnantfde82c92009-09-22 10:04:15 -070010696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010697$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10698if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10699 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10700 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010702$as_echo "yes" >&6; }
10703else
10704# FIXME - insert some real tests, host_os isn't really good enough
10705 case $host_os in
10706 darwin*)
10707 if test -n "$STRIP" ; then
10708 striplib="$STRIP -x"
10709 old_striplib="$STRIP -S"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010711$as_echo "yes" >&6; }
10712 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010714$as_echo "no" >&6; }
10715 fi
10716 ;;
10717 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010719$as_echo "no" >&6; }
10720 ;;
10721 esac
10722fi
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735 # Report which library types will actually be built
Scott James Remnantfde82c92009-09-22 10:04:15 -070010736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010737$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010739$as_echo "$can_build_shared" >&6; }
10740
Scott James Remnantfde82c92009-09-22 10:04:15 -070010741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010742$as_echo_n "checking whether to build shared libraries... " >&6; }
10743 test "$can_build_shared" = "no" && enable_shared=no
10744
10745 # On AIX, shared libraries and static libraries use the same namespace, and
10746 # are all built from PIC.
10747 case $host_os in
10748 aix3*)
10749 test "$enable_shared" = yes && enable_static=no
10750 if test -n "$RANLIB"; then
10751 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10752 postinstall_cmds='$RANLIB $lib'
10753 fi
10754 ;;
10755
10756 aix[4-9]*)
10757 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10758 test "$enable_shared" = yes && enable_static=no
10759 fi
10760 ;;
10761 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010763$as_echo "$enable_shared" >&6; }
10764
Scott James Remnantfde82c92009-09-22 10:04:15 -070010765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010766$as_echo_n "checking whether to build static libraries... " >&6; }
10767 # Make sure either enable_shared or enable_static is yes.
10768 test "$enable_shared" = yes || enable_static=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070010769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010770$as_echo "$enable_static" >&6; }
10771
10772
10773
10774
10775fi
10776ac_ext=c
10777ac_cpp='$CPP $CPPFLAGS'
10778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780ac_compiler_gnu=$ac_cv_c_compiler_gnu
10781
10782CC="$lt_save_CC"
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 ac_config_commands="$ac_config_commands libtool"
10797
10798
10799
10800
10801# Only expand once:
10802
10803
10804
10805
10806
Scott James Remnantfde82c92009-09-22 10:04:15 -070010807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010808$as_echo_n "checking whether NLS is requested... " >&6; }
10809 # Check whether --enable-nls was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010810if test "${enable_nls+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010811 enableval=$enable_nls; USE_NLS=$enableval
10812else
10813 USE_NLS=yes
10814fi
10815
Scott James Remnantfde82c92009-09-22 10:04:15 -070010816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010817$as_echo "$USE_NLS" >&6; }
10818
10819
10820
10821
10822
10823
10824# Prepare PATH_SEPARATOR.
10825# The user is always right.
10826if test "${PATH_SEPARATOR+set}" != set; then
10827 echo "#! /bin/sh" >conf$$.sh
10828 echo "exit 0" >>conf$$.sh
10829 chmod +x conf$$.sh
10830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10831 PATH_SEPARATOR=';'
10832 else
10833 PATH_SEPARATOR=:
10834 fi
10835 rm -f conf$$.sh
10836fi
10837
10838# Find out how to test for executable files. Don't use a zero-byte file,
10839# as systems may use methods other than mode bits to determine executability.
10840cat >conf$$.file <<_ASEOF
10841#! /bin/sh
10842exit 0
10843_ASEOF
10844chmod +x conf$$.file
10845if test -x conf$$.file >/dev/null 2>&1; then
10846 ac_executable_p="test -x"
10847else
10848 ac_executable_p="test -f"
10849fi
10850rm -f conf$$.file
10851
10852# Extract the first word of "msgfmt", so it can be a program name with args.
10853set dummy msgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010855$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010856if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010857 $as_echo_n "(cached) " >&6
10858else
10859 case "$MSGFMT" in
10860 [\\/]* | ?:[\\/]*)
10861 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10862 ;;
10863 *)
10864 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10865 for ac_dir in $PATH; do
10866 IFS="$ac_save_IFS"
10867 test -z "$ac_dir" && ac_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10870 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10871 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10872 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10873 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10874 break 2
10875 fi
10876 fi
10877 done
10878 done
10879 IFS="$ac_save_IFS"
10880 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10881 ;;
10882esac
10883fi
10884MSGFMT="$ac_cv_path_MSGFMT"
10885if test "$MSGFMT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010887$as_echo "$MSGFMT" >&6; }
10888else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010890$as_echo "no" >&6; }
10891fi
10892
10893 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10894set dummy gmsgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010896$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010897if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010898 $as_echo_n "(cached) " >&6
10899else
10900 case $GMSGFMT in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10903 ;;
10904 *)
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906for as_dir in $PATH
10907do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010910 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010010911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010914 break 2
10915 fi
10916done
Scott James Remnantfde82c92009-09-22 10:04:15 -070010917 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010010918IFS=$as_save_IFS
10919
10920 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10921 ;;
10922esac
10923fi
10924GMSGFMT=$ac_cv_path_GMSGFMT
10925if test -n "$GMSGFMT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010927$as_echo "$GMSGFMT" >&6; }
10928else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010930$as_echo "no" >&6; }
10931fi
10932
10933
10934
10935 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10936 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10937 *) MSGFMT_015=$MSGFMT ;;
10938 esac
10939
10940 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10941 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10942 *) GMSGFMT_015=$GMSGFMT ;;
10943 esac
10944
10945
10946
10947# Prepare PATH_SEPARATOR.
10948# The user is always right.
10949if test "${PATH_SEPARATOR+set}" != set; then
10950 echo "#! /bin/sh" >conf$$.sh
10951 echo "exit 0" >>conf$$.sh
10952 chmod +x conf$$.sh
10953 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10954 PATH_SEPARATOR=';'
10955 else
10956 PATH_SEPARATOR=:
10957 fi
10958 rm -f conf$$.sh
10959fi
10960
10961# Find out how to test for executable files. Don't use a zero-byte file,
10962# as systems may use methods other than mode bits to determine executability.
10963cat >conf$$.file <<_ASEOF
10964#! /bin/sh
10965exit 0
10966_ASEOF
10967chmod +x conf$$.file
10968if test -x conf$$.file >/dev/null 2>&1; then
10969 ac_executable_p="test -x"
10970else
10971 ac_executable_p="test -f"
10972fi
10973rm -f conf$$.file
10974
10975# Extract the first word of "xgettext", so it can be a program name with args.
10976set dummy xgettext; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010978$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010979if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010980 $as_echo_n "(cached) " >&6
10981else
10982 case "$XGETTEXT" in
10983 [\\/]* | ?:[\\/]*)
10984 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10985 ;;
10986 *)
10987 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10988 for ac_dir in $PATH; do
10989 IFS="$ac_save_IFS"
10990 test -z "$ac_dir" && ac_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10993 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10994 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10995 (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
10996 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10997 break 2
10998 fi
10999 fi
11000 done
11001 done
11002 IFS="$ac_save_IFS"
11003 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11004 ;;
11005esac
11006fi
11007XGETTEXT="$ac_cv_path_XGETTEXT"
11008if test "$XGETTEXT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011010$as_echo "$XGETTEXT" >&6; }
11011else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011013$as_echo "no" >&6; }
11014fi
11015
11016 rm -f messages.po
11017
11018 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11019 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11020 *) XGETTEXT_015=$XGETTEXT ;;
11021 esac
11022
11023
11024
11025# Prepare PATH_SEPARATOR.
11026# The user is always right.
11027if test "${PATH_SEPARATOR+set}" != set; then
11028 echo "#! /bin/sh" >conf$$.sh
11029 echo "exit 0" >>conf$$.sh
11030 chmod +x conf$$.sh
11031 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11032 PATH_SEPARATOR=';'
11033 else
11034 PATH_SEPARATOR=:
11035 fi
11036 rm -f conf$$.sh
11037fi
11038
11039# Find out how to test for executable files. Don't use a zero-byte file,
11040# as systems may use methods other than mode bits to determine executability.
11041cat >conf$$.file <<_ASEOF
11042#! /bin/sh
11043exit 0
11044_ASEOF
11045chmod +x conf$$.file
11046if test -x conf$$.file >/dev/null 2>&1; then
11047 ac_executable_p="test -x"
11048else
11049 ac_executable_p="test -f"
11050fi
11051rm -f conf$$.file
11052
11053# Extract the first word of "msgmerge", so it can be a program name with args.
11054set dummy msgmerge; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011056$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011057if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011058 $as_echo_n "(cached) " >&6
11059else
11060 case "$MSGMERGE" in
11061 [\\/]* | ?:[\\/]*)
11062 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11063 ;;
11064 *)
11065 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11066 for ac_dir in $PATH; do
11067 IFS="$ac_save_IFS"
11068 test -z "$ac_dir" && ac_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11071 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11072 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11073 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11074 break 2
11075 fi
11076 fi
11077 done
11078 done
11079 IFS="$ac_save_IFS"
11080 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11081 ;;
11082esac
11083fi
11084MSGMERGE="$ac_cv_path_MSGMERGE"
11085if test "$MSGMERGE" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011087$as_echo "$MSGMERGE" >&6; }
11088else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011090$as_echo "no" >&6; }
11091fi
11092
11093
11094 test -n "$localedir" || localedir='${datadir}/locale'
11095
11096
11097 ac_config_commands="$ac_config_commands po-directories"
11098
11099
11100
Scott James Remnantfde82c92009-09-22 10:04:15 -070011101 { $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 +010011102$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011103if test "${ac_cv_gnu_library_2+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011104 $as_echo_n "(cached) " >&6
11105else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011107/* end confdefs.h. */
11108
11109#include <features.h>
11110#ifdef __GNU_LIBRARY__
11111 #if (__GLIBC__ >= 2)
11112 Lucky GNU user
11113 #endif
11114#endif
11115
11116_ACEOF
11117if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011118 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011119 ac_cv_gnu_library_2=yes
11120else
11121 ac_cv_gnu_library_2=no
11122fi
11123rm -f conftest*
11124
11125
11126
11127fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011129$as_echo "$ac_cv_gnu_library_2" >&6; }
11130
11131 GLIBC2="$ac_cv_gnu_library_2"
11132
11133
11134if test -n "$ac_tool_prefix"; then
11135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11136set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011138$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011139if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011140 $as_echo_n "(cached) " >&6
11141else
11142 if test -n "$RANLIB"; then
11143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11144else
11145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146for as_dir in $PATH
11147do
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011150 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011154 break 2
11155 fi
11156done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011157 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011158IFS=$as_save_IFS
11159
11160fi
11161fi
11162RANLIB=$ac_cv_prog_RANLIB
11163if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011165$as_echo "$RANLIB" >&6; }
11166else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011168$as_echo "no" >&6; }
11169fi
11170
11171
11172fi
11173if test -z "$ac_cv_prog_RANLIB"; then
11174 ac_ct_RANLIB=$RANLIB
11175 # Extract the first word of "ranlib", so it can be a program name with args.
11176set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011178$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011179if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011180 $as_echo_n "(cached) " >&6
11181else
11182 if test -n "$ac_ct_RANLIB"; then
11183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11184else
11185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186for as_dir in $PATH
11187do
11188 IFS=$as_save_IFS
11189 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011190 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11192 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011194 break 2
11195 fi
11196done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011197 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011198IFS=$as_save_IFS
11199
11200fi
11201fi
11202ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11203if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011205$as_echo "$ac_ct_RANLIB" >&6; }
11206else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011208$as_echo "no" >&6; }
11209fi
11210
11211 if test "x$ac_ct_RANLIB" = x; then
11212 RANLIB=":"
11213 else
11214 case $cross_compiling:$ac_tool_warned in
11215yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070011216{ $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 +010011217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11218ac_tool_warned=yes ;;
11219esac
11220 RANLIB=$ac_ct_RANLIB
11221 fi
11222else
11223 RANLIB="$ac_cv_prog_RANLIB"
11224fi
11225
11226
11227
11228 CFLAG_VISIBILITY=
11229 HAVE_VISIBILITY=0
11230 if test -n "$GCC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011232$as_echo_n "checking for simple visibility declarations... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011233 if test "${gl_cv_cc_visibility+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011234 $as_echo_n "(cached) " >&6
11235else
11236
11237 gl_save_CFLAGS="$CFLAGS"
11238 CFLAGS="$CFLAGS -fvisibility=hidden"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011240/* end confdefs.h. */
11241extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11242 extern __attribute__((__visibility__("default"))) int exportedvar;
11243 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11244 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11245int
11246main ()
11247{
11248
11249 ;
11250 return 0;
11251}
11252_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011253if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011254 gl_cv_cc_visibility=yes
11255else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011256 gl_cv_cc_visibility=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011257fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 CFLAGS="$gl_save_CFLAGS"
11260fi
11261
Scott James Remnantfde82c92009-09-22 10:04:15 -070011262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011263$as_echo "$gl_cv_cc_visibility" >&6; }
11264 if test $gl_cv_cc_visibility = yes; then
11265 CFLAG_VISIBILITY="-fvisibility=hidden"
11266 HAVE_VISIBILITY=1
11267 fi
11268 fi
11269
11270
11271
11272cat >>confdefs.h <<_ACEOF
11273#define HAVE_VISIBILITY $HAVE_VISIBILITY
11274_ACEOF
11275
11276
Scott James Remnantfde82c92009-09-22 10:04:15 -070011277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011278$as_echo_n "checking for inline... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011279if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011280 $as_echo_n "(cached) " >&6
11281else
11282 ac_cv_c_inline=no
11283for ac_kw in inline __inline__ __inline; do
Scott James Remnantfde82c92009-09-22 10:04:15 -070011284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011285/* end confdefs.h. */
11286#ifndef __cplusplus
11287typedef int foo_t;
11288static $ac_kw foo_t static_foo () {return 0; }
11289$ac_kw foo_t foo () {return 0; }
11290#endif
11291
11292_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011293if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011294 ac_cv_c_inline=$ac_kw
Scott James Remnant65f683d2009-07-14 13:05:17 +010011295fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 test "$ac_cv_c_inline" != no && break
11298done
11299
11300fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011302$as_echo "$ac_cv_c_inline" >&6; }
11303
Scott James Remnant65f683d2009-07-14 13:05:17 +010011304case $ac_cv_c_inline in
11305 inline | yes) ;;
11306 *)
11307 case $ac_cv_c_inline in
11308 no) ac_val=;;
11309 *) ac_val=$ac_cv_c_inline;;
11310 esac
11311 cat >>confdefs.h <<_ACEOF
11312#ifndef __cplusplus
11313#define inline $ac_val
11314#endif
11315_ACEOF
11316 ;;
11317esac
11318
Scott James Remnantfde82c92009-09-22 10:04:15 -070011319ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11320if test "x$ac_cv_type_size_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011321
Scott James Remnant65f683d2009-07-14 13:05:17 +010011322else
11323
11324cat >>confdefs.h <<_ACEOF
11325#define size_t unsigned int
11326_ACEOF
11327
11328fi
11329
11330
Scott James Remnantfde82c92009-09-22 10:04:15 -070011331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011332$as_echo_n "checking for stdint.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011333if test "${gl_cv_header_stdint_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011334 $as_echo_n "(cached) " >&6
11335else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011337/* end confdefs.h. */
11338#include <sys/types.h>
11339#include <stdint.h>
11340int
11341main ()
11342{
11343uintmax_t i = (uintmax_t) -1; return !i;
11344 ;
11345 return 0;
11346}
11347_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011348if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011349 gl_cv_header_stdint_h=yes
11350else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011351 gl_cv_header_stdint_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011352fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011356$as_echo "$gl_cv_header_stdint_h" >&6; }
11357 if test $gl_cv_header_stdint_h = yes; then
11358
11359cat >>confdefs.h <<_ACEOF
11360#define HAVE_STDINT_H_WITH_UINTMAX 1
11361_ACEOF
11362
11363 fi
11364
11365# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11366# for constant arguments. Useless!
Scott James Remnantfde82c92009-09-22 10:04:15 -070011367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011368$as_echo_n "checking for working alloca.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011369if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011370 $as_echo_n "(cached) " >&6
11371else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011373/* end confdefs.h. */
11374#include <alloca.h>
11375int
11376main ()
11377{
11378char *p = (char *) alloca (2 * sizeof (int));
11379 if (p) return 0;
11380 ;
11381 return 0;
11382}
11383_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011384if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011385 ac_cv_working_alloca_h=yes
11386else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011387 ac_cv_working_alloca_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011388fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011389rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011391fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011393$as_echo "$ac_cv_working_alloca_h" >&6; }
11394if test $ac_cv_working_alloca_h = yes; then
11395
Scott James Remnantfde82c92009-09-22 10:04:15 -070011396$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011397
11398fi
11399
Scott James Remnantfde82c92009-09-22 10:04:15 -070011400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011401$as_echo_n "checking for alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011402if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011403 $as_echo_n "(cached) " >&6
11404else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011406/* end confdefs.h. */
11407#ifdef __GNUC__
11408# define alloca __builtin_alloca
11409#else
11410# ifdef _MSC_VER
11411# include <malloc.h>
11412# define alloca _alloca
11413# else
11414# ifdef HAVE_ALLOCA_H
11415# include <alloca.h>
11416# else
11417# ifdef _AIX
11418 #pragma alloca
11419# else
11420# ifndef alloca /* predefined by HP cc +Olibcalls */
11421char *alloca ();
11422# endif
11423# endif
11424# endif
11425# endif
11426#endif
11427
11428int
11429main ()
11430{
11431char *p = (char *) alloca (1);
11432 if (p) return 0;
11433 ;
11434 return 0;
11435}
11436_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011437if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011438 ac_cv_func_alloca_works=yes
11439else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011440 ac_cv_func_alloca_works=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011441fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011442rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011444fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011446$as_echo "$ac_cv_func_alloca_works" >&6; }
11447
11448if test $ac_cv_func_alloca_works = yes; then
11449
Scott James Remnantfde82c92009-09-22 10:04:15 -070011450$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011451
11452else
11453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11454# that cause trouble. Some versions do not even contain alloca or
11455# contain a buggy version. If you still want to use their alloca,
11456# use ar to extract alloca.o from them instead of compiling alloca.c.
11457
11458ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11459
Scott James Remnantfde82c92009-09-22 10:04:15 -070011460$as_echo "#define C_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011461
11462
Scott James Remnantfde82c92009-09-22 10:04:15 -070011463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011464$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011465if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011466 $as_echo_n "(cached) " >&6
11467else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011469/* end confdefs.h. */
11470#if defined CRAY && ! defined CRAY2
11471webecray
11472#else
11473wenotbecray
11474#endif
11475
11476_ACEOF
11477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011478 $EGREP "webecray" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011479 ac_cv_os_cray=yes
11480else
11481 ac_cv_os_cray=no
11482fi
11483rm -f conftest*
11484
11485fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011487$as_echo "$ac_cv_os_cray" >&6; }
11488if test $ac_cv_os_cray = yes; then
11489 for ac_func in _getb67 GETB67 getb67; do
11490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Scott James Remnantfde82c92009-09-22 10:04:15 -070011491ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11492eval as_val=\$$as_ac_var
11493 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011494
11495cat >>confdefs.h <<_ACEOF
11496#define CRAY_STACKSEG_END $ac_func
11497_ACEOF
11498
11499 break
11500fi
11501
11502 done
11503fi
11504
Scott James Remnantfde82c92009-09-22 10:04:15 -070011505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011506$as_echo_n "checking stack direction for C alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011507if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011508 $as_echo_n "(cached) " >&6
11509else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011510 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011511 ac_cv_c_stack_direction=0
11512else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011514/* end confdefs.h. */
11515$ac_includes_default
11516int
11517find_stack_direction ()
11518{
11519 static char *addr = 0;
11520 auto char dummy;
11521 if (addr == 0)
11522 {
11523 addr = &dummy;
11524 return find_stack_direction ();
11525 }
11526 else
11527 return (&dummy > addr) ? 1 : -1;
11528}
11529
11530int
11531main ()
11532{
11533 return find_stack_direction () < 0;
11534}
11535_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011536if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011537 ac_cv_c_stack_direction=1
11538else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011539 ac_cv_c_stack_direction=-1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011540fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11542 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011543fi
11544
Scott James Remnant65f683d2009-07-14 13:05:17 +010011545fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011547$as_echo "$ac_cv_c_stack_direction" >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010011548cat >>confdefs.h <<_ACEOF
11549#define STACK_DIRECTION $ac_cv_c_stack_direction
11550_ACEOF
11551
11552
11553fi
11554
Scott James Remnant65f683d2009-07-14 13:05:17 +010011555for ac_header in stdlib.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070011556do :
11557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11558ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11559eval as_val=\$$as_ac_Header
11560 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011561 cat >>confdefs.h <<_ACEOF
11562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11563_ACEOF
11564
11565fi
11566
11567done
11568
Scott James Remnant65f683d2009-07-14 13:05:17 +010011569for ac_func in getpagesize
Scott James Remnantfde82c92009-09-22 10:04:15 -070011570do :
11571 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11572if test "x$ac_cv_func_getpagesize" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011573 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011574#define HAVE_GETPAGESIZE 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011575_ACEOF
11576
11577fi
11578done
11579
Scott James Remnantfde82c92009-09-22 10:04:15 -070011580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011581$as_echo_n "checking for working mmap... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011582if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011583 $as_echo_n "(cached) " >&6
11584else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011585 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011586 ac_cv_func_mmap_fixed_mapped=no
11587else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011589/* end confdefs.h. */
11590$ac_includes_default
11591/* malloc might have been renamed as rpl_malloc. */
11592#undef malloc
11593
11594/* Thanks to Mike Haertel and Jim Avera for this test.
11595 Here is a matrix of mmap possibilities:
11596 mmap private not fixed
11597 mmap private fixed at somewhere currently unmapped
11598 mmap private fixed at somewhere already mapped
11599 mmap shared not fixed
11600 mmap shared fixed at somewhere currently unmapped
11601 mmap shared fixed at somewhere already mapped
11602 For private mappings, we should verify that changes cannot be read()
11603 back from the file, nor mmap's back from the file at a different
11604 address. (There have been systems where private was not correctly
11605 implemented like the infamous i386 svr4.0, and systems where the
11606 VM page cache was not coherent with the file system buffer cache
11607 like early versions of FreeBSD and possibly contemporary NetBSD.)
11608 For shared mappings, we should conversely verify that changes get
11609 propagated back to all the places they're supposed to be.
11610
11611 Grep wants private fixed already mapped.
11612 The main things grep needs to know about mmap are:
11613 * does it exist and is it safe to write into the mmap'd area
11614 * how to use it (BSD variants) */
11615
11616#include <fcntl.h>
11617#include <sys/mman.h>
11618
11619#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11620char *malloc ();
11621#endif
11622
11623/* This mess was copied from the GNU getpagesize.h. */
11624#ifndef HAVE_GETPAGESIZE
11625/* Assume that all systems that can run configure have sys/param.h. */
11626# ifndef HAVE_SYS_PARAM_H
11627# define HAVE_SYS_PARAM_H 1
11628# endif
11629
11630# ifdef _SC_PAGESIZE
11631# define getpagesize() sysconf(_SC_PAGESIZE)
11632# else /* no _SC_PAGESIZE */
11633# ifdef HAVE_SYS_PARAM_H
11634# include <sys/param.h>
11635# ifdef EXEC_PAGESIZE
11636# define getpagesize() EXEC_PAGESIZE
11637# else /* no EXEC_PAGESIZE */
11638# ifdef NBPG
11639# define getpagesize() NBPG * CLSIZE
11640# ifndef CLSIZE
11641# define CLSIZE 1
11642# endif /* no CLSIZE */
11643# else /* no NBPG */
11644# ifdef NBPC
11645# define getpagesize() NBPC
11646# else /* no NBPC */
11647# ifdef PAGESIZE
11648# define getpagesize() PAGESIZE
11649# endif /* PAGESIZE */
11650# endif /* no NBPC */
11651# endif /* no NBPG */
11652# endif /* no EXEC_PAGESIZE */
11653# else /* no HAVE_SYS_PARAM_H */
11654# define getpagesize() 8192 /* punt totally */
11655# endif /* no HAVE_SYS_PARAM_H */
11656# endif /* no _SC_PAGESIZE */
11657
11658#endif /* no HAVE_GETPAGESIZE */
11659
11660int
11661main ()
11662{
11663 char *data, *data2, *data3;
11664 int i, pagesize;
11665 int fd;
11666
11667 pagesize = getpagesize ();
11668
11669 /* First, make a file with some known garbage in it. */
11670 data = (char *) malloc (pagesize);
11671 if (!data)
11672 return 1;
11673 for (i = 0; i < pagesize; ++i)
11674 *(data + i) = rand ();
11675 umask (0);
11676 fd = creat ("conftest.mmap", 0600);
11677 if (fd < 0)
11678 return 1;
11679 if (write (fd, data, pagesize) != pagesize)
11680 return 1;
11681 close (fd);
11682
11683 /* Next, try to mmap the file at a fixed address which already has
11684 something else allocated at it. If we can, also make sure that
11685 we see the same garbage. */
11686 fd = open ("conftest.mmap", O_RDWR);
11687 if (fd < 0)
11688 return 1;
11689 data2 = (char *) malloc (2 * pagesize);
11690 if (!data2)
11691 return 1;
11692 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11693 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11694 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11695 return 1;
11696 for (i = 0; i < pagesize; ++i)
11697 if (*(data + i) != *(data2 + i))
11698 return 1;
11699
11700 /* Finally, make sure that changes to the mapped area do not
11701 percolate back to the file as seen by read(). (This is a bug on
11702 some variants of i386 svr4.0.) */
11703 for (i = 0; i < pagesize; ++i)
11704 *(data2 + i) = *(data2 + i) + 1;
11705 data3 = (char *) malloc (pagesize);
11706 if (!data3)
11707 return 1;
11708 if (read (fd, data3, pagesize) != pagesize)
11709 return 1;
11710 for (i = 0; i < pagesize; ++i)
11711 if (*(data + i) != *(data3 + i))
11712 return 1;
11713 close (fd);
11714 return 0;
11715}
11716_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011717if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011718 ac_cv_func_mmap_fixed_mapped=yes
11719else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011720 ac_cv_func_mmap_fixed_mapped=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011721fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11723 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011724fi
11725
Scott James Remnant65f683d2009-07-14 13:05:17 +010011726fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011728$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11729if test $ac_cv_func_mmap_fixed_mapped = yes; then
11730
Scott James Remnantfde82c92009-09-22 10:04:15 -070011731$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011732
11733fi
11734rm -f conftest.mmap
11735
11736
11737
Scott James Remnantfde82c92009-09-22 10:04:15 -070011738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011739$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011740if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011741 $as_echo_n "(cached) " >&6
11742else
11743
Scott James Remnantfde82c92009-09-22 10:04:15 -070011744 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011745
11746 # Guess based on the CPU.
11747 case "$host_cpu" in
11748 alpha* | i3456786 | m68k | s390*)
11749 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11750 *)
11751 gt_cv_int_divbyzero_sigfpe="guessing no";;
11752 esac
11753
11754else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011756/* end confdefs.h. */
11757
11758#include <stdlib.h>
11759#include <signal.h>
11760
11761static void
11762#ifdef __cplusplus
11763sigfpe_handler (int sig)
11764#else
11765sigfpe_handler (sig) int sig;
11766#endif
11767{
11768 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11769 exit (sig != SIGFPE);
11770}
11771
11772int x = 1;
11773int y = 0;
11774int z;
11775int nan;
11776
11777int main ()
11778{
11779 signal (SIGFPE, sigfpe_handler);
11780/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11781#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11782 signal (SIGTRAP, sigfpe_handler);
11783#endif
11784/* Linux/SPARC yields signal SIGILL. */
11785#if defined (__sparc__) && defined (__linux__)
11786 signal (SIGILL, sigfpe_handler);
11787#endif
11788
11789 z = x / y;
11790 nan = y / y;
11791 exit (1);
11792}
11793
11794_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011795if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011796 gt_cv_int_divbyzero_sigfpe=yes
11797else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011798 gt_cv_int_divbyzero_sigfpe=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011799fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11801 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011802fi
11803
11804
Scott James Remnant65f683d2009-07-14 13:05:17 +010011805fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011807$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11808 case "$gt_cv_int_divbyzero_sigfpe" in
11809 *yes) value=1;;
11810 *) value=0;;
11811 esac
11812
11813cat >>confdefs.h <<_ACEOF
11814#define INTDIV0_RAISES_SIGFPE $value
11815_ACEOF
11816
11817
11818
Scott James Remnantfde82c92009-09-22 10:04:15 -070011819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011820$as_echo_n "checking for inttypes.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011821if test "${gl_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011822 $as_echo_n "(cached) " >&6
11823else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011825/* end confdefs.h. */
11826#include <sys/types.h>
11827#include <inttypes.h>
11828int
11829main ()
11830{
11831uintmax_t i = (uintmax_t) -1; return !i;
11832 ;
11833 return 0;
11834}
11835_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011836if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011837 gl_cv_header_inttypes_h=yes
11838else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011839 gl_cv_header_inttypes_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011840fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011844$as_echo "$gl_cv_header_inttypes_h" >&6; }
11845 if test $gl_cv_header_inttypes_h = yes; then
11846
11847cat >>confdefs.h <<_ACEOF
11848#define HAVE_INTTYPES_H_WITH_UINTMAX 1
11849_ACEOF
11850
11851 fi
11852
11853
Scott James Remnantfde82c92009-09-22 10:04:15 -070011854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011855$as_echo_n "checking for unsigned long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011856if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011857 $as_echo_n "(cached) " >&6
11858else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011860/* end confdefs.h. */
11861unsigned long long int ull = 18446744073709551615ULL;
11862 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11863 ? 1 : -1)];
11864 int i = 63;
11865int
11866main ()
11867{
11868unsigned long long int ullmax = 18446744073709551615ull;
11869 return (ull << 63 | ull >> 63 | ull << i | ull >> i
11870 | ullmax / ull | ullmax % ull);
11871 ;
11872 return 0;
11873}
11874_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011875if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011876 ac_cv_type_unsigned_long_long_int=yes
11877else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011878 ac_cv_type_unsigned_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011879fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011880rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011882fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011884$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11885 if test $ac_cv_type_unsigned_long_long_int = yes; then
11886
Scott James Remnantfde82c92009-09-22 10:04:15 -070011887$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011888
11889 fi
11890
11891
11892
11893 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
11894 if test $ac_cv_type_unsigned_long_long = yes; then
11895
Scott James Remnantfde82c92009-09-22 10:04:15 -070011896$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011897
11898 fi
11899
11900
11901
11902
11903 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11904
11905 test $ac_cv_type_unsigned_long_long = yes \
11906 && ac_type='unsigned long long' \
11907 || ac_type='unsigned long'
11908
11909cat >>confdefs.h <<_ACEOF
11910#define uintmax_t $ac_type
11911_ACEOF
11912
11913 else
11914
Scott James Remnantfde82c92009-09-22 10:04:15 -070011915$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011916
11917 fi
11918
11919
Scott James Remnantfde82c92009-09-22 10:04:15 -070011920 for ac_header in inttypes.h
11921do :
11922 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11923if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011924 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011925#define HAVE_INTTYPES_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011926_ACEOF
11927
11928fi
11929
11930done
11931
11932 if test $ac_cv_header_inttypes_h = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011933 { $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 +010011934$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011935if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011936 $as_echo_n "(cached) " >&6
11937else
11938
Scott James Remnantfde82c92009-09-22 10:04:15 -070011939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011940/* end confdefs.h. */
11941#include <inttypes.h>
11942#ifdef PRId32
11943char *p = PRId32;
11944#endif
11945
11946int
11947main ()
11948{
11949
11950 ;
11951 return 0;
11952}
11953_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011954if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011955 gt_cv_inttypes_pri_broken=no
11956else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011957 gt_cv_inttypes_pri_broken=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010011958fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960
11961fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011963$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11964 fi
11965 if test "$gt_cv_inttypes_pri_broken" = yes; then
11966
11967cat >>confdefs.h <<_ACEOF
11968#define PRI_MACROS_BROKEN 1
11969_ACEOF
11970
11971 PRI_MACROS_BROKEN=1
11972 else
11973 PRI_MACROS_BROKEN=0
11974 fi
11975
11976
11977
11978
11979
11980 # Check whether --enable-threads was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011981if test "${enable_threads+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011982 enableval=$enable_threads; gl_use_threads=$enableval
11983else
11984 case "$host_os" in
11985 osf*) gl_use_threads=no ;;
11986 *) gl_use_threads=yes ;;
11987 esac
11988
11989fi
11990
11991 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
11992 # For using <pthread.h>:
11993 case "$host_os" in
11994 osf*)
11995 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
11996 # groks <pthread.h>. cc also understands the flag -pthread, but
11997 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
11998 # 2. putting a flag into CPPFLAGS that has an effect on the linker
11999 # causes the AC_TRY_LINK test below to succeed unexpectedly,
12000 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
12001 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
12002 ;;
12003 esac
12004 # Some systems optimize for single-threaded programs by default, and
12005 # need special flags to disable these optimizations. For example, the
12006 # definition of 'errno' in <errno.h>.
12007 case "$host_os" in
12008 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
12009 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
12010 esac
12011 fi
12012
12013
12014
12015
12016
12017 if test "X$prefix" = "XNONE"; then
12018 acl_final_prefix="$ac_default_prefix"
12019 else
12020 acl_final_prefix="$prefix"
12021 fi
12022 if test "X$exec_prefix" = "XNONE"; then
12023 acl_final_exec_prefix='${prefix}'
12024 else
12025 acl_final_exec_prefix="$exec_prefix"
12026 fi
12027 acl_save_prefix="$prefix"
12028 prefix="$acl_final_prefix"
12029 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12030 prefix="$acl_save_prefix"
12031
12032
12033# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012034if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012035 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12036else
12037 with_gnu_ld=no
12038fi
12039
12040# Prepare PATH_SEPARATOR.
12041# The user is always right.
12042if test "${PATH_SEPARATOR+set}" != set; then
12043 echo "#! /bin/sh" >conf$$.sh
12044 echo "exit 0" >>conf$$.sh
12045 chmod +x conf$$.sh
12046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12047 PATH_SEPARATOR=';'
12048 else
12049 PATH_SEPARATOR=:
12050 fi
12051 rm -f conf$$.sh
12052fi
12053ac_prog=ld
12054if test "$GCC" = yes; then
12055 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012057$as_echo_n "checking for ld used by GCC... " >&6; }
12058 case $host in
12059 *-*-mingw*)
12060 # gcc leaves a trailing carriage return which upsets mingw
12061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12062 *)
12063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12064 esac
12065 case $ac_prog in
12066 # Accept absolute paths.
12067 [\\/]* | [A-Za-z]:[\\/]*)
12068 re_direlt='/[^/][^/]*/\.\./'
12069 # Canonicalize the path of ld
12070 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12071 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12072 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12073 done
12074 test -z "$LD" && LD="$ac_prog"
12075 ;;
12076 "")
12077 # If it fails, then pretend we aren't using GCC.
12078 ac_prog=ld
12079 ;;
12080 *)
12081 # If it is relative, then search for the first ld in PATH.
12082 with_gnu_ld=unknown
12083 ;;
12084 esac
12085elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012087$as_echo_n "checking for GNU ld... " >&6; }
12088else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012090$as_echo_n "checking for non-GNU ld... " >&6; }
12091fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012092if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012093 $as_echo_n "(cached) " >&6
12094else
12095 if test -z "$LD"; then
12096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12097 for ac_dir in $PATH; do
12098 test -z "$ac_dir" && ac_dir=.
12099 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12100 acl_cv_path_LD="$ac_dir/$ac_prog"
12101 # Check to see if the program is GNU ld. I'd rather use --version,
12102 # but apparently some GNU ld's only accept -v.
12103 # Break only if it was the GNU/non-GNU ld that we prefer.
12104 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12105 *GNU* | *'with BFD'*)
12106 test "$with_gnu_ld" != no && break ;;
12107 *)
12108 test "$with_gnu_ld" != yes && break ;;
12109 esac
12110 fi
12111 done
12112 IFS="$ac_save_ifs"
12113else
12114 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12115fi
12116fi
12117
12118LD="$acl_cv_path_LD"
12119if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012121$as_echo "$LD" >&6; }
12122else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012124$as_echo "no" >&6; }
12125fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012126test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012128$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012129if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012130 $as_echo_n "(cached) " >&6
12131else
12132 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12133case `$LD -v 2>&1 </dev/null` in
12134*GNU* | *'with BFD'*)
12135 acl_cv_prog_gnu_ld=yes ;;
12136*)
12137 acl_cv_prog_gnu_ld=no ;;
12138esac
12139fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012141$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12142with_gnu_ld=$acl_cv_prog_gnu_ld
12143
12144
12145
12146
Scott James Remnantfde82c92009-09-22 10:04:15 -070012147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012148$as_echo_n "checking for shared library run path origin... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012149if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012150 $as_echo_n "(cached) " >&6
12151else
12152
12153 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12154 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12155 . ./conftest.sh
12156 rm -f ./conftest.sh
12157 acl_cv_rpath=done
12158
12159fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012161$as_echo "$acl_cv_rpath" >&6; }
12162 wl="$acl_cv_wl"
12163 libext="$acl_cv_libext"
12164 shlibext="$acl_cv_shlibext"
12165 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12166 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12167 hardcode_direct="$acl_cv_hardcode_direct"
12168 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12169 # Check whether --enable-rpath was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012170if test "${enable_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012171 enableval=$enable_rpath; :
12172else
12173 enable_rpath=yes
12174fi
12175
12176
12177
12178 acl_libdirstem=lib
12179 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12180 if test -n "$searchpath"; then
12181 acl_save_IFS="${IFS= }"; IFS=":"
12182 for searchdir in $searchpath; do
12183 if test -d "$searchdir"; then
12184 case "$searchdir" in
12185 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12186 *) searchdir=`cd "$searchdir" && pwd`
12187 case "$searchdir" in
12188 */lib64 ) acl_libdirstem=lib64 ;;
12189 esac ;;
12190 esac
12191 fi
12192 done
12193 IFS="$acl_save_IFS"
12194 fi
12195
12196
12197
12198 gl_threads_api=none
12199 LIBTHREAD=
12200 LTLIBTHREAD=
12201 LIBMULTITHREAD=
12202 LTLIBMULTITHREAD=
12203 if test "$gl_use_threads" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012205$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12206 gl_have_weak=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070012207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012208/* end confdefs.h. */
12209extern void xyzzy ();
12210#pragma weak xyzzy
12211int
12212main ()
12213{
12214xyzzy();
12215 ;
12216 return 0;
12217}
12218_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012219if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012220 gl_have_weak=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012221fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012222rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012225$as_echo "$gl_have_weak" >&6; }
12226 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12227 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12228 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012229 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12230if test "x$ac_cv_header_pthread_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012231 gl_have_pthread_h=yes
12232else
12233 gl_have_pthread_h=no
12234fi
12235
12236
12237 if test "$gl_have_pthread_h" = yes; then
12238 # Other possible tests:
12239 # -lpthreads (FSU threads, PCthreads)
12240 # -lgthreads
12241 gl_have_pthread=
12242 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12243 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12244 # the second one only in libpthread, and lock.c needs it.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012246/* end confdefs.h. */
12247#include <pthread.h>
12248int
12249main ()
12250{
12251pthread_mutex_lock((pthread_mutex_t*)0);
12252 pthread_mutexattr_init((pthread_mutexattr_t*)0);
12253 ;
12254 return 0;
12255}
12256_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012257if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012258 gl_have_pthread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012259fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012260rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012262 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12263 # since it is defined as a macro on OSF/1.)
12264 if test -n "$gl_have_pthread"; then
12265 # The program links fine without libpthread. But it may actually
12266 # need to link with libpthread in order to create multiple threads.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012268$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012269if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012270 $as_echo_n "(cached) " >&6
12271else
12272 ac_check_lib_save_LIBS=$LIBS
12273LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012275/* end confdefs.h. */
12276
12277/* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12280#ifdef __cplusplus
12281extern "C"
12282#endif
12283char pthread_kill ();
12284int
12285main ()
12286{
12287return pthread_kill ();
12288 ;
12289 return 0;
12290}
12291_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012292if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012293 ac_cv_lib_pthread_pthread_kill=yes
12294else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012295 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012296fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012297rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012299LIBS=$ac_check_lib_save_LIBS
12300fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012302$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012303if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012304 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12305 # On Solaris and HP-UX, most pthread functions exist also in libc.
12306 # Therefore pthread_in_use() needs to actually try to create a
12307 # thread: pthread_create from libc will fail, whereas
12308 # pthread_create will actually create a thread.
12309 case "$host_os" in
12310 solaris* | hpux*)
12311
Scott James Remnantfde82c92009-09-22 10:04:15 -070012312$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012313
12314 esac
12315
12316fi
12317
12318 else
12319 # Some library is needed. Try libpthread and libc_r.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012321$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012322if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012323 $as_echo_n "(cached) " >&6
12324else
12325 ac_check_lib_save_LIBS=$LIBS
12326LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012328/* end confdefs.h. */
12329
12330/* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333#ifdef __cplusplus
12334extern "C"
12335#endif
12336char pthread_kill ();
12337int
12338main ()
12339{
12340return pthread_kill ();
12341 ;
12342 return 0;
12343}
12344_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012345if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012346 ac_cv_lib_pthread_pthread_kill=yes
12347else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012348 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012349fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012350rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012352LIBS=$ac_check_lib_save_LIBS
12353fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012355$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012356if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012357 gl_have_pthread=yes
12358 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
12359 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12360fi
12361
12362 if test -z "$gl_have_pthread"; then
12363 # For FreeBSD 4.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012365$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012366if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012367 $as_echo_n "(cached) " >&6
12368else
12369 ac_check_lib_save_LIBS=$LIBS
12370LIBS="-lc_r $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012372/* end confdefs.h. */
12373
12374/* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377#ifdef __cplusplus
12378extern "C"
12379#endif
12380char pthread_kill ();
12381int
12382main ()
12383{
12384return pthread_kill ();
12385 ;
12386 return 0;
12387}
12388_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012389if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012390 ac_cv_lib_c_r_pthread_kill=yes
12391else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012392 ac_cv_lib_c_r_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012393fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012394rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012396LIBS=$ac_check_lib_save_LIBS
12397fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012399$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012400if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012401 gl_have_pthread=yes
12402 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12403 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12404fi
12405
12406 fi
12407 fi
12408 if test -n "$gl_have_pthread"; then
12409 gl_threads_api=posix
12410
Scott James Remnantfde82c92009-09-22 10:04:15 -070012411$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012412
12413 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12414 if test $gl_have_weak = yes; then
12415
Scott James Remnantfde82c92009-09-22 10:04:15 -070012416$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012417
12418 LIBTHREAD=
12419 LTLIBTHREAD=
12420 fi
12421 fi
12422 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
12423 # pthread_rwlock_* functions.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012424 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
12425"
12426if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012427
Scott James Remnantfde82c92009-09-22 10:04:15 -070012428$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012429
12430fi
12431
12432 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012434/* end confdefs.h. */
12435#include <pthread.h>
12436int
12437main ()
12438{
12439#if __FreeBSD__ == 4
12440error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
12441#else
12442int x = (int)PTHREAD_MUTEX_RECURSIVE;
12443return !x;
12444#endif
12445 ;
12446 return 0;
12447}
12448_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012449if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012450
Scott James Remnantfde82c92009-09-22 10:04:15 -070012451$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012452
12453fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010012454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 fi
12456 fi
12457 fi
12458 if test -z "$gl_have_pthread"; then
12459 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12460 gl_have_solaristhread=
12461 gl_save_LIBS="$LIBS"
12462 LIBS="$LIBS -lthread"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012464/* end confdefs.h. */
12465#include <thread.h>
12466#include <synch.h>
12467int
12468main ()
12469{
12470thr_self();
12471 ;
12472 return 0;
12473}
12474_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012475if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012476 gl_have_solaristhread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012477fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012478rm -f core conftest.err conftest.$ac_objext \
12479 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012480 LIBS="$gl_save_LIBS"
12481 if test -n "$gl_have_solaristhread"; then
12482 gl_threads_api=solaris
12483 LIBTHREAD=-lthread
12484 LTLIBTHREAD=-lthread
12485 LIBMULTITHREAD="$LIBTHREAD"
12486 LTLIBMULTITHREAD="$LTLIBTHREAD"
12487
Scott James Remnantfde82c92009-09-22 10:04:15 -070012488$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012489
12490 if test $gl_have_weak = yes; then
12491
Scott James Remnantfde82c92009-09-22 10:04:15 -070012492$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012493
12494 LIBTHREAD=
12495 LTLIBTHREAD=
12496 fi
12497 fi
12498 fi
12499 fi
12500 if test "$gl_use_threads" = pth; then
12501 gl_save_CPPFLAGS="$CPPFLAGS"
12502
12503
12504
12505
12506
Scott James Remnantfde82c92009-09-22 10:04:15 -070012507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012508$as_echo_n "checking how to link with libpth... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012509if test "${ac_cv_libpth_libs+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012510 $as_echo_n "(cached) " >&6
12511else
12512
12513
12514
12515
12516 use_additional=yes
12517
12518 acl_save_prefix="$prefix"
12519 prefix="$acl_final_prefix"
12520 acl_save_exec_prefix="$exec_prefix"
12521 exec_prefix="$acl_final_exec_prefix"
12522
12523 eval additional_includedir=\"$includedir\"
12524 eval additional_libdir=\"$libdir\"
12525
12526 exec_prefix="$acl_save_exec_prefix"
12527 prefix="$acl_save_prefix"
12528
12529
12530# Check whether --with-libpth-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012531if test "${with_libpth_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012532 withval=$with_libpth_prefix;
12533 if test "X$withval" = "Xno"; then
12534 use_additional=no
12535 else
12536 if test "X$withval" = "X"; then
12537
12538 acl_save_prefix="$prefix"
12539 prefix="$acl_final_prefix"
12540 acl_save_exec_prefix="$exec_prefix"
12541 exec_prefix="$acl_final_exec_prefix"
12542
12543 eval additional_includedir=\"$includedir\"
12544 eval additional_libdir=\"$libdir\"
12545
12546 exec_prefix="$acl_save_exec_prefix"
12547 prefix="$acl_save_prefix"
12548
12549 else
12550 additional_includedir="$withval/include"
12551 additional_libdir="$withval/$acl_libdirstem"
12552 fi
12553 fi
12554
12555fi
12556
12557 LIBPTH=
12558 LTLIBPTH=
12559 INCPTH=
12560 rpathdirs=
12561 ltrpathdirs=
12562 names_already_handled=
12563 names_next_round='pth '
12564 while test -n "$names_next_round"; do
12565 names_this_round="$names_next_round"
12566 names_next_round=
12567 for name in $names_this_round; do
12568 already_handled=
12569 for n in $names_already_handled; do
12570 if test "$n" = "$name"; then
12571 already_handled=yes
12572 break
12573 fi
12574 done
12575 if test -z "$already_handled"; then
12576 names_already_handled="$names_already_handled $name"
12577 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12578 eval value=\"\$HAVE_LIB$uppername\"
12579 if test -n "$value"; then
12580 if test "$value" = yes; then
12581 eval value=\"\$LIB$uppername\"
12582 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12583 eval value=\"\$LTLIB$uppername\"
12584 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12585 else
12586 :
12587 fi
12588 else
12589 found_dir=
12590 found_la=
12591 found_so=
12592 found_a=
12593 if test $use_additional = yes; then
12594 if test -n "$shlibext" \
12595 && { test -f "$additional_libdir/lib$name.$shlibext" \
12596 || { test "$shlibext" = dll \
12597 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12598 found_dir="$additional_libdir"
12599 if test -f "$additional_libdir/lib$name.$shlibext"; then
12600 found_so="$additional_libdir/lib$name.$shlibext"
12601 else
12602 found_so="$additional_libdir/lib$name.dll.a"
12603 fi
12604 if test -f "$additional_libdir/lib$name.la"; then
12605 found_la="$additional_libdir/lib$name.la"
12606 fi
12607 else
12608 if test -f "$additional_libdir/lib$name.$libext"; then
12609 found_dir="$additional_libdir"
12610 found_a="$additional_libdir/lib$name.$libext"
12611 if test -f "$additional_libdir/lib$name.la"; then
12612 found_la="$additional_libdir/lib$name.la"
12613 fi
12614 fi
12615 fi
12616 fi
12617 if test "X$found_dir" = "X"; then
12618 for x in $LDFLAGS $LTLIBPTH; do
12619
12620 acl_save_prefix="$prefix"
12621 prefix="$acl_final_prefix"
12622 acl_save_exec_prefix="$exec_prefix"
12623 exec_prefix="$acl_final_exec_prefix"
12624 eval x=\"$x\"
12625 exec_prefix="$acl_save_exec_prefix"
12626 prefix="$acl_save_prefix"
12627
12628 case "$x" in
12629 -L*)
12630 dir=`echo "X$x" | sed -e 's/^X-L//'`
12631 if test -n "$shlibext" \
12632 && { test -f "$dir/lib$name.$shlibext" \
12633 || { test "$shlibext" = dll \
12634 && test -f "$dir/lib$name.dll.a"; }; }; then
12635 found_dir="$dir"
12636 if test -f "$dir/lib$name.$shlibext"; then
12637 found_so="$dir/lib$name.$shlibext"
12638 else
12639 found_so="$dir/lib$name.dll.a"
12640 fi
12641 if test -f "$dir/lib$name.la"; then
12642 found_la="$dir/lib$name.la"
12643 fi
12644 else
12645 if test -f "$dir/lib$name.$libext"; then
12646 found_dir="$dir"
12647 found_a="$dir/lib$name.$libext"
12648 if test -f "$dir/lib$name.la"; then
12649 found_la="$dir/lib$name.la"
12650 fi
12651 fi
12652 fi
12653 ;;
12654 esac
12655 if test "X$found_dir" != "X"; then
12656 break
12657 fi
12658 done
12659 fi
12660 if test "X$found_dir" != "X"; then
12661 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12662 if test "X$found_so" != "X"; then
12663 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12664 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12665 else
12666 haveit=
12667 for x in $ltrpathdirs; do
12668 if test "X$x" = "X$found_dir"; then
12669 haveit=yes
12670 break
12671 fi
12672 done
12673 if test -z "$haveit"; then
12674 ltrpathdirs="$ltrpathdirs $found_dir"
12675 fi
12676 if test "$hardcode_direct" = yes; then
12677 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12678 else
12679 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12680 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12681 haveit=
12682 for x in $rpathdirs; do
12683 if test "X$x" = "X$found_dir"; then
12684 haveit=yes
12685 break
12686 fi
12687 done
12688 if test -z "$haveit"; then
12689 rpathdirs="$rpathdirs $found_dir"
12690 fi
12691 else
12692 haveit=
12693 for x in $LDFLAGS $LIBPTH; do
12694
12695 acl_save_prefix="$prefix"
12696 prefix="$acl_final_prefix"
12697 acl_save_exec_prefix="$exec_prefix"
12698 exec_prefix="$acl_final_exec_prefix"
12699 eval x=\"$x\"
12700 exec_prefix="$acl_save_exec_prefix"
12701 prefix="$acl_save_prefix"
12702
12703 if test "X$x" = "X-L$found_dir"; then
12704 haveit=yes
12705 break
12706 fi
12707 done
12708 if test -z "$haveit"; then
12709 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12710 fi
12711 if test "$hardcode_minus_L" != no; then
12712 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12713 else
12714 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12715 fi
12716 fi
12717 fi
12718 fi
12719 else
12720 if test "X$found_a" != "X"; then
12721 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12722 else
12723 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12724 fi
12725 fi
12726 additional_includedir=
12727 case "$found_dir" in
12728 */$acl_libdirstem | */$acl_libdirstem/)
12729 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12730 additional_includedir="$basedir/include"
12731 ;;
12732 esac
12733 if test "X$additional_includedir" != "X"; then
12734 if test "X$additional_includedir" != "X/usr/include"; then
12735 haveit=
12736 if test "X$additional_includedir" = "X/usr/local/include"; then
12737 if test -n "$GCC"; then
12738 case $host_os in
12739 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12740 esac
12741 fi
12742 fi
12743 if test -z "$haveit"; then
12744 for x in $CPPFLAGS $INCPTH; do
12745
12746 acl_save_prefix="$prefix"
12747 prefix="$acl_final_prefix"
12748 acl_save_exec_prefix="$exec_prefix"
12749 exec_prefix="$acl_final_exec_prefix"
12750 eval x=\"$x\"
12751 exec_prefix="$acl_save_exec_prefix"
12752 prefix="$acl_save_prefix"
12753
12754 if test "X$x" = "X-I$additional_includedir"; then
12755 haveit=yes
12756 break
12757 fi
12758 done
12759 if test -z "$haveit"; then
12760 if test -d "$additional_includedir"; then
12761 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12762 fi
12763 fi
12764 fi
12765 fi
12766 fi
12767 if test -n "$found_la"; then
12768 save_libdir="$libdir"
12769 case "$found_la" in
12770 */* | *\\*) . "$found_la" ;;
12771 *) . "./$found_la" ;;
12772 esac
12773 libdir="$save_libdir"
12774 for dep in $dependency_libs; do
12775 case "$dep" in
12776 -L*)
12777 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12778 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12779 haveit=
12780 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12781 if test -n "$GCC"; then
12782 case $host_os in
12783 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12784 esac
12785 fi
12786 fi
12787 if test -z "$haveit"; then
12788 haveit=
12789 for x in $LDFLAGS $LIBPTH; do
12790
12791 acl_save_prefix="$prefix"
12792 prefix="$acl_final_prefix"
12793 acl_save_exec_prefix="$exec_prefix"
12794 exec_prefix="$acl_final_exec_prefix"
12795 eval x=\"$x\"
12796 exec_prefix="$acl_save_exec_prefix"
12797 prefix="$acl_save_prefix"
12798
12799 if test "X$x" = "X-L$additional_libdir"; then
12800 haveit=yes
12801 break
12802 fi
12803 done
12804 if test -z "$haveit"; then
12805 if test -d "$additional_libdir"; then
12806 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12807 fi
12808 fi
12809 haveit=
12810 for x in $LDFLAGS $LTLIBPTH; do
12811
12812 acl_save_prefix="$prefix"
12813 prefix="$acl_final_prefix"
12814 acl_save_exec_prefix="$exec_prefix"
12815 exec_prefix="$acl_final_exec_prefix"
12816 eval x=\"$x\"
12817 exec_prefix="$acl_save_exec_prefix"
12818 prefix="$acl_save_prefix"
12819
12820 if test "X$x" = "X-L$additional_libdir"; then
12821 haveit=yes
12822 break
12823 fi
12824 done
12825 if test -z "$haveit"; then
12826 if test -d "$additional_libdir"; then
12827 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12828 fi
12829 fi
12830 fi
12831 fi
12832 ;;
12833 -R*)
12834 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12835 if test "$enable_rpath" != no; then
12836 haveit=
12837 for x in $rpathdirs; do
12838 if test "X$x" = "X$dir"; then
12839 haveit=yes
12840 break
12841 fi
12842 done
12843 if test -z "$haveit"; then
12844 rpathdirs="$rpathdirs $dir"
12845 fi
12846 haveit=
12847 for x in $ltrpathdirs; do
12848 if test "X$x" = "X$dir"; then
12849 haveit=yes
12850 break
12851 fi
12852 done
12853 if test -z "$haveit"; then
12854 ltrpathdirs="$ltrpathdirs $dir"
12855 fi
12856 fi
12857 ;;
12858 -l*)
12859 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12860 ;;
12861 *.la)
12862 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12863 ;;
12864 *)
12865 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12866 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12867 ;;
12868 esac
12869 done
12870 fi
12871 else
12872 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12873 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12874 fi
12875 fi
12876 fi
12877 done
12878 done
12879 if test "X$rpathdirs" != "X"; then
12880 if test -n "$hardcode_libdir_separator"; then
12881 alldirs=
12882 for found_dir in $rpathdirs; do
12883 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12884 done
12885 acl_save_libdir="$libdir"
12886 libdir="$alldirs"
12887 eval flag=\"$hardcode_libdir_flag_spec\"
12888 libdir="$acl_save_libdir"
12889 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12890 else
12891 for found_dir in $rpathdirs; do
12892 acl_save_libdir="$libdir"
12893 libdir="$found_dir"
12894 eval flag=\"$hardcode_libdir_flag_spec\"
12895 libdir="$acl_save_libdir"
12896 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12897 done
12898 fi
12899 fi
12900 if test "X$ltrpathdirs" != "X"; then
12901 for found_dir in $ltrpathdirs; do
12902 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12903 done
12904 fi
12905
12906 ac_cv_libpth_libs="$LIBPTH"
12907 ac_cv_libpth_ltlibs="$LTLIBPTH"
12908 ac_cv_libpth_cppflags="$INCPTH"
12909
12910fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012912$as_echo "$ac_cv_libpth_libs" >&6; }
12913 LIBPTH="$ac_cv_libpth_libs"
12914 LTLIBPTH="$ac_cv_libpth_ltlibs"
12915 INCPTH="$ac_cv_libpth_cppflags"
12916
12917 for element in $INCPTH; do
12918 haveit=
12919 for x in $CPPFLAGS; do
12920
12921 acl_save_prefix="$prefix"
12922 prefix="$acl_final_prefix"
12923 acl_save_exec_prefix="$exec_prefix"
12924 exec_prefix="$acl_final_exec_prefix"
12925 eval x=\"$x\"
12926 exec_prefix="$acl_save_exec_prefix"
12927 prefix="$acl_save_prefix"
12928
12929 if test "X$x" = "X$element"; then
12930 haveit=yes
12931 break
12932 fi
12933 done
12934 if test -z "$haveit"; then
12935 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12936 fi
12937 done
12938
12939
12940
12941 HAVE_LIBPTH=yes
12942
12943
12944
12945 gl_have_pth=
12946 gl_save_LIBS="$LIBS"
12947 LIBS="$LIBS -lpth"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012949/* end confdefs.h. */
12950#include <pth.h>
12951int
12952main ()
12953{
12954pth_self();
12955 ;
12956 return 0;
12957}
12958_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012959if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012960 gl_have_pth=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012961fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012962rm -f core conftest.err conftest.$ac_objext \
12963 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012964 LIBS="$gl_save_LIBS"
12965 if test -n "$gl_have_pth"; then
12966 gl_threads_api=pth
12967 LIBTHREAD="$LIBPTH"
12968 LTLIBTHREAD="$LTLIBPTH"
12969 LIBMULTITHREAD="$LIBTHREAD"
12970 LTLIBMULTITHREAD="$LTLIBTHREAD"
12971
Scott James Remnantfde82c92009-09-22 10:04:15 -070012972$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012973
12974 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12975 if test $gl_have_weak = yes; then
12976
Scott James Remnantfde82c92009-09-22 10:04:15 -070012977$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012978
12979 LIBTHREAD=
12980 LTLIBTHREAD=
12981 fi
12982 fi
12983 else
12984 CPPFLAGS="$gl_save_CPPFLAGS"
12985 fi
12986 fi
12987 if test -z "$gl_have_pthread"; then
12988 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
12989 if { case "$host_os" in
12990 mingw*) true;;
12991 *) false;;
12992 esac
12993 }; then
12994 gl_threads_api=win32
12995
Scott James Remnantfde82c92009-09-22 10:04:15 -070012996$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012997
12998 fi
12999 fi
13000 fi
13001 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013003$as_echo_n "checking for multithread API to use... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013005$as_echo "$gl_threads_api" >&6; }
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025 use_additional=yes
13026
13027 acl_save_prefix="$prefix"
13028 prefix="$acl_final_prefix"
13029 acl_save_exec_prefix="$exec_prefix"
13030 exec_prefix="$acl_final_exec_prefix"
13031
13032 eval additional_includedir=\"$includedir\"
13033 eval additional_libdir=\"$libdir\"
13034
13035 exec_prefix="$acl_save_exec_prefix"
13036 prefix="$acl_save_prefix"
13037
13038
13039# Check whether --with-libiconv-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013040if test "${with_libiconv_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013041 withval=$with_libiconv_prefix;
13042 if test "X$withval" = "Xno"; then
13043 use_additional=no
13044 else
13045 if test "X$withval" = "X"; then
13046
13047 acl_save_prefix="$prefix"
13048 prefix="$acl_final_prefix"
13049 acl_save_exec_prefix="$exec_prefix"
13050 exec_prefix="$acl_final_exec_prefix"
13051
13052 eval additional_includedir=\"$includedir\"
13053 eval additional_libdir=\"$libdir\"
13054
13055 exec_prefix="$acl_save_exec_prefix"
13056 prefix="$acl_save_prefix"
13057
13058 else
13059 additional_includedir="$withval/include"
13060 additional_libdir="$withval/$acl_libdirstem"
13061 fi
13062 fi
13063
13064fi
13065
13066 LIBICONV=
13067 LTLIBICONV=
13068 INCICONV=
13069 rpathdirs=
13070 ltrpathdirs=
13071 names_already_handled=
13072 names_next_round='iconv '
13073 while test -n "$names_next_round"; do
13074 names_this_round="$names_next_round"
13075 names_next_round=
13076 for name in $names_this_round; do
13077 already_handled=
13078 for n in $names_already_handled; do
13079 if test "$n" = "$name"; then
13080 already_handled=yes
13081 break
13082 fi
13083 done
13084 if test -z "$already_handled"; then
13085 names_already_handled="$names_already_handled $name"
13086 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13087 eval value=\"\$HAVE_LIB$uppername\"
13088 if test -n "$value"; then
13089 if test "$value" = yes; then
13090 eval value=\"\$LIB$uppername\"
13091 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13092 eval value=\"\$LTLIB$uppername\"
13093 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13094 else
13095 :
13096 fi
13097 else
13098 found_dir=
13099 found_la=
13100 found_so=
13101 found_a=
13102 if test $use_additional = yes; then
13103 if test -n "$shlibext" \
13104 && { test -f "$additional_libdir/lib$name.$shlibext" \
13105 || { test "$shlibext" = dll \
13106 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13107 found_dir="$additional_libdir"
13108 if test -f "$additional_libdir/lib$name.$shlibext"; then
13109 found_so="$additional_libdir/lib$name.$shlibext"
13110 else
13111 found_so="$additional_libdir/lib$name.dll.a"
13112 fi
13113 if test -f "$additional_libdir/lib$name.la"; then
13114 found_la="$additional_libdir/lib$name.la"
13115 fi
13116 else
13117 if test -f "$additional_libdir/lib$name.$libext"; then
13118 found_dir="$additional_libdir"
13119 found_a="$additional_libdir/lib$name.$libext"
13120 if test -f "$additional_libdir/lib$name.la"; then
13121 found_la="$additional_libdir/lib$name.la"
13122 fi
13123 fi
13124 fi
13125 fi
13126 if test "X$found_dir" = "X"; then
13127 for x in $LDFLAGS $LTLIBICONV; do
13128
13129 acl_save_prefix="$prefix"
13130 prefix="$acl_final_prefix"
13131 acl_save_exec_prefix="$exec_prefix"
13132 exec_prefix="$acl_final_exec_prefix"
13133 eval x=\"$x\"
13134 exec_prefix="$acl_save_exec_prefix"
13135 prefix="$acl_save_prefix"
13136
13137 case "$x" in
13138 -L*)
13139 dir=`echo "X$x" | sed -e 's/^X-L//'`
13140 if test -n "$shlibext" \
13141 && { test -f "$dir/lib$name.$shlibext" \
13142 || { test "$shlibext" = dll \
13143 && test -f "$dir/lib$name.dll.a"; }; }; then
13144 found_dir="$dir"
13145 if test -f "$dir/lib$name.$shlibext"; then
13146 found_so="$dir/lib$name.$shlibext"
13147 else
13148 found_so="$dir/lib$name.dll.a"
13149 fi
13150 if test -f "$dir/lib$name.la"; then
13151 found_la="$dir/lib$name.la"
13152 fi
13153 else
13154 if test -f "$dir/lib$name.$libext"; then
13155 found_dir="$dir"
13156 found_a="$dir/lib$name.$libext"
13157 if test -f "$dir/lib$name.la"; then
13158 found_la="$dir/lib$name.la"
13159 fi
13160 fi
13161 fi
13162 ;;
13163 esac
13164 if test "X$found_dir" != "X"; then
13165 break
13166 fi
13167 done
13168 fi
13169 if test "X$found_dir" != "X"; then
13170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13171 if test "X$found_so" != "X"; then
13172 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13173 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13174 else
13175 haveit=
13176 for x in $ltrpathdirs; do
13177 if test "X$x" = "X$found_dir"; then
13178 haveit=yes
13179 break
13180 fi
13181 done
13182 if test -z "$haveit"; then
13183 ltrpathdirs="$ltrpathdirs $found_dir"
13184 fi
13185 if test "$hardcode_direct" = yes; then
13186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13187 else
13188 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13189 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13190 haveit=
13191 for x in $rpathdirs; do
13192 if test "X$x" = "X$found_dir"; then
13193 haveit=yes
13194 break
13195 fi
13196 done
13197 if test -z "$haveit"; then
13198 rpathdirs="$rpathdirs $found_dir"
13199 fi
13200 else
13201 haveit=
13202 for x in $LDFLAGS $LIBICONV; do
13203
13204 acl_save_prefix="$prefix"
13205 prefix="$acl_final_prefix"
13206 acl_save_exec_prefix="$exec_prefix"
13207 exec_prefix="$acl_final_exec_prefix"
13208 eval x=\"$x\"
13209 exec_prefix="$acl_save_exec_prefix"
13210 prefix="$acl_save_prefix"
13211
13212 if test "X$x" = "X-L$found_dir"; then
13213 haveit=yes
13214 break
13215 fi
13216 done
13217 if test -z "$haveit"; then
13218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13219 fi
13220 if test "$hardcode_minus_L" != no; then
13221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13222 else
13223 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13224 fi
13225 fi
13226 fi
13227 fi
13228 else
13229 if test "X$found_a" != "X"; then
13230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13231 else
13232 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13233 fi
13234 fi
13235 additional_includedir=
13236 case "$found_dir" in
13237 */$acl_libdirstem | */$acl_libdirstem/)
13238 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13239 additional_includedir="$basedir/include"
13240 ;;
13241 esac
13242 if test "X$additional_includedir" != "X"; then
13243 if test "X$additional_includedir" != "X/usr/include"; then
13244 haveit=
13245 if test "X$additional_includedir" = "X/usr/local/include"; then
13246 if test -n "$GCC"; then
13247 case $host_os in
13248 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13249 esac
13250 fi
13251 fi
13252 if test -z "$haveit"; then
13253 for x in $CPPFLAGS $INCICONV; do
13254
13255 acl_save_prefix="$prefix"
13256 prefix="$acl_final_prefix"
13257 acl_save_exec_prefix="$exec_prefix"
13258 exec_prefix="$acl_final_exec_prefix"
13259 eval x=\"$x\"
13260 exec_prefix="$acl_save_exec_prefix"
13261 prefix="$acl_save_prefix"
13262
13263 if test "X$x" = "X-I$additional_includedir"; then
13264 haveit=yes
13265 break
13266 fi
13267 done
13268 if test -z "$haveit"; then
13269 if test -d "$additional_includedir"; then
13270 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13271 fi
13272 fi
13273 fi
13274 fi
13275 fi
13276 if test -n "$found_la"; then
13277 save_libdir="$libdir"
13278 case "$found_la" in
13279 */* | *\\*) . "$found_la" ;;
13280 *) . "./$found_la" ;;
13281 esac
13282 libdir="$save_libdir"
13283 for dep in $dependency_libs; do
13284 case "$dep" in
13285 -L*)
13286 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13287 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13288 haveit=
13289 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13290 if test -n "$GCC"; then
13291 case $host_os in
13292 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13293 esac
13294 fi
13295 fi
13296 if test -z "$haveit"; then
13297 haveit=
13298 for x in $LDFLAGS $LIBICONV; do
13299
13300 acl_save_prefix="$prefix"
13301 prefix="$acl_final_prefix"
13302 acl_save_exec_prefix="$exec_prefix"
13303 exec_prefix="$acl_final_exec_prefix"
13304 eval x=\"$x\"
13305 exec_prefix="$acl_save_exec_prefix"
13306 prefix="$acl_save_prefix"
13307
13308 if test "X$x" = "X-L$additional_libdir"; then
13309 haveit=yes
13310 break
13311 fi
13312 done
13313 if test -z "$haveit"; then
13314 if test -d "$additional_libdir"; then
13315 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13316 fi
13317 fi
13318 haveit=
13319 for x in $LDFLAGS $LTLIBICONV; do
13320
13321 acl_save_prefix="$prefix"
13322 prefix="$acl_final_prefix"
13323 acl_save_exec_prefix="$exec_prefix"
13324 exec_prefix="$acl_final_exec_prefix"
13325 eval x=\"$x\"
13326 exec_prefix="$acl_save_exec_prefix"
13327 prefix="$acl_save_prefix"
13328
13329 if test "X$x" = "X-L$additional_libdir"; then
13330 haveit=yes
13331 break
13332 fi
13333 done
13334 if test -z "$haveit"; then
13335 if test -d "$additional_libdir"; then
13336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13337 fi
13338 fi
13339 fi
13340 fi
13341 ;;
13342 -R*)
13343 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13344 if test "$enable_rpath" != no; then
13345 haveit=
13346 for x in $rpathdirs; do
13347 if test "X$x" = "X$dir"; then
13348 haveit=yes
13349 break
13350 fi
13351 done
13352 if test -z "$haveit"; then
13353 rpathdirs="$rpathdirs $dir"
13354 fi
13355 haveit=
13356 for x in $ltrpathdirs; do
13357 if test "X$x" = "X$dir"; then
13358 haveit=yes
13359 break
13360 fi
13361 done
13362 if test -z "$haveit"; then
13363 ltrpathdirs="$ltrpathdirs $dir"
13364 fi
13365 fi
13366 ;;
13367 -l*)
13368 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13369 ;;
13370 *.la)
13371 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13372 ;;
13373 *)
13374 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13375 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13376 ;;
13377 esac
13378 done
13379 fi
13380 else
13381 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13383 fi
13384 fi
13385 fi
13386 done
13387 done
13388 if test "X$rpathdirs" != "X"; then
13389 if test -n "$hardcode_libdir_separator"; then
13390 alldirs=
13391 for found_dir in $rpathdirs; do
13392 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13393 done
13394 acl_save_libdir="$libdir"
13395 libdir="$alldirs"
13396 eval flag=\"$hardcode_libdir_flag_spec\"
13397 libdir="$acl_save_libdir"
13398 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13399 else
13400 for found_dir in $rpathdirs; do
13401 acl_save_libdir="$libdir"
13402 libdir="$found_dir"
13403 eval flag=\"$hardcode_libdir_flag_spec\"
13404 libdir="$acl_save_libdir"
13405 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13406 done
13407 fi
13408 fi
13409 if test "X$ltrpathdirs" != "X"; then
13410 for found_dir in $ltrpathdirs; do
13411 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13412 done
13413 fi
13414
13415
13416
13417
13418
Scott James Remnantfde82c92009-09-22 10:04:15 -070013419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013420/* end confdefs.h. */
13421int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13422int
13423main ()
13424{
13425
13426 ;
13427 return 0;
13428}
13429_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013430if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013431
Scott James Remnantfde82c92009-09-22 10:04:15 -070013432$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013433
13434fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013435rm -f core conftest.err conftest.$ac_objext \
13436 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013437
Scott James Remnantfde82c92009-09-22 10:04:15 -070013438 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
13439do :
13440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13441ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13442eval as_val=\$$as_ac_Header
13443 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013444 cat >>confdefs.h <<_ACEOF
13445#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13446_ACEOF
13447
13448fi
13449
13450done
13451
Scott James Remnantfde82c92009-09-22 10:04:15 -070013452 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
Scott James Remnant65f683d2009-07-14 13:05:17 +010013453 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
13454 argz_next __fsetlocking
Scott James Remnantfde82c92009-09-22 10:04:15 -070013455do :
13456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13457ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13458eval as_val=\$$as_ac_var
13459 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013460 cat >>confdefs.h <<_ACEOF
13461#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13462_ACEOF
13463
13464fi
13465done
13466
13467
13468
Scott James Remnantfde82c92009-09-22 10:04:15 -070013469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013470$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013471if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013472 $as_echo_n "(cached) " >&6
13473else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013475/* end confdefs.h. */
13476#include <stdio.h>
13477int
13478main ()
13479{
13480
13481#ifndef feof_unlocked
13482 char *p = (char *) feof_unlocked;
13483#endif
13484
13485 ;
13486 return 0;
13487}
13488_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013489if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013490 ac_cv_have_decl_feof_unlocked=yes
13491else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013492 ac_cv_have_decl_feof_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013493fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013497$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
13498 if test $ac_cv_have_decl_feof_unlocked = yes; then
13499 gt_value=1
13500 else
13501 gt_value=0
13502 fi
13503
13504cat >>confdefs.h <<_ACEOF
13505#define HAVE_DECL_FEOF_UNLOCKED $gt_value
13506_ACEOF
13507
13508
13509
Scott James Remnantfde82c92009-09-22 10:04:15 -070013510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013511$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013512if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013513 $as_echo_n "(cached) " >&6
13514else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013516/* end confdefs.h. */
13517#include <stdio.h>
13518int
13519main ()
13520{
13521
13522#ifndef fgets_unlocked
13523 char *p = (char *) fgets_unlocked;
13524#endif
13525
13526 ;
13527 return 0;
13528}
13529_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013530if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013531 ac_cv_have_decl_fgets_unlocked=yes
13532else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013533 ac_cv_have_decl_fgets_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013534fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013538$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
13539 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13540 gt_value=1
13541 else
13542 gt_value=0
13543 fi
13544
13545cat >>confdefs.h <<_ACEOF
13546#define HAVE_DECL_FGETS_UNLOCKED $gt_value
13547_ACEOF
13548
13549
13550
13551
13552
13553
13554
13555
13556 am_save_CPPFLAGS="$CPPFLAGS"
13557
13558 for element in $INCICONV; do
13559 haveit=
13560 for x in $CPPFLAGS; do
13561
13562 acl_save_prefix="$prefix"
13563 prefix="$acl_final_prefix"
13564 acl_save_exec_prefix="$exec_prefix"
13565 exec_prefix="$acl_final_exec_prefix"
13566 eval x=\"$x\"
13567 exec_prefix="$acl_save_exec_prefix"
13568 prefix="$acl_save_prefix"
13569
13570 if test "X$x" = "X$element"; then
13571 haveit=yes
13572 break
13573 fi
13574 done
13575 if test -z "$haveit"; then
13576 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13577 fi
13578 done
13579
13580
Scott James Remnantfde82c92009-09-22 10:04:15 -070013581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013582$as_echo_n "checking for iconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013583if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013584 $as_echo_n "(cached) " >&6
13585else
13586
13587 am_cv_func_iconv="no, consider installing GNU libiconv"
13588 am_cv_lib_iconv=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070013589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013590/* end confdefs.h. */
13591#include <stdlib.h>
13592#include <iconv.h>
13593int
13594main ()
13595{
13596iconv_t cd = iconv_open("","");
13597 iconv(cd,NULL,NULL,NULL,NULL);
13598 iconv_close(cd);
13599 ;
13600 return 0;
13601}
13602_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013603if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013604 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013605fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013606rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013608 if test "$am_cv_func_iconv" != yes; then
13609 am_save_LIBS="$LIBS"
13610 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013612/* end confdefs.h. */
13613#include <stdlib.h>
13614#include <iconv.h>
13615int
13616main ()
13617{
13618iconv_t cd = iconv_open("","");
13619 iconv(cd,NULL,NULL,NULL,NULL);
13620 iconv_close(cd);
13621 ;
13622 return 0;
13623}
13624_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013625if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013626 am_cv_lib_iconv=yes
13627 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013628fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013629rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013631 LIBS="$am_save_LIBS"
13632 fi
13633
13634fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013636$as_echo "$am_cv_func_iconv" >&6; }
13637 if test "$am_cv_func_iconv" = yes; then
13638
Scott James Remnantfde82c92009-09-22 10:04:15 -070013639$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013640
13641 fi
13642 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013644$as_echo_n "checking how to link with libiconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013646$as_echo "$LIBICONV" >&6; }
13647 else
13648 CPPFLAGS="$am_save_CPPFLAGS"
13649 LIBICONV=
13650 LTLIBICONV=
13651 fi
13652
13653
13654
13655 if test "$am_cv_func_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013657$as_echo_n "checking for iconv declaration... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013658 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013659 $as_echo_n "(cached) " >&6
13660else
13661
Scott James Remnantfde82c92009-09-22 10:04:15 -070013662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013663/* end confdefs.h. */
13664
13665#include <stdlib.h>
13666#include <iconv.h>
13667extern
13668#ifdef __cplusplus
13669"C"
13670#endif
13671#if defined(__STDC__) || defined(__cplusplus)
13672size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13673#else
13674size_t iconv();
13675#endif
13676
13677int
13678main ()
13679{
13680
13681 ;
13682 return 0;
13683}
13684_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013685if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013686 am_cv_proto_iconv_arg1=""
13687else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013688 am_cv_proto_iconv_arg1="const"
Scott James Remnant65f683d2009-07-14 13:05:17 +010013689fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13691 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);"
13692fi
13693
13694 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070013695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Scott James Remnant65f683d2009-07-14 13:05:17 +010013696 }$am_cv_proto_iconv" >&5
13697$as_echo "${ac_t:-
13698 }$am_cv_proto_iconv" >&6; }
13699
13700cat >>confdefs.h <<_ACEOF
13701#define ICONV_CONST $am_cv_proto_iconv_arg1
13702_ACEOF
13703
13704 fi
13705
13706
Scott James Remnantfde82c92009-09-22 10:04:15 -070013707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013708$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013709if test "${gt_cv_nl_locale_name+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013710 $as_echo_n "(cached) " >&6
13711else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013713/* end confdefs.h. */
13714#include <langinfo.h>
13715#include <locale.h>
13716int
13717main ()
13718{
13719char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
13720 ;
13721 return 0;
13722}
13723_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013724if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013725 gt_cv_nl_locale_name=yes
13726else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013727 gt_cv_nl_locale_name=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013728fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013729rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013731
13732fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013734$as_echo "$gt_cv_nl_locale_name" >&6; }
13735 if test $gt_cv_nl_locale_name = yes; then
13736
Scott James Remnantfde82c92009-09-22 10:04:15 -070013737$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013738
13739 fi
13740
13741 for ac_prog in bison
13742do
13743 # Extract the first word of "$ac_prog", so it can be a program name with args.
13744set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070013745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013746$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013747if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013748 $as_echo_n "(cached) " >&6
13749else
13750 if test -n "$INTLBISON"; then
13751 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13752else
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013758 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010013759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013762 break 2
13763 fi
13764done
Scott James Remnantfde82c92009-09-22 10:04:15 -070013765 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010013766IFS=$as_save_IFS
13767
13768fi
13769fi
13770INTLBISON=$ac_cv_prog_INTLBISON
13771if test -n "$INTLBISON"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013773$as_echo "$INTLBISON" >&6; }
13774else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013776$as_echo "no" >&6; }
13777fi
13778
13779
13780 test -n "$INTLBISON" && break
13781done
13782
13783 if test -z "$INTLBISON"; then
13784 ac_verc_fail=yes
13785 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013787$as_echo_n "checking version of bison... " >&6; }
13788 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13789 case $ac_prog_version in
13790 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13791 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13792 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13793 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13794 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070013795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013796$as_echo "$ac_prog_version" >&6; }
13797 fi
13798 if test $ac_verc_fail = yes; then
13799 INTLBISON=:
13800 fi
13801
13802
Scott James Remnantfde82c92009-09-22 10:04:15 -070013803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013804$as_echo_n "checking for long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013805if test "${ac_cv_type_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013806 $as_echo_n "(cached) " >&6
13807else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013809/* end confdefs.h. */
13810long long int ll = 9223372036854775807ll;
13811 long long int nll = -9223372036854775807LL;
13812 typedef int a[((-9223372036854775807LL < 0
13813 && 0 < 9223372036854775807ll)
13814 ? 1 : -1)];
13815 int i = 63;
13816int
13817main ()
13818{
13819long long int llmax = 9223372036854775807ll;
13820 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13821 | (llmax / ll) | (llmax % ll));
13822 ;
13823 return 0;
13824}
13825_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013826if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013827 ac_cv_type_long_long_int=yes
13828else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013829 ac_cv_type_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013830fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013831rm -f core conftest.err conftest.$ac_objext \
13832 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013833fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013835$as_echo "$ac_cv_type_long_long_int" >&6; }
13836 if test $ac_cv_type_long_long_int = yes; then
13837
Scott James Remnantfde82c92009-09-22 10:04:15 -070013838$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013839
13840 fi
13841
13842
Scott James Remnantfde82c92009-09-22 10:04:15 -070013843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013844$as_echo_n "checking for long double... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013845if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013846 $as_echo_n "(cached) " >&6
13847else
13848 if test "$GCC" = yes; then
13849 gt_cv_c_long_double=yes
13850 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013852/* end confdefs.h. */
13853
13854 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
13855 long double foo = 0.0;
13856 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13857 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
13858
13859int
13860main ()
13861{
13862
13863 ;
13864 return 0;
13865}
13866_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013867if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013868 gt_cv_c_long_double=yes
13869else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013870 gt_cv_c_long_double=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013871fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 fi
13874fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013876$as_echo "$gt_cv_c_long_double" >&6; }
13877 if test $gt_cv_c_long_double = yes; then
13878
Scott James Remnantfde82c92009-09-22 10:04:15 -070013879$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013880
13881 fi
13882
13883
Scott James Remnantfde82c92009-09-22 10:04:15 -070013884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013885$as_echo_n "checking for wchar_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013886if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013887 $as_echo_n "(cached) " >&6
13888else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013890/* end confdefs.h. */
13891#include <stddef.h>
13892 wchar_t foo = (wchar_t)'\0';
13893int
13894main ()
13895{
13896
13897 ;
13898 return 0;
13899}
13900_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013901if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013902 gt_cv_c_wchar_t=yes
13903else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013904 gt_cv_c_wchar_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013905fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013909$as_echo "$gt_cv_c_wchar_t" >&6; }
13910 if test $gt_cv_c_wchar_t = yes; then
13911
Scott James Remnantfde82c92009-09-22 10:04:15 -070013912$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013913
13914 fi
13915
13916
Scott James Remnantfde82c92009-09-22 10:04:15 -070013917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013918$as_echo_n "checking for wint_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013919if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013920 $as_echo_n "(cached) " >&6
13921else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013923/* end confdefs.h. */
13924#include <wchar.h>
13925 wint_t foo = (wchar_t)'\0';
13926int
13927main ()
13928{
13929
13930 ;
13931 return 0;
13932}
13933_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013934if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013935 gt_cv_c_wint_t=yes
13936else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013937 gt_cv_c_wint_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013938fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13940fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013942$as_echo "$gt_cv_c_wint_t" >&6; }
13943 if test $gt_cv_c_wint_t = yes; then
13944
Scott James Remnantfde82c92009-09-22 10:04:15 -070013945$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013946
13947 fi
13948
13949
13950
13951
Scott James Remnantfde82c92009-09-22 10:04:15 -070013952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013953$as_echo_n "checking for intmax_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013954if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013955 $as_echo_n "(cached) " >&6
13956else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013958/* end confdefs.h. */
13959
13960#include <stddef.h>
13961#include <stdlib.h>
13962#if HAVE_STDINT_H_WITH_UINTMAX
13963#include <stdint.h>
13964#endif
13965#if HAVE_INTTYPES_H_WITH_UINTMAX
13966#include <inttypes.h>
13967#endif
13968
13969int
13970main ()
13971{
13972intmax_t x = -1;
13973 return !x;
13974 ;
13975 return 0;
13976}
13977_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013978if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013979 gt_cv_c_intmax_t=yes
13980else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013981 gt_cv_c_intmax_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013982fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013986$as_echo "$gt_cv_c_intmax_t" >&6; }
13987 if test $gt_cv_c_intmax_t = yes; then
13988
Scott James Remnantfde82c92009-09-22 10:04:15 -070013989$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013990
13991 fi
13992
13993
13994
Scott James Remnantfde82c92009-09-22 10:04:15 -070013995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013996$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013997if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013998 $as_echo_n "(cached) " >&6
13999else
14000
Scott James Remnantfde82c92009-09-22 10:04:15 -070014001 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014002
Scott James Remnantfde82c92009-09-22 10:04:15 -070014003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014004/* end confdefs.h. */
14005
14006#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
14007 notposix
14008#endif
14009
14010_ACEOF
14011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014012 $EGREP "notposix" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014013 gt_cv_func_printf_posix="guessing no"
14014else
14015 gt_cv_func_printf_posix="guessing yes"
14016fi
14017rm -f conftest*
14018
14019
14020else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014022/* end confdefs.h. */
14023
14024#include <stdio.h>
14025#include <string.h>
14026/* The string "%2$d %1$d", with dollar characters protected from the shell's
14027 dollar expansion (possibly an autoconf bug). */
14028static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
14029static char buf[100];
14030int main ()
14031{
14032 sprintf (buf, format, 33, 55);
14033 return (strcmp (buf, "55 33") != 0);
14034}
14035_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014036if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014037 gt_cv_func_printf_posix=yes
14038else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014039 gt_cv_func_printf_posix=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014040fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14042 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014043fi
14044
14045
Scott James Remnant65f683d2009-07-14 13:05:17 +010014046fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014048$as_echo "$gt_cv_func_printf_posix" >&6; }
14049 case $gt_cv_func_printf_posix in
14050 *yes)
14051
Scott James Remnantfde82c92009-09-22 10:04:15 -070014052$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014053
14054 ;;
14055 esac
14056
14057
Scott James Remnantfde82c92009-09-22 10:04:15 -070014058 { $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 +010014059$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 -070014060if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014061 $as_echo_n "(cached) " >&6
14062else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014064/* end confdefs.h. */
14065
14066#include <features.h>
14067#ifdef __GNU_LIBRARY__
14068 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14069 Lucky GNU user
14070 #endif
14071#endif
14072
14073_ACEOF
14074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014075 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014076 ac_cv_gnu_library_2_1=yes
14077else
14078 ac_cv_gnu_library_2_1=no
14079fi
14080rm -f conftest*
14081
14082
14083
14084fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014086$as_echo "$ac_cv_gnu_library_2_1" >&6; }
14087
14088 GLIBC21="$ac_cv_gnu_library_2_1"
14089
14090
14091
Scott James Remnantfde82c92009-09-22 10:04:15 -070014092 for ac_header in stdint.h
14093do :
14094 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14095if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014096 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014097#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014098_ACEOF
14099
14100fi
14101
14102done
14103
Scott James Remnantfde82c92009-09-22 10:04:15 -070014104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014105$as_echo_n "checking for SIZE_MAX... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014106 if test "${gl_cv_size_max+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014107 $as_echo_n "(cached) " >&6
14108else
14109
14110 gl_cv_size_max=
Scott James Remnantfde82c92009-09-22 10:04:15 -070014111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014112/* end confdefs.h. */
14113
14114#include <limits.h>
14115#if HAVE_STDINT_H
14116#include <stdint.h>
14117#endif
14118#ifdef SIZE_MAX
14119Found it
14120#endif
14121
14122_ACEOF
14123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014124 $EGREP "Found it" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014125 gl_cv_size_max=yes
14126fi
14127rm -f conftest*
14128
14129 if test -z "$gl_cv_size_max"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014130 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
14131#include <limits.h>"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014132
Scott James Remnant65f683d2009-07-14 13:05:17 +010014133else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014134 size_t_bits_minus_1=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014135fi
14136
Scott James Remnantfde82c92009-09-22 10:04:15 -070014137
14138 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14139
Scott James Remnant65f683d2009-07-14 13:05:17 +010014140else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014141 fits_in_uint=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014142fi
14143
Scott James Remnant65f683d2009-07-14 13:05:17 +010014144
14145 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14146 if test $fits_in_uint = 1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014148/* end confdefs.h. */
14149#include <stddef.h>
14150 extern size_t foo;
14151 extern unsigned long foo;
14152
14153int
14154main ()
14155{
14156
14157 ;
14158 return 0;
14159}
14160_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014161if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014162 fits_in_uint=0
Scott James Remnant65f683d2009-07-14 13:05:17 +010014163fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 fi
14166 if test $fits_in_uint = 1; then
14167 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14168 else
14169 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14170 fi
14171 else
14172 gl_cv_size_max='((size_t)~(size_t)0)'
14173 fi
14174 fi
14175
14176fi
14177
Scott James Remnantfde82c92009-09-22 10:04:15 -070014178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014179$as_echo "$gl_cv_size_max" >&6; }
14180 if test "$gl_cv_size_max" != yes; then
14181
14182cat >>confdefs.h <<_ACEOF
14183#define SIZE_MAX $gl_cv_size_max
14184_ACEOF
14185
14186 fi
14187
14188
14189
14190
Scott James Remnantfde82c92009-09-22 10:04:15 -070014191 for ac_header in stdint.h
14192do :
14193 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14194if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014195 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014196#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014197_ACEOF
14198
14199fi
14200
14201done
14202
14203
14204
Scott James Remnantfde82c92009-09-22 10:04:15 -070014205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014206$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014207if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014208 $as_echo_n "(cached) " >&6
14209else
14210 gt_save_LIBS="$LIBS"
14211 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014213/* end confdefs.h. */
14214#include <CoreFoundation/CFPreferences.h>
14215int
14216main ()
14217{
14218CFPreferencesCopyAppValue(NULL, NULL)
14219 ;
14220 return 0;
14221}
14222_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014223if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014224 gt_cv_func_CFPreferencesCopyAppValue=yes
14225else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014226 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014227fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014228rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014230 LIBS="$gt_save_LIBS"
14231fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014233$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14234 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14235
Scott James Remnantfde82c92009-09-22 10:04:15 -070014236$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014237
14238 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014240$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014241if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014242 $as_echo_n "(cached) " >&6
14243else
14244 gt_save_LIBS="$LIBS"
14245 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014247/* end confdefs.h. */
14248#include <CoreFoundation/CFLocale.h>
14249int
14250main ()
14251{
14252CFLocaleCopyCurrent();
14253 ;
14254 return 0;
14255}
14256_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014257if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014258 gt_cv_func_CFLocaleCopyCurrent=yes
14259else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014260 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014261fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014262rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014264 LIBS="$gt_save_LIBS"
14265fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014267$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14268 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14269
Scott James Remnantfde82c92009-09-22 10:04:15 -070014270$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014271
14272 fi
14273 INTL_MACOSX_LIBS=
14274 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14275 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14276 fi
14277
14278
14279
14280
14281
14282
14283
Scott James Remnantfde82c92009-09-22 10:04:15 -070014284 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14285if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014286
Scott James Remnant2a66c572009-09-15 03:19:16 +010014287else
14288
Scott James Remnantfde82c92009-09-22 10:04:15 -070014289$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant2a66c572009-09-15 03:19:16 +010014290
14291
14292fi
14293
Scott James Remnantfde82c92009-09-22 10:04:15 -070014294 for ac_header in stddef.h stdlib.h string.h
14295do :
14296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14297ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14298eval as_val=\$$as_ac_Header
14299 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014300 cat >>confdefs.h <<_ACEOF
14301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14302_ACEOF
14303
14304fi
14305
14306done
14307
Scott James Remnantfde82c92009-09-22 10:04:15 -070014308 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
14309do :
14310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14311ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14312eval as_val=\$$as_ac_var
14313 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014314 cat >>confdefs.h <<_ACEOF
14315#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14316_ACEOF
14317
14318fi
14319done
14320
14321
14322
Scott James Remnantfde82c92009-09-22 10:04:15 -070014323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014324$as_echo_n "checking whether _snprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014325if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014326 $as_echo_n "(cached) " >&6
14327else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014329/* end confdefs.h. */
14330#include <stdio.h>
14331int
14332main ()
14333{
14334
14335#ifndef _snprintf
14336 char *p = (char *) _snprintf;
14337#endif
14338
14339 ;
14340 return 0;
14341}
14342_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014343if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014344 ac_cv_have_decl__snprintf=yes
14345else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014346 ac_cv_have_decl__snprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014347fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014351$as_echo "$ac_cv_have_decl__snprintf" >&6; }
14352 if test $ac_cv_have_decl__snprintf = yes; then
14353 gt_value=1
14354 else
14355 gt_value=0
14356 fi
14357
14358cat >>confdefs.h <<_ACEOF
14359#define HAVE_DECL__SNPRINTF $gt_value
14360_ACEOF
14361
14362
14363
Scott James Remnantfde82c92009-09-22 10:04:15 -070014364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014365$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014366if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014367 $as_echo_n "(cached) " >&6
14368else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014370/* end confdefs.h. */
14371#include <stdio.h>
14372int
14373main ()
14374{
14375
14376#ifndef _snwprintf
14377 char *p = (char *) _snwprintf;
14378#endif
14379
14380 ;
14381 return 0;
14382}
14383_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014384if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014385 ac_cv_have_decl__snwprintf=yes
14386else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014387 ac_cv_have_decl__snwprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014388fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014392$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
14393 if test $ac_cv_have_decl__snwprintf = yes; then
14394 gt_value=1
14395 else
14396 gt_value=0
14397 fi
14398
14399cat >>confdefs.h <<_ACEOF
14400#define HAVE_DECL__SNWPRINTF $gt_value
14401_ACEOF
14402
14403
14404
14405
Scott James Remnantfde82c92009-09-22 10:04:15 -070014406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014407$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014408if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014409 $as_echo_n "(cached) " >&6
14410else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014412/* end confdefs.h. */
14413#include <stdio.h>
14414int
14415main ()
14416{
14417
14418#ifndef getc_unlocked
14419 char *p = (char *) getc_unlocked;
14420#endif
14421
14422 ;
14423 return 0;
14424}
14425_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014426if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014427 ac_cv_have_decl_getc_unlocked=yes
14428else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014429 ac_cv_have_decl_getc_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014430fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014434$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
14435 if test $ac_cv_have_decl_getc_unlocked = yes; then
14436 gt_value=1
14437 else
14438 gt_value=0
14439 fi
14440
14441cat >>confdefs.h <<_ACEOF
14442#define HAVE_DECL_GETC_UNLOCKED $gt_value
14443_ACEOF
14444
14445
14446
14447 case $gt_cv_func_printf_posix in
14448 *yes) HAVE_POSIX_PRINTF=1 ;;
14449 *) HAVE_POSIX_PRINTF=0 ;;
14450 esac
14451
14452 if test "$ac_cv_func_asprintf" = yes; then
14453 HAVE_ASPRINTF=1
14454 else
14455 HAVE_ASPRINTF=0
14456 fi
14457
14458 if test "$ac_cv_func_snprintf" = yes; then
14459 HAVE_SNPRINTF=1
14460 else
14461 HAVE_SNPRINTF=0
14462 fi
14463
14464 if test "$ac_cv_func_wprintf" = yes; then
14465 HAVE_WPRINTF=1
14466 else
14467 HAVE_WPRINTF=0
14468 fi
14469
14470
14471
Scott James Remnantfde82c92009-09-22 10:04:15 -070014472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014473$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014474if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014475 $as_echo_n "(cached) " >&6
14476else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014478/* end confdefs.h. */
14479#include <langinfo.h>
14480int
14481main ()
14482{
14483char* cs = nl_langinfo(CODESET); return !cs;
14484 ;
14485 return 0;
14486}
14487_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014488if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014489 am_cv_langinfo_codeset=yes
14490else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014491 am_cv_langinfo_codeset=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014492fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014493rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014495
14496fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014498$as_echo "$am_cv_langinfo_codeset" >&6; }
14499 if test $am_cv_langinfo_codeset = yes; then
14500
Scott James Remnantfde82c92009-09-22 10:04:15 -070014501$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014502
14503 fi
14504
14505
Scott James Remnantfde82c92009-09-22 10:04:15 -070014506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014507$as_echo_n "checking for LC_MESSAGES... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014508if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014509 $as_echo_n "(cached) " >&6
14510else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014512/* end confdefs.h. */
14513#include <locale.h>
14514int
14515main ()
14516{
14517return LC_MESSAGES
14518 ;
14519 return 0;
14520}
14521_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014522if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014523 gt_cv_val_LC_MESSAGES=yes
14524else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014525 gt_cv_val_LC_MESSAGES=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014526fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014527rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014529fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014531$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
14532 if test $gt_cv_val_LC_MESSAGES = yes; then
14533
Scott James Remnantfde82c92009-09-22 10:04:15 -070014534$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014535
14536 fi
14537
14538
14539 if test "$enable_shared" = yes; then
14540 case "$host_os" in
14541 cygwin*) is_woe32dll=yes ;;
14542 *) is_woe32dll=no ;;
14543 esac
14544 else
14545 is_woe32dll=no
14546 fi
14547 WOE32DLL=$is_woe32dll
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
Scott James Remnantfde82c92009-09-22 10:04:15 -070014574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014575$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014576if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014577 $as_echo_n "(cached) " >&6
14578else
14579 gt_save_LIBS="$LIBS"
14580 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014582/* end confdefs.h. */
14583#include <CoreFoundation/CFPreferences.h>
14584int
14585main ()
14586{
14587CFPreferencesCopyAppValue(NULL, NULL)
14588 ;
14589 return 0;
14590}
14591_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014592if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014593 gt_cv_func_CFPreferencesCopyAppValue=yes
14594else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014595 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014596fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014597rm -f core conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014599 LIBS="$gt_save_LIBS"
14600fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014602$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14603 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14604
Scott James Remnantfde82c92009-09-22 10:04:15 -070014605$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014606
14607 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014609$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014610if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014611 $as_echo_n "(cached) " >&6
14612else
14613 gt_save_LIBS="$LIBS"
14614 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014616/* end confdefs.h. */
14617#include <CoreFoundation/CFLocale.h>
14618int
14619main ()
14620{
14621CFLocaleCopyCurrent();
14622 ;
14623 return 0;
14624}
14625_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014626if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014627 gt_cv_func_CFLocaleCopyCurrent=yes
14628else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014629 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014630fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014631rm -f core conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014633 LIBS="$gt_save_LIBS"
14634fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014636$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14637 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14638
Scott James Remnantfde82c92009-09-22 10:04:15 -070014639$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014640
14641 fi
14642 INTL_MACOSX_LIBS=
14643 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14644 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14645 fi
14646
14647
14648
14649
14650
14651
14652 BUILD_INCLUDED_LIBINTL=no
14653 USE_INCLUDED_LIBINTL=no
14654
14655 LIBINTL=
14656 LTLIBINTL=
14657 POSUB=
14658
14659 case " $gt_needs " in
14660 *" need-formatstring-macros "*) gt_api_version=3 ;;
14661 *" need-ngettext "*) gt_api_version=2 ;;
14662 *) gt_api_version=1 ;;
14663 esac
14664 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14665 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14666
14667 if test "$USE_NLS" = "yes"; then
14668 gt_use_preinstalled_gnugettext=no
14669
Scott James Remnantfde82c92009-09-22 10:04:15 -070014670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014671$as_echo_n "checking whether included gettext is requested... " >&6; }
14672
14673# Check whether --with-included-gettext was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014674if test "${with_included_gettext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014675 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14676else
14677 nls_cv_force_use_gnu_gettext=no
14678fi
14679
Scott James Remnantfde82c92009-09-22 10:04:15 -070014680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014681$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14682
14683 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14684 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14685
14686
14687 if test $gt_api_version -ge 3; then
14688 gt_revision_test_code='
14689#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14690#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14691#endif
14692typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14693'
14694 else
14695 gt_revision_test_code=
14696 fi
14697 if test $gt_api_version -ge 2; then
14698 gt_expression_test_code=' + * ngettext ("", "", 0)'
14699 else
14700 gt_expression_test_code=
14701 fi
14702
Scott James Remnantfde82c92009-09-22 10:04:15 -070014703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014704$as_echo_n "checking for GNU gettext in libc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014705if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014706 $as_echo_n "(cached) " >&6
14707else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014709/* end confdefs.h. */
14710#include <libintl.h>
14711$gt_revision_test_code
14712extern int _nl_msg_cat_cntr;
14713extern int *_nl_domain_bindings;
14714int
14715main ()
14716{
14717bindtextdomain ("", "");
14718return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14719 ;
14720 return 0;
14721}
14722_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014723if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014724 eval "$gt_func_gnugettext_libc=yes"
14725else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014726 eval "$gt_func_gnugettext_libc=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010014727fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014728rm -f core conftest.err conftest.$ac_objext \
14729 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014730fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014731eval ac_res=\$$gt_func_gnugettext_libc
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014733$as_echo "$ac_res" >&6; }
14734
14735 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14736
14737
14738
14739
14740 use_additional=yes
14741
14742 acl_save_prefix="$prefix"
14743 prefix="$acl_final_prefix"
14744 acl_save_exec_prefix="$exec_prefix"
14745 exec_prefix="$acl_final_exec_prefix"
14746
14747 eval additional_includedir=\"$includedir\"
14748 eval additional_libdir=\"$libdir\"
14749
14750 exec_prefix="$acl_save_exec_prefix"
14751 prefix="$acl_save_prefix"
14752
14753
14754# Check whether --with-libintl-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014755if test "${with_libintl_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014756 withval=$with_libintl_prefix;
14757 if test "X$withval" = "Xno"; then
14758 use_additional=no
14759 else
14760 if test "X$withval" = "X"; then
14761
14762 acl_save_prefix="$prefix"
14763 prefix="$acl_final_prefix"
14764 acl_save_exec_prefix="$exec_prefix"
14765 exec_prefix="$acl_final_exec_prefix"
14766
14767 eval additional_includedir=\"$includedir\"
14768 eval additional_libdir=\"$libdir\"
14769
14770 exec_prefix="$acl_save_exec_prefix"
14771 prefix="$acl_save_prefix"
14772
14773 else
14774 additional_includedir="$withval/include"
14775 additional_libdir="$withval/$acl_libdirstem"
14776 fi
14777 fi
14778
14779fi
14780
14781 LIBINTL=
14782 LTLIBINTL=
14783 INCINTL=
14784 rpathdirs=
14785 ltrpathdirs=
14786 names_already_handled=
14787 names_next_round='intl '
14788 while test -n "$names_next_round"; do
14789 names_this_round="$names_next_round"
14790 names_next_round=
14791 for name in $names_this_round; do
14792 already_handled=
14793 for n in $names_already_handled; do
14794 if test "$n" = "$name"; then
14795 already_handled=yes
14796 break
14797 fi
14798 done
14799 if test -z "$already_handled"; then
14800 names_already_handled="$names_already_handled $name"
14801 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14802 eval value=\"\$HAVE_LIB$uppername\"
14803 if test -n "$value"; then
14804 if test "$value" = yes; then
14805 eval value=\"\$LIB$uppername\"
14806 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14807 eval value=\"\$LTLIB$uppername\"
14808 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14809 else
14810 :
14811 fi
14812 else
14813 found_dir=
14814 found_la=
14815 found_so=
14816 found_a=
14817 if test $use_additional = yes; then
14818 if test -n "$shlibext" \
14819 && { test -f "$additional_libdir/lib$name.$shlibext" \
14820 || { test "$shlibext" = dll \
14821 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14822 found_dir="$additional_libdir"
14823 if test -f "$additional_libdir/lib$name.$shlibext"; then
14824 found_so="$additional_libdir/lib$name.$shlibext"
14825 else
14826 found_so="$additional_libdir/lib$name.dll.a"
14827 fi
14828 if test -f "$additional_libdir/lib$name.la"; then
14829 found_la="$additional_libdir/lib$name.la"
14830 fi
14831 else
14832 if test -f "$additional_libdir/lib$name.$libext"; then
14833 found_dir="$additional_libdir"
14834 found_a="$additional_libdir/lib$name.$libext"
14835 if test -f "$additional_libdir/lib$name.la"; then
14836 found_la="$additional_libdir/lib$name.la"
14837 fi
14838 fi
14839 fi
14840 fi
14841 if test "X$found_dir" = "X"; then
14842 for x in $LDFLAGS $LTLIBINTL; do
14843
14844 acl_save_prefix="$prefix"
14845 prefix="$acl_final_prefix"
14846 acl_save_exec_prefix="$exec_prefix"
14847 exec_prefix="$acl_final_exec_prefix"
14848 eval x=\"$x\"
14849 exec_prefix="$acl_save_exec_prefix"
14850 prefix="$acl_save_prefix"
14851
14852 case "$x" in
14853 -L*)
14854 dir=`echo "X$x" | sed -e 's/^X-L//'`
14855 if test -n "$shlibext" \
14856 && { test -f "$dir/lib$name.$shlibext" \
14857 || { test "$shlibext" = dll \
14858 && test -f "$dir/lib$name.dll.a"; }; }; then
14859 found_dir="$dir"
14860 if test -f "$dir/lib$name.$shlibext"; then
14861 found_so="$dir/lib$name.$shlibext"
14862 else
14863 found_so="$dir/lib$name.dll.a"
14864 fi
14865 if test -f "$dir/lib$name.la"; then
14866 found_la="$dir/lib$name.la"
14867 fi
14868 else
14869 if test -f "$dir/lib$name.$libext"; then
14870 found_dir="$dir"
14871 found_a="$dir/lib$name.$libext"
14872 if test -f "$dir/lib$name.la"; then
14873 found_la="$dir/lib$name.la"
14874 fi
14875 fi
14876 fi
14877 ;;
14878 esac
14879 if test "X$found_dir" != "X"; then
14880 break
14881 fi
14882 done
14883 fi
14884 if test "X$found_dir" != "X"; then
14885 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14886 if test "X$found_so" != "X"; then
14887 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14888 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14889 else
14890 haveit=
14891 for x in $ltrpathdirs; do
14892 if test "X$x" = "X$found_dir"; then
14893 haveit=yes
14894 break
14895 fi
14896 done
14897 if test -z "$haveit"; then
14898 ltrpathdirs="$ltrpathdirs $found_dir"
14899 fi
14900 if test "$hardcode_direct" = yes; then
14901 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14902 else
14903 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14905 haveit=
14906 for x in $rpathdirs; do
14907 if test "X$x" = "X$found_dir"; then
14908 haveit=yes
14909 break
14910 fi
14911 done
14912 if test -z "$haveit"; then
14913 rpathdirs="$rpathdirs $found_dir"
14914 fi
14915 else
14916 haveit=
14917 for x in $LDFLAGS $LIBINTL; do
14918
14919 acl_save_prefix="$prefix"
14920 prefix="$acl_final_prefix"
14921 acl_save_exec_prefix="$exec_prefix"
14922 exec_prefix="$acl_final_exec_prefix"
14923 eval x=\"$x\"
14924 exec_prefix="$acl_save_exec_prefix"
14925 prefix="$acl_save_prefix"
14926
14927 if test "X$x" = "X-L$found_dir"; then
14928 haveit=yes
14929 break
14930 fi
14931 done
14932 if test -z "$haveit"; then
14933 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14934 fi
14935 if test "$hardcode_minus_L" != no; then
14936 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14937 else
14938 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14939 fi
14940 fi
14941 fi
14942 fi
14943 else
14944 if test "X$found_a" != "X"; then
14945 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14946 else
14947 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14948 fi
14949 fi
14950 additional_includedir=
14951 case "$found_dir" in
14952 */$acl_libdirstem | */$acl_libdirstem/)
14953 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14954 additional_includedir="$basedir/include"
14955 ;;
14956 esac
14957 if test "X$additional_includedir" != "X"; then
14958 if test "X$additional_includedir" != "X/usr/include"; then
14959 haveit=
14960 if test "X$additional_includedir" = "X/usr/local/include"; then
14961 if test -n "$GCC"; then
14962 case $host_os in
14963 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14964 esac
14965 fi
14966 fi
14967 if test -z "$haveit"; then
14968 for x in $CPPFLAGS $INCINTL; do
14969
14970 acl_save_prefix="$prefix"
14971 prefix="$acl_final_prefix"
14972 acl_save_exec_prefix="$exec_prefix"
14973 exec_prefix="$acl_final_exec_prefix"
14974 eval x=\"$x\"
14975 exec_prefix="$acl_save_exec_prefix"
14976 prefix="$acl_save_prefix"
14977
14978 if test "X$x" = "X-I$additional_includedir"; then
14979 haveit=yes
14980 break
14981 fi
14982 done
14983 if test -z "$haveit"; then
14984 if test -d "$additional_includedir"; then
14985 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14986 fi
14987 fi
14988 fi
14989 fi
14990 fi
14991 if test -n "$found_la"; then
14992 save_libdir="$libdir"
14993 case "$found_la" in
14994 */* | *\\*) . "$found_la" ;;
14995 *) . "./$found_la" ;;
14996 esac
14997 libdir="$save_libdir"
14998 for dep in $dependency_libs; do
14999 case "$dep" in
15000 -L*)
15001 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15002 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15003 haveit=
15004 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15005 if test -n "$GCC"; then
15006 case $host_os in
15007 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15008 esac
15009 fi
15010 fi
15011 if test -z "$haveit"; then
15012 haveit=
15013 for x in $LDFLAGS $LIBINTL; do
15014
15015 acl_save_prefix="$prefix"
15016 prefix="$acl_final_prefix"
15017 acl_save_exec_prefix="$exec_prefix"
15018 exec_prefix="$acl_final_exec_prefix"
15019 eval x=\"$x\"
15020 exec_prefix="$acl_save_exec_prefix"
15021 prefix="$acl_save_prefix"
15022
15023 if test "X$x" = "X-L$additional_libdir"; then
15024 haveit=yes
15025 break
15026 fi
15027 done
15028 if test -z "$haveit"; then
15029 if test -d "$additional_libdir"; then
15030 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15031 fi
15032 fi
15033 haveit=
15034 for x in $LDFLAGS $LTLIBINTL; do
15035
15036 acl_save_prefix="$prefix"
15037 prefix="$acl_final_prefix"
15038 acl_save_exec_prefix="$exec_prefix"
15039 exec_prefix="$acl_final_exec_prefix"
15040 eval x=\"$x\"
15041 exec_prefix="$acl_save_exec_prefix"
15042 prefix="$acl_save_prefix"
15043
15044 if test "X$x" = "X-L$additional_libdir"; then
15045 haveit=yes
15046 break
15047 fi
15048 done
15049 if test -z "$haveit"; then
15050 if test -d "$additional_libdir"; then
15051 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15052 fi
15053 fi
15054 fi
15055 fi
15056 ;;
15057 -R*)
15058 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15059 if test "$enable_rpath" != no; then
15060 haveit=
15061 for x in $rpathdirs; do
15062 if test "X$x" = "X$dir"; then
15063 haveit=yes
15064 break
15065 fi
15066 done
15067 if test -z "$haveit"; then
15068 rpathdirs="$rpathdirs $dir"
15069 fi
15070 haveit=
15071 for x in $ltrpathdirs; do
15072 if test "X$x" = "X$dir"; then
15073 haveit=yes
15074 break
15075 fi
15076 done
15077 if test -z "$haveit"; then
15078 ltrpathdirs="$ltrpathdirs $dir"
15079 fi
15080 fi
15081 ;;
15082 -l*)
15083 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15084 ;;
15085 *.la)
15086 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15087 ;;
15088 *)
15089 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15090 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15091 ;;
15092 esac
15093 done
15094 fi
15095 else
15096 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15097 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15098 fi
15099 fi
15100 fi
15101 done
15102 done
15103 if test "X$rpathdirs" != "X"; then
15104 if test -n "$hardcode_libdir_separator"; then
15105 alldirs=
15106 for found_dir in $rpathdirs; do
15107 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15108 done
15109 acl_save_libdir="$libdir"
15110 libdir="$alldirs"
15111 eval flag=\"$hardcode_libdir_flag_spec\"
15112 libdir="$acl_save_libdir"
15113 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15114 else
15115 for found_dir in $rpathdirs; do
15116 acl_save_libdir="$libdir"
15117 libdir="$found_dir"
15118 eval flag=\"$hardcode_libdir_flag_spec\"
15119 libdir="$acl_save_libdir"
15120 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15121 done
15122 fi
15123 fi
15124 if test "X$ltrpathdirs" != "X"; then
15125 for found_dir in $ltrpathdirs; do
15126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15127 done
15128 fi
15129
Scott James Remnantfde82c92009-09-22 10:04:15 -070015130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015131$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015132if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015133 $as_echo_n "(cached) " >&6
15134else
15135 gt_save_CPPFLAGS="$CPPFLAGS"
15136 CPPFLAGS="$CPPFLAGS $INCINTL"
15137 gt_save_LIBS="$LIBS"
15138 LIBS="$LIBS $LIBINTL"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015140/* end confdefs.h. */
15141#include <libintl.h>
15142$gt_revision_test_code
15143extern int _nl_msg_cat_cntr;
15144extern
15145#ifdef __cplusplus
15146"C"
15147#endif
15148const char *_nl_expand_alias (const char *);
15149int
15150main ()
15151{
15152bindtextdomain ("", "");
15153return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15154 ;
15155 return 0;
15156}
15157_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015158if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015159 eval "$gt_func_gnugettext_libintl=yes"
15160else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015161 eval "$gt_func_gnugettext_libintl=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015162fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015163rm -f core conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015165 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15166 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015168/* end confdefs.h. */
15169#include <libintl.h>
15170$gt_revision_test_code
15171extern int _nl_msg_cat_cntr;
15172extern
15173#ifdef __cplusplus
15174"C"
15175#endif
15176const char *_nl_expand_alias (const char *);
15177int
15178main ()
15179{
15180bindtextdomain ("", "");
15181return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15182 ;
15183 return 0;
15184}
15185_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015186if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015187 LIBINTL="$LIBINTL $LIBICONV"
15188 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15189 eval "$gt_func_gnugettext_libintl=yes"
15190
Scott James Remnant65f683d2009-07-14 13:05:17 +010015191fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015192rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015194 fi
15195 CPPFLAGS="$gt_save_CPPFLAGS"
15196 LIBS="$gt_save_LIBS"
15197fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015198eval ac_res=\$$gt_func_gnugettext_libintl
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015200$as_echo "$ac_res" >&6; }
15201 fi
15202
15203 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15204 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15205 && test "$PACKAGE" != gettext-runtime \
15206 && test "$PACKAGE" != gettext-tools; }; then
15207 gt_use_preinstalled_gnugettext=yes
15208 else
15209 LIBINTL=
15210 LTLIBINTL=
15211 INCINTL=
15212 fi
15213
15214
15215 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15216 nls_cv_use_gnu_gettext=yes
15217 fi
15218 fi
15219
15220 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15221 BUILD_INCLUDED_LIBINTL=yes
15222 USE_INCLUDED_LIBINTL=yes
15223 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
15224 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
15225 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15226 fi
15227
15228 CATOBJEXT=
15229 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15230 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15231 CATOBJEXT=.gmo
15232 fi
15233
15234
15235 if test -n "$INTL_MACOSX_LIBS"; then
15236 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15237 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15238 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15239 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15240 fi
15241 fi
15242
15243 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15244 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15245
Scott James Remnantfde82c92009-09-22 10:04:15 -070015246$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015247
15248 else
15249 USE_NLS=no
15250 fi
15251 fi
15252
Scott James Remnantfde82c92009-09-22 10:04:15 -070015253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015254$as_echo_n "checking whether to use NLS... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015256$as_echo "$USE_NLS" >&6; }
15257 if test "$USE_NLS" = "yes"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015259$as_echo_n "checking where the gettext function comes from... " >&6; }
15260 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15261 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15262 gt_source="external libintl"
15263 else
15264 gt_source="libc"
15265 fi
15266 else
15267 gt_source="included intl directory"
15268 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015270$as_echo "$gt_source" >&6; }
15271 fi
15272
15273 if test "$USE_NLS" = "yes"; then
15274
15275 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15276 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015278$as_echo_n "checking how to link with libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015280$as_echo "$LIBINTL" >&6; }
15281
15282 for element in $INCINTL; do
15283 haveit=
15284 for x in $CPPFLAGS; do
15285
15286 acl_save_prefix="$prefix"
15287 prefix="$acl_final_prefix"
15288 acl_save_exec_prefix="$exec_prefix"
15289 exec_prefix="$acl_final_exec_prefix"
15290 eval x=\"$x\"
15291 exec_prefix="$acl_save_exec_prefix"
15292 prefix="$acl_save_prefix"
15293
15294 if test "X$x" = "X$element"; then
15295 haveit=yes
15296 break
15297 fi
15298 done
15299 if test -z "$haveit"; then
15300 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15301 fi
15302 done
15303
15304 fi
15305
15306
Scott James Remnantfde82c92009-09-22 10:04:15 -070015307$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015308
15309
Scott James Remnantfde82c92009-09-22 10:04:15 -070015310$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015311
15312 fi
15313
15314 POSUB=po
15315 fi
15316
15317
15318 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
15319 BUILD_INCLUDED_LIBINTL=yes
15320 fi
15321
15322
15323
15324
15325
15326 nls_cv_header_intl=
15327 nls_cv_header_libgt=
15328
15329 DATADIRNAME=share
15330
15331
15332 INSTOBJEXT=.mo
15333
15334
15335 GENCAT=gencat
15336
15337
15338 INTLOBJS=
15339 if test "$USE_INCLUDED_LIBINTL" = yes; then
15340 INTLOBJS="\$(GETTOBJS)"
15341 fi
15342
15343
15344 INTL_LIBTOOL_SUFFIX_PREFIX=
15345
15346
15347
15348 INTLLIBS="$LIBINTL"
15349
15350
15351
15352
15353
15354
15355
15356# Checks for programs.
15357ac_ext=c
15358ac_cpp='$CPP $CPPFLAGS'
15359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15361ac_compiler_gnu=$ac_cv_c_compiler_gnu
15362if test -n "$ac_tool_prefix"; then
15363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15364set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015366$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015367if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015368 $as_echo_n "(cached) " >&6
15369else
15370 if test -n "$CC"; then
15371 ac_cv_prog_CC="$CC" # Let the user override the test.
15372else
15373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15374for as_dir in $PATH
15375do
15376 IFS=$as_save_IFS
15377 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015378 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015382 break 2
15383 fi
15384done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015385 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015386IFS=$as_save_IFS
15387
15388fi
15389fi
15390CC=$ac_cv_prog_CC
15391if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015393$as_echo "$CC" >&6; }
15394else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015396$as_echo "no" >&6; }
15397fi
15398
15399
15400fi
15401if test -z "$ac_cv_prog_CC"; then
15402 ac_ct_CC=$CC
15403 # Extract the first word of "gcc", so it can be a program name with args.
15404set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015406$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015408 $as_echo_n "(cached) " >&6
15409else
15410 if test -n "$ac_ct_CC"; then
15411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15412else
15413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15414for as_dir in $PATH
15415do
15416 IFS=$as_save_IFS
15417 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015418 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15420 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015422 break 2
15423 fi
15424done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015425 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015426IFS=$as_save_IFS
15427
15428fi
15429fi
15430ac_ct_CC=$ac_cv_prog_ac_ct_CC
15431if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015433$as_echo "$ac_ct_CC" >&6; }
15434else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015436$as_echo "no" >&6; }
15437fi
15438
15439 if test "x$ac_ct_CC" = x; then
15440 CC=""
15441 else
15442 case $cross_compiling:$ac_tool_warned in
15443yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015444{ $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 +010015445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15446ac_tool_warned=yes ;;
15447esac
15448 CC=$ac_ct_CC
15449 fi
15450else
15451 CC="$ac_cv_prog_CC"
15452fi
15453
15454if test -z "$CC"; then
15455 if test -n "$ac_tool_prefix"; then
15456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15457set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015459$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015460if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015461 $as_echo_n "(cached) " >&6
15462else
15463 if test -n "$CC"; then
15464 ac_cv_prog_CC="$CC" # Let the user override the test.
15465else
15466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467for as_dir in $PATH
15468do
15469 IFS=$as_save_IFS
15470 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015471 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15473 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015475 break 2
15476 fi
15477done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015478 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015479IFS=$as_save_IFS
15480
15481fi
15482fi
15483CC=$ac_cv_prog_CC
15484if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015486$as_echo "$CC" >&6; }
15487else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015489$as_echo "no" >&6; }
15490fi
15491
15492
15493 fi
15494fi
15495if test -z "$CC"; then
15496 # Extract the first word of "cc", so it can be a program name with args.
15497set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015499$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015500if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015501 $as_echo_n "(cached) " >&6
15502else
15503 if test -n "$CC"; then
15504 ac_cv_prog_CC="$CC" # Let the user override the test.
15505else
15506 ac_prog_rejected=no
15507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508for as_dir in $PATH
15509do
15510 IFS=$as_save_IFS
15511 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015512 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15515 ac_prog_rejected=yes
15516 continue
15517 fi
15518 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015520 break 2
15521 fi
15522done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015523 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015524IFS=$as_save_IFS
15525
15526if test $ac_prog_rejected = yes; then
15527 # We found a bogon in the path, so make sure we never use it.
15528 set dummy $ac_cv_prog_CC
15529 shift
15530 if test $# != 0; then
15531 # We chose a different compiler from the bogus one.
15532 # However, it has the same basename, so the bogon will be chosen
15533 # first if we set CC to just the basename; use the full file name.
15534 shift
15535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15536 fi
15537fi
15538fi
15539fi
15540CC=$ac_cv_prog_CC
15541if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015543$as_echo "$CC" >&6; }
15544else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015546$as_echo "no" >&6; }
15547fi
15548
15549
15550fi
15551if test -z "$CC"; then
15552 if test -n "$ac_tool_prefix"; then
15553 for ac_prog in cl.exe
15554 do
15555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015558$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015559if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015560 $as_echo_n "(cached) " >&6
15561else
15562 if test -n "$CC"; then
15563 ac_cv_prog_CC="$CC" # Let the user override the test.
15564else
15565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15566for as_dir in $PATH
15567do
15568 IFS=$as_save_IFS
15569 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015570 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015574 break 2
15575 fi
15576done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015577 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015578IFS=$as_save_IFS
15579
15580fi
15581fi
15582CC=$ac_cv_prog_CC
15583if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015585$as_echo "$CC" >&6; }
15586else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015588$as_echo "no" >&6; }
15589fi
15590
15591
15592 test -n "$CC" && break
15593 done
15594fi
15595if test -z "$CC"; then
15596 ac_ct_CC=$CC
15597 for ac_prog in cl.exe
15598do
15599 # Extract the first word of "$ac_prog", so it can be a program name with args.
15600set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015602$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015604 $as_echo_n "(cached) " >&6
15605else
15606 if test -n "$ac_ct_CC"; then
15607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15608else
15609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610for as_dir in $PATH
15611do
15612 IFS=$as_save_IFS
15613 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015614 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15616 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015618 break 2
15619 fi
15620done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015621 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015622IFS=$as_save_IFS
15623
15624fi
15625fi
15626ac_ct_CC=$ac_cv_prog_ac_ct_CC
15627if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015629$as_echo "$ac_ct_CC" >&6; }
15630else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015632$as_echo "no" >&6; }
15633fi
15634
15635
15636 test -n "$ac_ct_CC" && break
15637done
15638
15639 if test "x$ac_ct_CC" = x; then
15640 CC=""
15641 else
15642 case $cross_compiling:$ac_tool_warned in
15643yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015644{ $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 +010015645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15646ac_tool_warned=yes ;;
15647esac
15648 CC=$ac_ct_CC
15649 fi
15650fi
15651
15652fi
15653
15654
Scott James Remnantfde82c92009-09-22 10:04:15 -070015655test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070015657as_fn_error "no acceptable C compiler found in \$PATH
15658See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010015659
15660# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015661$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015662set X $ac_compile
15663ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015664for ac_option in --version -v -V -qversion; do
15665 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015666case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15671$as_echo "$ac_try_echo"; } >&5
15672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +010015673 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015674 if test -s conftest.err; then
15675 sed '10a\
15676... rest of stderr output deleted ...
15677 10q' conftest.err >conftest.er1
15678 cat conftest.er1 >&5
15679 rm -f conftest.er1 conftest.err
15680 fi
15681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15682 test $ac_status = 0; }
15683done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015684
Scott James Remnantfde82c92009-09-22 10:04:15 -070015685{ $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 +010015686$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015687if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015688 $as_echo_n "(cached) " >&6
15689else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015691/* end confdefs.h. */
15692
15693int
15694main ()
15695{
15696#ifndef __GNUC__
15697 choke me
15698#endif
15699
15700 ;
15701 return 0;
15702}
15703_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015704if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015705 ac_compiler_gnu=yes
15706else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015707 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015708fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710ac_cv_c_compiler_gnu=$ac_compiler_gnu
15711
15712fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015714$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15715if test $ac_compiler_gnu = yes; then
15716 GCC=yes
15717else
15718 GCC=
15719fi
15720ac_test_CFLAGS=${CFLAGS+set}
15721ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -070015722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015723$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015724if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015725 $as_echo_n "(cached) " >&6
15726else
15727 ac_save_c_werror_flag=$ac_c_werror_flag
15728 ac_c_werror_flag=yes
15729 ac_cv_prog_cc_g=no
15730 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015732/* end confdefs.h. */
15733
15734int
15735main ()
15736{
15737
15738 ;
15739 return 0;
15740}
15741_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015742if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015743 ac_cv_prog_cc_g=yes
15744else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015745 CFLAGS=""
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015747/* end confdefs.h. */
15748
15749int
15750main ()
15751{
15752
15753 ;
15754 return 0;
15755}
15756_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015757if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010015758
Scott James Remnantfde82c92009-09-22 10:04:15 -070015759else
15760 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +010015761 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015763/* end confdefs.h. */
15764
15765int
15766main ()
15767{
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015773if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015774 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010015775fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 ac_c_werror_flag=$ac_save_c_werror_flag
15782fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015784$as_echo "$ac_cv_prog_cc_g" >&6; }
15785if test "$ac_test_CFLAGS" = set; then
15786 CFLAGS=$ac_save_CFLAGS
15787elif test $ac_cv_prog_cc_g = yes; then
15788 if test "$GCC" = yes; then
15789 CFLAGS="-g -O2"
15790 else
15791 CFLAGS="-g"
15792 fi
15793else
15794 if test "$GCC" = yes; then
15795 CFLAGS="-O2"
15796 else
15797 CFLAGS=
15798 fi
15799fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015801$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015802if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015803 $as_echo_n "(cached) " >&6
15804else
15805 ac_cv_prog_cc_c89=no
15806ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070015807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015808/* end confdefs.h. */
15809#include <stdarg.h>
15810#include <stdio.h>
15811#include <sys/types.h>
15812#include <sys/stat.h>
15813/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15814struct buf { int x; };
15815FILE * (*rcsopen) (struct buf *, struct stat *, int);
15816static char *e (p, i)
15817 char **p;
15818 int i;
15819{
15820 return p[i];
15821}
15822static char *f (char * (*g) (char **, int), char **p, ...)
15823{
15824 char *s;
15825 va_list v;
15826 va_start (v,p);
15827 s = g (p, va_arg (v,int));
15828 va_end (v);
15829 return s;
15830}
15831
15832/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15833 function prototypes and stuff, but not '\xHH' hex character constants.
15834 These don't provoke an error unfortunately, instead are silently treated
15835 as 'x'. The following induces an error, until -std is added to get
15836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15837 array size at least. It's necessary to write '\x00'==0 to get something
15838 that's true only with -std. */
15839int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15840
15841/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15842 inside strings and character constants. */
15843#define FOO(x) 'x'
15844int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15845
15846int test (int i, double x);
15847struct s1 {int (*f) (int a);};
15848struct s2 {int (*f) (double a);};
15849int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15850int argc;
15851char **argv;
15852int
15853main ()
15854{
15855return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15856 ;
15857 return 0;
15858}
15859_ACEOF
15860for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15862do
15863 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015864 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015865 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010015866fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015867rm -f core conftest.err conftest.$ac_objext
15868 test "x$ac_cv_prog_cc_c89" != "xno" && break
15869done
15870rm -f conftest.$ac_ext
15871CC=$ac_save_CC
15872
15873fi
15874# AC_CACHE_VAL
15875case "x$ac_cv_prog_cc_c89" in
15876 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015878$as_echo "none needed" >&6; } ;;
15879 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015881$as_echo "unsupported" >&6; } ;;
15882 *)
15883 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015885$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15886esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015887if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015888
Scott James Remnantfde82c92009-09-22 10:04:15 -070015889fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015890
15891ac_ext=c
15892ac_cpp='$CPP $CPPFLAGS'
15893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15895ac_compiler_gnu=$ac_cv_c_compiler_gnu
15896
15897if test "x$CC" != xcc; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015898 { $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 +010015899$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15900else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015902$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15903fi
15904set dummy $CC; ac_cc=`$as_echo "$2" |
15905 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070015906if { 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 +010015907 $as_echo_n "(cached) " >&6
15908else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015910/* end confdefs.h. */
15911
15912int
15913main ()
15914{
15915
15916 ;
15917 return 0;
15918}
15919_ACEOF
15920# Make sure it works both with $CC and with simple cc.
15921# We do the test twice because some compilers refuse to overwrite an
15922# existing .o file with -o, though they will create one.
15923ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15924rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015925if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15928esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15930$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015931 (eval "$ac_try") 2>&5
15932 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15934 test $ac_status = 0; } &&
15935 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15937 *) ac_try_echo=$ac_try;;
15938esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15940$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015941 (eval "$ac_try") 2>&5
15942 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15944 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015945then
15946 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15947 if test "x$CC" != xcc; then
15948 # Test first that cc exists at all.
15949 if { ac_try='cc -c conftest.$ac_ext >&5'
Scott James Remnantfde82c92009-09-22 10:04:15 -070015950 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15955$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015956 (eval "$ac_try") 2>&5
15957 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15959 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015960 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15961 rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015962 if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15967$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015968 (eval "$ac_try") 2>&5
15969 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15971 test $ac_status = 0; } &&
15972 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15975esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15977$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015978 (eval "$ac_try") 2>&5
15979 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15981 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015982 then
15983 # cc works too.
15984 :
15985 else
15986 # cc exists but doesn't like -o.
15987 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15988 fi
15989 fi
15990 fi
15991else
15992 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15993fi
15994rm -f core conftest*
15995
15996fi
15997if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015999$as_echo "yes" >&6; }
16000else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016002$as_echo "no" >&6; }
16003
Scott James Remnantfde82c92009-09-22 10:04:15 -070016004$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016005
16006fi
16007
16008# FIXME: we rely on the cache variable name because
16009# there is no other way.
16010set dummy $CC
16011am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16012eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16013if test "$am_t" != yes; then
16014 # Losing compiler, so override with the script.
16015 # FIXME: It is wrong to rewrite CC.
16016 # But if we don't then we get into trouble of one sort or another.
16017 # A longer-term fix would be to have automake use am__CC in this case,
16018 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16019 CC="$am_aux_dir/compile $CC"
16020fi
16021
16022
16023
Scott James Remnant2a66c572009-09-15 03:19:16 +010016024
16025if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16026 if test -n "$ac_tool_prefix"; then
16027 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16028set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016030$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016031if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016032 $as_echo_n "(cached) " >&6
16033else
16034 case $PKG_CONFIG in
16035 [\\/]* | ?:[\\/]*)
16036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16037 ;;
16038 *)
16039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16040for as_dir in $PATH
16041do
16042 IFS=$as_save_IFS
16043 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016044 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016048 break 2
16049 fi
16050done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016051 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016052IFS=$as_save_IFS
16053
16054 ;;
16055esac
16056fi
16057PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16058if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016060$as_echo "$PKG_CONFIG" >&6; }
16061else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016063$as_echo "no" >&6; }
16064fi
16065
16066
16067fi
16068if test -z "$ac_cv_path_PKG_CONFIG"; then
16069 ac_pt_PKG_CONFIG=$PKG_CONFIG
16070 # Extract the first word of "pkg-config", so it can be a program name with args.
16071set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016073$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016074if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016075 $as_echo_n "(cached) " >&6
16076else
16077 case $ac_pt_PKG_CONFIG in
16078 [\\/]* | ?:[\\/]*)
16079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16080 ;;
16081 *)
16082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16083for as_dir in $PATH
16084do
16085 IFS=$as_save_IFS
16086 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016087 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016091 break 2
16092 fi
16093done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016094 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016095IFS=$as_save_IFS
16096
16097 ;;
16098esac
16099fi
16100ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16101if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016103$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16104else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016106$as_echo "no" >&6; }
16107fi
16108
16109 if test "x$ac_pt_PKG_CONFIG" = x; then
16110 PKG_CONFIG=""
16111 else
16112 case $cross_compiling:$ac_tool_warned in
16113yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016114{ $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 +010016115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16116ac_tool_warned=yes ;;
16117esac
16118 PKG_CONFIG=$ac_pt_PKG_CONFIG
16119 fi
16120else
16121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16122fi
16123
16124fi
16125if test -n "$PKG_CONFIG"; then
16126 _pkg_min_version=0.9.0
Scott James Remnantfde82c92009-09-22 10:04:15 -070016127 { $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 +010016128$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016131$as_echo "yes" >&6; }
16132 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016134$as_echo "no" >&6; }
16135 PKG_CONFIG=""
16136 fi
16137
16138fi
16139
Scott James Remnant65f683d2009-07-14 13:05:17 +010016140# Checks for libraries.
16141
16142
16143
16144 if test "x$nih_install" = "xyes"; then
16145 INSTALL_NIH_TRUE=
16146 INSTALL_NIH_FALSE='#'
16147else
16148 INSTALL_NIH_TRUE='#'
16149 INSTALL_NIH_FALSE=
16150fi
16151
16152
16153
16154
16155if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16156 if test -n "$ac_tool_prefix"; then
16157 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16158set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016160$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016161if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016162 $as_echo_n "(cached) " >&6
16163else
16164 case $PKG_CONFIG in
16165 [\\/]* | ?:[\\/]*)
16166 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16167 ;;
16168 *)
16169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16170for as_dir in $PATH
16171do
16172 IFS=$as_save_IFS
16173 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016174 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16176 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016178 break 2
16179 fi
16180done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016181 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016182IFS=$as_save_IFS
16183
16184 ;;
16185esac
16186fi
16187PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16188if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016190$as_echo "$PKG_CONFIG" >&6; }
16191else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016193$as_echo "no" >&6; }
16194fi
16195
16196
16197fi
16198if test -z "$ac_cv_path_PKG_CONFIG"; then
16199 ac_pt_PKG_CONFIG=$PKG_CONFIG
16200 # Extract the first word of "pkg-config", so it can be a program name with args.
16201set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016203$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016204if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016205 $as_echo_n "(cached) " >&6
16206else
16207 case $ac_pt_PKG_CONFIG in
16208 [\\/]* | ?:[\\/]*)
16209 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16210 ;;
16211 *)
16212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16213for as_dir in $PATH
16214do
16215 IFS=$as_save_IFS
16216 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016217 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16219 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016221 break 2
16222 fi
16223done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016224 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016225IFS=$as_save_IFS
16226
16227 ;;
16228esac
16229fi
16230ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16231if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016233$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16234else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016236$as_echo "no" >&6; }
16237fi
16238
16239 if test "x$ac_pt_PKG_CONFIG" = x; then
16240 PKG_CONFIG=""
16241 else
16242 case $cross_compiling:$ac_tool_warned in
16243yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016244{ $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 +010016245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16246ac_tool_warned=yes ;;
16247esac
16248 PKG_CONFIG=$ac_pt_PKG_CONFIG
16249 fi
16250else
16251 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16252fi
16253
16254fi
16255if test -n "$PKG_CONFIG"; then
16256 _pkg_min_version=0.22
Scott James Remnantfde82c92009-09-22 10:04:15 -070016257 { $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 +010016258$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16259 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016261$as_echo "yes" >&6; }
16262 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016264$as_echo "no" >&6; }
16265 PKG_CONFIG=""
16266 fi
16267
16268fi
16269
16270# Checks for libraries
16271
16272nih_with_dbus=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070016273if test "x$nih_with_dbus" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016274
16275pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016277$as_echo_n "checking for DBUS... " >&6; }
16278
16279if test -n "$PKG_CONFIG"; then
16280 if test -n "$DBUS_CFLAGS"; then
16281 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16282 else
16283 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016284 { { $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 +010016285 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016286 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16288 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016289 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016290else
16291 pkg_failed=yes
16292fi
16293 fi
16294else
16295 pkg_failed=untried
16296fi
16297if test -n "$PKG_CONFIG"; then
16298 if test -n "$DBUS_LIBS"; then
16299 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16300 else
16301 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016302 { { $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 +010016303 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016304 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16306 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016307 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016308else
16309 pkg_failed=yes
16310fi
16311 fi
16312else
16313 pkg_failed=untried
16314fi
16315
16316
16317
16318if test $pkg_failed = yes; then
16319
16320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16321 _pkg_short_errors_supported=yes
16322else
16323 _pkg_short_errors_supported=no
16324fi
16325 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016326 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 +010016327 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016328 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016329 fi
16330 # Put the nasty error message in config.log where it belongs
16331 echo "$DBUS_PKG_ERRORS" >&5
16332
Scott James Remnantfde82c92009-09-22 10:04:15 -070016333 as_fn_error "Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010016334
16335$DBUS_PKG_ERRORS
16336
16337Consider adjusting the PKG_CONFIG_PATH environment variable if you
16338installed software in a non-standard prefix.
16339
16340Alternatively, you may set the environment variables DBUS_CFLAGS
16341and DBUS_LIBS to avoid the need to call pkg-config.
16342See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016343" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016344elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070016347as_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 +010016348is in your PATH or set the PKG_CONFIG environment variable to the full
16349path to pkg-config.
16350
16351Alternatively, you may set the environment variables DBUS_CFLAGS
16352and DBUS_LIBS to avoid the need to call pkg-config.
16353See the pkg-config man page for more details.
16354
16355To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016356See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010016357else
16358 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16359 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016361$as_echo "yes" >&6; }
16362 :
16363fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016365$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016366if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016367 $as_echo_n "(cached) " >&6
16368else
16369 ac_check_lib_save_LIBS=$LIBS
16370LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016372/* end confdefs.h. */
16373
16374/* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16377#ifdef __cplusplus
16378extern "C"
16379#endif
16380char XML_ParserCreate ();
16381int
16382main ()
16383{
16384return XML_ParserCreate ();
16385 ;
16386 return 0;
16387}
16388_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016389if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016390 ac_cv_lib_expat_XML_ParserCreate=yes
16391else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016392 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016393fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016394rm -f core conftest.err conftest.$ac_objext \
16395 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016396LIBS=$ac_check_lib_save_LIBS
16397fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016399$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016400if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016402$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016403if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016404 $as_echo_n "(cached) " >&6
16405else
16406 ac_check_lib_save_LIBS=$LIBS
16407LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016409/* end confdefs.h. */
16410
16411/* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16414#ifdef __cplusplus
16415extern "C"
16416#endif
16417char XML_StopParser ();
16418int
16419main ()
16420{
16421return XML_StopParser ();
16422 ;
16423 return 0;
16424}
16425_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016426if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016427 ac_cv_lib_expat_XML_StopParser=yes
16428else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016429 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016430fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016431rm -f core conftest.err conftest.$ac_objext \
16432 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016433LIBS=$ac_check_lib_save_LIBS
16434fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016436$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016437if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016438 EXPAT_LIBS=-lexpat
16439
16440else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016441 as_fn_error "expat >= 2.0.0 required" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016442fi
16443
16444else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016445 as_fn_error "expat library not found" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016446fi
16447
16448else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016449 if test "x$nih_with_dbus" != "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016450
16451pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016453$as_echo_n "checking for DBUS... " >&6; }
16454
16455if test -n "$PKG_CONFIG"; then
16456 if test -n "$DBUS_CFLAGS"; then
16457 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16458 else
16459 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016460 { { $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 +010016461 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016462 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16464 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016465 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016466else
16467 pkg_failed=yes
16468fi
16469 fi
16470else
16471 pkg_failed=untried
16472fi
16473if test -n "$PKG_CONFIG"; then
16474 if test -n "$DBUS_LIBS"; then
16475 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16476 else
16477 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016478 { { $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 +010016479 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016480 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16482 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016483 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016484else
16485 pkg_failed=yes
16486fi
16487 fi
16488else
16489 pkg_failed=untried
16490fi
16491
16492
16493
16494if test $pkg_failed = yes; then
16495
16496if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16497 _pkg_short_errors_supported=yes
16498else
16499 _pkg_short_errors_supported=no
16500fi
16501 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016502 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 +010016503 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016504 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016505 fi
16506 # Put the nasty error message in config.log where it belongs
16507 echo "$DBUS_PKG_ERRORS" >&5
16508
Scott James Remnantfde82c92009-09-22 10:04:15 -070016509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016510$as_echo "no" >&6; }
16511 nih_have_dbus=no
16512elif test $pkg_failed = untried; then
16513 nih_have_dbus=no
16514else
16515 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16516 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016518$as_echo "yes" >&6; }
16519 :
16520fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016522$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016523if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016524 $as_echo_n "(cached) " >&6
16525else
16526 ac_check_lib_save_LIBS=$LIBS
16527LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016529/* end confdefs.h. */
16530
16531/* Override any GCC internal prototype to avoid an error.
16532 Use char because int might match the return type of a GCC
16533 builtin and then its argument prototype would still apply. */
16534#ifdef __cplusplus
16535extern "C"
16536#endif
16537char XML_ParserCreate ();
16538int
16539main ()
16540{
16541return XML_ParserCreate ();
16542 ;
16543 return 0;
16544}
16545_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016546if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016547 ac_cv_lib_expat_XML_ParserCreate=yes
16548else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016549 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016550fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016551rm -f core conftest.err conftest.$ac_objext \
16552 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016553LIBS=$ac_check_lib_save_LIBS
16554fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016556$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016557if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016559$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016560if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016561 $as_echo_n "(cached) " >&6
16562else
16563 ac_check_lib_save_LIBS=$LIBS
16564LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016566/* end confdefs.h. */
16567
16568/* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16571#ifdef __cplusplus
16572extern "C"
16573#endif
16574char XML_StopParser ();
16575int
16576main ()
16577{
16578return XML_StopParser ();
16579 ;
16580 return 0;
16581}
16582_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016583if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016584 ac_cv_lib_expat_XML_StopParser=yes
16585else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016586 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016587fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016588rm -f core conftest.err conftest.$ac_objext \
16589 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016590LIBS=$ac_check_lib_save_LIBS
16591fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016593$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016594if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016595 EXPAT_LIBS=-lexpat
16596
16597else
16598 nih_have_dbus=no
16599fi
16600
16601else
16602 nih_have_dbus=no
16603fi
16604
16605else
16606 nih_have_dbus=no
16607fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016608fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016609 if test "x$nih_have_dbus" != "xno"; then
16610 HAVE_DBUS_TRUE=
16611 HAVE_DBUS_FALSE='#'
16612else
16613 HAVE_DBUS_TRUE='#'
16614 HAVE_DBUS_FALSE=
16615fi
16616
16617
Scott James Remnant2c84e532009-10-14 05:31:38 +010016618if test "x$nih_have_dbus" != "xno"; then :
16619
16620 if test "$cross_compiling" = "yes"; then :
16621 for ac_prog in nih-dbus-tool
16622do
16623 # Extract the first word of "$ac_prog", so it can be a program name with args.
16624set dummy $ac_prog; ac_word=$2
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16626$as_echo_n "checking for $ac_word... " >&6; }
16627if test "${ac_cv_prog_NIH_DBUS_TOOL+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629else
16630 if test -n "$NIH_DBUS_TOOL"; then
16631 ac_cv_prog_NIH_DBUS_TOOL="$NIH_DBUS_TOOL" # Let the user override the test.
16632else
16633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634for as_dir in $PATH
16635do
16636 IFS=$as_save_IFS
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16640 ac_cv_prog_NIH_DBUS_TOOL="$ac_prog"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642 break 2
16643 fi
16644done
16645 done
16646IFS=$as_save_IFS
16647
16648fi
16649fi
16650NIH_DBUS_TOOL=$ac_cv_prog_NIH_DBUS_TOOL
16651if test -n "$NIH_DBUS_TOOL"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NIH_DBUS_TOOL" >&5
16653$as_echo "$NIH_DBUS_TOOL" >&6; }
16654else
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656$as_echo "no" >&6; }
16657fi
16658
16659
16660 test -n "$NIH_DBUS_TOOL" && break
16661done
16662
16663 if test -z "$NIH_DBUS_TOOL"; then :
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: nih-dbus-tool not found, but you are cross-compiling. Using built copy, which is probably not what you want. Set NIH_DBUS_TOOL maybe?" >&5
16665$as_echo "$as_me: WARNING: nih-dbus-tool not found, but you are cross-compiling. Using built copy, which is probably not what you want. Set NIH_DBUS_TOOL maybe?" >&2;}
16666 NIH_DBUS_TOOL="\${top_builddir}/nih-dbus-tool/nih-dbus-tool"
16667
16668fi
16669else
16670 NIH_DBUS_TOOL="\${top_builddir}/nih-dbus-tool/nih-dbus-tool"
16671
16672fi
16673fi
16674
Scott James Remnant65f683d2009-07-14 13:05:17 +010016675
16676# Checks for header files.
Scott James Remnant65f683d2009-07-14 13:05:17 +010016677for ac_header in valgrind/valgrind.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070016678do :
16679 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16680if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016681 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016682#define HAVE_VALGRIND_VALGRIND_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016683_ACEOF
16684
16685fi
16686
16687done
16688
16689
16690# Checks for typedefs, structures, and compiler characteristics.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016692$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016693if test "${ac_cv_prog_cc_c99+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016694 $as_echo_n "(cached) " >&6
16695else
16696 ac_cv_prog_cc_c99=no
16697ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070016698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016699/* end confdefs.h. */
16700#include <stdarg.h>
16701#include <stdbool.h>
16702#include <stdlib.h>
16703#include <wchar.h>
16704#include <stdio.h>
16705
16706// Check varargs macros. These examples are taken from C99 6.10.3.5.
16707#define debug(...) fprintf (stderr, __VA_ARGS__)
16708#define showlist(...) puts (#__VA_ARGS__)
16709#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16710static void
16711test_varargs_macros (void)
16712{
16713 int x = 1234;
16714 int y = 5678;
16715 debug ("Flag");
16716 debug ("X = %d\n", x);
16717 showlist (The first, second, and third items.);
16718 report (x>y, "x is %d but y is %d", x, y);
16719}
16720
16721// Check long long types.
16722#define BIG64 18446744073709551615ull
16723#define BIG32 4294967295ul
16724#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16725#if !BIG_OK
16726 your preprocessor is broken;
16727#endif
16728#if BIG_OK
16729#else
16730 your preprocessor is broken;
16731#endif
16732static long long int bignum = -9223372036854775807LL;
16733static unsigned long long int ubignum = BIG64;
16734
16735struct incomplete_array
16736{
16737 int datasize;
16738 double data[];
16739};
16740
16741struct named_init {
16742 int number;
16743 const wchar_t *name;
16744 double average;
16745};
16746
16747typedef const char *ccp;
16748
16749static inline int
16750test_restrict (ccp restrict text)
16751{
16752 // See if C++-style comments work.
16753 // Iterate through items via the restricted pointer.
16754 // Also check for declarations in for loops.
16755 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16756 continue;
16757 return 0;
16758}
16759
16760// Check varargs and va_copy.
16761static void
16762test_varargs (const char *format, ...)
16763{
16764 va_list args;
16765 va_start (args, format);
16766 va_list args_copy;
16767 va_copy (args_copy, args);
16768
16769 const char *str;
16770 int number;
16771 float fnumber;
16772
16773 while (*format)
16774 {
16775 switch (*format++)
16776 {
16777 case 's': // string
16778 str = va_arg (args_copy, const char *);
16779 break;
16780 case 'd': // int
16781 number = va_arg (args_copy, int);
16782 break;
16783 case 'f': // float
16784 fnumber = va_arg (args_copy, double);
16785 break;
16786 default:
16787 break;
16788 }
16789 }
16790 va_end (args_copy);
16791 va_end (args);
16792}
16793
16794int
16795main ()
16796{
16797
16798 // Check bool.
16799 _Bool success = false;
16800
16801 // Check restrict.
16802 if (test_restrict ("String literal") == 0)
16803 success = true;
16804 char *restrict newvar = "Another string";
16805
16806 // Check varargs.
16807 test_varargs ("s, d' f .", "string", 65, 34.234);
16808 test_varargs_macros ();
16809
16810 // Check flexible array members.
16811 struct incomplete_array *ia =
16812 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16813 ia->datasize = 10;
16814 for (int i = 0; i < ia->datasize; ++i)
16815 ia->data[i] = i * 1.234;
16816
16817 // Check named initializers.
16818 struct named_init ni = {
16819 .number = 34,
16820 .name = L"Test wide string",
16821 .average = 543.34343,
16822 };
16823
16824 ni.number = 58;
16825
16826 int dynamic_array[ni.number];
16827 dynamic_array[ni.number - 1] = 543;
16828
16829 // work around unused variable warnings
16830 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16831 || dynamic_array[ni.number - 1] != 543);
16832
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
16838do
16839 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016840 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016841 ac_cv_prog_cc_c99=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010016842fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016843rm -f core conftest.err conftest.$ac_objext
16844 test "x$ac_cv_prog_cc_c99" != "xno" && break
16845done
16846rm -f conftest.$ac_ext
16847CC=$ac_save_CC
16848
16849fi
16850# AC_CACHE_VAL
16851case "x$ac_cv_prog_cc_c99" in
16852 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016854$as_echo "none needed" >&6; } ;;
16855 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016857$as_echo "unsupported" >&6; } ;;
16858 *)
16859 CC="$CC $ac_cv_prog_cc_c99"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016861$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16862esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070016863if test "x$ac_cv_prog_cc_c99" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016864
Scott James Remnantfde82c92009-09-22 10:04:15 -070016865fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016866
16867
16868# FIXME: we rely on the cache variable name because
16869# there is no other way.
16870set dummy $CC
16871am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16872eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16873if test "$am_t" != yes; then
16874 # Losing compiler, so override with the script.
16875 # FIXME: It is wrong to rewrite CC.
16876 # But if we don't then we get into trouble of one sort or another.
16877 # A longer-term fix would be to have automake use am__CC in this case,
16878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16879 CC="$am_aux_dir/compile $CC"
16880fi
16881
16882
16883# Check whether --enable-threading was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016884if test "${enable_threading+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016885 enableval=$enable_threading;
16886else
16887 enable_threading=no
16888fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016889if test "x$enable_threading" != "xno" ; then :
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016891$as_echo_n "checking whether compiler supports __thread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016892if test "${nih_cv_c_thread+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016893 $as_echo_n "(cached) " >&6
16894else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016896/* end confdefs.h. */
16897int __thread a;
16898int
16899main ()
16900{
16901
16902 ;
16903 return 0;
16904}
16905_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016906if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016907 nih_cv_c_thread=yes
16908else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016909 nih_cv_c_thread=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016910fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_c_thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016914$as_echo "$nih_cv_c_thread" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016915if test "x$nih_cv_c_thread" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016916
Scott James Remnantfde82c92009-09-22 10:04:15 -070016917$as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016918
16919fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016920else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016921 $as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016922
16923fi
16924
Scott James Remnant65f683d2009-07-14 13:05:17 +010016925# Other checks
16926# Check whether --enable-compiler-warnings was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016927if test "${enable_compiler_warnings+set}" = set; then :
16928 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then :
16929 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016930 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
16931fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016932 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016933 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
16934fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016935fi
16936
Scott James Remnant65f683d2009-07-14 13:05:17 +010016937fi
16938
16939# Check whether --enable-compiler-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016940if test "${enable_compiler_optimisations+set}" = set; then :
16941 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016942 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16943 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16944fi
16945
Scott James Remnant65f683d2009-07-14 13:05:17 +010016946fi
16947
16948# Check whether --enable-compiler-coverage was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016949if test "${enable_compiler_coverage+set}" = set; then :
16950 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then :
16951 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016952 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
16953fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016954 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016955 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
16956fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016957fi
16958
Scott James Remnant65f683d2009-07-14 13:05:17 +010016959fi
16960
16961
16962# Check whether --enable-linker-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016963if test "${enable_linker_optimisations+set}" = set; then :
16964 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016965 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
16966else
16967 LDFLAGS="$LDFLAGS -Wl,-O1"
16968fi
16969
Scott James Remnant65f683d2009-07-14 13:05:17 +010016970fi
16971
Scott James Remnantfde82c92009-09-22 10:04:15 -070016972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version script argument" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016973$as_echo_n "checking for linker version script argument... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016974if test "${nih_cv_version_script+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016975 $as_echo_n "(cached) " >&6
16976else
16977 nih_cv_version_script=none
16978for nih_try_arg in "-Wl,--version-script"; do
16979 nih_old_libs="$LIBS"
16980 LIBS="$LIBS $nih_try_arg=conftest.ver"
16981
16982 cat >conftest.ver <<EOF
16983TEST {
16984 global:
16985 *;
16986};
16987EOF
16988
Scott James Remnantfde82c92009-09-22 10:04:15 -070016989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016990/* end confdefs.h. */
16991
16992int
16993main ()
16994{
16995
16996 ;
16997 return 0;
16998}
16999_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070017000if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017001
17002 rm -f conftest.ver
17003 LIBS="$nih_old_libs"
17004 nih_cv_version_script="$nih_try_arg"
17005 break
17006
Scott James Remnant65f683d2009-07-14 13:05:17 +010017007fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070017008rm -f core conftest.err conftest.$ac_objext \
17009 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010017010
17011 rm -f conftest.ver
17012 LIBS="$nih_old_libs"
17013done
17014fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070017015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_version_script" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017016$as_echo "$nih_cv_version_script" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070017017if test "x$nih_cv_version_script" != "xnone"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017018 VERSION_SCRIPT_ARG=$nih_cv_version_script
17019
17020fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017021 if test "x$nih_cv_version_script" != "xnone"; then
17022 HAVE_VERSION_SCRIPT_ARG_TRUE=
17023 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
17024else
17025 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
17026 HAVE_VERSION_SCRIPT_ARG_FALSE=
17027fi
17028
17029
17030
17031
17032# Checks for header files.
17033
17034# Checks for typedefs, structures, and compiler characteristics.
17035
17036# Checks for library functions.
17037
17038# Other checks
Scott James Remnantfde82c92009-09-22 10:04:15 -070017039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sbindir in PATH" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017040$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
17041eval upstart_sbindir=\"$sbindir\"
17042case $upstart_sbindir in
17043 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017045$as_echo "no" >&6; }
17046 ;;
17047 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017049$as_echo "yes" >&6; }
17050
17051cat >>confdefs.h <<_ACEOF
17052#define EXTRA_PATH "$upstart_sbindir"
17053_ACEOF
17054
17055 ;;
17056esac
17057
17058
Scott James Remnant2a66c572009-09-15 03:19:16 +010017059pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070017060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017061$as_echo_n "checking for UDEV... " >&6; }
17062
17063if test -n "$PKG_CONFIG"; then
17064 if test -n "$UDEV_CFLAGS"; then
17065 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
17066 else
17067 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070017068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017069 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
17070 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070017071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17072 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017073 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 146" 2>/dev/null`
17074else
17075 pkg_failed=yes
17076fi
17077 fi
17078else
17079 pkg_failed=untried
17080fi
17081if test -n "$PKG_CONFIG"; then
17082 if test -n "$UDEV_LIBS"; then
17083 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
17084 else
17085 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070017086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017087 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
17088 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070017089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017091 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 146" 2>/dev/null`
17092else
17093 pkg_failed=yes
17094fi
17095 fi
17096else
17097 pkg_failed=untried
17098fi
17099
17100
17101
17102if test $pkg_failed = yes; then
17103
17104if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17105 _pkg_short_errors_supported=yes
17106else
17107 _pkg_short_errors_supported=no
17108fi
17109 if test $_pkg_short_errors_supported = yes; then
17110 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev >= 146"`
17111 else
17112 UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev >= 146"`
17113 fi
17114 # Put the nasty error message in config.log where it belongs
17115 echo "$UDEV_PKG_ERRORS" >&5
17116
Scott James Remnantfde82c92009-09-22 10:04:15 -070017117 as_fn_error "Package requirements (libudev >= 146) were not met:
Scott James Remnant2a66c572009-09-15 03:19:16 +010017118
17119$UDEV_PKG_ERRORS
17120
17121Consider adjusting the PKG_CONFIG_PATH environment variable if you
17122installed software in a non-standard prefix.
17123
17124Alternatively, you may set the environment variables UDEV_CFLAGS
17125and UDEV_LIBS to avoid the need to call pkg-config.
17126See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017127" "$LINENO" 5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017128elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017131as_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 +010017132is in your PATH or set the PKG_CONFIG environment variable to the full
17133path to pkg-config.
17134
17135Alternatively, you may set the environment variables UDEV_CFLAGS
17136and UDEV_LIBS to avoid the need to call pkg-config.
17137See the pkg-config man page for more details.
17138
17139To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017140See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010017141else
17142 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17143 UDEV_LIBS=$pkg_cv_UDEV_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070017144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017145$as_echo "yes" >&6; }
17146 :
17147fi
17148
17149
17150ac_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 +010017151
17152ac_config_headers="$ac_config_headers config.h"
17153
17154cat >confcache <<\_ACEOF
17155# This file is a shell script that caches the results of configure
17156# tests run on this system so they can be shared between configure
17157# scripts and configure runs, see configure's option --config-cache.
17158# It is not useful on other systems. If it contains results you don't
17159# want to keep, you may remove or edit it.
17160#
17161# config.status only pays attention to the cache file if you give it
17162# the --recheck option to rerun configure.
17163#
17164# `ac_cv_env_foo' variables (set or unset) will be overridden when
17165# loading this file, other *unset* `ac_cv_foo' will be assigned the
17166# following values.
17167
17168_ACEOF
17169
17170# The following way of writing the cache mishandles newlines in values,
17171# but we know of no workaround that is simple, portable, and efficient.
17172# So, we kill variables containing newlines.
17173# Ultrix sh set writes to stderr and can't be redirected directly,
17174# and sets the high bit in the cache file unless we assign to the vars.
17175(
17176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17177 eval ac_val=\$$ac_var
17178 case $ac_val in #(
17179 *${as_nl}*)
17180 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017181 *_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 +010017182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17183 esac
17184 case $ac_var in #(
17185 _ | IFS | as_nl) ;; #(
17186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017187 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017188 esac ;;
17189 esac
17190 done
17191
17192 (set) 2>&1 |
17193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17194 *${as_nl}ac_space=\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017195 # `set' does not quote correctly, so add quotes: double-quote
17196 # substitution turns \\\\ into \\, and sed turns \\ into \.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017197 sed -n \
17198 "s/'/'\\\\''/g;
17199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17200 ;; #(
17201 *)
17202 # `set' quotes correctly as required by POSIX, so do not add quotes.
17203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17204 ;;
17205 esac |
17206 sort
17207) |
17208 sed '
17209 /^ac_cv_env_/b end
17210 t clear
17211 :clear
17212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17213 t end
17214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17215 :end' >>confcache
17216if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17217 if test -w "$cache_file"; then
17218 test "x$cache_file" != "x/dev/null" &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070017219 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017220$as_echo "$as_me: updating cache $cache_file" >&6;}
17221 cat confcache >$cache_file
17222 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017223 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017224$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17225 fi
17226fi
17227rm -f confcache
17228
17229test "x$prefix" = xNONE && prefix=$ac_default_prefix
17230# Let make expand exec_prefix.
17231test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17232
17233DEFS=-DHAVE_CONFIG_H
17234
17235ac_libobjs=
17236ac_ltlibobjs=
17237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17238 # 1. Remove the extension, and $U if already installed.
17239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17242 # will be set to the directory where LIBOBJS objects are built.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017243 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17244 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017245done
17246LIBOBJS=$ac_libobjs
17247
17248LTLIBOBJS=$ac_ltlibobjs
17249
17250
17251if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017252 as_fn_error "conditional \"AMDEP\" was never defined.
17253Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017254fi
17255if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017256 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17257Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017258fi
Scott James Remnantc5b65582009-09-23 14:16:28 -070017259 if test -n "$EXEEXT"; then
17260 am__EXEEXT_TRUE=
17261 am__EXEEXT_FALSE='#'
17262else
17263 am__EXEEXT_TRUE='#'
17264 am__EXEEXT_FALSE=
17265fi
17266
Scott James Remnant65f683d2009-07-14 13:05:17 +010017267if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017268 as_fn_error "conditional \"INSTALL_NIH\" was never defined.
17269Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017270fi
17271if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017272 as_fn_error "conditional \"HAVE_DBUS\" was never defined.
17273Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017274fi
17275if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017276 as_fn_error "conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
17277Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017278fi
17279
17280: ${CONFIG_STATUS=./config.status}
17281ac_write_fail=0
17282ac_clean_files_save=$ac_clean_files
17283ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070017284{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017285$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017286as_write_fail=0
17287cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017288#! $SHELL
17289# Generated by $as_me.
17290# Run this file to recreate the current configuration.
17291# Compiler output produced by configure, useful for debugging
17292# configure, is in config.log if it exists.
17293
17294debug=false
17295ac_cs_recheck=false
17296ac_cs_silent=false
Scott James Remnant2a66c572009-09-15 03:19:16 +010017297
Scott James Remnantfde82c92009-09-22 10:04:15 -070017298SHELL=\${CONFIG_SHELL-$SHELL}
17299export SHELL
17300_ASEOF
17301cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17302## -------------------- ##
17303## M4sh Initialization. ##
17304## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010017305
17306# Be more Bourne compatible
17307DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnantfde82c92009-09-22 10:04:15 -070017308if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017309 emulate sh
17310 NULLCMD=:
17311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17312 # is contrary to our usage. Disable this feature.
17313 alias -g '${1+"$@"}'='"$@"'
17314 setopt NO_GLOB_SUBST
17315else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017316 case `(set -o) 2>/dev/null` in #(
17317 *posix*) :
17318 set -o posix ;; #(
17319 *) :
17320 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017321esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017322fi
17323
17324
Scott James Remnant65f683d2009-07-14 13:05:17 +010017325as_nl='
17326'
17327export as_nl
17328# Printing a long string crashes Solaris 7 /usr/bin/printf.
17329as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17330as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17331as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnantfde82c92009-09-22 10:04:15 -070017332# Prefer a ksh shell builtin over an external printf program on Solaris,
17333# but without wasting forks for bash or zsh.
17334if test -z "$BASH_VERSION$ZSH_VERSION" \
17335 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17336 as_echo='print -r --'
17337 as_echo_n='print -rn --'
17338elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017339 as_echo='printf %s\n'
17340 as_echo_n='printf %s'
17341else
17342 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17343 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17344 as_echo_n='/usr/ucb/echo -n'
17345 else
17346 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17347 as_echo_n_body='eval
17348 arg=$1;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017349 case $arg in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017350 *"$as_nl"*)
17351 expr "X$arg" : "X\\(.*\\)$as_nl";
17352 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17353 esac;
17354 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17355 '
17356 export as_echo_n_body
17357 as_echo_n='sh -c $as_echo_n_body as_echo'
17358 fi
17359 export as_echo_body
17360 as_echo='sh -c $as_echo_body as_echo'
17361fi
17362
17363# The user is always right.
17364if test "${PATH_SEPARATOR+set}" != set; then
17365 PATH_SEPARATOR=:
17366 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17367 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17368 PATH_SEPARATOR=';'
17369 }
17370fi
17371
Scott James Remnant65f683d2009-07-14 13:05:17 +010017372
17373# IFS
17374# We need space, tab and new line, in precisely that order. Quoting is
17375# there to prevent editors from complaining about space-tab.
17376# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17377# splitting by setting IFS to empty value.)
17378IFS=" "" $as_nl"
17379
17380# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017381case $0 in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017382 *[\\/]* ) as_myself=$0 ;;
17383 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17384for as_dir in $PATH
17385do
17386 IFS=$as_save_IFS
17387 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017388 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17389 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010017390IFS=$as_save_IFS
17391
17392 ;;
17393esac
17394# We did not find ourselves, most probably we were run as `sh COMMAND'
17395# in which case we are not to be found in the path.
17396if test "x$as_myself" = x; then
17397 as_myself=$0
17398fi
17399if test ! -f "$as_myself"; then
17400 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnantfde82c92009-09-22 10:04:15 -070017401 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017402fi
17403
Scott James Remnantfde82c92009-09-22 10:04:15 -070017404# Unset variables that we do not need and which cause bugs (e.g. in
17405# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17406# suppresses any "Segmentation fault" message there. '((' could
17407# trigger a bug in pdksh 5.2.14.
17408for as_var in BASH_ENV ENV MAIL MAILPATH
17409do eval test x\${$as_var+set} = xset \
17410 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017411done
17412PS1='$ '
17413PS2='> '
17414PS4='+ '
17415
17416# NLS nuisances.
17417LC_ALL=C
17418export LC_ALL
17419LANGUAGE=C
17420export LANGUAGE
17421
Scott James Remnantfde82c92009-09-22 10:04:15 -070017422# CDPATH.
17423(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17424
17425
17426# as_fn_error ERROR [LINENO LOG_FD]
17427# ---------------------------------
17428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17430# script with status $?, using 1 if that was 0.
17431as_fn_error ()
17432{
17433 as_status=$?; test $as_status -eq 0 && as_status=1
17434 if test "$3"; then
17435 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17436 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17437 fi
17438 $as_echo "$as_me: error: $1" >&2
17439 as_fn_exit $as_status
17440} # as_fn_error
17441
17442
17443# as_fn_set_status STATUS
17444# -----------------------
17445# Set $? to STATUS, without forking.
17446as_fn_set_status ()
17447{
17448 return $1
17449} # as_fn_set_status
17450
17451# as_fn_exit STATUS
17452# -----------------
17453# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17454as_fn_exit ()
17455{
17456 set +e
17457 as_fn_set_status $1
17458 exit $1
17459} # as_fn_exit
17460
17461# as_fn_unset VAR
17462# ---------------
17463# Portably unset VAR.
17464as_fn_unset ()
17465{
17466 { eval $1=; unset $1;}
17467}
17468as_unset=as_fn_unset
17469# as_fn_append VAR VALUE
17470# ----------------------
17471# Append the text in VALUE to the end of the definition contained in VAR. Take
17472# advantage of any shell optimizations that allow amortized linear growth over
17473# repeated appends, instead of the typical quadratic growth present in naive
17474# implementations.
17475if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17476 eval 'as_fn_append ()
17477 {
17478 eval $1+=\$2
17479 }'
17480else
17481 as_fn_append ()
17482 {
17483 eval $1=\$$1\$2
17484 }
17485fi # as_fn_append
17486
17487# as_fn_arith ARG...
17488# ------------------
17489# Perform arithmetic evaluation on the ARGs, and store the result in the
17490# global $as_val. Take advantage of shells that can avoid forks. The arguments
17491# must be portable across $(()) and expr.
17492if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17493 eval 'as_fn_arith ()
17494 {
17495 as_val=$(( $* ))
17496 }'
17497else
17498 as_fn_arith ()
17499 {
17500 as_val=`expr "$@" || test $? -eq 1`
17501 }
17502fi # as_fn_arith
17503
17504
Scott James Remnant65f683d2009-07-14 13:05:17 +010017505if expr a : '\(a\)' >/dev/null 2>&1 &&
17506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17507 as_expr=expr
17508else
17509 as_expr=false
17510fi
17511
17512if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17513 as_basename=basename
17514else
17515 as_basename=false
17516fi
17517
Scott James Remnantfde82c92009-09-22 10:04:15 -070017518if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17519 as_dirname=dirname
17520else
17521 as_dirname=false
17522fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017523
Scott James Remnant65f683d2009-07-14 13:05:17 +010017524as_me=`$as_basename -- "$0" ||
17525$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17526 X"$0" : 'X\(//\)$' \| \
17527 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17528$as_echo X/"$0" |
17529 sed '/^.*\/\([^/][^/]*\)\/*$/{
17530 s//\1/
17531 q
17532 }
17533 /^X\/\(\/\/\)$/{
17534 s//\1/
17535 q
17536 }
17537 /^X\/\(\/\).*/{
17538 s//\1/
17539 q
17540 }
17541 s/.*/./; q'`
17542
Scott James Remnantfde82c92009-09-22 10:04:15 -070017543# Avoid depending upon Character Ranges.
17544as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17545as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17546as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17547as_cr_digits='0123456789'
17548as_cr_alnum=$as_cr_Letters$as_cr_digits
Scott James Remnant65f683d2009-07-14 13:05:17 +010017549
17550ECHO_C= ECHO_N= ECHO_T=
Scott James Remnantfde82c92009-09-22 10:04:15 -070017551case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017552-n*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017553 case `echo 'xy\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010017554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017555 xy) ECHO_C='\c';;
17556 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17557 ECHO_T=' ';;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017558 esac;;
17559*)
17560 ECHO_N='-n';;
17561esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017562
17563rm -f conf$$ conf$$.exe conf$$.file
17564if test -d conf$$.dir; then
17565 rm -f conf$$.dir/conf$$.file
17566else
17567 rm -f conf$$.dir
17568 mkdir conf$$.dir 2>/dev/null
17569fi
17570if (echo >conf$$.file) 2>/dev/null; then
17571 if ln -s conf$$.file conf$$ 2>/dev/null; then
17572 as_ln_s='ln -s'
17573 # ... but there are two gotchas:
17574 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17575 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17576 # In both cases, we have to default to `cp -p'.
17577 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17578 as_ln_s='cp -p'
17579 elif ln conf$$.file conf$$ 2>/dev/null; then
17580 as_ln_s=ln
17581 else
17582 as_ln_s='cp -p'
17583 fi
17584else
17585 as_ln_s='cp -p'
17586fi
17587rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17588rmdir conf$$.dir 2>/dev/null
17589
Scott James Remnantfde82c92009-09-22 10:04:15 -070017590
17591# as_fn_mkdir_p
17592# -------------
17593# Create "$as_dir" as a directory, including parents if necessary.
17594as_fn_mkdir_p ()
17595{
17596
17597 case $as_dir in #(
17598 -*) as_dir=./$as_dir;;
17599 esac
17600 test -d "$as_dir" || eval $as_mkdir_p || {
17601 as_dirs=
17602 while :; do
17603 case $as_dir in #(
17604 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17605 *) as_qdir=$as_dir;;
17606 esac
17607 as_dirs="'$as_qdir' $as_dirs"
17608 as_dir=`$as_dirname -- "$as_dir" ||
17609$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17610 X"$as_dir" : 'X\(//\)[^/]' \| \
17611 X"$as_dir" : 'X\(//\)$' \| \
17612 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17613$as_echo X"$as_dir" |
17614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17615 s//\1/
17616 q
17617 }
17618 /^X\(\/\/\)[^/].*/{
17619 s//\1/
17620 q
17621 }
17622 /^X\(\/\/\)$/{
17623 s//\1/
17624 q
17625 }
17626 /^X\(\/\).*/{
17627 s//\1/
17628 q
17629 }
17630 s/.*/./; q'`
17631 test -d "$as_dir" && break
17632 done
17633 test -z "$as_dirs" || eval "mkdir $as_dirs"
17634 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17635
17636
17637} # as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010017638if mkdir -p . 2>/dev/null; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017639 as_mkdir_p='mkdir -p "$as_dir"'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017640else
17641 test -d ./-p && rmdir ./-p
17642 as_mkdir_p=false
17643fi
17644
17645if test -x / >/dev/null 2>&1; then
17646 as_test_x='test -x'
17647else
17648 if ls -dL / >/dev/null 2>&1; then
17649 as_ls_L_option=L
17650 else
17651 as_ls_L_option=
17652 fi
17653 as_test_x='
17654 eval sh -c '\''
17655 if test -d "$1"; then
17656 test -d "$1/.";
17657 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017658 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017659 -*)set "./$1";;
17660 esac;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017661 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017662 ???[sx]*):;;*)false;;esac;fi
17663 '\'' sh
17664 '
17665fi
17666as_executable_p=$as_test_x
17667
17668# Sed expression to map a string onto a valid CPP name.
17669as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17670
17671# Sed expression to map a string onto a valid variable name.
17672as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17673
17674
17675exec 6>&1
Scott James Remnantfde82c92009-09-22 10:04:15 -070017676## ----------------------------------- ##
17677## Main body of $CONFIG_STATUS script. ##
17678## ----------------------------------- ##
17679_ASEOF
17680test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017681
Scott James Remnantfde82c92009-09-22 10:04:15 -070017682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17683# Save the log message, to keep $0 and so on meaningful, and to
Scott James Remnant65f683d2009-07-14 13:05:17 +010017684# report actual input values of CONFIG_FILES etc. instead of their
17685# values after options handling.
17686ac_log="
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017687This file was extended by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -070017688generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +010017689
17690 CONFIG_FILES = $CONFIG_FILES
17691 CONFIG_HEADERS = $CONFIG_HEADERS
17692 CONFIG_LINKS = $CONFIG_LINKS
17693 CONFIG_COMMANDS = $CONFIG_COMMANDS
17694 $ $0 $@
17695
17696on `(hostname || uname -n) 2>/dev/null | sed 1q`
17697"
17698
17699_ACEOF
17700
17701case $ac_config_files in *"
17702"*) set x $ac_config_files; shift; ac_config_files=$*;;
17703esac
17704
17705case $ac_config_headers in *"
17706"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17707esac
17708
17709
17710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17711# Files that config.status was made for.
17712config_files="$ac_config_files"
17713config_headers="$ac_config_headers"
17714config_commands="$ac_config_commands"
17715
17716_ACEOF
17717
17718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17719ac_cs_usage="\
Scott James Remnantfde82c92009-09-22 10:04:15 -070017720\`$as_me' instantiates files and other configuration actions
17721from templates according to the current configuration. Unless the files
17722and actions are specified as TAGs, all are instantiated by default.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017723
Scott James Remnantfde82c92009-09-22 10:04:15 -070017724Usage: $0 [OPTION]... [TAG]...
Scott James Remnant65f683d2009-07-14 13:05:17 +010017725
17726 -h, --help print this help, then exit
17727 -V, --version print version number and configuration settings, then exit
17728 -q, --quiet, --silent
17729 do not print progress messages
17730 -d, --debug don't remove temporary files
17731 --recheck update $as_me by reconfiguring in the same conditions
17732 --file=FILE[:TEMPLATE]
17733 instantiate the configuration file FILE
17734 --header=FILE[:TEMPLATE]
17735 instantiate the configuration header FILE
17736
17737Configuration files:
17738$config_files
17739
17740Configuration headers:
17741$config_headers
17742
17743Configuration commands:
17744$config_commands
17745
Scott James Remnantfde82c92009-09-22 10:04:15 -070017746Report bugs to <upstart-devel@lists.ubuntu.com>."
Scott James Remnant65f683d2009-07-14 13:05:17 +010017747
17748_ACEOF
17749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17750ac_cs_version="\\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017751upstart config.status 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -070017752configured by $0, generated by GNU Autoconf 2.64,
Scott James Remnant65f683d2009-07-14 13:05:17 +010017753 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17754
Scott James Remnantfde82c92009-09-22 10:04:15 -070017755Copyright (C) 2009 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017756This config.status script is free software; the Free Software Foundation
17757gives unlimited permission to copy, distribute and modify it."
17758
17759ac_pwd='$ac_pwd'
17760srcdir='$srcdir'
17761INSTALL='$INSTALL'
17762MKDIR_P='$MKDIR_P'
17763AWK='$AWK'
17764test -n "\$AWK" || AWK=awk
17765_ACEOF
17766
17767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768# The default lists apply if the user does not specify any file.
17769ac_need_defaults=:
17770while test $# != 0
17771do
17772 case $1 in
17773 --*=*)
17774 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17775 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17776 ac_shift=:
17777 ;;
17778 *)
17779 ac_option=$1
17780 ac_optarg=$2
17781 ac_shift=shift
17782 ;;
17783 esac
17784
17785 case $ac_option in
17786 # Handling of the options.
17787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17788 ac_cs_recheck=: ;;
17789 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17790 $as_echo "$ac_cs_version"; exit ;;
17791 --debug | --debu | --deb | --de | --d | -d )
17792 debug=: ;;
17793 --file | --fil | --fi | --f )
17794 $ac_shift
17795 case $ac_optarg in
17796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17797 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017798 as_fn_append CONFIG_FILES " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017799 ac_need_defaults=false;;
17800 --header | --heade | --head | --hea )
17801 $ac_shift
17802 case $ac_optarg in
17803 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17804 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017805 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017806 ac_need_defaults=false;;
17807 --he | --h)
17808 # Conflict between --help and --header
Scott James Remnantfde82c92009-09-22 10:04:15 -070017809 as_fn_error "ambiguous option: \`$1'
17810Try \`$0 --help' for more information.";;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017811 --help | --hel | -h )
17812 $as_echo "$ac_cs_usage"; exit ;;
17813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17815 ac_cs_silent=: ;;
17816
17817 # This is an error.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017818 -*) as_fn_error "unrecognized option: \`$1'
17819Try \`$0 --help' for more information." ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017820
Scott James Remnantfde82c92009-09-22 10:04:15 -070017821 *) as_fn_append ac_config_targets " $1"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017822 ac_need_defaults=false ;;
17823
17824 esac
17825 shift
17826done
17827
17828ac_configure_extra_args=
17829
17830if $ac_cs_silent; then
17831 exec 6>/dev/null
17832 ac_configure_extra_args="$ac_configure_extra_args --silent"
17833fi
17834
17835_ACEOF
17836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17837if \$ac_cs_recheck; then
17838 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17839 shift
17840 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17841 CONFIG_SHELL='$SHELL'
17842 export CONFIG_SHELL
17843 exec "\$@"
17844fi
17845
17846_ACEOF
17847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17848exec 5>>config.log
17849{
17850 echo
17851 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17852## Running $as_me. ##
17853_ASBOX
17854 $as_echo "$ac_log"
17855} >&5
17856
17857_ACEOF
17858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17859#
17860# INIT-COMMANDS
17861#
17862AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17863
17864
17865# The HP-UX ksh and POSIX shell print the target directory to stdout
17866# if CDPATH is set.
17867(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17868
17869sed_quote_subst='$sed_quote_subst'
17870double_quote_subst='$double_quote_subst'
17871delay_variable_subst='$delay_variable_subst'
17872macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17873macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17874enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17875enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17876pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17877enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17878host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17879host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17880host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17881build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17882build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17883build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17884SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17885Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17886GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17887EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17888FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17889LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17890NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17891LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17892max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17893ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17894exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17895lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17896lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17897lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17898reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17899reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17900OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17901deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17902file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17903AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17904AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17905STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17906RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17907old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17908old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17909old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17910CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17911CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17912compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17913GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17914lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17915lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17916lt_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"`'
17917lt_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"`'
17918objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17919SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17920ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17921MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17922lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17923lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17924lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17925lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17926lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17927need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17928DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17929NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17930LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17931OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17932OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17933libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17934shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17935extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17936archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17937enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17938export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17939whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17940compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17941old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17942old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17943archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17944archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17945module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17946module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17947with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17948allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17949no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17950hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17951hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17952hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17953hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17954hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17955hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17956hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17957hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17958inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17959link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17960fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17961always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17962export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17963exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17964include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17965prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17966file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17967variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17968need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17969need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17970version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17971runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17972shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17973shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17974libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17975library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17976soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17977postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17978postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17979finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17980finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17981hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17982sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17983sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17984hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17985enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17986enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17987enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17988old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17989striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17990
17991LTCC='$LTCC'
17992LTCFLAGS='$LTCFLAGS'
17993compiler='$compiler_DEFAULT'
17994
17995# Quote evaled strings.
17996for var in SED \
17997GREP \
17998EGREP \
17999FGREP \
18000LD \
18001NM \
18002LN_S \
18003lt_SP2NL \
18004lt_NL2SP \
18005reload_flag \
18006OBJDUMP \
18007deplibs_check_method \
18008file_magic_cmd \
18009AR \
18010AR_FLAGS \
18011STRIP \
18012RANLIB \
18013CC \
18014CFLAGS \
18015compiler \
18016lt_cv_sys_global_symbol_pipe \
18017lt_cv_sys_global_symbol_to_cdecl \
18018lt_cv_sys_global_symbol_to_c_name_address \
18019lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18020SHELL \
18021ECHO \
18022lt_prog_compiler_no_builtin_flag \
18023lt_prog_compiler_wl \
18024lt_prog_compiler_pic \
18025lt_prog_compiler_static \
18026lt_cv_prog_compiler_c_o \
18027need_locks \
18028DSYMUTIL \
18029NMEDIT \
18030LIPO \
18031OTOOL \
18032OTOOL64 \
18033shrext_cmds \
18034export_dynamic_flag_spec \
18035whole_archive_flag_spec \
18036compiler_needs_object \
18037with_gnu_ld \
18038allow_undefined_flag \
18039no_undefined_flag \
18040hardcode_libdir_flag_spec \
18041hardcode_libdir_flag_spec_ld \
18042hardcode_libdir_separator \
18043fix_srcfile_path \
18044exclude_expsyms \
18045include_expsyms \
18046file_list_spec \
18047variables_saved_for_relink \
18048libname_spec \
18049library_names_spec \
18050soname_spec \
18051finish_eval \
18052old_striplib \
18053striplib; do
18054 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18055 *[\\\\\\\`\\"\\\$]*)
18056 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18057 ;;
18058 *)
18059 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18060 ;;
18061 esac
18062done
18063
18064# Double-quote double-evaled strings.
18065for var in reload_cmds \
18066old_postinstall_cmds \
18067old_postuninstall_cmds \
18068old_archive_cmds \
18069extract_expsyms_cmds \
18070old_archive_from_new_cmds \
18071old_archive_from_expsyms_cmds \
18072archive_cmds \
18073archive_expsym_cmds \
18074module_cmds \
18075module_expsym_cmds \
18076export_symbols_cmds \
18077prelink_cmds \
18078postinstall_cmds \
18079postuninstall_cmds \
18080finish_cmds \
18081sys_lib_search_path_spec \
18082sys_lib_dlsearch_path_spec; do
18083 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18084 *[\\\\\\\`\\"\\\$]*)
18085 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18086 ;;
18087 *)
18088 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18089 ;;
18090 esac
18091done
18092
18093# Fix-up fallback echo if it was mangled by the above quoting rules.
18094case \$lt_ECHO in
18095*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18096 ;;
18097esac
18098
18099ac_aux_dir='$ac_aux_dir'
18100xsi_shell='$xsi_shell'
18101lt_shell_append='$lt_shell_append'
18102
18103# See if we are running on zsh, and set the options which allow our
18104# commands through without removal of \ escapes INIT.
18105if test -n "\${ZSH_VERSION+set}" ; then
18106 setopt NO_GLOB_SUBST
18107fi
18108
18109
18110 PACKAGE='$PACKAGE'
18111 VERSION='$VERSION'
18112 TIMESTAMP='$TIMESTAMP'
18113 RM='$RM'
18114 ofile='$ofile'
18115
18116
18117
18118# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18119 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18120 # from automake < 1.5.
18121 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18122 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18123 LINGUAS="${LINGUAS-%UNSET%}"
18124
18125
18126_ACEOF
18127
18128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18129
18130# Handling of arguments.
18131for ac_config_target in $ac_config_targets
18132do
18133 case $ac_config_target in
18134 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18135 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18136 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18137 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18138 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18139 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18140 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
18141 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
18142 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
18143 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
18144 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
18145 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +010018146 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018147 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
18148 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18149 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18150 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18151 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18152
Scott James Remnantfde82c92009-09-22 10:04:15 -070018153 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018154 esac
18155done
18156
18157
18158# If the user did not use the arguments to specify the items to instantiate,
18159# then the envvar interface is used. Set only those that are not.
18160# We use the long form for the default assignment because of an extremely
18161# bizarre bug on SunOS 4.1.3.
18162if $ac_need_defaults; then
18163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18166fi
18167
18168# Have a temporary directory for convenience. Make it in the build tree
18169# simply because there is no reason against having it here, and in addition,
18170# creating and moving files from /tmp can sometimes cause problems.
18171# Hook for its removal unless debugging.
18172# Note that there is a small window in which the directory will not be cleaned:
18173# after its creation but before its name has been assigned to `$tmp'.
18174$debug ||
18175{
18176 tmp=
18177 trap 'exit_status=$?
18178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18179' 0
Scott James Remnantfde82c92009-09-22 10:04:15 -070018180 trap 'as_fn_exit 1' 1 2 13 15
Scott James Remnant65f683d2009-07-14 13:05:17 +010018181}
18182# Create a (secure) tmp directory for tmp files.
18183
18184{
18185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18186 test -n "$tmp" && test -d "$tmp"
18187} ||
18188{
18189 tmp=./conf$$-$RANDOM
18190 (umask 077 && mkdir "$tmp")
Scott James Remnantfde82c92009-09-22 10:04:15 -070018191} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018192
18193# Set up the scripts for CONFIG_FILES section.
18194# No need to generate them if there are no CONFIG_FILES.
18195# This happens for instance with `./config.status config.h'.
18196if test -n "$CONFIG_FILES"; then
18197
18198
Scott James Remnantfde82c92009-09-22 10:04:15 -070018199ac_cr=`echo X | tr X '\015'`
18200# On cygwin, bash can eat \r inside `` if the user requested igncr.
18201# But we know of no other shell where ac_cr would be empty at this
18202# point, so we can use a bashism as a fallback.
18203if test "x$ac_cr" = x; then
18204 eval ac_cr=\$\'\\r\'
18205fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010018206ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18207if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018208 ac_cs_awk_cr='\r'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018209else
18210 ac_cs_awk_cr=$ac_cr
18211fi
18212
18213echo 'BEGIN {' >"$tmp/subs1.awk" &&
18214_ACEOF
18215
18216
18217{
18218 echo "cat >conf$$subs.awk <<_ACEOF" &&
18219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18220 echo "_ACEOF"
18221} >conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018222 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018223ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18224ac_delim='%!_!# '
18225for ac_last_try in false false false false false :; do
18226 . ./conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018227 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018228
18229 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18230 if test $ac_delim_n = $ac_delim_num; then
18231 break
18232 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018233 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018234 else
18235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18236 fi
18237done
18238rm -f conf$$subs.sh
18239
18240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18241cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18242_ACEOF
18243sed -n '
18244h
18245s/^/S["/; s/!.*/"]=/
18246p
18247g
18248s/^[^!]*!//
18249:repl
18250t repl
18251s/'"$ac_delim"'$//
18252t delim
18253:nl
18254h
18255s/\(.\{148\}\).*/\1/
18256t more1
18257s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18258p
18259n
18260b repl
18261:more1
18262s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18263p
18264g
18265s/.\{148\}//
18266t nl
18267:delim
18268h
18269s/\(.\{148\}\).*/\1/
18270t more2
18271s/["\\]/\\&/g; s/^/"/; s/$/"/
18272p
18273b
18274:more2
18275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18276p
18277g
18278s/.\{148\}//
18279t delim
18280' <conf$$subs.awk | sed '
18281/^[^""]/{
18282 N
18283 s/\n//
18284}
18285' >>$CONFIG_STATUS || ac_write_fail=1
18286rm -f conf$$subs.awk
18287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288_ACAWK
18289cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18290 for (key in S) S_is_set[key] = 1
18291 FS = ""
18292
18293}
18294{
18295 line = $ 0
18296 nfields = split(line, field, "@")
18297 substed = 0
18298 len = length(field[1])
18299 for (i = 2; i < nfields; i++) {
18300 key = field[i]
18301 keylen = length(key)
18302 if (S_is_set[key]) {
18303 value = S[key]
18304 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18305 len += length(value) + length(field[++i])
18306 substed = 1
18307 } else
18308 len += 1 + keylen
18309 }
18310
18311 print line
18312}
18313
18314_ACAWK
18315_ACEOF
18316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18318 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18319else
18320 cat
18321fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018322 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018323_ACEOF
18324
18325# VPATH may cause trouble with some makes, so we remove $(srcdir),
18326# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18327# trailing colons and then remove the whole line if VPATH becomes empty
18328# (actually we leave an empty line to preserve line numbers).
18329if test "x$srcdir" = x.; then
18330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18331s/:*\$(srcdir):*/:/
18332s/:*\${srcdir}:*/:/
18333s/:*@srcdir@:*/:/
18334s/^\([^=]*=[ ]*\):*/\1/
18335s/:*$//
18336s/^[^=]*=[ ]*$//
18337}'
18338fi
18339
18340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18341fi # test -n "$CONFIG_FILES"
18342
18343# Set up the scripts for CONFIG_HEADERS section.
18344# No need to generate them if there are no CONFIG_HEADERS.
18345# This happens for instance with `./config.status Makefile'.
18346if test -n "$CONFIG_HEADERS"; then
18347cat >"$tmp/defines.awk" <<\_ACAWK ||
18348BEGIN {
18349_ACEOF
18350
18351# Transform confdefs.h into an awk script `defines.awk', embedded as
18352# here-document in config.status, that substitutes the proper values into
18353# config.h.in to produce config.h.
18354
18355# Create a delimiter string that does not exist in confdefs.h, to ease
18356# handling of long lines.
18357ac_delim='%!_!# '
18358for ac_last_try in false false :; do
18359 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18360 if test -z "$ac_t"; then
18361 break
18362 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018363 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018364 else
18365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18366 fi
18367done
18368
18369# For the awk script, D is an array of macro values keyed by name,
18370# likewise P contains macro parameters if any. Preserve backslash
18371# newline sequences.
18372
18373ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18374sed -n '
18375s/.\{148\}/&'"$ac_delim"'/g
18376t rset
18377:rset
18378s/^[ ]*#[ ]*define[ ][ ]*/ /
18379t def
18380d
18381:def
18382s/\\$//
18383t bsnl
18384s/["\\]/\\&/g
18385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18386D["\1"]=" \3"/p
18387s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18388d
18389:bsnl
18390s/["\\]/\\&/g
18391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18392D["\1"]=" \3\\\\\\n"\\/p
18393t cont
18394s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18395t cont
18396d
18397:cont
18398n
18399s/.\{148\}/&'"$ac_delim"'/g
18400t clear
18401:clear
18402s/\\$//
18403t bsnlc
18404s/["\\]/\\&/g; s/^/"/; s/$/"/p
18405d
18406:bsnlc
18407s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18408b cont
18409' <confdefs.h | sed '
18410s/'"$ac_delim"'/"\\\
18411"/g' >>$CONFIG_STATUS || ac_write_fail=1
18412
18413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414 for (key in D) D_is_set[key] = 1
18415 FS = ""
18416}
18417/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18418 line = \$ 0
18419 split(line, arg, " ")
18420 if (arg[1] == "#") {
18421 defundef = arg[2]
18422 mac1 = arg[3]
18423 } else {
18424 defundef = substr(arg[1], 2)
18425 mac1 = arg[2]
18426 }
18427 split(mac1, mac2, "(") #)
18428 macro = mac2[1]
18429 prefix = substr(line, 1, index(line, defundef) - 1)
18430 if (D_is_set[macro]) {
18431 # Preserve the white space surrounding the "#".
18432 print prefix "define", macro P[macro] D[macro]
18433 next
18434 } else {
18435 # Replace #undef with comments. This is necessary, for example,
18436 # in the case of _POSIX_SOURCE, which is predefined and required
18437 # on some systems where configure will not decide to define it.
18438 if (defundef == "undef") {
18439 print "/*", prefix defundef, macro, "*/"
18440 next
18441 }
18442 }
18443}
18444{ print }
18445_ACAWK
18446_ACEOF
18447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Scott James Remnantfde82c92009-09-22 10:04:15 -070018448 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018449fi # test -n "$CONFIG_HEADERS"
18450
18451
18452eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18453shift
18454for ac_tag
18455do
18456 case $ac_tag in
18457 :[FHLC]) ac_mode=$ac_tag; continue;;
18458 esac
18459 case $ac_mode$ac_tag in
18460 :[FHL]*:*);;
Scott James Remnantfde82c92009-09-22 10:04:15 -070018461 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018462 :[FH]-) ac_tag=-:-;;
18463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18464 esac
18465 ac_save_IFS=$IFS
18466 IFS=:
18467 set x $ac_tag
18468 IFS=$ac_save_IFS
18469 shift
18470 ac_file=$1
18471 shift
18472
18473 case $ac_mode in
18474 :L) ac_source=$1;;
18475 :[FH])
18476 ac_file_inputs=
18477 for ac_f
18478 do
18479 case $ac_f in
18480 -) ac_f="$tmp/stdin";;
18481 *) # Look for the file first in the build tree, then in the source tree
18482 # (if the path is not absolute). The absolute path cannot be DOS-style,
18483 # because $ac_f cannot contain `:'.
18484 test -f "$ac_f" ||
18485 case $ac_f in
18486 [\\/$]*) false;;
18487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18488 esac ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018489 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018490 esac
18491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070018492 as_fn_append ac_file_inputs " '$ac_f'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010018493 done
18494
18495 # Let's still pretend it is `configure' which instantiates (i.e., don't
18496 # use $as_me), people would be surprised to read:
18497 # /* config.h. Generated by config.status. */
18498 configure_input='Generated from '`
18499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18500 `' by configure.'
18501 if test x"$ac_file" != x-; then
18502 configure_input="$ac_file. $configure_input"
Scott James Remnantfde82c92009-09-22 10:04:15 -070018503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018504$as_echo "$as_me: creating $ac_file" >&6;}
18505 fi
18506 # Neutralize special characters interpreted by sed in replacement strings.
18507 case $configure_input in #(
18508 *\&* | *\|* | *\\* )
18509 ac_sed_conf_input=`$as_echo "$configure_input" |
18510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18511 *) ac_sed_conf_input=$configure_input;;
18512 esac
18513
18514 case $ac_tag in
18515 *:-:* | *:-) cat >"$tmp/stdin" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018516 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018517 esac
18518 ;;
18519 esac
18520
18521 ac_dir=`$as_dirname -- "$ac_file" ||
18522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18523 X"$ac_file" : 'X\(//\)[^/]' \| \
18524 X"$ac_file" : 'X\(//\)$' \| \
18525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18526$as_echo X"$ac_file" |
18527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18528 s//\1/
18529 q
18530 }
18531 /^X\(\/\/\)[^/].*/{
18532 s//\1/
18533 q
18534 }
18535 /^X\(\/\/\)$/{
18536 s//\1/
18537 q
18538 }
18539 /^X\(\/\).*/{
18540 s//\1/
18541 q
18542 }
18543 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018544 as_dir="$ac_dir"; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018545 ac_builddir=.
18546
18547case "$ac_dir" in
18548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18549*)
18550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18551 # A ".." for each directory in $ac_dir_suffix.
18552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18553 case $ac_top_builddir_sub in
18554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18556 esac ;;
18557esac
18558ac_abs_top_builddir=$ac_pwd
18559ac_abs_builddir=$ac_pwd$ac_dir_suffix
18560# for backward compatibility:
18561ac_top_builddir=$ac_top_build_prefix
18562
18563case $srcdir in
18564 .) # We are building in place.
18565 ac_srcdir=.
18566 ac_top_srcdir=$ac_top_builddir_sub
18567 ac_abs_top_srcdir=$ac_pwd ;;
18568 [\\/]* | ?:[\\/]* ) # Absolute name.
18569 ac_srcdir=$srcdir$ac_dir_suffix;
18570 ac_top_srcdir=$srcdir
18571 ac_abs_top_srcdir=$srcdir ;;
18572 *) # Relative name.
18573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18574 ac_top_srcdir=$ac_top_build_prefix$srcdir
18575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18576esac
18577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18578
18579
18580 case $ac_mode in
18581 :F)
18582 #
18583 # CONFIG_FILE
18584 #
18585
18586 case $INSTALL in
18587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18589 esac
18590 ac_MKDIR_P=$MKDIR_P
18591 case $MKDIR_P in
18592 [\\/$]* | ?:[\\/]* ) ;;
18593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18594 esac
18595_ACEOF
18596
18597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18598# If the template does not know about datarootdir, expand it.
18599# FIXME: This hack should be removed a few years after 2.60.
18600ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant65f683d2009-07-14 13:05:17 +010018601ac_sed_dataroot='
18602/datarootdir/ {
18603 p
18604 q
18605}
18606/@datadir@/p
18607/@docdir@/p
18608/@infodir@/p
18609/@localedir@/p
Scott James Remnantfde82c92009-09-22 10:04:15 -070018610/@mandir@/p'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018611case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18612*datarootdir*) ac_datarootdir_seen=yes;;
18613*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070018614 { $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 +010018615$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18616_ACEOF
18617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18618 ac_datarootdir_hack='
18619 s&@datadir@&$datadir&g
18620 s&@docdir@&$docdir&g
18621 s&@infodir@&$infodir&g
18622 s&@localedir@&$localedir&g
18623 s&@mandir@&$mandir&g
Scott James Remnantfde82c92009-09-22 10:04:15 -070018624 s&\\\${datarootdir}&$datarootdir&g' ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018625esac
18626_ACEOF
18627
18628# Neutralize VPATH when `$srcdir' = `.'.
18629# Shell code in configure.ac might set extrasub.
18630# FIXME: do we really want to maintain this feature?
18631cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18632ac_sed_extra="$ac_vpsub
18633$extrasub
18634_ACEOF
18635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18636:t
18637/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18638s|@configure_input@|$ac_sed_conf_input|;t t
18639s&@top_builddir@&$ac_top_builddir_sub&;t t
18640s&@top_build_prefix@&$ac_top_build_prefix&;t t
18641s&@srcdir@&$ac_srcdir&;t t
18642s&@abs_srcdir@&$ac_abs_srcdir&;t t
18643s&@top_srcdir@&$ac_top_srcdir&;t t
18644s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18645s&@builddir@&$ac_builddir&;t t
18646s&@abs_builddir@&$ac_abs_builddir&;t t
18647s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18648s&@INSTALL@&$ac_INSTALL&;t t
18649s&@MKDIR_P@&$ac_MKDIR_P&;t t
18650$ac_datarootdir_hack
18651"
18652eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018653 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018654
18655test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070018658 { $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 +010018659which seems to be undefined. Please make sure it is defined." >&5
18660$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18661which seems to be undefined. Please make sure it is defined." >&2;}
18662
18663 rm -f "$tmp/stdin"
18664 case $ac_file in
18665 -) cat "$tmp/out" && rm -f "$tmp/out";;
18666 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18667 esac \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018668 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018669 ;;
18670 :H)
18671 #
18672 # CONFIG_HEADER
18673 #
18674 if test x"$ac_file" != x-; then
18675 {
18676 $as_echo "/* $configure_input */" \
18677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18678 } >"$tmp/config.h" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018679 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018680 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018681 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018682$as_echo "$as_me: $ac_file is unchanged" >&6;}
18683 else
18684 rm -f "$ac_file"
18685 mv "$tmp/config.h" "$ac_file" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018686 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018687 fi
18688 else
18689 $as_echo "/* $configure_input */" \
18690 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018691 || as_fn_error "could not create -" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018692 fi
18693# Compute "$ac_file"'s index in $config_headers.
18694_am_arg="$ac_file"
18695_am_stamp_count=1
18696for _am_header in $config_headers :; do
18697 case $_am_header in
18698 $_am_arg | $_am_arg:* )
18699 break ;;
18700 * )
18701 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18702 esac
18703done
18704echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18705$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18706 X"$_am_arg" : 'X\(//\)[^/]' \| \
18707 X"$_am_arg" : 'X\(//\)$' \| \
18708 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18709$as_echo X"$_am_arg" |
18710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18711 s//\1/
18712 q
18713 }
18714 /^X\(\/\/\)[^/].*/{
18715 s//\1/
18716 q
18717 }
18718 /^X\(\/\/\)$/{
18719 s//\1/
18720 q
18721 }
18722 /^X\(\/\).*/{
18723 s//\1/
18724 q
18725 }
18726 s/.*/./; q'`/stamp-h$_am_stamp_count
18727 ;;
18728
Scott James Remnantfde82c92009-09-22 10:04:15 -070018729 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018730$as_echo "$as_me: executing $ac_file commands" >&6;}
18731 ;;
18732 esac
18733
18734
18735 case $ac_file$ac_mode in
18736 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18737 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18738 # are listed without --file. Let's play safe and only enable the eval
18739 # if we detect the quoting.
18740 case $CONFIG_FILES in
18741 *\'*) eval set x "$CONFIG_FILES" ;;
18742 *) set x $CONFIG_FILES ;;
18743 esac
18744 shift
18745 for mf
18746 do
18747 # Strip MF so we end up with the name of the file.
18748 mf=`echo "$mf" | sed -e 's/:.*$//'`
18749 # Check whether this is an Automake generated Makefile or not.
18750 # We used to match only the files named `Makefile.in', but
18751 # some people rename them; so instead we look at the file content.
18752 # Grep'ing the first line is not enough: some people post-process
18753 # each Makefile.in and add a new line on top of each file to say so.
18754 # Grep'ing the whole file is not good either: AIX grep has a line
18755 # limit of 2048, but all sed's we know have understand at least 4000.
18756 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18757 dirpart=`$as_dirname -- "$mf" ||
18758$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18759 X"$mf" : 'X\(//\)[^/]' \| \
18760 X"$mf" : 'X\(//\)$' \| \
18761 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18762$as_echo X"$mf" |
18763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18764 s//\1/
18765 q
18766 }
18767 /^X\(\/\/\)[^/].*/{
18768 s//\1/
18769 q
18770 }
18771 /^X\(\/\/\)$/{
18772 s//\1/
18773 q
18774 }
18775 /^X\(\/\).*/{
18776 s//\1/
18777 q
18778 }
18779 s/.*/./; q'`
18780 else
18781 continue
18782 fi
18783 # Extract the definition of DEPDIR, am__include, and am__quote
18784 # from the Makefile without running `make'.
18785 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18786 test -z "$DEPDIR" && continue
18787 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18788 test -z "am__include" && continue
18789 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18790 # When using ansi2knr, U may be empty or an underscore; expand it
18791 U=`sed -n 's/^U = //p' < "$mf"`
18792 # Find all dependency output files, they are included files with
18793 # $(DEPDIR) in their names. We invoke sed twice because it is the
18794 # simplest approach to changing $(DEPDIR) to its actual value in the
18795 # expansion.
18796 for file in `sed -n "
18797 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18798 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18799 # Make sure the directory exists.
18800 test -f "$dirpart/$file" && continue
18801 fdir=`$as_dirname -- "$file" ||
18802$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18803 X"$file" : 'X\(//\)[^/]' \| \
18804 X"$file" : 'X\(//\)$' \| \
18805 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18806$as_echo X"$file" |
18807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18808 s//\1/
18809 q
18810 }
18811 /^X\(\/\/\)[^/].*/{
18812 s//\1/
18813 q
18814 }
18815 /^X\(\/\/\)$/{
18816 s//\1/
18817 q
18818 }
18819 /^X\(\/\).*/{
18820 s//\1/
18821 q
18822 }
18823 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018824 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018825 # echo "creating $dirpart/$file"
18826 echo '# dummy' > "$dirpart/$file"
18827 done
18828 done
18829}
18830 ;;
18831 "libtool":C)
18832
18833 # See if we are running on zsh, and set the options which allow our
18834 # commands through without removal of \ escapes.
18835 if test -n "${ZSH_VERSION+set}" ; then
18836 setopt NO_GLOB_SUBST
18837 fi
18838
18839 cfgfile="${ofile}T"
18840 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18841 $RM "$cfgfile"
18842
18843 cat <<_LT_EOF >> "$cfgfile"
18844#! $SHELL
18845
18846# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18847# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18848# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18849# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18850#
18851# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18852# 2006, 2007, 2008 Free Software Foundation, Inc.
18853# Written by Gordon Matzigkeit, 1996
18854#
18855# This file is part of GNU Libtool.
18856#
18857# GNU Libtool is free software; you can redistribute it and/or
18858# modify it under the terms of the GNU General Public License as
18859# published by the Free Software Foundation; either version 2 of
18860# the License, or (at your option) any later version.
18861#
18862# As a special exception to the GNU General Public License,
18863# if you distribute this file as part of a program or library that
18864# is built using GNU Libtool, you may include this file under the
18865# same distribution terms that you use for the rest of that program.
18866#
18867# GNU Libtool is distributed in the hope that it will be useful,
18868# but WITHOUT ANY WARRANTY; without even the implied warranty of
18869# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18870# GNU General Public License for more details.
18871#
18872# You should have received a copy of the GNU General Public License
18873# along with GNU Libtool; see the file COPYING. If not, a copy
18874# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18875# obtained by writing to the Free Software Foundation, Inc.,
18876# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18877
18878
18879# The names of the tagged configurations supported by this script.
18880available_tags=""
18881
18882# ### BEGIN LIBTOOL CONFIG
18883
18884# Which release of libtool.m4 was used?
18885macro_version=$macro_version
18886macro_revision=$macro_revision
18887
18888# Whether or not to build shared libraries.
18889build_libtool_libs=$enable_shared
18890
18891# Whether or not to build static libraries.
18892build_old_libs=$enable_static
18893
18894# What type of objects to build.
18895pic_mode=$pic_mode
18896
18897# Whether or not to optimize for fast installation.
18898fast_install=$enable_fast_install
18899
18900# The host system.
18901host_alias=$host_alias
18902host=$host
18903host_os=$host_os
18904
18905# The build system.
18906build_alias=$build_alias
18907build=$build
18908build_os=$build_os
18909
18910# A sed program that does not truncate output.
18911SED=$lt_SED
18912
18913# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18914Xsed="\$SED -e 1s/^X//"
18915
18916# A grep program that handles long lines.
18917GREP=$lt_GREP
18918
18919# An ERE matcher.
18920EGREP=$lt_EGREP
18921
18922# A literal string matcher.
18923FGREP=$lt_FGREP
18924
18925# A BSD- or MS-compatible name lister.
18926NM=$lt_NM
18927
18928# Whether we need soft or hard links.
18929LN_S=$lt_LN_S
18930
18931# What is the maximum length of a command?
18932max_cmd_len=$max_cmd_len
18933
18934# Object file suffix (normally "o").
18935objext=$ac_objext
18936
18937# Executable file suffix (normally "").
18938exeext=$exeext
18939
18940# whether the shell understands "unset".
18941lt_unset=$lt_unset
18942
18943# turn spaces into newlines.
18944SP2NL=$lt_lt_SP2NL
18945
18946# turn newlines into spaces.
18947NL2SP=$lt_lt_NL2SP
18948
18949# How to create reloadable object files.
18950reload_flag=$lt_reload_flag
18951reload_cmds=$lt_reload_cmds
18952
18953# An object symbol dumper.
18954OBJDUMP=$lt_OBJDUMP
18955
18956# Method to check whether dependent libraries are shared objects.
18957deplibs_check_method=$lt_deplibs_check_method
18958
18959# Command to use when deplibs_check_method == "file_magic".
18960file_magic_cmd=$lt_file_magic_cmd
18961
18962# The archiver.
18963AR=$lt_AR
18964AR_FLAGS=$lt_AR_FLAGS
18965
18966# A symbol stripping program.
18967STRIP=$lt_STRIP
18968
18969# Commands used to install an old-style archive.
18970RANLIB=$lt_RANLIB
18971old_postinstall_cmds=$lt_old_postinstall_cmds
18972old_postuninstall_cmds=$lt_old_postuninstall_cmds
18973
18974# A C compiler.
18975LTCC=$lt_CC
18976
18977# LTCC compiler flags.
18978LTCFLAGS=$lt_CFLAGS
18979
18980# Take the output of nm and produce a listing of raw symbols and C names.
18981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18982
18983# Transform the output of nm in a proper C declaration.
18984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18985
18986# Transform the output of nm in a C name address pair.
18987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18988
18989# Transform the output of nm in a C name address pair when lib prefix is needed.
18990global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18991
18992# The name of the directory that contains temporary libtool files.
18993objdir=$objdir
18994
18995# Shell to use when invoking shell scripts.
18996SHELL=$lt_SHELL
18997
18998# An echo program that does not interpret backslashes.
18999ECHO=$lt_ECHO
19000
19001# Used to examine libraries when file_magic_cmd begins with "file".
19002MAGIC_CMD=$MAGIC_CMD
19003
19004# Must we lock files when doing compilation?
19005need_locks=$lt_need_locks
19006
19007# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19008DSYMUTIL=$lt_DSYMUTIL
19009
19010# Tool to change global to local symbols on Mac OS X.
19011NMEDIT=$lt_NMEDIT
19012
19013# Tool to manipulate fat objects and archives on Mac OS X.
19014LIPO=$lt_LIPO
19015
19016# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19017OTOOL=$lt_OTOOL
19018
19019# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19020OTOOL64=$lt_OTOOL64
19021
19022# Old archive suffix (normally "a").
19023libext=$libext
19024
19025# Shared library suffix (normally ".so").
19026shrext_cmds=$lt_shrext_cmds
19027
19028# The commands to extract the exported symbol list from a shared archive.
19029extract_expsyms_cmds=$lt_extract_expsyms_cmds
19030
19031# Variables whose values should be saved in libtool wrapper scripts and
19032# restored at link time.
19033variables_saved_for_relink=$lt_variables_saved_for_relink
19034
19035# Do we need the "lib" prefix for modules?
19036need_lib_prefix=$need_lib_prefix
19037
19038# Do we need a version for libraries?
19039need_version=$need_version
19040
19041# Library versioning type.
19042version_type=$version_type
19043
19044# Shared library runtime path variable.
19045runpath_var=$runpath_var
19046
19047# Shared library path variable.
19048shlibpath_var=$shlibpath_var
19049
19050# Is shlibpath searched before the hard-coded library search path?
19051shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19052
19053# Format of library name prefix.
19054libname_spec=$lt_libname_spec
19055
19056# List of archive names. First name is the real one, the rest are links.
19057# The last name is the one that the linker finds with -lNAME
19058library_names_spec=$lt_library_names_spec
19059
19060# The coded name of the library, if different from the real name.
19061soname_spec=$lt_soname_spec
19062
19063# Command to use after installation of a shared archive.
19064postinstall_cmds=$lt_postinstall_cmds
19065
19066# Command to use after uninstallation of a shared archive.
19067postuninstall_cmds=$lt_postuninstall_cmds
19068
19069# Commands used to finish a libtool library installation in a directory.
19070finish_cmds=$lt_finish_cmds
19071
19072# As "finish_cmds", except a single script fragment to be evaled but
19073# not shown.
19074finish_eval=$lt_finish_eval
19075
19076# Whether we should hardcode library paths into libraries.
19077hardcode_into_libs=$hardcode_into_libs
19078
19079# Compile-time system search path for libraries.
19080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19081
19082# Run-time system search path for libraries.
19083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19084
19085# Whether dlopen is supported.
19086dlopen_support=$enable_dlopen
19087
19088# Whether dlopen of programs is supported.
19089dlopen_self=$enable_dlopen_self
19090
19091# Whether dlopen of statically linked programs is supported.
19092dlopen_self_static=$enable_dlopen_self_static
19093
19094# Commands to strip libraries.
19095old_striplib=$lt_old_striplib
19096striplib=$lt_striplib
19097
19098
19099# The linker used to build libraries.
19100LD=$lt_LD
19101
19102# Commands used to build an old-style archive.
19103old_archive_cmds=$lt_old_archive_cmds
19104
19105# A language specific compiler.
19106CC=$lt_compiler
19107
19108# Is the compiler the GNU compiler?
19109with_gcc=$GCC
19110
19111# Compiler flag to turn off builtin functions.
19112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19113
19114# How to pass a linker flag through the compiler.
19115wl=$lt_lt_prog_compiler_wl
19116
19117# Additional compiler flags for building library objects.
19118pic_flag=$lt_lt_prog_compiler_pic
19119
19120# Compiler flag to prevent dynamic linking.
19121link_static_flag=$lt_lt_prog_compiler_static
19122
19123# Does compiler simultaneously support -c and -o options?
19124compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19125
19126# Whether or not to add -lc for building shared libraries.
19127build_libtool_need_lc=$archive_cmds_need_lc
19128
19129# Whether or not to disallow shared libs when runtime libs are static.
19130allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19131
19132# Compiler flag to allow reflexive dlopens.
19133export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19134
19135# Compiler flag to generate shared objects directly from archives.
19136whole_archive_flag_spec=$lt_whole_archive_flag_spec
19137
19138# Whether the compiler copes with passing no objects directly.
19139compiler_needs_object=$lt_compiler_needs_object
19140
19141# Create an old-style archive from a shared archive.
19142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19143
19144# Create a temporary old-style archive to link instead of a shared archive.
19145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19146
19147# Commands used to build a shared archive.
19148archive_cmds=$lt_archive_cmds
19149archive_expsym_cmds=$lt_archive_expsym_cmds
19150
19151# Commands used to build a loadable module if different from building
19152# a shared archive.
19153module_cmds=$lt_module_cmds
19154module_expsym_cmds=$lt_module_expsym_cmds
19155
19156# Whether we are building with GNU ld or not.
19157with_gnu_ld=$lt_with_gnu_ld
19158
19159# Flag that allows shared libraries with undefined symbols to be built.
19160allow_undefined_flag=$lt_allow_undefined_flag
19161
19162# Flag that enforces no undefined symbols.
19163no_undefined_flag=$lt_no_undefined_flag
19164
19165# Flag to hardcode \$libdir into a binary during linking.
19166# This must work even if \$libdir does not exist
19167hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19168
19169# If ld is used when linking, flag to hardcode \$libdir into a binary
19170# during linking. This must work even if \$libdir does not exist.
19171hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19172
19173# Whether we need a single "-rpath" flag with a separated argument.
19174hardcode_libdir_separator=$lt_hardcode_libdir_separator
19175
19176# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19177# DIR into the resulting binary.
19178hardcode_direct=$hardcode_direct
19179
19180# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19181# DIR into the resulting binary and the resulting library dependency is
19182# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19183# library is relocated.
19184hardcode_direct_absolute=$hardcode_direct_absolute
19185
19186# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19187# into the resulting binary.
19188hardcode_minus_L=$hardcode_minus_L
19189
19190# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19191# into the resulting binary.
19192hardcode_shlibpath_var=$hardcode_shlibpath_var
19193
19194# Set to "yes" if building a shared library automatically hardcodes DIR
19195# into the library and all subsequent libraries and executables linked
19196# against it.
19197hardcode_automatic=$hardcode_automatic
19198
19199# Set to yes if linker adds runtime paths of dependent libraries
19200# to runtime path list.
19201inherit_rpath=$inherit_rpath
19202
19203# Whether libtool must link a program against all its dependency libraries.
19204link_all_deplibs=$link_all_deplibs
19205
19206# Fix the shell variable \$srcfile for the compiler.
19207fix_srcfile_path=$lt_fix_srcfile_path
19208
19209# Set to "yes" if exported symbols are required.
19210always_export_symbols=$always_export_symbols
19211
19212# The commands to list exported symbols.
19213export_symbols_cmds=$lt_export_symbols_cmds
19214
19215# Symbols that should not be listed in the preloaded symbols.
19216exclude_expsyms=$lt_exclude_expsyms
19217
19218# Symbols that must always be exported.
19219include_expsyms=$lt_include_expsyms
19220
19221# Commands necessary for linking programs (against libraries) with templates.
19222prelink_cmds=$lt_prelink_cmds
19223
19224# Specify filename containing input files.
19225file_list_spec=$lt_file_list_spec
19226
19227# How to hardcode a shared library path into an executable.
19228hardcode_action=$hardcode_action
19229
19230# ### END LIBTOOL CONFIG
19231
19232_LT_EOF
19233
19234 case $host_os in
19235 aix3*)
19236 cat <<\_LT_EOF >> "$cfgfile"
19237# AIX sometimes has problems with the GCC collect2 program. For some
19238# reason, if we set the COLLECT_NAMES environment variable, the problems
19239# vanish in a puff of smoke.
19240if test "X${COLLECT_NAMES+set}" != Xset; then
19241 COLLECT_NAMES=
19242 export COLLECT_NAMES
19243fi
19244_LT_EOF
19245 ;;
19246 esac
19247
19248
19249ltmain="$ac_aux_dir/ltmain.sh"
19250
19251
19252 # We use sed instead of cat because bash on DJGPP gets confused if
19253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19254 # text mode, it properly converts lines to CR/LF. This bash problem
19255 # is reportedly fixed, but why not run on old versions too?
19256 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19257 || (rm -f "$cfgfile"; exit 1)
19258
19259 case $xsi_shell in
19260 yes)
19261 cat << \_LT_EOF >> "$cfgfile"
19262
19263# func_dirname file append nondir_replacement
19264# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19265# otherwise set result to NONDIR_REPLACEMENT.
19266func_dirname ()
19267{
19268 case ${1} in
19269 */*) func_dirname_result="${1%/*}${2}" ;;
19270 * ) func_dirname_result="${3}" ;;
19271 esac
19272}
19273
19274# func_basename file
19275func_basename ()
19276{
19277 func_basename_result="${1##*/}"
19278}
19279
19280# func_dirname_and_basename file append nondir_replacement
19281# perform func_basename and func_dirname in a single function
19282# call:
19283# dirname: Compute the dirname of FILE. If nonempty,
19284# add APPEND to the result, otherwise set result
19285# to NONDIR_REPLACEMENT.
19286# value returned in "$func_dirname_result"
19287# basename: Compute filename of FILE.
19288# value retuned in "$func_basename_result"
19289# Implementation must be kept synchronized with func_dirname
19290# and func_basename. For efficiency, we do not delegate to
19291# those functions but instead duplicate the functionality here.
19292func_dirname_and_basename ()
19293{
19294 case ${1} in
19295 */*) func_dirname_result="${1%/*}${2}" ;;
19296 * ) func_dirname_result="${3}" ;;
19297 esac
19298 func_basename_result="${1##*/}"
19299}
19300
19301# func_stripname prefix suffix name
19302# strip PREFIX and SUFFIX off of NAME.
19303# PREFIX and SUFFIX must not contain globbing or regex special
19304# characters, hashes, percent signs, but SUFFIX may contain a leading
19305# dot (in which case that matches only a dot).
19306func_stripname ()
19307{
19308 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19309 # positional parameters, so assign one to ordinary parameter first.
19310 func_stripname_result=${3}
19311 func_stripname_result=${func_stripname_result#"${1}"}
19312 func_stripname_result=${func_stripname_result%"${2}"}
19313}
19314
19315# func_opt_split
19316func_opt_split ()
19317{
19318 func_opt_split_opt=${1%%=*}
19319 func_opt_split_arg=${1#*=}
19320}
19321
19322# func_lo2o object
19323func_lo2o ()
19324{
19325 case ${1} in
19326 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19327 *) func_lo2o_result=${1} ;;
19328 esac
19329}
19330
19331# func_xform libobj-or-source
19332func_xform ()
19333{
19334 func_xform_result=${1%.*}.lo
19335}
19336
19337# func_arith arithmetic-term...
19338func_arith ()
19339{
19340 func_arith_result=$(( $* ))
19341}
19342
19343# func_len string
19344# STRING may not start with a hyphen.
19345func_len ()
19346{
19347 func_len_result=${#1}
19348}
19349
19350_LT_EOF
19351 ;;
19352 *) # Bourne compatible functions.
19353 cat << \_LT_EOF >> "$cfgfile"
19354
19355# func_dirname file append nondir_replacement
19356# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19357# otherwise set result to NONDIR_REPLACEMENT.
19358func_dirname ()
19359{
19360 # Extract subdirectory from the argument.
19361 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19362 if test "X$func_dirname_result" = "X${1}"; then
19363 func_dirname_result="${3}"
19364 else
19365 func_dirname_result="$func_dirname_result${2}"
19366 fi
19367}
19368
19369# func_basename file
19370func_basename ()
19371{
19372 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19373}
19374
19375
19376# func_stripname prefix suffix name
19377# strip PREFIX and SUFFIX off of NAME.
19378# PREFIX and SUFFIX must not contain globbing or regex special
19379# characters, hashes, percent signs, but SUFFIX may contain a leading
19380# dot (in which case that matches only a dot).
19381# func_strip_suffix prefix name
19382func_stripname ()
19383{
19384 case ${2} in
19385 .*) func_stripname_result=`$ECHO "X${3}" \
19386 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19387 *) func_stripname_result=`$ECHO "X${3}" \
19388 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19389 esac
19390}
19391
19392# sed scripts:
19393my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19394my_sed_long_arg='1s/^-[^=]*=//'
19395
19396# func_opt_split
19397func_opt_split ()
19398{
19399 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19400 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19401}
19402
19403# func_lo2o object
19404func_lo2o ()
19405{
19406 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19407}
19408
19409# func_xform libobj-or-source
19410func_xform ()
19411{
19412 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19413}
19414
19415# func_arith arithmetic-term...
19416func_arith ()
19417{
19418 func_arith_result=`expr "$@"`
19419}
19420
19421# func_len string
19422# STRING may not start with a hyphen.
19423func_len ()
19424{
19425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19426}
19427
19428_LT_EOF
19429esac
19430
19431case $lt_shell_append in
19432 yes)
19433 cat << \_LT_EOF >> "$cfgfile"
19434
19435# func_append var value
19436# Append VALUE to the end of shell variable VAR.
19437func_append ()
19438{
19439 eval "$1+=\$2"
19440}
19441_LT_EOF
19442 ;;
19443 *)
19444 cat << \_LT_EOF >> "$cfgfile"
19445
19446# func_append var value
19447# Append VALUE to the end of shell variable VAR.
19448func_append ()
19449{
19450 eval "$1=\$$1\$2"
19451}
19452
19453_LT_EOF
19454 ;;
19455 esac
19456
19457
19458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19459 || (rm -f "$cfgfile"; exit 1)
19460
19461 mv -f "$cfgfile" "$ofile" ||
19462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19463 chmod +x "$ofile"
19464
19465 ;;
19466 "po-directories":C)
19467 for ac_file in $CONFIG_FILES; do
19468 # Support "outfile[:infile[:infile...]]"
19469 case "$ac_file" in
19470 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19471 esac
19472 # PO directories have a Makefile.in generated from Makefile.in.in.
19473 case "$ac_file" in */Makefile.in)
19474 # Adjust a relative srcdir.
19475 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19476 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19477 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19478 # In autoconf-2.13 it is called $ac_given_srcdir.
19479 # In autoconf-2.50 it is called $srcdir.
19480 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19481 case "$ac_given_srcdir" in
19482 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19483 /*) top_srcdir="$ac_given_srcdir" ;;
19484 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19485 esac
19486 # Treat a directory as a PO directory if and only if it has a
19487 # POTFILES.in file. This allows packages to have multiple PO
19488 # directories under different names or in different locations.
19489 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19490 rm -f "$ac_dir/POTFILES"
19491 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19492 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19493 POMAKEFILEDEPS="POTFILES.in"
19494 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19495 # on $ac_dir but don't depend on user-specified configuration
19496 # parameters.
19497 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19498 # The LINGUAS file contains the set of available languages.
19499 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19500 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19501 fi
19502 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19503 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19504 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19505 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19506 else
19507 # The set of available languages was given in configure.in.
19508 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19509 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19510 fi
19511 # Compute POFILES
19512 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19513 # Compute UPDATEPOFILES
19514 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19515 # Compute DUMMYPOFILES
19516 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19517 # Compute GMOFILES
19518 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19519 case "$ac_given_srcdir" in
19520 .) srcdirpre= ;;
19521 *) srcdirpre='$(srcdir)/' ;;
19522 esac
19523 POFILES=
19524 UPDATEPOFILES=
19525 DUMMYPOFILES=
19526 GMOFILES=
19527 for lang in $ALL_LINGUAS; do
19528 POFILES="$POFILES $srcdirpre$lang.po"
19529 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19530 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19531 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19532 done
19533 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19534 # environment variable.
19535 INST_LINGUAS=
19536 if test -n "$ALL_LINGUAS"; then
19537 for presentlang in $ALL_LINGUAS; do
19538 useit=no
19539 if test "%UNSET%" != "$LINGUAS"; then
19540 desiredlanguages="$LINGUAS"
19541 else
19542 desiredlanguages="$ALL_LINGUAS"
19543 fi
19544 for desiredlang in $desiredlanguages; do
19545 # Use the presentlang catalog if desiredlang is
19546 # a. equal to presentlang, or
19547 # b. a variant of presentlang (because in this case,
19548 # presentlang can be used as a fallback for messages
19549 # which are not translated in the desiredlang catalog).
19550 case "$desiredlang" in
19551 "$presentlang"*) useit=yes;;
19552 esac
19553 done
19554 if test $useit = yes; then
19555 INST_LINGUAS="$INST_LINGUAS $presentlang"
19556 fi
19557 done
19558 fi
19559 CATALOGS=
19560 if test -n "$INST_LINGUAS"; then
19561 for lang in $INST_LINGUAS; do
19562 CATALOGS="$CATALOGS $lang.gmo"
19563 done
19564 fi
19565 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19566 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"
19567 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19568 if test -f "$f"; then
19569 case "$f" in
19570 *.orig | *.bak | *~) ;;
19571 *) cat "$f" >> "$ac_dir/Makefile" ;;
19572 esac
19573 fi
19574 done
19575 fi
19576 ;;
19577 esac
19578 done ;;
19579
19580 esac
19581done # for ac_tag
19582
19583
Scott James Remnantfde82c92009-09-22 10:04:15 -070019584as_fn_exit 0
Scott James Remnant65f683d2009-07-14 13:05:17 +010019585_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019586ac_clean_files=$ac_clean_files_save
19587
19588test $ac_write_fail = 0 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070019589 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019590
19591
19592# configure is writing to config.log, and then calls config.status.
19593# config.status does its own redirection, appending to config.log.
19594# Unfortunately, on DOS this fails, as config.log is still kept open
19595# by configure, so config.status won't be able to write to it; its
19596# output is simply discarded. So we exec the FD to /dev/null,
19597# effectively closing config.log, so it can be properly (re)opened and
19598# appended to by config.status. When coming back to configure, we
19599# need to make the FD available again.
19600if test "$no_create" != yes; then
19601 ac_cs_success=:
19602 ac_config_status_args=
19603 test "$silent" = yes &&
19604 ac_config_status_args="$ac_config_status_args --quiet"
19605 exec 5>/dev/null
19606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19607 exec 5>>config.log
19608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19609 # would make configure fail if this is the last instruction.
Scott James Remnantfde82c92009-09-22 10:04:15 -070019610 $ac_cs_success || as_fn_exit $?
Scott James Remnant65f683d2009-07-14 13:05:17 +010019611fi
19612if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070019613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019614$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19615fi
19616