blob: 077a04ee54ce8134844092f260a491eb3e09c0ed [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
Colin Watsond58a9aa2010-01-16 02:55:43 +0000750DBUS_LIBS_FOR_BUILD
751DBUS_CFLAGS_FOR_BUILD
752LDFLAGS_FOR_BUILD
753CFLAGS_FOR_BUILD
754RANLIB_FOR_BUILD
755CC_FOR_BUILD
756AR_FOR_BUILD
757CROSS_COMPILING_FALSE
758CROSS_COMPILING_TRUE
Scott James Remnant2a66c572009-09-15 03:19:16 +0100759UDEV_LIBS
760UDEV_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100761HAVE_VERSION_SCRIPT_ARG_FALSE
762HAVE_VERSION_SCRIPT_ARG_TRUE
763VERSION_SCRIPT_ARG
Scott James Remnant2c84e532009-10-14 05:31:38 +0100764NIH_DBUS_TOOL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100765HAVE_DBUS_FALSE
766HAVE_DBUS_TRUE
767EXPAT_LIBS
768DBUS_LIBS
769DBUS_CFLAGS
Scott James Remnant65f683d2009-07-14 13:05:17 +0100770INSTALL_NIH_FALSE
771INSTALL_NIH_TRUE
Scott James Remnant2a66c572009-09-15 03:19:16 +0100772PKG_CONFIG
Scott James Remnant65f683d2009-07-14 13:05:17 +0100773POSUB
774LTLIBINTL
775LIBINTL
776INTLLIBS
777INTL_LIBTOOL_SUFFIX_PREFIX
778INTLOBJS
779GENCAT
780INSTOBJEXT
781DATADIRNAME
782CATOBJEXT
783USE_INCLUDED_LIBINTL
784BUILD_INCLUDED_LIBINTL
785WOE32DLL
786HAVE_WPRINTF
787HAVE_SNPRINTF
788HAVE_ASPRINTF
789HAVE_POSIX_PRINTF
790INTL_MACOSX_LIBS
791GLIBC21
792INTLBISON
793LTLIBICONV
794LIBICONV
795LTLIBMULTITHREAD
796LIBMULTITHREAD
797LTLIBTHREAD
798LIBTHREAD
799LTLIBPTH
800LIBPTH
801PRI_MACROS_BROKEN
802ALLOCA
803HAVE_VISIBILITY
804CFLAG_VISIBILITY
805GLIBC2
806MSGMERGE
807XGETTEXT_015
808XGETTEXT
809GMSGFMT_015
810MSGFMT_015
811GMSGFMT
812MSGFMT
813USE_NLS
814OTOOL64
815OTOOL
816LIPO
817NMEDIT
818DSYMUTIL
819lt_ECHO
820RANLIB
821AR
822OBJDUMP
823LN_S
824NM
825ac_ct_DUMPBIN
826DUMPBIN
827LD
828FGREP
829SED
830host_os
831host_vendor
832host_cpu
833host
834build_os
835build_vendor
836build_cpu
837build
838LIBTOOL
839am__fastdepCC_FALSE
840am__fastdepCC_TRUE
841CCDEPMODE
842AMDEPBACKSLASH
843AMDEP_FALSE
844AMDEP_TRUE
845am__quote
846am__include
847DEPDIR
848am__untar
849am__tar
850AMTAR
851am__leading_dot
852SET_MAKE
853AWK
854mkdir_p
855MKDIR_P
856INSTALL_STRIP_PROGRAM
857STRIP
858install_sh
859MAKEINFO
860AUTOHEADER
861AUTOMAKE
862AUTOCONF
863ACLOCAL
864VERSION
865PACKAGE
866CYGPATH_W
867am__isrc
868INSTALL_DATA
869INSTALL_SCRIPT
870INSTALL_PROGRAM
871EGREP
872GREP
873CPP
874OBJEXT
875EXEEXT
876ac_ct_CC
877CPPFLAGS
878LDFLAGS
879CFLAGS
880CC
881target_alias
882host_alias
883build_alias
884LIBS
885ECHO_T
886ECHO_N
887ECHO_C
888DEFS
889PACKAGE_COPYRIGHT
890mandir
891localedir
892libdir
893psdir
894pdfdir
895dvidir
896htmldir
897infodir
898docdir
899oldincludedir
900includedir
901localstatedir
902sharedstatedir
903sysconfdir
904datadir
905datarootdir
906libexecdir
907sbindir
908bindir
909program_transform_name
910prefix
911exec_prefix
Scott James Remnantfde82c92009-09-22 10:04:15 -0700912PACKAGE_URL
Scott James Remnant65f683d2009-07-14 13:05:17 +0100913PACKAGE_BUGREPORT
914PACKAGE_STRING
915PACKAGE_VERSION
916PACKAGE_TARNAME
917PACKAGE_NAME
918PATH_SEPARATOR
919SHELL'
920ac_subst_files=''
921ac_user_opts='
922enable_option_checking
923enable_dependency_tracking
924enable_shared
925enable_static
926with_pic
927enable_fast_install
928with_gnu_ld
929enable_libtool_lock
930enable_nls
931enable_threads
932enable_rpath
933with_libpth_prefix
934with_libiconv_prefix
935with_included_gettext
936with_libintl_prefix
937enable_threading
938enable_compiler_warnings
939enable_compiler_optimisations
940enable_compiler_coverage
941enable_linker_optimisations
942'
943 ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951CPP
952PKG_CONFIG
953DBUS_CFLAGS
Scott James Remnant2a66c572009-09-15 03:19:16 +0100954DBUS_LIBS
Scott James Remnant2c84e532009-10-14 05:31:38 +0100955NIH_DBUS_TOOL
Scott James Remnant2a66c572009-09-15 03:19:16 +0100956UDEV_CFLAGS
957UDEV_LIBS'
Scott James Remnant65f683d2009-07-14 13:05:17 +0100958
959
960# Initialize some variables set by options.
961ac_init_help=
962ac_init_version=false
963ac_unrecognized_opts=
964ac_unrecognized_sep=
965# The variables have the same names as the options, with
966# dashes changed to underlines.
967cache_file=/dev/null
968exec_prefix=NONE
969no_create=
970no_recursion=
971prefix=NONE
972program_prefix=NONE
973program_suffix=NONE
974program_transform_name=s,x,x,
975silent=
976site=
977srcdir=
978verbose=
979x_includes=NONE
980x_libraries=NONE
981
982# Installation directory options.
983# These are left unexpanded so users can "make install exec_prefix=/foo"
984# and all the variables that are supposed to be based on exec_prefix
985# by default will actually change.
986# Use braces instead of parens because sh, perl, etc. also accept them.
987# (The list follows the same order as the GNU Coding Standards.)
988bindir='${exec_prefix}/bin'
989sbindir='${exec_prefix}/sbin'
990libexecdir='${exec_prefix}/libexec'
991datarootdir='${prefix}/share'
992datadir='${datarootdir}'
993sysconfdir='${prefix}/etc'
994sharedstatedir='${prefix}/com'
995localstatedir='${prefix}/var'
996includedir='${prefix}/include'
997oldincludedir='/usr/include'
998docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999infodir='${datarootdir}/info'
1000htmldir='${docdir}'
1001dvidir='${docdir}'
1002pdfdir='${docdir}'
1003psdir='${docdir}'
1004libdir='${exec_prefix}/lib'
1005localedir='${datarootdir}/locale'
1006mandir='${datarootdir}/man'
1007
1008ac_prev=
1009ac_dashdash=
1010for ac_option
1011do
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1017 fi
1018
1019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
1023
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
1029
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1034
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1049
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1054
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001066 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071"enable_$ac_useropt"
1072"*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1087
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001092 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"enable_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001296 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1307
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07001312 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"with_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
Scott James Remnantfde82c92009-09-22 10:04:15 -07001342 -*) as_fn_error "unrecognized option: \`$ac_option'
1343Try \`$0 --help' for more information."
Scott James Remnant65f683d2009-07-14 13:05:17 +01001344 ;;
1345
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
Scott James Remnantfde82c92009-09-22 10:04:15 -07001349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01001353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 ;;
1363
1364 esac
1365done
1366
1367if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07001369 as_fn_error "missing argument to $ac_option"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001370fi
1371
1372if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07001375 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1378fi
1379
1380# Check all directory arguments for consistency.
1381for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1385do
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07001398 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001399done
1400
1401# There might be people who depend on the old broken behavior: `$host'
1402# used to hold the argument of --host etc.
1403# FIXME: To remove some day.
1404build=$build_alias
1405host=$host_alias
1406target=$target_alias
1407
1408# FIXME: To remove some day.
1409if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1416 fi
1417fi
1418
1419ac_tool_prefix=
1420test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422test "$silent" = yes && exec 6>/dev/null
1423
1424
1425ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426ac_ls_di=`ls -di .` &&
1427ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001428 as_fn_error "working directory cannot be determined"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001429test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07001430 as_fn_error "pwd does not report name of working directory"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001431
1432
1433# Find the source files, if location was not specified.
1434if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442$as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\).*/{
1456 s//\1/
1457 q
1458 }
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1463 fi
1464else
1465 ac_srcdir_defaulted=no
1466fi
1467if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnantfde82c92009-09-22 10:04:15 -07001469 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001470fi
1471ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472ac_abs_confdir=`(
Scott James Remnantfde82c92009-09-22 10:04:15 -07001473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Scott James Remnant65f683d2009-07-14 13:05:17 +01001474 pwd)`
1475# When building in place, set srcdir=.
1476if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478fi
1479# Remove unnecessary trailing slashes from srcdir.
1480# Double slashes in file names in object file debugging info
1481# mess up M-x gdb in Emacs.
1482case $srcdir in
1483*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484esac
1485for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490done
1491
1492#
1493# Report the --help message.
1494#
1495if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001499\`configure' configures upstart 0.6.3 to adapt to many kinds of systems.
Scott James Remnant65f683d2009-07-14 13:05:17 +01001500
1501Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506Defaults for the options are specified in brackets.
1507
1508Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
1519Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1524
1525By default, \`make install' will install all the files in
1526\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528for instance \`--prefix=\$HOME'.
1529
1530For better control, use the options below.
1531
1532Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/upstart]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552_ACEOF
1553
1554 cat <<\_ACEOF
1555
1556Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1560
1561System types:
1562 --build=BUILD configure for building on BUILD [guessed]
1563 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1564_ACEOF
1565fi
1566
1567if test -n "$ac_init_help"; then
1568 case $ac_init_help in
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001569 short | recursive ) echo "Configuration of upstart 0.6.3:";;
Scott James Remnant65f683d2009-07-14 13:05:17 +01001570 esac
1571 cat <<\_ACEOF
1572
1573Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --disable-dependency-tracking speeds up one-time build
1578 --enable-dependency-tracking do not reject slow dependency extractors
1579 --enable-shared[=PKGS] build shared libraries [default=yes]
1580 --enable-static[=PKGS] build static libraries [default=yes]
1581 --enable-fast-install[=PKGS]
1582 optimize for fast installation [default=yes]
1583 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --disable-nls do not use Native Language Support
1585 --enable-threads={posix|solaris|pth|win32}
1586 specify multithreading API
1587 --disable-threads build without multithread safety
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-threading Enable support for multi-threading
1590 --enable-compiler-warnings
1591 Enable additional compiler warnings
1592 --disable-compiler-optimisations
1593 Disable compiler optimisations
1594 --enable-compiler-coverage
1595 Enable generation of coverage data
1596 --disable-linker-optimisations
1597 Disable linker optimisations
1598
1599Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-pic try to use only PIC/non-PIC objects [default=use
1603 both]
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-gnu-ld assume the C compiler uses GNU ld default=no
1606 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1607 --without-libpth-prefix don't search for libpth in includedir and libdir
1608 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1609 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1610 --with-included-gettext use the GNU gettext library included here
1611 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1612 --without-libintl-prefix don't search for libintl in includedir and libdir
1613
1614Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CPP C preprocessor
1623 PKG_CONFIG path to pkg-config utility
1624 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1625 DBUS_LIBS linker flags for DBUS, overriding pkg-config
Scott James Remnant2c84e532009-10-14 05:31:38 +01001626 NIH_DBUS_TOOL
1627 Path to external nih-dbus-tool when cross-compiling
Scott James Remnant2a66c572009-09-15 03:19:16 +01001628 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1629 UDEV_LIBS linker flags for UDEV, overriding pkg-config
Scott James Remnant65f683d2009-07-14 13:05:17 +01001630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
1634Report bugs to <upstart-devel@lists.ubuntu.com>.
1635_ACEOF
1636ac_status=$?
1637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1646
1647case "$ac_dir" in
1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649*)
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657esac
1658ac_abs_top_builddir=$ac_pwd
1659ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660# for backward compatibility:
1661ac_top_builddir=$ac_top_build_prefix
1662
1663case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676esac
1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692fi
1693
1694test -n "$ac_init_help" && exit $ac_status
1695if $ac_init_version; then
1696 cat <<\_ACEOF
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01001697upstart configure 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -07001698generated by GNU Autoconf 2.64
Scott James Remnant65f683d2009-07-14 13:05:17 +01001699
1700Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnantfde82c92009-09-22 10:04:15 -070017012002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
1702Foundation, Inc.
1703
Scott James Remnant65f683d2009-07-14 13:05:17 +01001704This configure script is free software; the Free Software Foundation
1705gives unlimited permission to copy, distribute and modify it.
1706
1707Copyright © 2009 Canonical Ltd.
1708_ACEOF
1709 exit
1710fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07001711
1712## ------------------------ ##
1713## Autoconf initialization. ##
1714## ------------------------ ##
1715
1716# ac_fn_c_try_compile LINENO
1717# --------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752} # ac_fn_c_try_compile
1753
1754# ac_fn_c_try_cpp LINENO
1755# ----------------------
1756# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_cpp ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } >/dev/null && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780else
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785fi
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 return $ac_retval
1788
1789} # ac_fn_c_try_cpp
1790
1791# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792# -------------------------------------------------------
1793# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794# the include files in INCLUDES and setting the cache variable VAR
1795# accordingly.
1796ac_fn_c_check_header_mongrel ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
1802if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 $as_echo_n "(cached) " >&6
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808else
1809 # Is the header compilable?
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811$as_echo_n "checking $2 usability... " >&6; }
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814$4
1815#include <$2>
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"; then :
1818 ac_header_compiler=yes
1819else
1820 ac_header_compiler=no
1821fi
1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824$as_echo "$ac_header_compiler" >&6; }
1825
1826# Is the header present?
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828$as_echo_n "checking $2 presence... " >&6; }
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831#include <$2>
1832_ACEOF
1833if ac_fn_c_try_cpp "$LINENO"; then :
1834 ac_header_preproc=yes
1835else
1836 ac_header_preproc=no
1837fi
1838rm -f conftest.err conftest.$ac_ext
1839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840$as_echo "$ac_header_preproc" >&6; }
1841
1842# So? What about this header?
1843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844 yes:no: )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 ;;
1850 no:yes:* )
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1854$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1858$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861( cat <<\_ASBOX
1862## --------------------------------------------- ##
1863## Report this to upstart-devel@lists.ubuntu.com ##
1864## --------------------------------------------- ##
1865_ASBOX
1866 ) | sed "s/^/$as_me: WARNING: /" >&2
1867 ;;
1868esac
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1872 $as_echo_n "(cached) " >&6
1873else
1874 eval "$3=\$ac_header_compiler"
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879fi
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881
1882} # ac_fn_c_check_header_mongrel
1883
1884# ac_fn_c_try_run LINENO
1885# ----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887# that executables *can* be run.
1888ac_fn_c_try_run ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1909 ac_status=$?
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1912 ac_retval=0
1913else
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=$ac_status
1919fi
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 return $ac_retval
1923
1924} # ac_fn_c_try_run
1925
1926# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1927# -------------------------------------------------------
1928# Tests whether HEADER exists and can be compiled using the include files in
1929# INCLUDES, setting the cache variable VAR accordingly.
1930ac_fn_c_check_header_compile ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
1935if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1937else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940$4
1941#include <$2>
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944 eval "$3=yes"
1945else
1946 eval "$3=no"
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949fi
1950eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952$as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954
1955} # ac_fn_c_check_header_compile
1956
1957# ac_fn_c_try_link LINENO
1958# -----------------------
1959# Try to link conftest.$ac_ext, and return whether this succeeded.
1960ac_fn_c_try_link ()
1961{
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 rm -f conftest.$ac_objext conftest$ac_exeext
1964 if { { ac_try="$ac_link"
1965case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968esac
1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970$as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>conftest.err
1972 ac_status=$?
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1977 fi
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && {
1980 test -z "$ac_c_werror_flag" ||
1981 test ! -s conftest.err
1982 } && test -s conftest$ac_exeext && {
1983 test "$cross_compiling" = yes ||
1984 $as_test_x conftest$ac_exeext
1985 }; then :
1986 ac_retval=0
1987else
1988 $as_echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_retval=1
1992fi
1993 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1994 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1995 # interfere with the next link command; also delete a directory that is
1996 # left behind by Apple's compiler. We do this before executing the actions.
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 return $ac_retval
2000
2001} # ac_fn_c_try_link
2002
2003# ac_fn_c_check_func LINENO FUNC VAR
2004# ----------------------------------
2005# Tests whether FUNC exists, setting the cache variable VAR accordingly
2006ac_fn_c_check_func ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2018#define $2 innocuous_$2
2019
2020/* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $2 (); below.
2022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2023 <limits.h> exists even on freestanding compilers. */
2024
2025#ifdef __STDC__
2026# include <limits.h>
2027#else
2028# include <assert.h>
2029#endif
2030
2031#undef $2
2032
2033/* Override any GCC internal prototype to avoid an error.
2034 Use char because int might match the return type of a GCC
2035 builtin and then its argument prototype would still apply. */
2036#ifdef __cplusplus
2037extern "C"
2038#endif
2039char $2 ();
2040/* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043#if defined __stub_$2 || defined __stub___$2
2044choke me
2045#endif
2046
2047int
2048main ()
2049{
2050return $2 ();
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_link "$LINENO"; then :
2056 eval "$3=yes"
2057else
2058 eval "$3=no"
2059fi
2060rm -f core conftest.err conftest.$ac_objext \
2061 conftest$ac_exeext conftest.$ac_ext
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067
2068} # ac_fn_c_check_func
2069
2070# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2071# -------------------------------------------
2072# Tests whether TYPE exists after having included INCLUDES, setting cache
2073# variable VAR accordingly.
2074ac_fn_c_check_type ()
2075{
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078$as_echo_n "checking for $2... " >&6; }
2079if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2081else
2082 eval "$3=no"
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085$4
2086int
2087main ()
2088{
2089if (sizeof ($2))
2090 return 0;
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
2100main ()
2101{
2102if (sizeof (($2)))
2103 return 0;
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109
2110else
2111 eval "$3=yes"
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116fi
2117eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119$as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121
2122} # ac_fn_c_check_type
2123
2124# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2125# --------------------------------------------
2126# Tries to find the compile-time value of EXPR in a program that includes
2127# INCLUDES, setting VAR accordingly. Returns whether the value could be
2128# computed
2129ac_fn_c_compute_int ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 if test "$cross_compiling" = yes; then
2133 # Depending upon the size, compute the lo and hi bounds.
2134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135/* end confdefs.h. */
2136$4
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($2) >= 0)];
2141test_array [0] = 0
2142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=0 ac_mid=0
2149 while :; do
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151/* end confdefs.h. */
2152$4
2153int
2154main ()
2155{
2156static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157test_array [0] = 0
2158
2159 ;
2160 return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid; break
2165else
2166 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2167 if test $ac_lo -le $ac_mid; then
2168 ac_lo= ac_hi=
2169 break
2170 fi
2171 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 done
2175else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) < 0)];
2183test_array [0] = 0
2184
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_hi=-1 ac_mid=-1
2191 while :; do
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194$4
2195int
2196main ()
2197{
2198static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2199test_array [0] = 0
2200
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_lo=$ac_mid; break
2207else
2208 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2209 if test $ac_mid -le $ac_hi; then
2210 ac_lo= ac_hi=
2211 break
2212 fi
2213 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2214fi
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 done
2217else
2218 ac_lo= ac_hi=
2219fi
2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223# Binary search between lo and hi bounds.
2224while test "x$ac_lo" != "x$ac_hi"; do
2225 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h. */
2228$4
2229int
2230main ()
2231{
2232static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2233test_array [0] = 0
2234
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_hi=$ac_mid
2241else
2242 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245done
2246case $ac_lo in #((
2247?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2248'') ac_retval=1 ;;
2249esac
2250 else
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252/* end confdefs.h. */
2253$4
2254static long int longval () { return $2; }
2255static unsigned long int ulongval () { return $2; }
2256#include <stdio.h>
2257#include <stdlib.h>
2258int
2259main ()
2260{
2261
2262 FILE *f = fopen ("conftest.val", "w");
2263 if (! f)
2264 return 1;
2265 if (($2) < 0)
2266 {
2267 long int i = longval ();
2268 if (i != ($2))
2269 return 1;
2270 fprintf (f, "%ld", i);
2271 }
2272 else
2273 {
2274 unsigned long int i = ulongval ();
2275 if (i != ($2))
2276 return 1;
2277 fprintf (f, "%lu", i);
2278 }
2279 /* Do not output a trailing newline, as this causes \r\n confusion
2280 on some platforms. */
2281 return ferror (f) || fclose (f) != 0;
2282
2283 ;
2284 return 0;
2285}
2286_ACEOF
2287if ac_fn_c_try_run "$LINENO"; then :
2288 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2289else
2290 ac_retval=1
2291fi
2292rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2293 conftest.$ac_objext conftest.beam conftest.$ac_ext
2294rm -f conftest.val
2295
2296 fi
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2298 return $ac_retval
2299
2300} # ac_fn_c_compute_int
Scott James Remnant65f683d2009-07-14 13:05:17 +01002301cat >config.log <<_ACEOF
2302This file contains any messages produced by compilers while
2303running configure, to aid debugging if configure makes a mistake.
2304
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002305It was created by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -07002306generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +01002307
2308 $ $0 $@
2309
2310_ACEOF
2311exec 5>>config.log
2312{
2313cat <<_ASUNAME
2314## --------- ##
2315## Platform. ##
2316## --------- ##
2317
2318hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2319uname -m = `(uname -m) 2>/dev/null || echo unknown`
2320uname -r = `(uname -r) 2>/dev/null || echo unknown`
2321uname -s = `(uname -s) 2>/dev/null || echo unknown`
2322uname -v = `(uname -v) 2>/dev/null || echo unknown`
2323
2324/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2325/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2326
2327/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2328/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2329/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2330/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2331/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2332/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2333/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2334
2335_ASUNAME
2336
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002342 $as_echo "PATH: $as_dir"
2343 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002344IFS=$as_save_IFS
2345
2346} >&5
2347
2348cat >&5 <<_ACEOF
2349
2350
2351## ----------- ##
2352## Core tests. ##
2353## ----------- ##
2354
2355_ACEOF
2356
2357
2358# Keep a trace of the command line.
2359# Strip out --no-create and --no-recursion so they do not pile up.
2360# Strip out --silent because we don't want to record it for future runs.
2361# Also quote any args containing shell meta-characters.
2362# Make two passes to allow for proper duplicate-argument suppression.
2363ac_configure_args=
2364ac_configure_args0=
2365ac_configure_args1=
2366ac_must_keep_next=false
2367for ac_pass in 1 2
2368do
2369 for ac_arg
2370 do
2371 case $ac_arg in
2372 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2374 | -silent | --silent | --silen | --sile | --sil)
2375 continue ;;
2376 *\'*)
2377 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2378 esac
2379 case $ac_pass in
Scott James Remnantfde82c92009-09-22 10:04:15 -07002380 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002381 2)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002382 as_fn_append ac_configure_args1 " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002383 if test $ac_must_keep_next = true; then
2384 ac_must_keep_next=false # Got value, back to normal.
2385 else
2386 case $ac_arg in
2387 *=* | --config-cache | -C | -disable-* | --disable-* \
2388 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2389 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2390 | -with-* | --with-* | -without-* | --without-* | --x)
2391 case "$ac_configure_args0 " in
2392 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2393 esac
2394 ;;
2395 -* ) ac_must_keep_next=true ;;
2396 esac
2397 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002398 as_fn_append ac_configure_args " '$ac_arg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002399 ;;
2400 esac
2401 done
2402done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002403{ ac_configure_args0=; unset ac_configure_args0;}
2404{ ac_configure_args1=; unset ac_configure_args1;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01002405
2406# When interrupted or exit'd, cleanup temporary files, and complete
2407# config.log. We remove comments because anyway the quotes in there
2408# would cause problems or look ugly.
2409# WARNING: Use '\'' to represent an apostrophe within the trap.
2410# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2411trap 'exit_status=$?
2412 # Save into config.log some information that might help in debugging.
2413 {
2414 echo
2415
2416 cat <<\_ASBOX
2417## ---------------- ##
2418## Cache variables. ##
2419## ---------------- ##
2420_ASBOX
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2423(
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002429 *_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 +01002430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -07002435 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2446 *)
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ;;
2449 esac |
2450 sort
2451)
2452 echo
2453
2454 cat <<\_ASBOX
2455## ----------------- ##
2456## Output variables. ##
2457## ----------------- ##
2458_ASBOX
2459 echo
2460 for ac_var in $ac_subst_vars
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469
2470 if test -n "$ac_subst_files"; then
2471 cat <<\_ASBOX
2472## ------------------- ##
2473## File substitutions. ##
2474## ------------------- ##
2475_ASBOX
2476 echo
2477 for ac_var in $ac_subst_files
2478 do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 esac
2483 $as_echo "$ac_var='\''$ac_val'\''"
2484 done | sort
2485 echo
2486 fi
2487
2488 if test -s confdefs.h; then
2489 cat <<\_ASBOX
2490## ----------- ##
2491## confdefs.h. ##
2492## ----------- ##
2493_ASBOX
2494 echo
2495 cat confdefs.h
2496 echo
2497 fi
2498 test "$ac_signal" != 0 &&
2499 $as_echo "$as_me: caught signal $ac_signal"
2500 $as_echo "$as_me: exit $exit_status"
2501 } >&5
2502 rm -f core *.core core.conftest.* &&
2503 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 exit $exit_status
2505' 0
2506for ac_signal in 1 2 13 15; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07002507 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Scott James Remnant65f683d2009-07-14 13:05:17 +01002508done
2509ac_signal=0
2510
2511# confdefs.h avoids OS command line length limits that DEFS can exceed.
2512rm -f -r conftest* confdefs.h
2513
Scott James Remnantfde82c92009-09-22 10:04:15 -07002514$as_echo "/* confdefs.h */" > confdefs.h
2515
Scott James Remnant65f683d2009-07-14 13:05:17 +01002516# Predefined preprocessor variables.
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_NAME "$PACKAGE_NAME"
2520_ACEOF
2521
Scott James Remnant65f683d2009-07-14 13:05:17 +01002522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524_ACEOF
2525
Scott James Remnant65f683d2009-07-14 13:05:17 +01002526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_VERSION "$PACKAGE_VERSION"
2528_ACEOF
2529
Scott James Remnant65f683d2009-07-14 13:05:17 +01002530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_STRING "$PACKAGE_STRING"
2532_ACEOF
2533
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002534cat >>confdefs.h <<_ACEOF
Scott James Remnant2a66c572009-09-15 03:19:16 +01002535#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01002536_ACEOF
2537
Scott James Remnantfde82c92009-09-22 10:04:15 -07002538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_URL "$PACKAGE_URL"
2540_ACEOF
2541
Scott James Remnant65f683d2009-07-14 13:05:17 +01002542
2543# Let the site file select an alternate cache file if it wants to.
2544# Prefer an explicitly selected file to automatically selected ones.
2545ac_site_file1=NONE
2546ac_site_file2=NONE
2547if test -n "$CONFIG_SITE"; then
2548 ac_site_file1=$CONFIG_SITE
2549elif test "x$prefix" != xNONE; then
2550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
2552else
2553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
2555fi
2556for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557do
2558 test "x$ac_site_file" = xNONE && continue
2559 if test -r "$ac_site_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002561$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562 sed 's/^/| /' "$ac_site_file" >&5
2563 . "$ac_site_file"
2564 fi
2565done
2566
2567if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special
2569 # files actually), so we avoid doing that.
2570 if test -f "$cache_file"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002572$as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2577 fi
2578else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002580$as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2582fi
2583
2584gt_needs="$gt_needs "
2585# Check that the precious variables saved in the cache have kept the same
2586# value.
2587ac_cache_corrupted=false
2588for ac_var in $ac_precious_vars; do
2589 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590 eval ac_new_set=\$ac_env_${ac_var}_set
2591 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592 eval ac_new_val=\$ac_env_${ac_var}_value
2593 case $ac_old_set,$ac_new_set in
2594 set,)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002595 { $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 +01002596$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,set)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002599 { $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 +01002600$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,);;
2603 *)
2604 if test "x$ac_old_val" != "x$ac_new_val"; then
2605 # differences in whitespace do not lead to failure.
2606 ac_old_val_w=`echo x $ac_old_val`
2607 ac_new_val_w=`echo x $ac_new_val`
2608 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002609 { $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 +01002610$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2611 ac_cache_corrupted=:
2612 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002613 { $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 +01002614$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2615 eval $ac_var=\$ac_old_val
2616 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002617 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002618$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002619 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002620$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2621 fi;;
2622 esac
2623 # Pass precious variables to config.status.
2624 if test "$ac_new_set" = set; then
2625 case $ac_new_val in
2626 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627 *) ac_arg=$ac_var=$ac_new_val ;;
2628 esac
2629 case " $ac_configure_args " in
2630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002631 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01002632 esac
2633 fi
2634done
2635if $ac_cache_corrupted; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002638 { $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 +01002639$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002640 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002641fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07002642## -------------------- ##
2643## Main body of script. ##
2644## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +01002645
2646ac_ext=c
2647ac_cpp='$CPP $CPPFLAGS'
2648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651
2652
2653
2654
2655
2656
Scott James Remnantfde82c92009-09-22 10:04:15 -07002657$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (C) 2009 Canonical Ltd.\"" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01002658 PACKAGE_COPYRIGHT="Copyright © 2009 Canonical Ltd."
2659
2660
2661
2662
2663
2664ac_ext=c
2665ac_cpp='$CPP $CPPFLAGS'
2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002673$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002674if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002675 $as_echo_n "(cached) " >&6
2676else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$CC" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002685 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002689 break 2
2690 fi
2691done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002692 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002693IFS=$as_save_IFS
2694
2695fi
2696fi
2697CC=$ac_cv_prog_CC
2698if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002700$as_echo "$CC" >&6; }
2701else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002703$as_echo "no" >&6; }
2704fi
2705
2706
2707fi
2708if test -z "$ac_cv_prog_CC"; then
2709 ac_ct_CC=$CC
2710 # Extract the first word of "gcc", so it can be a program name with args.
2711set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002713$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002714if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002715 $as_echo_n "(cached) " >&6
2716else
2717 if test -n "$ac_ct_CC"; then
2718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719else
2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002725 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002729 break 2
2730 fi
2731done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002732 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002733IFS=$as_save_IFS
2734
2735fi
2736fi
2737ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002740$as_echo "$ac_ct_CC" >&6; }
2741else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002743$as_echo "no" >&6; }
2744fi
2745
2746 if test "x$ac_ct_CC" = x; then
2747 CC=""
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002751{ $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 +01002752$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753ac_tool_warned=yes ;;
2754esac
2755 CC=$ac_ct_CC
2756 fi
2757else
2758 CC="$ac_cv_prog_CC"
2759fi
2760
2761if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2764set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002766$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002767if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002768 $as_echo_n "(cached) " >&6
2769else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772else
2773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002778 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002782 break 2
2783 fi
2784done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002785 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002786IFS=$as_save_IFS
2787
2788fi
2789fi
2790CC=$ac_cv_prog_CC
2791if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002793$as_echo "$CC" >&6; }
2794else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002796$as_echo "no" >&6; }
2797fi
2798
2799
2800 fi
2801fi
2802if test -z "$CC"; then
2803 # Extract the first word of "cc", so it can be a program name with args.
2804set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002806$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002807if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002808 $as_echo_n "(cached) " >&6
2809else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812else
2813 ac_prog_rejected=no
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002819 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2822 ac_prog_rejected=yes
2823 continue
2824 fi
2825 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002827 break 2
2828 fi
2829done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002830 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002831IFS=$as_save_IFS
2832
2833if test $ac_prog_rejected = yes; then
2834 # We found a bogon in the path, so make sure we never use it.
2835 set dummy $ac_cv_prog_CC
2836 shift
2837 if test $# != 0; then
2838 # We chose a different compiler from the bogus one.
2839 # However, it has the same basename, so the bogon will be chosen
2840 # first if we set CC to just the basename; use the full file name.
2841 shift
2842 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2843 fi
2844fi
2845fi
2846fi
2847CC=$ac_cv_prog_CC
2848if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002850$as_echo "$CC" >&6; }
2851else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002853$as_echo "no" >&6; }
2854fi
2855
2856
2857fi
2858if test -z "$CC"; then
2859 if test -n "$ac_tool_prefix"; then
2860 for ac_prog in cl.exe
2861 do
2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002865$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002866if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002867 $as_echo_n "(cached) " >&6
2868else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002877 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002881 break 2
2882 fi
2883done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002884 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002885IFS=$as_save_IFS
2886
2887fi
2888fi
2889CC=$ac_cv_prog_CC
2890if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002892$as_echo "$CC" >&6; }
2893else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002895$as_echo "no" >&6; }
2896fi
2897
2898
2899 test -n "$CC" && break
2900 done
2901fi
2902if test -z "$CC"; then
2903 ac_ct_CC=$CC
2904 for ac_prog in cl.exe
2905do
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002909$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07002910if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01002911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$ac_ct_CC"; then
2914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002921 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01002922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07002924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002925 break 2
2926 fi
2927done
Scott James Remnantfde82c92009-09-22 10:04:15 -07002928 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002929IFS=$as_save_IFS
2930
2931fi
2932fi
2933ac_ct_CC=$ac_cv_prog_ac_ct_CC
2934if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07002935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002936$as_echo "$ac_ct_CC" >&6; }
2937else
Scott James Remnantfde82c92009-09-22 10:04:15 -07002938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002939$as_echo "no" >&6; }
2940fi
2941
2942
2943 test -n "$ac_ct_CC" && break
2944done
2945
2946 if test "x$ac_ct_CC" = x; then
2947 CC=""
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07002951{ $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 +01002952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953ac_tool_warned=yes ;;
2954esac
2955 CC=$ac_ct_CC
2956 fi
2957fi
2958
2959fi
2960
2961
Scott James Remnantfde82c92009-09-22 10:04:15 -07002962test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07002964as_fn_error "no acceptable C compiler found in \$PATH
2965See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01002966
2967# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -07002968$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01002969set X $ac_compile
2970ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07002971for ac_option in --version -v -V -qversion; do
2972 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +01002973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07002977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978$as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +01002980 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07002981 if test -s conftest.err; then
2982 sed '10a\
2983... rest of stderr output deleted ...
2984 10q' conftest.err >conftest.er1
2985 cat conftest.er1 >&5
2986 rm -f conftest.er1 conftest.err
2987 fi
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }
2990done
Scott James Remnant65f683d2009-07-14 13:05:17 +01002991
Scott James Remnantfde82c92009-09-22 10:04:15 -07002992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01002993/* end confdefs.h. */
Scott James Remnantfde82c92009-09-22 10:04:15 -07002994#include <stdio.h>
Scott James Remnant65f683d2009-07-14 13:05:17 +01002995int
2996main ()
2997{
Scott James Remnantfde82c92009-09-22 10:04:15 -07002998FILE *f = fopen ("conftest.out", "w");
2999 return ferror (f) || fclose (f) != 0;
Scott James Remnant65f683d2009-07-14 13:05:17 +01003000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005ac_clean_files_save=$ac_clean_files
Scott James Remnantfde82c92009-09-22 10:04:15 -07003006ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003007# Try to create an executable without -o first, disregard a.out.
3008# It will help us diagnose broken compilers, and finding out an intuition
3009# of exeext.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003011$as_echo_n "checking for C compiler default output file name... " >&6; }
3012ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3013
3014# The possible output files:
3015ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3016
3017ac_rmfiles=
3018for ac_file in $ac_files
3019do
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3023 esac
3024done
3025rm -f $ac_rmfiles
3026
Scott James Remnantfde82c92009-09-22 10:04:15 -07003027if { { ac_try="$ac_link_default"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003028case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003034 (eval "$ac_link_default") 2>&5
3035 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040# in a Makefile. We should not override ac_cv_exeext if it was cached,
3041# so that the user can short-circuit this test for compilers unknown to
3042# Autoconf.
3043for ac_file in $ac_files ''
3044do
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3048 ;;
3049 [ab].out )
3050 # We found the default executable, but exeext='' is most
3051 # certainly right.
3052 break;;
3053 *.* )
Scott James Remnantfde82c92009-09-22 10:04:15 -07003054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Scott James Remnant65f683d2009-07-14 13:05:17 +01003055 then :; else
3056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3057 fi
3058 # We set ac_cv_exeext here because the later test for it is not
3059 # safe: cross compilers may not add the suffix if given an `-o'
3060 # argument, so we may need to know it at that point already.
3061 # Even if this section looks crufty: it has the advantage of
3062 # actually working.
3063 break;;
3064 * )
3065 break;;
3066 esac
3067done
3068test "$ac_cv_exeext" = no && ac_cv_exeext=
3069
3070else
3071 ac_file=''
3072fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003074$as_echo "$ac_file" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003075if test -z "$ac_file"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003076 $as_echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
Scott James Remnantfde82c92009-09-22 10:04:15 -07003079{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003081{ as_fn_set_status 77
3082as_fn_error "C compiler cannot create executables
3083See \`config.log' for more details." "$LINENO" 5; }; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003084fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003085ac_exeext=$ac_cv_exeext
3086
3087# Check that the compiler produces executables we can run. If not, either
3088# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003090$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003091# If not cross compiling, check that we can run a simple program.
3092if test "$cross_compiling" != yes; then
3093 if { ac_try='./$ac_file'
Scott James Remnantfde82c92009-09-22 10:04:15 -07003094 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +01003095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003100 (eval "$ac_try") 2>&5
3101 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01003104 cross_compiling=no
3105 else
3106 if test "$cross_compiling" = maybe; then
3107 cross_compiling=yes
3108 else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003111as_fn_error "cannot run C compiled programs.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003112If you meant to cross compile, use \`--host'.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003113See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003114 fi
3115 fi
3116fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003118$as_echo "yes" >&6; }
3119
Scott James Remnantfde82c92009-09-22 10:04:15 -07003120rm -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 +01003121ac_clean_files=$ac_clean_files_save
3122# Check that the compiler produces executables we can run. If not, either
3123# the compiler is broken, or we cross compile.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003125$as_echo_n "checking whether we are cross compiling... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003127$as_echo "$cross_compiling" >&6; }
3128
Scott James Remnantfde82c92009-09-22 10:04:15 -07003129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003130$as_echo_n "checking for suffix of executables... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003131if { { ac_try="$ac_link"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003138 (eval "$ac_link") 2>&5
3139 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144# work properly (i.e., refer to `conftest.exe'), while it won't with
3145# `rm'.
3146for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3148 case $ac_file in
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 break;;
3152 * ) break;;
3153 esac
3154done
3155else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003158as_fn_error "cannot compute suffix of executables: cannot compile and link
3159See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003160fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003161rm -f conftest$ac_cv_exeext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003163$as_echo "$ac_cv_exeext" >&6; }
3164
3165rm -f conftest.$ac_ext
3166EXEEXT=$ac_cv_exeext
3167ac_exeext=$EXEEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003169$as_echo_n "checking for suffix of object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003170if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003171 $as_echo_n "(cached) " >&6
3172else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003174/* end confdefs.h. */
3175
3176int
3177main ()
3178{
3179
3180 ;
3181 return 0;
3182}
3183_ACEOF
3184rm -f conftest.o conftest.obj
Scott James Remnantfde82c92009-09-22 10:04:15 -07003185if { { ac_try="$ac_compile"
Scott James Remnant65f683d2009-07-14 13:05:17 +01003186case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003192 (eval "$ac_compile") 2>&5
3193 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07003194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003196 for ac_file in conftest.o conftest.obj conftest.*; do
3197 test -f "$ac_file" || continue;
3198 case $ac_file in
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3201 break;;
3202 esac
3203done
3204else
3205 $as_echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
Scott James Remnantfde82c92009-09-22 10:04:15 -07003208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003210as_fn_error "cannot compute suffix of object files: cannot compile
3211See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003212fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003213rm -f conftest.$ac_cv_objext conftest.$ac_ext
3214fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003216$as_echo "$ac_cv_objext" >&6; }
3217OBJEXT=$ac_cv_objext
3218ac_objext=$OBJEXT
Scott James Remnantfde82c92009-09-22 10:04:15 -07003219{ $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 +01003220$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003221if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003222 $as_echo_n "(cached) " >&6
3223else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003225/* end confdefs.h. */
3226
3227int
3228main ()
3229{
3230#ifndef __GNUC__
3231 choke me
3232#endif
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003238if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003239 ac_compiler_gnu=yes
3240else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003241 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003242fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245
3246fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003248$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3249if test $ac_compiler_gnu = yes; then
3250 GCC=yes
3251else
3252 GCC=
3253fi
3254ac_test_CFLAGS=${CFLAGS+set}
3255ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -07003256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003257$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003258if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003259 $as_echo_n "(cached) " >&6
3260else
3261 ac_save_c_werror_flag=$ac_c_werror_flag
3262 ac_c_werror_flag=yes
3263 ac_cv_prog_cc_g=no
3264 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003266/* end confdefs.h. */
3267
3268int
3269main ()
3270{
3271
3272 ;
3273 return 0;
3274}
3275_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003276if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003277 ac_cv_prog_cc_g=yes
3278else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003279 CFLAGS=""
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003281/* end confdefs.h. */
3282
3283int
3284main ()
3285{
3286
3287 ;
3288 return 0;
3289}
3290_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003291if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003292
Scott James Remnantfde82c92009-09-22 10:04:15 -07003293else
3294 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +01003295 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003297/* end confdefs.h. */
3298
3299int
3300main ()
3301{
3302
3303 ;
3304 return 0;
3305}
3306_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003307if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003308 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +01003309fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3316fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003318$as_echo "$ac_cv_prog_cc_g" >&6; }
3319if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3323 CFLAGS="-g -O2"
3324 else
3325 CFLAGS="-g"
3326 fi
3327else
3328 if test "$GCC" = yes; then
3329 CFLAGS="-O2"
3330 else
3331 CFLAGS=
3332 fi
3333fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003335$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003336if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003337 $as_echo_n "(cached) " >&6
3338else
3339 ac_cv_prog_cc_c89=no
3340ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -07003341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003342/* end confdefs.h. */
3343#include <stdarg.h>
3344#include <stdio.h>
3345#include <sys/types.h>
3346#include <sys/stat.h>
3347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3348struct buf { int x; };
3349FILE * (*rcsopen) (struct buf *, struct stat *, int);
3350static char *e (p, i)
3351 char **p;
3352 int i;
3353{
3354 return p[i];
3355}
3356static char *f (char * (*g) (char **, int), char **p, ...)
3357{
3358 char *s;
3359 va_list v;
3360 va_start (v,p);
3361 s = g (p, va_arg (v,int));
3362 va_end (v);
3363 return s;
3364}
3365
3366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3367 function prototypes and stuff, but not '\xHH' hex character constants.
3368 These don't provoke an error unfortunately, instead are silently treated
3369 as 'x'. The following induces an error, until -std is added to get
3370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3371 array size at least. It's necessary to write '\x00'==0 to get something
3372 that's true only with -std. */
3373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3374
3375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3376 inside strings and character constants. */
3377#define FOO(x) 'x'
3378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3379
3380int test (int i, double x);
3381struct s1 {int (*f) (int a);};
3382struct s2 {int (*f) (double a);};
3383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3384int argc;
3385char **argv;
3386int
3387main ()
3388{
3389return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3395 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3396do
3397 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003398 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003399 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +01003400fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003401rm -f core conftest.err conftest.$ac_objext
3402 test "x$ac_cv_prog_cc_c89" != "xno" && break
3403done
3404rm -f conftest.$ac_ext
3405CC=$ac_save_CC
3406
3407fi
3408# AC_CACHE_VAL
3409case "x$ac_cv_prog_cc_c89" in
3410 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003412$as_echo "none needed" >&6; } ;;
3413 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -07003414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003415$as_echo "unsupported" >&6; } ;;
3416 *)
3417 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -07003418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003419$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3420esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07003421if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003422
Scott James Remnantfde82c92009-09-22 10:04:15 -07003423fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003424
3425ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431
3432ac_ext=c
3433ac_cpp='$CPP $CPPFLAGS'
3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnantfde82c92009-09-22 10:04:15 -07003437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003438$as_echo_n "checking how to run the C preprocessor... " >&6; }
3439# On Suns, sometimes $CPP names a directory.
3440if test -n "$CPP" && test -d "$CPP"; then
3441 CPP=
3442fi
3443if test -z "$CPP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003444 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003445 $as_echo_n "(cached) " >&6
3446else
3447 # Double quotes because CPP needs to be expanded
3448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 do
3450 ac_preproc_ok=false
3451for ac_c_preproc_warn_flag in '' yes
3452do
3453 # Use a header file that comes with gcc, so configuring glibc
3454 # with a fresh cross-compiler works.
3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456 # <limits.h> exists even on freestanding compilers.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003460/* end confdefs.h. */
3461#ifdef __STDC__
3462# include <limits.h>
3463#else
3464# include <assert.h>
3465#endif
3466 Syntax error
3467_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003468if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003469
Scott James Remnantfde82c92009-09-22 10:04:15 -07003470else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003471 # Broken: fails on valid input.
3472continue
3473fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003474rm -f conftest.err conftest.$ac_ext
3475
3476 # OK, works on sane cases. Now check whether nonexistent headers
3477 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003479/* end confdefs.h. */
3480#include <ac_nonexistent.h>
3481_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003482if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003483 # Broken: success on invalid input.
3484continue
3485else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003486 # Passes both tests.
3487ac_preproc_ok=:
3488break
3489fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003490rm -f conftest.err conftest.$ac_ext
3491
3492done
3493# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3494rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003495if $ac_preproc_ok; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003496 break
3497fi
3498
3499 done
3500 ac_cv_prog_CPP=$CPP
3501
3502fi
3503 CPP=$ac_cv_prog_CPP
3504else
3505 ac_cv_prog_CPP=$CPP
3506fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003508$as_echo "$CPP" >&6; }
3509ac_preproc_ok=false
3510for ac_c_preproc_warn_flag in '' yes
3511do
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003519/* end confdefs.h. */
3520#ifdef __STDC__
3521# include <limits.h>
3522#else
3523# include <assert.h>
3524#endif
3525 Syntax error
3526_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003527if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +01003528
Scott James Remnantfde82c92009-09-22 10:04:15 -07003529else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003530 # Broken: fails on valid input.
3531continue
3532fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003533rm -f conftest.err conftest.$ac_ext
3534
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003538/* end confdefs.h. */
3539#include <ac_nonexistent.h>
3540_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003541if ac_fn_c_try_cpp "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003542 # Broken: success on invalid input.
3543continue
3544else
Scott James Remnant65f683d2009-07-14 13:05:17 +01003545 # Passes both tests.
3546ac_preproc_ok=:
3547break
3548fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003549rm -f conftest.err conftest.$ac_ext
3550
3551done
3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553rm -f conftest.err conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07003554if $ac_preproc_ok; then :
3555
Scott James Remnant65f683d2009-07-14 13:05:17 +01003556else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -07003559as_fn_error "C preprocessor \"$CPP\" fails sanity check
3560See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01003561fi
3562
3563ac_ext=c
3564ac_cpp='$CPP $CPPFLAGS'
3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569
Scott James Remnantfde82c92009-09-22 10:04:15 -07003570{ $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 +01003571$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003572if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003573 $as_echo_n "(cached) " >&6
3574else
3575 if test -z "$GREP"; then
3576 ac_path_GREP_found=false
3577 # Loop through the user's path and test for each of PROGNAME-LIST
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003583 for ac_prog in grep ggrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3587# Check for GNU ac_path_GREP and select it if it is found.
3588 # Check for GNU $ac_path_GREP
3589case `"$ac_path_GREP" --version 2>&1` in
3590*GNU*)
3591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3592*)
3593 ac_count=0
3594 $as_echo_n 0123456789 >"conftest.in"
3595 while :
3596 do
3597 cat "conftest.in" "conftest.in" >"conftest.tmp"
3598 mv "conftest.tmp" "conftest.in"
3599 cp "conftest.in" "conftest.nl"
3600 $as_echo 'GREP' >> "conftest.nl"
3601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003603 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_GREP="$ac_path_GREP"
3607 ac_path_GREP_max=$ac_count
3608 fi
3609 # 10*(2^10) chars as input seems more than enough
3610 test $ac_count -gt 10 && break
3611 done
3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613esac
3614
3615 $ac_path_GREP_found && break 3
3616 done
3617 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003618 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003619IFS=$as_save_IFS
3620 if test -z "$ac_cv_path_GREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003621 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 +01003622 fi
3623else
3624 ac_cv_path_GREP=$GREP
3625fi
3626
3627fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003629$as_echo "$ac_cv_path_GREP" >&6; }
3630 GREP="$ac_cv_path_GREP"
3631
3632
Scott James Remnantfde82c92009-09-22 10:04:15 -07003633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003634$as_echo_n "checking for egrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003635if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003636 $as_echo_n "(cached) " >&6
3637else
3638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3639 then ac_cv_path_EGREP="$GREP -E"
3640 else
3641 if test -z "$EGREP"; then
3642 ac_path_EGREP_found=false
3643 # Loop through the user's path and test for each of PROGNAME-LIST
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3646do
3647 IFS=$as_save_IFS
3648 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003649 for ac_prog in egrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01003650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3652 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3653# Check for GNU ac_path_EGREP and select it if it is found.
3654 # Check for GNU $ac_path_EGREP
3655case `"$ac_path_EGREP" --version 2>&1` in
3656*GNU*)
3657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3658*)
3659 ac_count=0
3660 $as_echo_n 0123456789 >"conftest.in"
3661 while :
3662 do
3663 cat "conftest.in" "conftest.in" >"conftest.tmp"
3664 mv "conftest.tmp" "conftest.in"
3665 cp "conftest.in" "conftest.nl"
3666 $as_echo 'EGREP' >> "conftest.nl"
3667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07003669 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01003670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3671 # Best one so far, save it but keep looking for a better one
3672 ac_cv_path_EGREP="$ac_path_EGREP"
3673 ac_path_EGREP_max=$ac_count
3674 fi
3675 # 10*(2^10) chars as input seems more than enough
3676 test $ac_count -gt 10 && break
3677 done
3678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3679esac
3680
3681 $ac_path_EGREP_found && break 3
3682 done
3683 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07003684 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003685IFS=$as_save_IFS
3686 if test -z "$ac_cv_path_EGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003687 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 +01003688 fi
3689else
3690 ac_cv_path_EGREP=$EGREP
3691fi
3692
3693 fi
3694fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003696$as_echo "$ac_cv_path_EGREP" >&6; }
3697 EGREP="$ac_cv_path_EGREP"
3698
3699
Scott James Remnantfde82c92009-09-22 10:04:15 -07003700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003701$as_echo_n "checking for ANSI C header files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003702if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003703 $as_echo_n "(cached) " >&6
3704else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003706/* end confdefs.h. */
3707#include <stdlib.h>
3708#include <stdarg.h>
3709#include <string.h>
3710#include <float.h>
3711
3712int
3713main ()
3714{
3715
3716 ;
3717 return 0;
3718}
3719_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003720if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003721 ac_cv_header_stdc=yes
3722else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003723 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003724fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726
3727if test $ac_cv_header_stdc = yes; then
3728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003730/* end confdefs.h. */
3731#include <string.h>
3732
3733_ACEOF
3734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003735 $EGREP "memchr" >/dev/null 2>&1; then :
3736
Scott James Remnant65f683d2009-07-14 13:05:17 +01003737else
3738 ac_cv_header_stdc=no
3739fi
3740rm -f conftest*
3741
3742fi
3743
3744if test $ac_cv_header_stdc = yes; then
3745 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003747/* end confdefs.h. */
3748#include <stdlib.h>
3749
3750_ACEOF
3751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -07003752 $EGREP "free" >/dev/null 2>&1; then :
3753
Scott James Remnant65f683d2009-07-14 13:05:17 +01003754else
3755 ac_cv_header_stdc=no
3756fi
3757rm -f conftest*
3758
3759fi
3760
3761if test $ac_cv_header_stdc = yes; then
3762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003763 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003764 :
3765else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003767/* end confdefs.h. */
3768#include <ctype.h>
3769#include <stdlib.h>
3770#if ((' ' & 0x0FF) == 0x020)
3771# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3772# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3773#else
3774# define ISLOWER(c) \
3775 (('a' <= (c) && (c) <= 'i') \
3776 || ('j' <= (c) && (c) <= 'r') \
3777 || ('s' <= (c) && (c) <= 'z'))
3778# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3779#endif
3780
3781#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3782int
3783main ()
3784{
3785 int i;
3786 for (i = 0; i < 256; i++)
3787 if (XOR (islower (i), ISLOWER (i))
3788 || toupper (i) != TOUPPER (i))
3789 return 2;
3790 return 0;
3791}
3792_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003793if ac_fn_c_try_run "$LINENO"; then :
3794
Scott James Remnant65f683d2009-07-14 13:05:17 +01003795else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003796 ac_cv_header_stdc=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003797fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3799 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003800fi
3801
Scott James Remnant65f683d2009-07-14 13:05:17 +01003802fi
3803fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003805$as_echo "$ac_cv_header_stdc" >&6; }
3806if test $ac_cv_header_stdc = yes; then
3807
Scott James Remnantfde82c92009-09-22 10:04:15 -07003808$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003809
3810fi
3811
3812# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Scott James Remnant65f683d2009-07-14 13:05:17 +01003813for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3814 inttypes.h stdint.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07003815do :
3816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3817ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3818"
3819eval as_val=\$$as_ac_Header
3820 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003821 cat >>confdefs.h <<_ACEOF
3822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823_ACEOF
3824
3825fi
3826
3827done
3828
3829
3830
Scott James Remnantfde82c92009-09-22 10:04:15 -07003831 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3832if test "x$ac_cv_header_minix_config_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003833 MINIX=yes
3834else
3835 MINIX=
3836fi
3837
3838
3839 if test "$MINIX" = yes; then
3840
Scott James Remnantfde82c92009-09-22 10:04:15 -07003841$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003842
3843
Scott James Remnantfde82c92009-09-22 10:04:15 -07003844$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003845
3846
Scott James Remnantfde82c92009-09-22 10:04:15 -07003847$as_echo "#define _MINIX 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003848
3849 fi
3850
3851
Scott James Remnantfde82c92009-09-22 10:04:15 -07003852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003853$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07003854if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003855 $as_echo_n "(cached) " >&6
3856else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01003858/* end confdefs.h. */
3859
3860# define __EXTENSIONS__ 1
3861 $ac_includes_default
3862int
3863main ()
3864{
3865
3866 ;
3867 return 0;
3868}
3869_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07003870if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003871 ac_cv_safe_to_define___extensions__=yes
3872else
Scott James Remnantfde82c92009-09-22 10:04:15 -07003873 ac_cv_safe_to_define___extensions__=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01003874fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01003875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07003877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003878$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3879 test $ac_cv_safe_to_define___extensions__ = yes &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07003880 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003881
Scott James Remnantfde82c92009-09-22 10:04:15 -07003882 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003883
Scott James Remnantfde82c92009-09-22 10:04:15 -07003884 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003885
Scott James Remnantfde82c92009-09-22 10:04:15 -07003886 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +01003887
Scott James Remnantfde82c92009-09-22 10:04:15 -07003888 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3889
Scott James Remnant65f683d2009-07-14 13:05:17 +01003890
3891
3892
Scott James Remnantc5b65582009-09-23 14:16:28 -07003893am__api_version='1.11'
Scott James Remnant65f683d2009-07-14 13:05:17 +01003894
3895ac_aux_dir=
3896for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Scott James Remnantfde82c92009-09-22 10:04:15 -07003897 for ac_t in install-sh install.sh shtool; do
3898 if test -f "$ac_dir/$ac_t"; then
3899 ac_aux_dir=$ac_dir
3900 ac_install_sh="$ac_aux_dir/$ac_t -c"
3901 break 2
3902 fi
3903 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003904done
3905if test -z "$ac_aux_dir"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003906 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 +01003907fi
3908
3909# These three variables are undocumented and unsupported,
3910# and are intended to be withdrawn in a future Autoconf release.
3911# They can cause serious problems if a builder's source tree is in a directory
3912# whose full name contains unusual characters.
3913ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3914ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3915ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3916
3917
3918# Find a good install program. We prefer a C program (faster),
3919# so one script is as good as another. But avoid the broken or
3920# incompatible versions:
3921# SysV /etc/install, /usr/sbin/install
3922# SunOS /usr/etc/install
3923# IRIX /sbin/install
3924# AIX /bin/install
3925# AmigaOS /C/install, which installs bootblocks on floppy discs
3926# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3927# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3928# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3929# OS/2's system install, which has a completely different semantic
3930# ./install, which can be erroneously created by make from ./install.sh.
3931# Reject install programs that cannot install multiple files.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01003933$as_echo_n "checking for a BSD-compatible install... " >&6; }
3934if test -z "$INSTALL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07003935if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01003936 $as_echo_n "(cached) " >&6
3937else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07003943 # Account for people who put trailing slashes in PATH elements.
3944case $as_dir/ in #((
3945 ./ | .// | /[cC]/* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003946 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Scott James Remnantfde82c92009-09-22 10:04:15 -07003947 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Scott James Remnant65f683d2009-07-14 13:05:17 +01003948 /usr/ucb/* ) ;;
3949 *)
3950 # OSF1 and SCO ODT 3.0 have their own names for install.
3951 # Don't use installbsd from OSF since it installs stuff as root
3952 # by default.
3953 for ac_prog in ginstall scoinst install; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3956 if test $ac_prog = install &&
3957 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3958 # AIX install. It has an incompatible calling convention.
3959 :
3960 elif test $ac_prog = install &&
3961 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3962 # program-specific install script used by HP pwplus--don't use.
3963 :
3964 else
3965 rm -rf conftest.one conftest.two conftest.dir
3966 echo one > conftest.one
3967 echo two > conftest.two
3968 mkdir conftest.dir
3969 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3970 test -s conftest.one && test -s conftest.two &&
3971 test -s conftest.dir/conftest.one &&
3972 test -s conftest.dir/conftest.two
3973 then
3974 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3975 break 3
3976 fi
3977 fi
3978 fi
3979 done
3980 done
3981 ;;
3982esac
3983
Scott James Remnantfde82c92009-09-22 10:04:15 -07003984 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01003985IFS=$as_save_IFS
3986
3987rm -rf conftest.one conftest.two conftest.dir
3988
3989fi
3990 if test "${ac_cv_path_install+set}" = set; then
3991 INSTALL=$ac_cv_path_install
3992 else
3993 # As a last resort, use the slow shell script. Don't cache a
3994 # value for INSTALL within a source directory, because that will
3995 # break other packages using the cache if that directory is
3996 # removed, or if the value is a relative name.
3997 INSTALL=$ac_install_sh
3998 fi
3999fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004001$as_echo "$INSTALL" >&6; }
4002
4003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4004# It thinks the first close brace ends the variable substitution.
4005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4006
4007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4008
4009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4010
Scott James Remnantfde82c92009-09-22 10:04:15 -07004011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004012$as_echo_n "checking whether build environment is sane... " >&6; }
4013# Just in case
4014sleep 1
4015echo timestamp > conftest.file
Scott James Remnantc5b65582009-09-23 14:16:28 -07004016# Reject unsafe characters in $srcdir or the absolute working directory
4017# name. Accept space and tab only in the latter.
4018am_lf='
4019'
4020case `pwd` in
4021 *[\\\"\#\$\&\'\`$am_lf]*)
4022 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4023esac
4024case $srcdir in
4025 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4026 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4027esac
4028
Scott James Remnant65f683d2009-07-14 13:05:17 +01004029# Do `set' in a subshell so we don't clobber the current shell's
4030# arguments. Must try -L first in case configure is actually a
4031# symlink; some systems play weird games with the mod time of symlinks
4032# (eg FreeBSD returns the mod time of the symlink's containing
4033# directory).
4034if (
Scott James Remnantc5b65582009-09-23 14:16:28 -07004035 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004036 if test "$*" = "X"; then
4037 # -L didn't work.
Scott James Remnantc5b65582009-09-23 14:16:28 -07004038 set X `ls -t "$srcdir/configure" conftest.file`
Scott James Remnant65f683d2009-07-14 13:05:17 +01004039 fi
4040 rm -f conftest.file
4041 if test "$*" != "X $srcdir/configure conftest.file" \
4042 && test "$*" != "X conftest.file $srcdir/configure"; then
4043
4044 # If neither matched, then we have a broken ls. This can happen
4045 # if, for instance, CONFIG_SHELL is bash and it inherits a
4046 # broken ls alias from the environment. This has actually
4047 # happened. Such a system could not be considered "sane".
Scott James Remnantfde82c92009-09-22 10:04:15 -07004048 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4049alias in your environment" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004050 fi
4051
4052 test "$2" = conftest.file
4053 )
4054then
4055 # Ok.
4056 :
4057else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004058 as_fn_error "newly created file is older than distributed files!
4059Check your system clock" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004060fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004062$as_echo "yes" >&6; }
4063test "$program_prefix" != NONE &&
4064 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4065# Use a double $ so make ignores it.
4066test "$program_suffix" != NONE &&
4067 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4068# Double any \ or $.
4069# By default was `s,x,x', remove it if useless.
4070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4071program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4072
4073# expand $ac_aux_dir to an absolute path
4074am_aux_dir=`cd $ac_aux_dir && pwd`
4075
Scott James Remnantc5b65582009-09-23 14:16:28 -07004076if test x"${MISSING+set}" != xset; then
4077 case $am_aux_dir in
4078 *\ * | *\ *)
4079 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4080 *)
4081 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4082 esac
4083fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01004084# Use eval to expand $SHELL
4085if eval "$MISSING --run true"; then
4086 am_missing_run="$MISSING --run "
4087else
4088 am_missing_run=
Scott James Remnantfde82c92009-09-22 10:04:15 -07004089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004090$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4091fi
4092
Scott James Remnantc5b65582009-09-23 14:16:28 -07004093if test x"${install_sh}" != xset; then
4094 case $am_aux_dir in
4095 *\ * | *\ *)
4096 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4097 *)
4098 install_sh="\${SHELL} $am_aux_dir/install-sh"
4099 esac
4100fi
4101
4102# Installed binaries are usually stripped using `strip' when the user
4103# run `make install-strip'. However `strip' might not be the right
4104# tool to use in cross-compilation environments, therefore Automake
4105# will honor the `STRIP' environment variable to overrule this program.
4106if test "$cross_compiling" != no; then
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4109set dummy ${ac_tool_prefix}strip; ac_word=$2
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111$as_echo_n "checking for $ac_word... " >&6; }
4112if test "${ac_cv_prog_STRIP+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114else
4115 if test -n "$STRIP"; then
4116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4117else
4118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH
4120do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129done
4130 done
4131IFS=$as_save_IFS
4132
4133fi
4134fi
4135STRIP=$ac_cv_prog_STRIP
4136if test -n "$STRIP"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4138$as_echo "$STRIP" >&6; }
4139else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141$as_echo "no" >&6; }
4142fi
4143
4144
4145fi
4146if test -z "$ac_cv_prog_STRIP"; then
4147 ac_ct_STRIP=$STRIP
4148 # Extract the first word of "strip", so it can be a program name with args.
4149set dummy strip; ac_word=$2
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151$as_echo_n "checking for $ac_word... " >&6; }
4152if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154else
4155 if test -n "$ac_ct_STRIP"; then
4156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_ac_ct_STRIP="strip"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170 done
4171IFS=$as_save_IFS
4172
4173fi
4174fi
4175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4176if test -n "$ac_ct_STRIP"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4178$as_echo "$ac_ct_STRIP" >&6; }
4179else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
4182fi
4183
4184 if test "x$ac_ct_STRIP" = x; then
4185 STRIP=":"
4186 else
4187 case $cross_compiling:$ac_tool_warned in
4188yes:)
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191ac_tool_warned=yes ;;
4192esac
4193 STRIP=$ac_ct_STRIP
4194 fi
4195else
4196 STRIP="$ac_cv_prog_STRIP"
4197fi
4198
4199fi
4200INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4201
Scott James Remnantfde82c92009-09-22 10:04:15 -07004202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004203$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4204if test -z "$MKDIR_P"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004205 if test "${ac_cv_path_mkdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004206 $as_echo_n "(cached) " >&6
4207else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004213 for ac_prog in mkdir gmkdir; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4217 'mkdir (GNU coreutils) '* | \
4218 'mkdir (coreutils) '* | \
4219 'mkdir (fileutils) '4.1*)
4220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4221 break 3;;
4222 esac
4223 done
4224 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004225 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004226IFS=$as_save_IFS
4227
4228fi
4229
4230 if test "${ac_cv_path_mkdir+set}" = set; then
4231 MKDIR_P="$ac_cv_path_mkdir -p"
4232 else
4233 # As a last resort, use the slow shell script. Don't cache a
4234 # value for MKDIR_P within a source directory, because that will
4235 # break other packages using the cache if that directory is
4236 # removed, or if the value is a relative name.
4237 test -d ./--version && rmdir ./--version
4238 MKDIR_P="$ac_install_sh -d"
4239 fi
4240fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004242$as_echo "$MKDIR_P" >&6; }
4243
4244mkdir_p="$MKDIR_P"
4245case $mkdir_p in
4246 [\\/$]* | ?:[\\/]*) ;;
4247 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4248esac
4249
4250for ac_prog in gawk mawk nawk awk
4251do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07004254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004255$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004256if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004257 $as_echo_n "(cached) " >&6
4258else
4259 if test -n "$AWK"; then
4260 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004267 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_prog_AWK="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07004270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004271 break 2
4272 fi
4273done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004274 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004275IFS=$as_save_IFS
4276
4277fi
4278fi
4279AWK=$ac_cv_prog_AWK
4280if test -n "$AWK"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004282$as_echo "$AWK" >&6; }
4283else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004285$as_echo "no" >&6; }
4286fi
4287
4288
4289 test -n "$AWK" && break
4290done
4291
Scott James Remnantfde82c92009-09-22 10:04:15 -07004292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004293$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4294set x ${MAKE-make}
4295ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Scott James Remnantfde82c92009-09-22 10:04:15 -07004296if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004297 $as_echo_n "(cached) " >&6
4298else
4299 cat >conftest.make <<\_ACEOF
4300SHELL = /bin/sh
4301all:
4302 @echo '@@@%%%=$(MAKE)=@@@%%%'
4303_ACEOF
4304# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4305case `${MAKE-make} -f conftest.make 2>/dev/null` in
4306 *@@@%%%=?*=@@@%%%*)
4307 eval ac_cv_prog_make_${ac_make}_set=yes;;
4308 *)
4309 eval ac_cv_prog_make_${ac_make}_set=no;;
4310esac
4311rm -f conftest.make
4312fi
4313if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004315$as_echo "yes" >&6; }
4316 SET_MAKE=
4317else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004319$as_echo "no" >&6; }
4320 SET_MAKE="MAKE=${MAKE-make}"
4321fi
4322
4323rm -rf .tst 2>/dev/null
4324mkdir .tst 2>/dev/null
4325if test -d .tst; then
4326 am__leading_dot=.
4327else
4328 am__leading_dot=_
4329fi
4330rmdir .tst 2>/dev/null
4331
4332DEPDIR="${am__leading_dot}deps"
4333
4334ac_config_commands="$ac_config_commands depfiles"
4335
4336
4337am_make=${MAKE-make}
4338cat > confinc << 'END'
4339am__doit:
Scott James Remnantc5b65582009-09-23 14:16:28 -07004340 @echo this is the am__doit target
Scott James Remnant65f683d2009-07-14 13:05:17 +01004341.PHONY: am__doit
4342END
4343# If we don't find an include directive, just comment out the code.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004344{ $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 +01004345$as_echo_n "checking for style of include used by $am_make... " >&6; }
4346am__include="#"
4347am__quote=
4348_am_result=none
4349# First try GNU make style include.
4350echo "include confinc" > confmf
Scott James Remnantc5b65582009-09-23 14:16:28 -07004351# Ignore all kinds of additional output from `make'.
4352case `$am_make -s -f confmf 2> /dev/null` in #(
4353*the\ am__doit\ target*)
4354 am__include=include
4355 am__quote=
4356 _am_result=GNU
4357 ;;
4358esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004359# Now try BSD make style include.
4360if test "$am__include" = "#"; then
4361 echo '.include "confinc"' > confmf
Scott James Remnantc5b65582009-09-23 14:16:28 -07004362 case `$am_make -s -f confmf 2> /dev/null` in #(
4363 *the\ am__doit\ target*)
4364 am__include=.include
4365 am__quote="\""
4366 _am_result=BSD
4367 ;;
4368 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004369fi
4370
4371
Scott James Remnantfde82c92009-09-22 10:04:15 -07004372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004373$as_echo "$_am_result" >&6; }
4374rm -f confinc confmf
4375
4376# Check whether --enable-dependency-tracking was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004377if test "${enable_dependency_tracking+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004378 enableval=$enable_dependency_tracking;
4379fi
4380
4381if test "x$enable_dependency_tracking" != xno; then
4382 am_depcomp="$ac_aux_dir/depcomp"
4383 AMDEPBACKSLASH='\'
4384fi
4385 if test "x$enable_dependency_tracking" != xno; then
4386 AMDEP_TRUE=
4387 AMDEP_FALSE='#'
4388else
4389 AMDEP_TRUE='#'
4390 AMDEP_FALSE=
4391fi
4392
4393
4394if test "`cd $srcdir && pwd`" != "`pwd`"; then
4395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4396 # is not polluted with repeated "-I."
4397 am__isrc=' -I$(srcdir)'
4398 # test to see if srcdir already configured
4399 if test -f $srcdir/config.status; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004400 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004401 fi
4402fi
4403
4404# test whether we have cygpath
4405if test -z "$CYGPATH_W"; then
4406 if (cygpath --version) >/dev/null 2>/dev/null; then
4407 CYGPATH_W='cygpath -w'
4408 else
4409 CYGPATH_W=echo
4410 fi
4411fi
4412
4413
4414# Define the identity of the package.
4415 PACKAGE='upstart'
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01004416 VERSION='0.6.3'
Scott James Remnant65f683d2009-07-14 13:05:17 +01004417
4418
4419cat >>confdefs.h <<_ACEOF
4420#define PACKAGE "$PACKAGE"
4421_ACEOF
4422
4423
4424cat >>confdefs.h <<_ACEOF
4425#define VERSION "$VERSION"
4426_ACEOF
4427
4428# Some tools Automake needs.
4429
4430ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4431
4432
4433AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4434
4435
4436AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4437
4438
4439AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4440
4441
4442MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4443
Scott James Remnant65f683d2009-07-14 13:05:17 +01004444# We need awk for the "check" target. The system "awk" is bad on
4445# some platforms.
4446# Always define AMTAR for backward compatibility.
4447
4448AMTAR=${AMTAR-"${am_missing_run}tar"}
4449
4450am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4451
4452
4453
4454
4455depcc="$CC" am_compiler_list=
4456
Scott James Remnantfde82c92009-09-22 10:04:15 -07004457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004458$as_echo_n "checking dependency style of $depcc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004459if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004460 $as_echo_n "(cached) " >&6
4461else
4462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4463 # We make a subdir and do the tests there. Otherwise we can end up
4464 # making bogus files that we don't know about and never remove. For
4465 # instance it was reported that on HP-UX the gcc test will end up
4466 # making a dummy file named `D' -- because `-MD' means `put the output
4467 # in D'.
4468 mkdir conftest.dir
4469 # Copy depcomp to subdir because otherwise we won't find it if we're
4470 # using a relative directory.
4471 cp "$am_depcomp" conftest.dir
4472 cd conftest.dir
4473 # We will build objects and dependencies in a subdirectory because
4474 # it helps to detect inapplicable dependency modes. For instance
4475 # both Tru64's cc and ICC support -MD to output dependencies as a
4476 # side effect of compilation, but ICC will put the dependencies in
4477 # the current directory while Tru64 will put them in the object
4478 # directory.
4479 mkdir sub
4480
4481 am_cv_CC_dependencies_compiler_type=none
4482 if test "$am_compiler_list" = ""; then
4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4484 fi
Scott James Remnantc5b65582009-09-23 14:16:28 -07004485 am__universal=false
4486 case " $depcc " in #(
4487 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4488 esac
4489
Scott James Remnant65f683d2009-07-14 13:05:17 +01004490 for depmode in $am_compiler_list; do
4491 # Setup a source with many dependencies, because some compilers
4492 # like to wrap large dependency lists on column 80 (with \), and
4493 # we should not choose a depcomp mode which is confused by this.
4494 #
4495 # We need to recreate these files for each test, as the compiler may
4496 # overwrite some of them when testing with obscure command lines.
4497 # This happens at least with the AIX C compiler.
4498 : > sub/conftest.c
4499 for i in 1 2 3 4 5 6; do
4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4501 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4502 # Solaris 8's {/usr,}/bin/sh.
4503 touch sub/conftst$i.h
4504 done
4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506
Scott James Remnantc5b65582009-09-23 14:16:28 -07004507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4508 # mode. It turns out that the SunPro C++ compiler does not properly
4509 # handle `-M -o', and we need to detect this. Also, some Intel
4510 # versions had trouble with output in subdirs
4511 am__obj=sub/conftest.${OBJEXT-o}
4512 am__minus_obj="-o $am__obj"
Scott James Remnant65f683d2009-07-14 13:05:17 +01004513 case $depmode in
Scott James Remnantc5b65582009-09-23 14:16:28 -07004514 gcc)
4515 # This depmode causes a compiler race in universal mode.
4516 test "$am__universal" = false || continue
4517 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004518 nosideeffect)
4519 # after this tag, mechanisms are not by side-effect, so they'll
4520 # only be used when explicitly requested
4521 if test "x$enable_dependency_tracking" = xyes; then
4522 continue
4523 else
4524 break
4525 fi
4526 ;;
Scott James Remnantc5b65582009-09-23 14:16:28 -07004527 msvisualcpp | msvcmsys)
4528 # This compiler won't grok `-c -o', but also, the minuso test has
4529 # not run yet. These depmodes are late enough in the game, and
4530 # so weak that their functioning should not be impacted.
4531 am__obj=conftest.${OBJEXT-o}
4532 am__minus_obj=
4533 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004534 none) break ;;
4535 esac
Scott James Remnant65f683d2009-07-14 13:05:17 +01004536 if depmode=$depmode \
Scott James Remnantc5b65582009-09-23 14:16:28 -07004537 source=sub/conftest.c object=$am__obj \
Scott James Remnant65f683d2009-07-14 13:05:17 +01004538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Scott James Remnantc5b65582009-09-23 14:16:28 -07004539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Scott James Remnant65f683d2009-07-14 13:05:17 +01004540 >/dev/null 2>conftest.err &&
4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Scott James Remnantc5b65582009-09-23 14:16:28 -07004543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Scott James Remnant65f683d2009-07-14 13:05:17 +01004544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4545 # icc doesn't choke on unknown options, it will just issue warnings
4546 # or remarks (even with -Werror). So we grep stderr for any message
4547 # that says an option was ignored or not supported.
4548 # When given -MP, icc 7.0 and 7.1 complain thusly:
4549 # icc: Command line warning: ignoring option '-M'; no argument required
4550 # The diagnosis changed in icc 8.0:
4551 # icc: Command line remark: option '-MP' not supported
4552 if (grep 'ignoring option' conftest.err ||
4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4554 am_cv_CC_dependencies_compiler_type=$depmode
4555 break
4556 fi
4557 fi
4558 done
4559
4560 cd ..
4561 rm -rf conftest.dir
4562else
4563 am_cv_CC_dependencies_compiler_type=none
4564fi
4565
4566fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004568$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4570
4571 if
4572 test "x$enable_dependency_tracking" != xno \
4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_TRUE=
4575 am__fastdepCC_FALSE='#'
4576else
4577 am__fastdepCC_TRUE='#'
4578 am__fastdepCC_FALSE=
4579fi
4580
4581
4582
4583
4584
4585case `pwd` in
4586 *\ * | *\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -07004587 { $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 +01004588$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4589esac
4590
4591
4592
4593macro_version='2.2.6'
4594macro_revision='1.3012'
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608ltmain="$ac_aux_dir/ltmain.sh"
4609
4610# Make sure we can run config.sub.
4611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004612 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004613
Scott James Remnantfde82c92009-09-22 10:04:15 -07004614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004615$as_echo_n "checking build system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004616if test "${ac_cv_build+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004617 $as_echo_n "(cached) " >&6
4618else
4619 ac_build_alias=$build_alias
4620test "x$ac_build_alias" = x &&
4621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4622test "x$ac_build_alias" = x &&
Scott James Remnantfde82c92009-09-22 10:04:15 -07004623 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004625 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004626
4627fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004629$as_echo "$ac_cv_build" >&6; }
4630case $ac_cv_build in
4631*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004632*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004633esac
4634build=$ac_cv_build
4635ac_save_IFS=$IFS; IFS='-'
4636set x $ac_cv_build
4637shift
4638build_cpu=$1
4639build_vendor=$2
4640shift; shift
4641# Remember, the first character of IFS is used to create $*,
4642# except with old shells:
4643build_os=$*
4644IFS=$ac_save_IFS
4645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4646
4647
Scott James Remnantfde82c92009-09-22 10:04:15 -07004648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004649$as_echo_n "checking host system type... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004650if test "${ac_cv_host+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004651 $as_echo_n "(cached) " >&6
4652else
4653 if test "x$host_alias" = x; then
4654 ac_cv_host=$ac_cv_build
4655else
4656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnantfde82c92009-09-22 10:04:15 -07004657 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004658fi
4659
4660fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004662$as_echo "$ac_cv_host" >&6; }
4663case $ac_cv_host in
4664*-*-*) ;;
Scott James Remnantfde82c92009-09-22 10:04:15 -07004665*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01004666esac
4667host=$ac_cv_host
4668ac_save_IFS=$IFS; IFS='-'
4669set x $ac_cv_host
4670shift
4671host_cpu=$1
4672host_vendor=$2
4673shift; shift
4674# Remember, the first character of IFS is used to create $*,
4675# except with old shells:
4676host_os=$*
4677IFS=$ac_save_IFS
4678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4679
4680
Scott James Remnantfde82c92009-09-22 10:04:15 -07004681{ $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 +01004682$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004683if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004684 $as_echo_n "(cached) " >&6
4685else
4686 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4687 for ac_i in 1 2 3 4 5 6 7; do
4688 ac_script="$ac_script$as_nl$ac_script"
4689 done
4690 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Scott James Remnantfde82c92009-09-22 10:04:15 -07004691 { ac_script=; unset ac_script;}
Scott James Remnant65f683d2009-07-14 13:05:17 +01004692 if test -z "$SED"; then
4693 ac_path_SED_found=false
4694 # Loop through the user's path and test for each of PROGNAME-LIST
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004700 for ac_prog in sed gsed; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4703 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4704# Check for GNU ac_path_SED and select it if it is found.
4705 # Check for GNU $ac_path_SED
4706case `"$ac_path_SED" --version 2>&1` in
4707*GNU*)
4708 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4709*)
4710 ac_count=0
4711 $as_echo_n 0123456789 >"conftest.in"
4712 while :
4713 do
4714 cat "conftest.in" "conftest.in" >"conftest.tmp"
4715 mv "conftest.tmp" "conftest.in"
4716 cp "conftest.in" "conftest.nl"
4717 $as_echo '' >> "conftest.nl"
4718 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004720 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004721 if test $ac_count -gt ${ac_path_SED_max-0}; then
4722 # Best one so far, save it but keep looking for a better one
4723 ac_cv_path_SED="$ac_path_SED"
4724 ac_path_SED_max=$ac_count
4725 fi
4726 # 10*(2^10) chars as input seems more than enough
4727 test $ac_count -gt 10 && break
4728 done
4729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730esac
4731
4732 $ac_path_SED_found && break 3
4733 done
4734 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004735 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004736IFS=$as_save_IFS
4737 if test -z "$ac_cv_path_SED"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004738 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004739 fi
4740else
4741 ac_cv_path_SED=$SED
4742fi
4743
4744fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004746$as_echo "$ac_cv_path_SED" >&6; }
4747 SED="$ac_cv_path_SED"
4748 rm -f conftest.sed
4749
4750test -z "$SED" && SED=sed
4751Xsed="$SED -e 1s/^X//"
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
Scott James Remnantfde82c92009-09-22 10:04:15 -07004763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004764$as_echo_n "checking for fgrep... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004765if test "${ac_cv_path_FGREP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004766 $as_echo_n "(cached) " >&6
4767else
4768 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4769 then ac_cv_path_FGREP="$GREP -F"
4770 else
4771 if test -z "$FGREP"; then
4772 ac_path_FGREP_found=false
4773 # Loop through the user's path and test for each of PROGNAME-LIST
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004779 for ac_prog in fgrep; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01004780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4782 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4783# Check for GNU ac_path_FGREP and select it if it is found.
4784 # Check for GNU $ac_path_FGREP
4785case `"$ac_path_FGREP" --version 2>&1` in
4786*GNU*)
4787 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4788*)
4789 ac_count=0
4790 $as_echo_n 0123456789 >"conftest.in"
4791 while :
4792 do
4793 cat "conftest.in" "conftest.in" >"conftest.tmp"
4794 mv "conftest.tmp" "conftest.in"
4795 cp "conftest.in" "conftest.nl"
4796 $as_echo 'FGREP' >> "conftest.nl"
4797 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4798 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Scott James Remnantfde82c92009-09-22 10:04:15 -07004799 as_fn_arith $ac_count + 1 && ac_count=$as_val
Scott James Remnant65f683d2009-07-14 13:05:17 +01004800 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4801 # Best one so far, save it but keep looking for a better one
4802 ac_cv_path_FGREP="$ac_path_FGREP"
4803 ac_path_FGREP_max=$ac_count
4804 fi
4805 # 10*(2^10) chars as input seems more than enough
4806 test $ac_count -gt 10 && break
4807 done
4808 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809esac
4810
4811 $ac_path_FGREP_found && break 3
4812 done
4813 done
Scott James Remnantfde82c92009-09-22 10:04:15 -07004814 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01004815IFS=$as_save_IFS
4816 if test -z "$ac_cv_path_FGREP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004817 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 +01004818 fi
4819else
4820 ac_cv_path_FGREP=$FGREP
4821fi
4822
4823 fi
4824fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004826$as_echo "$ac_cv_path_FGREP" >&6; }
4827 FGREP="$ac_cv_path_FGREP"
4828
4829
4830test -z "$GREP" && GREP=grep
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004851if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004852 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4853else
4854 with_gnu_ld=no
4855fi
4856
4857ac_prog=ld
4858if test "$GCC" = yes; then
4859 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -07004860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004861$as_echo_n "checking for ld used by $CC... " >&6; }
4862 case $host in
4863 *-*-mingw*)
4864 # gcc leaves a trailing carriage return which upsets mingw
4865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4866 *)
4867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4868 esac
4869 case $ac_prog in
4870 # Accept absolute paths.
4871 [\\/]* | ?:[\\/]*)
4872 re_direlt='/[^/][^/]*/\.\./'
4873 # Canonicalize the pathname of ld
4874 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4875 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4876 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4877 done
4878 test -z "$LD" && LD="$ac_prog"
4879 ;;
4880 "")
4881 # If it fails, then pretend we aren't using GCC.
4882 ac_prog=ld
4883 ;;
4884 *)
4885 # If it is relative, then search for the first ld in PATH.
4886 with_gnu_ld=unknown
4887 ;;
4888 esac
4889elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004891$as_echo_n "checking for GNU ld... " >&6; }
4892else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004894$as_echo_n "checking for non-GNU ld... " >&6; }
4895fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004896if test "${lt_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004897 $as_echo_n "(cached) " >&6
4898else
4899 if test -z "$LD"; then
4900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4901 for ac_dir in $PATH; do
4902 IFS="$lt_save_ifs"
4903 test -z "$ac_dir" && ac_dir=.
4904 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4905 lt_cv_path_LD="$ac_dir/$ac_prog"
4906 # Check to see if the program is GNU ld. I'd rather use --version,
4907 # but apparently some variants of GNU ld only accept -v.
4908 # Break only if it was the GNU/non-GNU ld that we prefer.
4909 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4910 *GNU* | *'with BFD'*)
4911 test "$with_gnu_ld" != no && break
4912 ;;
4913 *)
4914 test "$with_gnu_ld" != yes && break
4915 ;;
4916 esac
4917 fi
4918 done
4919 IFS="$lt_save_ifs"
4920else
4921 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4922fi
4923fi
4924
4925LD="$lt_cv_path_LD"
4926if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07004927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004928$as_echo "$LD" >&6; }
4929else
Scott James Remnantfde82c92009-09-22 10:04:15 -07004930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004931$as_echo "no" >&6; }
4932fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004933test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004935$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004936if test "${lt_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004937 $as_echo_n "(cached) " >&6
4938else
4939 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4940case `$LD -v 2>&1 </dev/null` in
4941*GNU* | *'with BFD'*)
4942 lt_cv_prog_gnu_ld=yes
4943 ;;
4944*)
4945 lt_cv_prog_gnu_ld=no
4946 ;;
4947esac
4948fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07004949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01004950$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4951with_gnu_ld=$lt_cv_prog_gnu_ld
4952
4953
4954
4955
4956
4957
4958
4959
4960
Scott James Remnantfde82c92009-09-22 10:04:15 -07004961{ $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 +01004962$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07004963if test "${lt_cv_path_NM+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01004964 $as_echo_n "(cached) " >&6
4965else
4966 if test -n "$NM"; then
4967 # Let the user override the test.
4968 lt_cv_path_NM="$NM"
4969else
4970 lt_nm_to_check="${ac_tool_prefix}nm"
4971 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4972 lt_nm_to_check="$lt_nm_to_check nm"
4973 fi
4974 for lt_tmp_nm in $lt_nm_to_check; do
4975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4976 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4977 IFS="$lt_save_ifs"
4978 test -z "$ac_dir" && ac_dir=.
4979 tmp_nm="$ac_dir/$lt_tmp_nm"
4980 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4981 # Check to see if the nm accepts a BSD-compat flag.
4982 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4983 # nm: unknown option "B" ignored
4984 # Tru64's nm complains that /dev/null is an invalid object file
4985 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4986 */dev/null* | *'Invalid file or object type'*)
4987 lt_cv_path_NM="$tmp_nm -B"
4988 break
4989 ;;
4990 *)
4991 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4992 */dev/null*)
4993 lt_cv_path_NM="$tmp_nm -p"
4994 break
4995 ;;
4996 *)
4997 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4998 continue # so that we can try to find one that supports BSD flags
4999 ;;
5000 esac
5001 ;;
5002 esac
5003 fi
5004 done
5005 IFS="$lt_save_ifs"
5006 done
5007 : ${lt_cv_path_NM=no}
5008fi
5009fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005011$as_echo "$lt_cv_path_NM" >&6; }
5012if test "$lt_cv_path_NM" != "no"; then
5013 NM="$lt_cv_path_NM"
5014else
5015 # Didn't find any BSD compatible name lister, look for dumpbin.
5016 if test -n "$ac_tool_prefix"; then
5017 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5018 do
5019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005022$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005023if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005024 $as_echo_n "(cached) " >&6
5025else
5026 if test -n "$DUMPBIN"; then
5027 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005034 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005038 break 2
5039 fi
5040done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005041 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005042IFS=$as_save_IFS
5043
5044fi
5045fi
5046DUMPBIN=$ac_cv_prog_DUMPBIN
5047if test -n "$DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005049$as_echo "$DUMPBIN" >&6; }
5050else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005052$as_echo "no" >&6; }
5053fi
5054
5055
5056 test -n "$DUMPBIN" && break
5057 done
5058fi
5059if test -z "$DUMPBIN"; then
5060 ac_ct_DUMPBIN=$DUMPBIN
5061 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5062do
5063 # Extract the first word of "$ac_prog", so it can be a program name with args.
5064set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005066$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005067if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005068 $as_echo_n "(cached) " >&6
5069else
5070 if test -n "$ac_ct_DUMPBIN"; then
5071 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005078 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005082 break 2
5083 fi
5084done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005085 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5091if test -n "$ac_ct_DUMPBIN"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005093$as_echo "$ac_ct_DUMPBIN" >&6; }
5094else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005096$as_echo "no" >&6; }
5097fi
5098
5099
5100 test -n "$ac_ct_DUMPBIN" && break
5101done
5102
5103 if test "x$ac_ct_DUMPBIN" = x; then
5104 DUMPBIN=":"
5105 else
5106 case $cross_compiling:$ac_tool_warned in
5107yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005108{ $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 +01005109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110ac_tool_warned=yes ;;
5111esac
5112 DUMPBIN=$ac_ct_DUMPBIN
5113 fi
5114fi
5115
5116
5117 if test "$DUMPBIN" != ":"; then
5118 NM="$DUMPBIN"
5119 fi
5120fi
5121test -z "$NM" && NM=nm
5122
5123
5124
5125
5126
5127
Scott James Remnantfde82c92009-09-22 10:04:15 -07005128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005129$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005130if test "${lt_cv_nm_interface+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005131 $as_echo_n "(cached) " >&6
5132else
5133 lt_cv_nm_interface="BSD nm"
5134 echo "int some_variable = 0;" > conftest.$ac_ext
Colin Watsond58a9aa2010-01-16 02:55:43 +00005135 (eval echo "\"\$as_me:5135: $ac_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005136 (eval "$ac_compile" 2>conftest.err)
5137 cat conftest.err >&5
Colin Watsond58a9aa2010-01-16 02:55:43 +00005138 (eval echo "\"\$as_me:5138: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005139 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5140 cat conftest.err >&5
Colin Watsond58a9aa2010-01-16 02:55:43 +00005141 (eval echo "\"\$as_me:5141: output\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01005142 cat conftest.out >&5
5143 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5144 lt_cv_nm_interface="MS dumpbin"
5145 fi
5146 rm -f conftest*
5147fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005149$as_echo "$lt_cv_nm_interface" >&6; }
5150
Scott James Remnantfde82c92009-09-22 10:04:15 -07005151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005152$as_echo_n "checking whether ln -s works... " >&6; }
5153LN_S=$as_ln_s
5154if test "$LN_S" = "ln -s"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005156$as_echo "yes" >&6; }
5157else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005159$as_echo "no, using $LN_S" >&6; }
5160fi
5161
5162# find the maximum length of command line arguments
Scott James Remnantfde82c92009-09-22 10:04:15 -07005163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005164$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005165if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005166 $as_echo_n "(cached) " >&6
5167else
5168 i=0
5169 teststring="ABCD"
5170
5171 case $build_os in
5172 msdosdjgpp*)
5173 # On DJGPP, this test can blow up pretty badly due to problems in libc
5174 # (any single argument exceeding 2000 bytes causes a buffer overrun
5175 # during glob expansion). Even if it were fixed, the result of this
5176 # check would be larger than it should be.
5177 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5178 ;;
5179
5180 gnu*)
5181 # Under GNU Hurd, this test is not required because there is
5182 # no limit to the length of command line arguments.
5183 # Libtool will interpret -1 as no limit whatsoever
5184 lt_cv_sys_max_cmd_len=-1;
5185 ;;
5186
5187 cygwin* | mingw* | cegcc*)
5188 # On Win9x/ME, this test blows up -- it succeeds, but takes
5189 # about 5 minutes as the teststring grows exponentially.
5190 # Worse, since 9x/ME are not pre-emptively multitasking,
5191 # you end up with a "frozen" computer, even though with patience
5192 # the test eventually succeeds (with a max line length of 256k).
5193 # Instead, let's just punt: use the minimum linelength reported by
5194 # all of the supported platforms: 8192 (on NT/2K/XP).
5195 lt_cv_sys_max_cmd_len=8192;
5196 ;;
5197
5198 amigaos*)
5199 # On AmigaOS with pdksh, this test takes hours, literally.
5200 # So we just punt and use a minimum line length of 8192.
5201 lt_cv_sys_max_cmd_len=8192;
5202 ;;
5203
5204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5205 # This has been around since 386BSD, at least. Likely further.
5206 if test -x /sbin/sysctl; then
5207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5208 elif test -x /usr/sbin/sysctl; then
5209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5210 else
5211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5212 fi
5213 # And add a safety zone
5214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5216 ;;
5217
5218 interix*)
5219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5220 lt_cv_sys_max_cmd_len=196608
5221 ;;
5222
5223 osf*)
5224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5226 # nice to cause kernel panics so lets avoid the loop below.
5227 # First set a reasonable default.
5228 lt_cv_sys_max_cmd_len=16384
5229 #
5230 if test -x /sbin/sysconfig; then
5231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5233 esac
5234 fi
5235 ;;
5236 sco3.2v5*)
5237 lt_cv_sys_max_cmd_len=102400
5238 ;;
5239 sysv5* | sco5v6* | sysv4.2uw2*)
5240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5241 if test -n "$kargmax"; then
5242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5243 else
5244 lt_cv_sys_max_cmd_len=32768
5245 fi
5246 ;;
5247 *)
5248 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5249 if test -n "$lt_cv_sys_max_cmd_len"; then
5250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5252 else
5253 # Make teststring a little bigger before we do anything with it.
5254 # a 1K string should be a reasonable start.
5255 for i in 1 2 3 4 5 6 7 8 ; do
5256 teststring=$teststring$teststring
5257 done
5258 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5259 # If test is not a shell built-in, we'll probably end up computing a
5260 # maximum length that is only half of the actual maximum length, but
5261 # we can't tell.
5262 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5263 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5264 test $i != 17 # 1/2 MB should be enough
5265 do
5266 i=`expr $i + 1`
5267 teststring=$teststring$teststring
5268 done
5269 # Only check the string length outside the loop.
5270 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5271 teststring=
5272 # Add a significant safety factor because C++ compilers can tack on
5273 # massive amounts of additional arguments before passing them to the
5274 # linker. It appears as though 1/2 is a usable value.
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5276 fi
5277 ;;
5278 esac
5279
5280fi
5281
5282if test -n $lt_cv_sys_max_cmd_len ; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005284$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5285else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005287$as_echo "none" >&6; }
5288fi
5289max_cmd_len=$lt_cv_sys_max_cmd_len
5290
5291
5292
5293
5294
5295
5296: ${CP="cp -f"}
5297: ${MV="mv -f"}
5298: ${RM="rm -f"}
5299
Scott James Remnantfde82c92009-09-22 10:04:15 -07005300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005301$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5302# Try some XSI features
5303xsi_shell=no
5304( _lt_dummy="a/b/c"
5305 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5306 = c,a/b,, \
5307 && eval 'test $(( 1 + 1 )) -eq 2 \
5308 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5309 && xsi_shell=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005311$as_echo "$xsi_shell" >&6; }
5312
5313
Scott James Remnantfde82c92009-09-22 10:04:15 -07005314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005315$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5316lt_shell_append=no
5317( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5318 >/dev/null 2>&1 \
5319 && lt_shell_append=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -07005320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005321$as_echo "$lt_shell_append" >&6; }
5322
5323
5324if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5325 lt_unset=unset
5326else
5327 lt_unset=false
5328fi
5329
5330
5331
5332
5333
5334# test EBCDIC or ASCII
5335case `echo X|tr X '\101'` in
5336 A) # ASCII based system
5337 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5338 lt_SP2NL='tr \040 \012'
5339 lt_NL2SP='tr \015\012 \040\040'
5340 ;;
5341 *) # EBCDIC based system
5342 lt_SP2NL='tr \100 \n'
5343 lt_NL2SP='tr \r\n \100\100'
5344 ;;
5345esac
5346
5347
5348
5349
5350
5351
5352
5353
5354
Scott James Remnantfde82c92009-09-22 10:04:15 -07005355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005356$as_echo_n "checking for $LD option to reload object files... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005357if test "${lt_cv_ld_reload_flag+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005358 $as_echo_n "(cached) " >&6
5359else
5360 lt_cv_ld_reload_flag='-r'
5361fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005363$as_echo "$lt_cv_ld_reload_flag" >&6; }
5364reload_flag=$lt_cv_ld_reload_flag
5365case $reload_flag in
5366"" | " "*) ;;
5367*) reload_flag=" $reload_flag" ;;
5368esac
5369reload_cmds='$LD$reload_flag -o $output$reload_objs'
5370case $host_os in
5371 darwin*)
5372 if test "$GCC" = yes; then
5373 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5374 else
5375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5376 fi
5377 ;;
5378esac
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5390set dummy ${ac_tool_prefix}objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005392$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005393if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005394 $as_echo_n "(cached) " >&6
5395else
5396 if test -n "$OBJDUMP"; then
5397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5398else
5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005404 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005408 break 2
5409 fi
5410done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005411 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005412IFS=$as_save_IFS
5413
5414fi
5415fi
5416OBJDUMP=$ac_cv_prog_OBJDUMP
5417if test -n "$OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005419$as_echo "$OBJDUMP" >&6; }
5420else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005422$as_echo "no" >&6; }
5423fi
5424
5425
5426fi
5427if test -z "$ac_cv_prog_OBJDUMP"; then
5428 ac_ct_OBJDUMP=$OBJDUMP
5429 # Extract the first word of "objdump", so it can be a program name with args.
5430set dummy objdump; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005432$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005433if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005434 $as_echo_n "(cached) " >&6
5435else
5436 if test -n "$ac_ct_OBJDUMP"; then
5437 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005444 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_ac_ct_OBJDUMP="objdump"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005448 break 2
5449 fi
5450done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005451 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005452IFS=$as_save_IFS
5453
5454fi
5455fi
5456ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5457if test -n "$ac_ct_OBJDUMP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005459$as_echo "$ac_ct_OBJDUMP" >&6; }
5460else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005462$as_echo "no" >&6; }
5463fi
5464
5465 if test "x$ac_ct_OBJDUMP" = x; then
5466 OBJDUMP="false"
5467 else
5468 case $cross_compiling:$ac_tool_warned in
5469yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005470{ $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 +01005471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472ac_tool_warned=yes ;;
5473esac
5474 OBJDUMP=$ac_ct_OBJDUMP
5475 fi
5476else
5477 OBJDUMP="$ac_cv_prog_OBJDUMP"
5478fi
5479
5480test -z "$OBJDUMP" && OBJDUMP=objdump
5481
5482
5483
5484
5485
5486
5487
5488
5489
Scott James Remnantfde82c92009-09-22 10:04:15 -07005490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005491$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005492if test "${lt_cv_deplibs_check_method+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005493 $as_echo_n "(cached) " >&6
5494else
5495 lt_cv_file_magic_cmd='$MAGIC_CMD'
5496lt_cv_file_magic_test_file=
5497lt_cv_deplibs_check_method='unknown'
5498# Need to set the preceding variable on all platforms that support
5499# interlibrary dependencies.
5500# 'none' -- dependencies not supported.
5501# `unknown' -- same as none, but documents that we really don't know.
5502# 'pass_all' -- all dependencies passed with no checks.
5503# 'test_compile' -- check by making test program.
5504# 'file_magic [[regex]]' -- check by looking for files in library path
5505# which responds to the $file_magic_cmd with a given extended regex.
5506# If you have `file' or equivalent on your system and you're not sure
5507# whether `pass_all' will *always* work, you probably want this one.
5508
5509case $host_os in
5510aix[4-9]*)
5511 lt_cv_deplibs_check_method=pass_all
5512 ;;
5513
5514beos*)
5515 lt_cv_deplibs_check_method=pass_all
5516 ;;
5517
5518bsdi[45]*)
5519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5520 lt_cv_file_magic_cmd='/usr/bin/file -L'
5521 lt_cv_file_magic_test_file=/shlib/libc.so
5522 ;;
5523
5524cygwin*)
5525 # func_win32_libid is a shell function defined in ltmain.sh
5526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5527 lt_cv_file_magic_cmd='func_win32_libid'
5528 ;;
5529
5530mingw* | pw32*)
5531 # Base MSYS/MinGW do not provide the 'file' command needed by
5532 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5533 # unless we find 'file', for example because we are cross-compiling.
5534 if ( file / ) >/dev/null 2>&1; then
5535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536 lt_cv_file_magic_cmd='func_win32_libid'
5537 else
5538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5539 lt_cv_file_magic_cmd='$OBJDUMP -f'
5540 fi
5541 ;;
5542
5543cegcc)
5544 # use the weaker test based on 'objdump'. See mingw*.
5545 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5546 lt_cv_file_magic_cmd='$OBJDUMP -f'
5547 ;;
5548
5549darwin* | rhapsody*)
5550 lt_cv_deplibs_check_method=pass_all
5551 ;;
5552
5553freebsd* | dragonfly*)
5554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5555 case $host_cpu in
5556 i*86 )
5557 # Not sure whether the presence of OpenBSD here was a mistake.
5558 # Let's accept both of them until this is cleared up.
5559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5560 lt_cv_file_magic_cmd=/usr/bin/file
5561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5562 ;;
5563 esac
5564 else
5565 lt_cv_deplibs_check_method=pass_all
5566 fi
5567 ;;
5568
5569gnu*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573hpux10.20* | hpux11*)
5574 lt_cv_file_magic_cmd=/usr/bin/file
5575 case $host_cpu in
5576 ia64*)
5577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5579 ;;
5580 hppa*64*)
5581 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]'
5582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5583 ;;
5584 *)
5585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5587 ;;
5588 esac
5589 ;;
5590
5591interix[3-9]*)
5592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5594 ;;
5595
5596irix5* | irix6* | nonstopux*)
5597 case $LD in
5598 *-32|*"-32 ") libmagic=32-bit;;
5599 *-n32|*"-n32 ") libmagic=N32;;
5600 *-64|*"-64 ") libmagic=64-bit;;
5601 *) libmagic=never-match;;
5602 esac
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606# This must be Linux ELF.
5607linux* | k*bsd*-gnu)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611netbsd* | netbsdelf*-gnu)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 else
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5616 fi
5617 ;;
5618
5619newos6*)
5620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5621 lt_cv_file_magic_cmd=/usr/bin/file
5622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5623 ;;
5624
5625*nto* | *qnx*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628
5629openbsd*)
5630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5632 else
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5634 fi
5635 ;;
5636
5637osf3* | osf4* | osf5*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641rdos*)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644
5645solaris*)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648
5649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653sysv4 | sysv4.3*)
5654 case $host_vendor in
5655 motorola)
5656 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]'
5657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5658 ;;
5659 ncr)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662 sequent)
5663 lt_cv_file_magic_cmd='/bin/file'
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5665 ;;
5666 sni)
5667 lt_cv_file_magic_cmd='/bin/file'
5668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5669 lt_cv_file_magic_test_file=/lib/libc.so
5670 ;;
5671 siemens)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 pc)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677 esac
5678 ;;
5679
5680tpf*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683esac
5684
5685fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07005686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005687$as_echo "$lt_cv_deplibs_check_method" >&6; }
5688file_magic_cmd=$lt_cv_file_magic_cmd
5689deplibs_check_method=$lt_cv_deplibs_check_method
5690test -z "$deplibs_check_method" && deplibs_check_method=unknown
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703if test -n "$ac_tool_prefix"; then
5704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5705set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005707$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005708if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005709 $as_echo_n "(cached) " >&6
5710else
5711 if test -n "$AR"; then
5712 ac_cv_prog_AR="$AR" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005719 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005723 break 2
5724 fi
5725done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005726 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005727IFS=$as_save_IFS
5728
5729fi
5730fi
5731AR=$ac_cv_prog_AR
5732if test -n "$AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005734$as_echo "$AR" >&6; }
5735else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005737$as_echo "no" >&6; }
5738fi
5739
5740
5741fi
5742if test -z "$ac_cv_prog_AR"; then
5743 ac_ct_AR=$AR
5744 # Extract the first word of "ar", so it can be a program name with args.
5745set dummy ar; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005747$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005748if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005749 $as_echo_n "(cached) " >&6
5750else
5751 if test -n "$ac_ct_AR"; then
5752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005759 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005763 break 2
5764 fi
5765done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005766 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005767IFS=$as_save_IFS
5768
5769fi
5770fi
5771ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772if test -n "$ac_ct_AR"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005774$as_echo "$ac_ct_AR" >&6; }
5775else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005777$as_echo "no" >&6; }
5778fi
5779
5780 if test "x$ac_ct_AR" = x; then
5781 AR="false"
5782 else
5783 case $cross_compiling:$ac_tool_warned in
5784yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005785{ $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 +01005786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5787ac_tool_warned=yes ;;
5788esac
5789 AR=$ac_ct_AR
5790 fi
5791else
5792 AR="$ac_cv_prog_AR"
5793fi
5794
5795test -z "$AR" && AR=ar
5796test -z "$AR_FLAGS" && AR_FLAGS=cru
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808if test -n "$ac_tool_prefix"; then
5809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5810set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005812$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005813if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005814 $as_echo_n "(cached) " >&6
5815else
5816 if test -n "$STRIP"; then
5817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5818else
5819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820for as_dir in $PATH
5821do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005824 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005828 break 2
5829 fi
5830done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005831 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005832IFS=$as_save_IFS
5833
5834fi
5835fi
5836STRIP=$ac_cv_prog_STRIP
5837if test -n "$STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005839$as_echo "$STRIP" >&6; }
5840else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005842$as_echo "no" >&6; }
5843fi
5844
5845
5846fi
5847if test -z "$ac_cv_prog_STRIP"; then
5848 ac_ct_STRIP=$STRIP
5849 # Extract the first word of "strip", so it can be a program name with args.
5850set dummy strip; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005852$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005853if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005854 $as_echo_n "(cached) " >&6
5855else
5856 if test -n "$ac_ct_STRIP"; then
5857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5858else
5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860for as_dir in $PATH
5861do
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005864 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005868 break 2
5869 fi
5870done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005871 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005872IFS=$as_save_IFS
5873
5874fi
5875fi
5876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5877if test -n "$ac_ct_STRIP"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005879$as_echo "$ac_ct_STRIP" >&6; }
5880else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005882$as_echo "no" >&6; }
5883fi
5884
5885 if test "x$ac_ct_STRIP" = x; then
5886 STRIP=":"
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005890{ $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 +01005891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892ac_tool_warned=yes ;;
5893esac
5894 STRIP=$ac_ct_STRIP
5895 fi
5896else
5897 STRIP="$ac_cv_prog_STRIP"
5898fi
5899
5900test -z "$STRIP" && STRIP=:
5901
5902
5903
5904
5905
5906
5907if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005911$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005912if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$RANLIB"; then
5916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005923 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005927 break 2
5928 fi
5929done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005930 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005931IFS=$as_save_IFS
5932
5933fi
5934fi
5935RANLIB=$ac_cv_prog_RANLIB
5936if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005938$as_echo "$RANLIB" >&6; }
5939else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005941$as_echo "no" >&6; }
5942fi
5943
5944
5945fi
5946if test -z "$ac_cv_prog_RANLIB"; then
5947 ac_ct_RANLIB=$RANLIB
5948 # Extract the first word of "ranlib", so it can be a program name with args.
5949set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07005950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005951$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07005952if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01005953 $as_echo_n "(cached) " >&6
5954else
5955 if test -n "$ac_ct_RANLIB"; then
5956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07005963 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01005964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5965 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -07005966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005967 break 2
5968 fi
5969done
Scott James Remnantfde82c92009-09-22 10:04:15 -07005970 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01005971IFS=$as_save_IFS
5972
5973fi
5974fi
5975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5976if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07005977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005978$as_echo "$ac_ct_RANLIB" >&6; }
5979else
Scott James Remnantfde82c92009-09-22 10:04:15 -07005980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01005981$as_echo "no" >&6; }
5982fi
5983
5984 if test "x$ac_ct_RANLIB" = x; then
5985 RANLIB=":"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07005989{ $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 +01005990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991ac_tool_warned=yes ;;
5992esac
5993 RANLIB=$ac_ct_RANLIB
5994 fi
5995else
5996 RANLIB="$ac_cv_prog_RANLIB"
5997fi
5998
5999test -z "$RANLIB" && RANLIB=:
6000
6001
6002
6003
6004
6005
6006# Determine commands to create old-style static archives.
6007old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6008old_postinstall_cmds='chmod 644 $oldlib'
6009old_postuninstall_cmds=
6010
6011if test -n "$RANLIB"; then
6012 case $host_os in
6013 openbsd*)
6014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6015 ;;
6016 *)
6017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6018 ;;
6019 esac
6020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6021fi
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
6048
6049
6050
6051
6052
6053
6054
6055
6056# If no C compiler was specified, use CC.
6057LTCC=${LTCC-"$CC"}
6058
6059# If no C compiler flags were specified, use CFLAGS.
6060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6061
6062# Allow CC to be a program name with arguments.
6063compiler=$CC
6064
6065
6066# Check for command to grab the raw symbol name followed by C symbol from nm.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006067{ $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 +01006068$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006069if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006070 $as_echo_n "(cached) " >&6
6071else
6072
6073# These are sane defaults that work on at least a few old systems.
6074# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6075
6076# Character class describing NM global symbol codes.
6077symcode='[BCDEGRST]'
6078
6079# Regexp to match symbols that can be accessed directly from C.
6080sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6081
6082# Define system-specific variables.
6083case $host_os in
6084aix*)
6085 symcode='[BCDT]'
6086 ;;
6087cygwin* | mingw* | pw32* | cegcc*)
6088 symcode='[ABCDGISTW]'
6089 ;;
6090hpux*)
6091 if test "$host_cpu" = ia64; then
6092 symcode='[ABCDEGRST]'
6093 fi
6094 ;;
6095irix* | nonstopux*)
6096 symcode='[BCDEGRST]'
6097 ;;
6098osf*)
6099 symcode='[BCDEGQRST]'
6100 ;;
6101solaris*)
6102 symcode='[BDRT]'
6103 ;;
6104sco3.2v5*)
6105 symcode='[DT]'
6106 ;;
6107sysv4.2uw2*)
6108 symcode='[DT]'
6109 ;;
6110sysv5* | sco5v6* | unixware* | OpenUNIX*)
6111 symcode='[ABDT]'
6112 ;;
6113sysv4)
6114 symcode='[DFNSTU]'
6115 ;;
6116esac
6117
6118# If we're using GNU nm, then use its standard symbol codes.
6119case `$NM -V 2>&1` in
6120*GNU* | *'with BFD'*)
6121 symcode='[ABCDGIRSTW]' ;;
6122esac
6123
6124# Transform an extracted symbol line into a proper C declaration.
6125# Some systems (esp. on ia64) link data and code symbols differently,
6126# so use this general approach.
6127lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6128
6129# Transform an extracted symbol line into symbol name and symbol address
6130lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6131lt_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'"
6132
6133# Handle CRLF in mingw tool chain
6134opt_cr=
6135case $build_os in
6136mingw*)
6137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6138 ;;
6139esac
6140
6141# Try without a prefix underscore, then with it.
6142for ac_symprfx in "" "_"; do
6143
6144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6145 symxfrm="\\1 $ac_symprfx\\2 \\2"
6146
6147 # Write the raw and C identifiers.
6148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6149 # Fake it for dumpbin and say T for any non-static function
6150 # and D for any global variable.
6151 # Also find C++ and __fastcall symbols from MSVC++,
6152 # which start with @ or ?.
6153 lt_cv_sys_global_symbol_pipe="$AWK '"\
6154" {last_section=section; section=\$ 3};"\
6155" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6156" \$ 0!~/External *\|/{next};"\
6157" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6158" {if(hide[section]) next};"\
6159" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6160" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6161" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6162" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6163" ' prfx=^$ac_symprfx"
6164 else
6165 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6166 fi
6167
6168 # Check to see that the pipe works correctly.
6169 pipe_works=no
6170
6171 rm -f conftest*
6172 cat > conftest.$ac_ext <<_LT_EOF
6173#ifdef __cplusplus
6174extern "C" {
6175#endif
6176char nm_test_var;
6177void nm_test_func(void);
6178void nm_test_func(void){}
6179#ifdef __cplusplus
6180}
6181#endif
6182int main(){nm_test_var='a';nm_test_func();return(0);}
6183_LT_EOF
6184
Scott James Remnantfde82c92009-09-22 10:04:15 -07006185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006186 (eval $ac_compile) 2>&5
6187 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006190 # Now try to grab the symbols.
6191 nlist=conftest.nm
Scott James Remnantfde82c92009-09-22 10:04:15 -07006192 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 +01006193 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6194 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196 test $ac_status = 0; } && test -s "$nlist"; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006197 # Try sorting and uniquifying the output.
6198 if sort "$nlist" | uniq > "$nlist"T; then
6199 mv -f "$nlist"T "$nlist"
6200 else
6201 rm -f "$nlist"T
6202 fi
6203
6204 # Make sure that we snagged all the symbols we need.
6205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6207 cat <<_LT_EOF > conftest.$ac_ext
6208#ifdef __cplusplus
6209extern "C" {
6210#endif
6211
6212_LT_EOF
6213 # Now generate the symbol file.
6214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6215
6216 cat <<_LT_EOF >> conftest.$ac_ext
6217
6218/* The mapping between symbol names and symbols. */
6219const struct {
6220 const char *name;
6221 void *address;
6222}
6223lt__PROGRAM__LTX_preloaded_symbols[] =
6224{
6225 { "@PROGRAM@", (void *) 0 },
6226_LT_EOF
6227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6228 cat <<\_LT_EOF >> conftest.$ac_ext
6229 {0, (void *) 0}
6230};
6231
6232/* This works around a problem in FreeBSD linker */
6233#ifdef FREEBSD_WORKAROUND
6234static const void *lt_preloaded_setup() {
6235 return lt__PROGRAM__LTX_preloaded_symbols;
6236}
6237#endif
6238
6239#ifdef __cplusplus
6240}
6241#endif
6242_LT_EOF
6243 # Now try linking the two files.
6244 mv conftest.$ac_objext conftstm.$ac_objext
6245 lt_save_LIBS="$LIBS"
6246 lt_save_CFLAGS="$CFLAGS"
6247 LIBS="conftstm.$ac_objext"
6248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006250 (eval $ac_link) 2>&5
6251 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006254 pipe_works=yes
6255 fi
6256 LIBS="$lt_save_LIBS"
6257 CFLAGS="$lt_save_CFLAGS"
6258 else
6259 echo "cannot find nm_test_func in $nlist" >&5
6260 fi
6261 else
6262 echo "cannot find nm_test_var in $nlist" >&5
6263 fi
6264 else
6265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6266 fi
6267 else
6268 echo "$progname: failed program was:" >&5
6269 cat conftest.$ac_ext >&5
6270 fi
6271 rm -rf conftest* conftst*
6272
6273 # Do not use the global_symbol_pipe unless it works.
6274 if test "$pipe_works" = yes; then
6275 break
6276 else
6277 lt_cv_sys_global_symbol_pipe=
6278 fi
6279done
6280
6281fi
6282
6283if test -z "$lt_cv_sys_global_symbol_pipe"; then
6284 lt_cv_sys_global_symbol_to_cdecl=
6285fi
6286if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006288$as_echo "failed" >&6; }
6289else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006291$as_echo "ok" >&6; }
6292fi
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315# Check whether --enable-libtool-lock was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006316if test "${enable_libtool_lock+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006317 enableval=$enable_libtool_lock;
6318fi
6319
6320test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6321
6322# Some flags need to be propagated to the compiler or linker for good
6323# libtool support.
6324case $host in
6325ia64-*-hpux*)
6326 # Find out which ABI we are using.
6327 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006329 (eval $ac_compile) 2>&5
6330 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006333 case `/usr/bin/file conftest.$ac_objext` in
6334 *ELF-32*)
6335 HPUX_IA64_MODE="32"
6336 ;;
6337 *ELF-64*)
6338 HPUX_IA64_MODE="64"
6339 ;;
6340 esac
6341 fi
6342 rm -rf conftest*
6343 ;;
6344*-*-irix6*)
6345 # Find out which ABI we are using.
Colin Watsond58a9aa2010-01-16 02:55:43 +00006346 echo '#line 6346 "configure"' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006348 (eval $ac_compile) 2>&5
6349 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006352 if test "$lt_cv_prog_gnu_ld" = yes; then
6353 case `/usr/bin/file conftest.$ac_objext` in
6354 *32-bit*)
6355 LD="${LD-ld} -melf32bsmip"
6356 ;;
6357 *N32*)
6358 LD="${LD-ld} -melf32bmipn32"
6359 ;;
6360 *64-bit*)
6361 LD="${LD-ld} -melf64bmip"
6362 ;;
6363 esac
6364 else
6365 case `/usr/bin/file conftest.$ac_objext` in
6366 *32-bit*)
6367 LD="${LD-ld} -32"
6368 ;;
6369 *N32*)
6370 LD="${LD-ld} -n32"
6371 ;;
6372 *64-bit*)
6373 LD="${LD-ld} -64"
6374 ;;
6375 esac
6376 fi
6377 fi
6378 rm -rf conftest*
6379 ;;
6380
6381x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6382s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6383 # Find out which ABI we are using.
6384 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006386 (eval $ac_compile) 2>&5
6387 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006390 case `/usr/bin/file conftest.o` in
6391 *32-bit*)
6392 case $host in
6393 x86_64-*kfreebsd*-gnu)
6394 LD="${LD-ld} -m elf_i386_fbsd"
6395 ;;
6396 x86_64-*linux*)
6397 LD="${LD-ld} -m elf_i386"
6398 ;;
6399 ppc64-*linux*|powerpc64-*linux*)
6400 LD="${LD-ld} -m elf32ppclinux"
6401 ;;
6402 s390x-*linux*)
6403 LD="${LD-ld} -m elf_s390"
6404 ;;
6405 sparc64-*linux*)
6406 LD="${LD-ld} -m elf32_sparc"
6407 ;;
6408 esac
6409 ;;
6410 *64-bit*)
6411 case $host in
6412 x86_64-*kfreebsd*-gnu)
6413 LD="${LD-ld} -m elf_x86_64_fbsd"
6414 ;;
6415 x86_64-*linux*)
6416 LD="${LD-ld} -m elf_x86_64"
6417 ;;
6418 ppc*-*linux*|powerpc*-*linux*)
6419 LD="${LD-ld} -m elf64ppc"
6420 ;;
6421 s390*-*linux*|s390*-*tpf*)
6422 LD="${LD-ld} -m elf64_s390"
6423 ;;
6424 sparc*-*linux*)
6425 LD="${LD-ld} -m elf64_sparc"
6426 ;;
6427 esac
6428 ;;
6429 esac
6430 fi
6431 rm -rf conftest*
6432 ;;
6433
6434*-*-sco3.2v5*)
6435 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6436 SAVE_CFLAGS="$CFLAGS"
6437 CFLAGS="$CFLAGS -belf"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006439$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006440if test "${lt_cv_cc_needs_belf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006441 $as_echo_n "(cached) " >&6
6442else
6443 ac_ext=c
6444ac_cpp='$CPP $CPPFLAGS'
6445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447ac_compiler_gnu=$ac_cv_c_compiler_gnu
6448
Scott James Remnantfde82c92009-09-22 10:04:15 -07006449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006450/* end confdefs.h. */
6451
6452int
6453main ()
6454{
6455
6456 ;
6457 return 0;
6458}
6459_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07006460if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006461 lt_cv_cc_needs_belf=yes
6462else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006463 lt_cv_cc_needs_belf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01006464fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006465rm -f core conftest.err conftest.$ac_objext \
6466 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01006467 ac_ext=c
6468ac_cpp='$CPP $CPPFLAGS'
6469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472
6473fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07006474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006475$as_echo "$lt_cv_cc_needs_belf" >&6; }
6476 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6477 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6478 CFLAGS="$SAVE_CFLAGS"
6479 fi
6480 ;;
6481sparc*-*solaris*)
6482 # Find out which ABI we are using.
6483 echo 'int i;' > conftest.$ac_ext
Scott James Remnantfde82c92009-09-22 10:04:15 -07006484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006485 (eval $ac_compile) 2>&5
6486 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07006487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488 test $ac_status = 0; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01006489 case `/usr/bin/file conftest.o` in
6490 *64-bit*)
6491 case $lt_cv_prog_gnu_ld in
6492 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6493 *)
6494 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6495 LD="${LD-ld} -64"
6496 fi
6497 ;;
6498 esac
6499 ;;
6500 esac
6501 fi
6502 rm -rf conftest*
6503 ;;
6504esac
6505
6506need_locks="$enable_libtool_lock"
6507
6508
6509 case $host_os in
6510 rhapsody* | darwin*)
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6513set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006515$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006516if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006517 $as_echo_n "(cached) " >&6
6518else
6519 if test -n "$DSYMUTIL"; then
6520 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006527 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006531 break 2
6532 fi
6533done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006534 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006535IFS=$as_save_IFS
6536
6537fi
6538fi
6539DSYMUTIL=$ac_cv_prog_DSYMUTIL
6540if test -n "$DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006542$as_echo "$DSYMUTIL" >&6; }
6543else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006545$as_echo "no" >&6; }
6546fi
6547
6548
6549fi
6550if test -z "$ac_cv_prog_DSYMUTIL"; then
6551 ac_ct_DSYMUTIL=$DSYMUTIL
6552 # Extract the first word of "dsymutil", so it can be a program name with args.
6553set dummy dsymutil; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006555$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006556if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006557 $as_echo_n "(cached) " >&6
6558else
6559 if test -n "$ac_ct_DSYMUTIL"; then
6560 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006567 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006571 break 2
6572 fi
6573done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006574 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006575IFS=$as_save_IFS
6576
6577fi
6578fi
6579ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6580if test -n "$ac_ct_DSYMUTIL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006582$as_echo "$ac_ct_DSYMUTIL" >&6; }
6583else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006585$as_echo "no" >&6; }
6586fi
6587
6588 if test "x$ac_ct_DSYMUTIL" = x; then
6589 DSYMUTIL=":"
6590 else
6591 case $cross_compiling:$ac_tool_warned in
6592yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006593{ $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 +01006594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595ac_tool_warned=yes ;;
6596esac
6597 DSYMUTIL=$ac_ct_DSYMUTIL
6598 fi
6599else
6600 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6601fi
6602
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6605set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006607$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006608if test "${ac_cv_prog_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006609 $as_echo_n "(cached) " >&6
6610else
6611 if test -n "$NMEDIT"; then
6612 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006619 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006623 break 2
6624 fi
6625done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006626 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006627IFS=$as_save_IFS
6628
6629fi
6630fi
6631NMEDIT=$ac_cv_prog_NMEDIT
6632if test -n "$NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006634$as_echo "$NMEDIT" >&6; }
6635else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006637$as_echo "no" >&6; }
6638fi
6639
6640
6641fi
6642if test -z "$ac_cv_prog_NMEDIT"; then
6643 ac_ct_NMEDIT=$NMEDIT
6644 # Extract the first word of "nmedit", so it can be a program name with args.
6645set dummy nmedit; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006647$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006648if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006649 $as_echo_n "(cached) " >&6
6650else
6651 if test -n "$ac_ct_NMEDIT"; then
6652 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006659 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006663 break 2
6664 fi
6665done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006666 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006667IFS=$as_save_IFS
6668
6669fi
6670fi
6671ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6672if test -n "$ac_ct_NMEDIT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006674$as_echo "$ac_ct_NMEDIT" >&6; }
6675else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006677$as_echo "no" >&6; }
6678fi
6679
6680 if test "x$ac_ct_NMEDIT" = x; then
6681 NMEDIT=":"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006685{ $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 +01006686$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687ac_tool_warned=yes ;;
6688esac
6689 NMEDIT=$ac_ct_NMEDIT
6690 fi
6691else
6692 NMEDIT="$ac_cv_prog_NMEDIT"
6693fi
6694
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6697set dummy ${ac_tool_prefix}lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006699$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006700if test "${ac_cv_prog_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006701 $as_echo_n "(cached) " >&6
6702else
6703 if test -n "$LIPO"; then
6704 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006711 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006715 break 2
6716 fi
6717done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006718 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006719IFS=$as_save_IFS
6720
6721fi
6722fi
6723LIPO=$ac_cv_prog_LIPO
6724if test -n "$LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006726$as_echo "$LIPO" >&6; }
6727else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006729$as_echo "no" >&6; }
6730fi
6731
6732
6733fi
6734if test -z "$ac_cv_prog_LIPO"; then
6735 ac_ct_LIPO=$LIPO
6736 # Extract the first word of "lipo", so it can be a program name with args.
6737set dummy lipo; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006739$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006740if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006741 $as_echo_n "(cached) " >&6
6742else
6743 if test -n "$ac_ct_LIPO"; then
6744 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6745else
6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006751 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_ac_ct_LIPO="lipo"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006755 break 2
6756 fi
6757done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006758 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006759IFS=$as_save_IFS
6760
6761fi
6762fi
6763ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6764if test -n "$ac_ct_LIPO"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006766$as_echo "$ac_ct_LIPO" >&6; }
6767else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006769$as_echo "no" >&6; }
6770fi
6771
6772 if test "x$ac_ct_LIPO" = x; then
6773 LIPO=":"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006777{ $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 +01006778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779ac_tool_warned=yes ;;
6780esac
6781 LIPO=$ac_ct_LIPO
6782 fi
6783else
6784 LIPO="$ac_cv_prog_LIPO"
6785fi
6786
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6789set dummy ${ac_tool_prefix}otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006791$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006792if test "${ac_cv_prog_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006793 $as_echo_n "(cached) " >&6
6794else
6795 if test -n "$OTOOL"; then
6796 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6797else
6798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006803 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006807 break 2
6808 fi
6809done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006810 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006811IFS=$as_save_IFS
6812
6813fi
6814fi
6815OTOOL=$ac_cv_prog_OTOOL
6816if test -n "$OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006818$as_echo "$OTOOL" >&6; }
6819else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006821$as_echo "no" >&6; }
6822fi
6823
6824
6825fi
6826if test -z "$ac_cv_prog_OTOOL"; then
6827 ac_ct_OTOOL=$OTOOL
6828 # Extract the first word of "otool", so it can be a program name with args.
6829set dummy otool; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006831$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006832if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006833 $as_echo_n "(cached) " >&6
6834else
6835 if test -n "$ac_ct_OTOOL"; then
6836 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006843 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_ac_ct_OTOOL="otool"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006847 break 2
6848 fi
6849done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006850 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006851IFS=$as_save_IFS
6852
6853fi
6854fi
6855ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6856if test -n "$ac_ct_OTOOL"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006858$as_echo "$ac_ct_OTOOL" >&6; }
6859else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006861$as_echo "no" >&6; }
6862fi
6863
6864 if test "x$ac_ct_OTOOL" = x; then
6865 OTOOL=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006869{ $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 +01006870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871ac_tool_warned=yes ;;
6872esac
6873 OTOOL=$ac_ct_OTOOL
6874 fi
6875else
6876 OTOOL="$ac_cv_prog_OTOOL"
6877fi
6878
6879 if test -n "$ac_tool_prefix"; then
6880 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6881set dummy ${ac_tool_prefix}otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006883$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006884if test "${ac_cv_prog_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006885 $as_echo_n "(cached) " >&6
6886else
6887 if test -n "$OTOOL64"; then
6888 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006895 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006899 break 2
6900 fi
6901done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006902 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006903IFS=$as_save_IFS
6904
6905fi
6906fi
6907OTOOL64=$ac_cv_prog_OTOOL64
6908if test -n "$OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006910$as_echo "$OTOOL64" >&6; }
6911else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006913$as_echo "no" >&6; }
6914fi
6915
6916
6917fi
6918if test -z "$ac_cv_prog_OTOOL64"; then
6919 ac_ct_OTOOL64=$OTOOL64
6920 # Extract the first word of "otool64", so it can be a program name with args.
6921set dummy otool64; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -07006922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006923$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006924if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01006925 $as_echo_n "(cached) " >&6
6926else
6927 if test -n "$ac_ct_OTOOL64"; then
6928 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -07006935 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +01006936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_prog_ac_ct_OTOOL64="otool64"
Scott James Remnantfde82c92009-09-22 10:04:15 -07006938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006939 break 2
6940 fi
6941done
Scott James Remnantfde82c92009-09-22 10:04:15 -07006942 done
Scott James Remnant65f683d2009-07-14 13:05:17 +01006943IFS=$as_save_IFS
6944
6945fi
6946fi
6947ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6948if test -n "$ac_ct_OTOOL64"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07006949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006950$as_echo "$ac_ct_OTOOL64" >&6; }
6951else
Scott James Remnantfde82c92009-09-22 10:04:15 -07006952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006953$as_echo "no" >&6; }
6954fi
6955
6956 if test "x$ac_ct_OTOOL64" = x; then
6957 OTOOL64=":"
6958 else
6959 case $cross_compiling:$ac_tool_warned in
6960yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -07006961{ $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 +01006962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963ac_tool_warned=yes ;;
6964esac
6965 OTOOL64=$ac_ct_OTOOL64
6966 fi
6967else
6968 OTOOL64="$ac_cv_prog_OTOOL64"
6969fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
Scott James Remnantfde82c92009-09-22 10:04:15 -07006997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01006998$as_echo_n "checking for -single_module linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07006999if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007000 $as_echo_n "(cached) " >&6
7001else
7002 lt_cv_apple_cc_single_mod=no
7003 if test -z "${LT_MULTI_MODULE}"; then
7004 # By default we will add the -single_module flag. You can override
7005 # by either setting the environment variable LT_MULTI_MODULE
7006 # non-empty at configure time, or by adding -multi_module to the
7007 # link flags.
7008 rm -rf libconftest.dylib*
7009 echo "int foo(void){return 1;}" > conftest.c
7010 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7011-dynamiclib -Wl,-single_module conftest.c" >&5
7012 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7013 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7014 _lt_result=$?
7015 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7016 lt_cv_apple_cc_single_mod=yes
7017 else
7018 cat conftest.err >&5
7019 fi
7020 rm -rf libconftest.dylib*
7021 rm -f conftest.*
7022 fi
7023fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007025$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007027$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007028if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007029 $as_echo_n "(cached) " >&6
7030else
7031 lt_cv_ld_exported_symbols_list=no
7032 save_LDFLAGS=$LDFLAGS
7033 echo "_main" > conftest.sym
7034 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007036/* end confdefs.h. */
7037
7038int
7039main ()
7040{
7041
7042 ;
7043 return 0;
7044}
7045_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007046if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007047 lt_cv_ld_exported_symbols_list=yes
7048else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007049 lt_cv_ld_exported_symbols_list=no
Scott James Remnant65f683d2009-07-14 13:05:17 +01007050fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007051rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01007053 LDFLAGS="$save_LDFLAGS"
7054
7055fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007057$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7058 case $host_os in
7059 rhapsody* | darwin1.[012])
7060 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7061 darwin1.*)
7062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7063 darwin*) # darwin 5.x on
7064 # if running on 10.5 or later, the deployment target defaults
7065 # to the OS version, if on x86, and 10.4, the deployment
7066 # target defaults to 10.4. Don't you love it?
7067 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7068 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7069 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7070 10.[012]*)
7071 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7072 10.*)
7073 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7074 esac
7075 ;;
7076 esac
7077 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7078 _lt_dar_single_mod='$single_module'
7079 fi
7080 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7081 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7082 else
7083 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7084 fi
7085 if test "$DSYMUTIL" != ":"; then
7086 _lt_dsymutil='~$DSYMUTIL $lib || :'
7087 else
7088 _lt_dsymutil=
7089 fi
7090 ;;
7091 esac
7092
Scott James Remnant65f683d2009-07-14 13:05:17 +01007093for ac_header in dlfcn.h
Scott James Remnantfde82c92009-09-22 10:04:15 -07007094do :
7095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7096"
7097if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007098 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07007099#define HAVE_DLFCN_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +01007100_ACEOF
7101
7102fi
7103
7104done
7105
7106
7107
7108# Set options
7109
7110
7111
7112 enable_dlopen=no
7113
7114
7115 enable_win32_dll=no
7116
7117
7118 # Check whether --enable-shared was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007119if test "${enable_shared+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007120 enableval=$enable_shared; p=${PACKAGE-default}
7121 case $enableval in
7122 yes) enable_shared=yes ;;
7123 no) enable_shared=no ;;
7124 *)
7125 enable_shared=no
7126 # Look at the argument we got. We use all the common list separators.
7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128 for pkg in $enableval; do
7129 IFS="$lt_save_ifs"
7130 if test "X$pkg" = "X$p"; then
7131 enable_shared=yes
7132 fi
7133 done
7134 IFS="$lt_save_ifs"
7135 ;;
7136 esac
7137else
7138 enable_shared=yes
7139fi
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149 # Check whether --enable-static was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007150if test "${enable_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007151 enableval=$enable_static; p=${PACKAGE-default}
7152 case $enableval in
7153 yes) enable_static=yes ;;
7154 no) enable_static=no ;;
7155 *)
7156 enable_static=no
7157 # Look at the argument we got. We use all the common list separators.
7158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7159 for pkg in $enableval; do
7160 IFS="$lt_save_ifs"
7161 if test "X$pkg" = "X$p"; then
7162 enable_static=yes
7163 fi
7164 done
7165 IFS="$lt_save_ifs"
7166 ;;
7167 esac
7168else
7169 enable_static=yes
7170fi
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181# Check whether --with-pic was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007182if test "${with_pic+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007183 withval=$with_pic; pic_mode="$withval"
7184else
7185 pic_mode=default
7186fi
7187
7188
7189test -z "$pic_mode" && pic_mode=default
7190
7191
7192
7193
7194
7195
7196
7197 # Check whether --enable-fast-install was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -07007198if test "${enable_fast_install+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007199 enableval=$enable_fast_install; p=${PACKAGE-default}
7200 case $enableval in
7201 yes) enable_fast_install=yes ;;
7202 no) enable_fast_install=no ;;
7203 *)
7204 enable_fast_install=no
7205 # Look at the argument we got. We use all the common list separators.
7206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7207 for pkg in $enableval; do
7208 IFS="$lt_save_ifs"
7209 if test "X$pkg" = "X$p"; then
7210 enable_fast_install=yes
7211 fi
7212 done
7213 IFS="$lt_save_ifs"
7214 ;;
7215 esac
7216else
7217 enable_fast_install=yes
7218fi
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230# This can be used to rebuild libtool when needed
7231LIBTOOL_DEPS="$ltmain"
7232
7233# Always use our own libtool.
7234LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260test -z "$LN_S" && LN_S="ln -s"
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275if test -n "${ZSH_VERSION+set}" ; then
7276 setopt NO_GLOB_SUBST
7277fi
7278
Scott James Remnantfde82c92009-09-22 10:04:15 -07007279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007280$as_echo_n "checking for objdir... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007281if test "${lt_cv_objdir+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007282 $as_echo_n "(cached) " >&6
7283else
7284 rm -f .libs 2>/dev/null
7285mkdir .libs 2>/dev/null
7286if test -d .libs; then
7287 lt_cv_objdir=.libs
7288else
7289 # MS-DOS does not allow filenames that begin with a dot.
7290 lt_cv_objdir=_libs
7291fi
7292rmdir .libs 2>/dev/null
7293fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007295$as_echo "$lt_cv_objdir" >&6; }
7296objdir=$lt_cv_objdir
7297
7298
7299
7300
7301
7302cat >>confdefs.h <<_ACEOF
7303#define LT_OBJDIR "$lt_cv_objdir/"
7304_ACEOF
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322case $host_os in
7323aix3*)
7324 # AIX sometimes has problems with the GCC collect2 program. For some
7325 # reason, if we set the COLLECT_NAMES environment variable, the problems
7326 # vanish in a puff of smoke.
7327 if test "X${COLLECT_NAMES+set}" != Xset; then
7328 COLLECT_NAMES=
7329 export COLLECT_NAMES
7330 fi
7331 ;;
7332esac
7333
7334# Sed substitution that helps us do robust quoting. It backslashifies
7335# metacharacters that are still active within double-quoted strings.
7336sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7337
7338# Same as above, but do not quote variable references.
7339double_quote_subst='s/\(["`\\]\)/\\\1/g'
7340
7341# Sed substitution to delay expansion of an escaped shell variable in a
7342# double_quote_subst'ed string.
7343delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7344
7345# Sed substitution to delay expansion of an escaped single quote.
7346delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7347
7348# Sed substitution to avoid accidental globbing in evaled expressions
7349no_glob_subst='s/\*/\\\*/g'
7350
7351# Global variables:
7352ofile=libtool
7353can_build_shared=yes
7354
7355# All known linkers require a `.a' archive for static linking (except MSVC,
7356# which needs '.lib').
7357libext=a
7358
7359with_gnu_ld="$lt_cv_prog_gnu_ld"
7360
7361old_CC="$CC"
7362old_CFLAGS="$CFLAGS"
7363
7364# Set sane defaults for various variables
7365test -z "$CC" && CC=cc
7366test -z "$LTCC" && LTCC=$CC
7367test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7368test -z "$LD" && LD=ld
7369test -z "$ac_objext" && ac_objext=o
7370
7371for cc_temp in $compiler""; do
7372 case $cc_temp in
7373 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7374 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7375 \-*) ;;
7376 *) break;;
7377 esac
7378done
7379cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7380
7381
7382# Only perform the check for file, if the check method requires it
7383test -z "$MAGIC_CMD" && MAGIC_CMD=file
7384case $deplibs_check_method in
7385file_magic*)
7386 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007388$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007389if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007390 $as_echo_n "(cached) " >&6
7391else
7392 case $MAGIC_CMD in
7393[\\/*] | ?:[\\/]*)
7394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 ;;
7396*)
7397 lt_save_MAGIC_CMD="$MAGIC_CMD"
7398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7399 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7400 for ac_dir in $ac_dummy; do
7401 IFS="$lt_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f $ac_dir/${ac_tool_prefix}file; then
7404 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7405 if test -n "$file_magic_test_file"; then
7406 case $deplibs_check_method in
7407 "file_magic "*)
7408 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7411 $EGREP "$file_magic_regex" > /dev/null; then
7412 :
7413 else
7414 cat <<_LT_EOF 1>&2
7415
7416*** Warning: the command libtool uses to detect shared libraries,
7417*** $file_magic_cmd, produces output that libtool cannot recognize.
7418*** The result is that libtool may fail to recognize shared libraries
7419*** as such. This will affect the creation of libtool libraries that
7420*** depend on shared libraries, but programs linked with such libtool
7421*** libraries will work regardless of this problem. Nevertheless, you
7422*** may want to report the problem to your system manager and/or to
7423*** bug-libtool@gnu.org
7424
7425_LT_EOF
7426 fi ;;
7427 esac
7428 fi
7429 break
7430 fi
7431 done
7432 IFS="$lt_save_ifs"
7433 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 ;;
7435esac
7436fi
7437
7438MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007441$as_echo "$MAGIC_CMD" >&6; }
7442else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007444$as_echo "no" >&6; }
7445fi
7446
7447
7448
7449
7450
7451if test -z "$lt_cv_path_MAGIC_CMD"; then
7452 if test -n "$ac_tool_prefix"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007454$as_echo_n "checking for file... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007455if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007456 $as_echo_n "(cached) " >&6
7457else
7458 case $MAGIC_CMD in
7459[\\/*] | ?:[\\/]*)
7460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7461 ;;
7462*)
7463 lt_save_MAGIC_CMD="$MAGIC_CMD"
7464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7466 for ac_dir in $ac_dummy; do
7467 IFS="$lt_save_ifs"
7468 test -z "$ac_dir" && ac_dir=.
7469 if test -f $ac_dir/file; then
7470 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7471 if test -n "$file_magic_test_file"; then
7472 case $deplibs_check_method in
7473 "file_magic "*)
7474 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7477 $EGREP "$file_magic_regex" > /dev/null; then
7478 :
7479 else
7480 cat <<_LT_EOF 1>&2
7481
7482*** Warning: the command libtool uses to detect shared libraries,
7483*** $file_magic_cmd, produces output that libtool cannot recognize.
7484*** The result is that libtool may fail to recognize shared libraries
7485*** as such. This will affect the creation of libtool libraries that
7486*** depend on shared libraries, but programs linked with such libtool
7487*** libraries will work regardless of this problem. Nevertheless, you
7488*** may want to report the problem to your system manager and/or to
7489*** bug-libtool@gnu.org
7490
7491_LT_EOF
7492 fi ;;
7493 esac
7494 fi
7495 break
7496 fi
7497 done
7498 IFS="$lt_save_ifs"
7499 MAGIC_CMD="$lt_save_MAGIC_CMD"
7500 ;;
7501esac
7502fi
7503
7504MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7505if test -n "$MAGIC_CMD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007507$as_echo "$MAGIC_CMD" >&6; }
7508else
Scott James Remnantfde82c92009-09-22 10:04:15 -07007509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007510$as_echo "no" >&6; }
7511fi
7512
7513
7514 else
7515 MAGIC_CMD=:
7516 fi
7517fi
7518
7519 fi
7520 ;;
7521esac
7522
7523# Use C for the default configuration in the libtool script
7524
7525lt_save_CC="$CC"
7526ac_ext=c
7527ac_cpp='$CPP $CPPFLAGS'
7528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530ac_compiler_gnu=$ac_cv_c_compiler_gnu
7531
7532
7533# Source file extension for C test sources.
7534ac_ext=c
7535
7536# Object file extension for compiled C test sources.
7537objext=o
7538objext=$objext
7539
7540# Code to be used in simple compile tests
7541lt_simple_compile_test_code="int some_variable = 0;"
7542
7543# Code to be used in simple link tests
7544lt_simple_link_test_code='int main(){return(0);}'
7545
7546
7547
7548
7549
7550
7551
7552# If no C compiler was specified, use CC.
7553LTCC=${LTCC-"$CC"}
7554
7555# If no C compiler flags were specified, use CFLAGS.
7556LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7557
7558# Allow CC to be a program name with arguments.
7559compiler=$CC
7560
7561# Save the default compiler, since it gets overwritten when the other
7562# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7563compiler_DEFAULT=$CC
7564
7565# save warnings/boilerplate of simple test code
7566ac_outfile=conftest.$ac_objext
7567echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7568eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7569_lt_compiler_boilerplate=`cat conftest.err`
7570$RM conftest*
7571
7572ac_outfile=conftest.$ac_objext
7573echo "$lt_simple_link_test_code" >conftest.$ac_ext
7574eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7575_lt_linker_boilerplate=`cat conftest.err`
7576$RM -r conftest*
7577
7578
7579## CAVEAT EMPTOR:
7580## There is no encapsulation within the following macros, do not change
7581## the running order or otherwise move them around unless you know exactly
7582## what you are doing...
7583if test -n "$compiler"; then
7584
7585lt_prog_compiler_no_builtin_flag=
7586
7587if test "$GCC" = yes; then
7588 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7589
Scott James Remnantfde82c92009-09-22 10:04:15 -07007590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007591$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007592if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007593 $as_echo_n "(cached) " >&6
7594else
7595 lt_cv_prog_compiler_rtti_exceptions=no
7596 ac_outfile=conftest.$ac_objext
7597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7598 lt_compiler_flag="-fno-rtti -fno-exceptions"
7599 # Insert the option either (1) after the last *FLAGS variable, or
7600 # (2) before a word containing "conftest.", or (3) at the end.
7601 # Note that $ac_compile itself does not contain backslashes and begins
7602 # with a dollar sign (not a hyphen), so the echo should work correctly.
7603 # The option is referenced via a variable to avoid confusing sed.
7604 lt_compile=`echo "$ac_compile" | $SED \
7605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7607 -e 's:$: $lt_compiler_flag:'`
Colin Watsond58a9aa2010-01-16 02:55:43 +00007608 (eval echo "\"\$as_me:7608: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007609 (eval "$lt_compile" 2>conftest.err)
7610 ac_status=$?
7611 cat conftest.err >&5
Colin Watsond58a9aa2010-01-16 02:55:43 +00007612 echo "$as_me:7612: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007613 if (exit $ac_status) && test -s "$ac_outfile"; then
7614 # The compiler can only warn and ignore the option if not recognized
7615 # So say no if there are warnings other than the usual output.
7616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7619 lt_cv_prog_compiler_rtti_exceptions=yes
7620 fi
7621 fi
7622 $RM conftest*
7623
7624fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007626$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7627
7628if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7629 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7630else
7631 :
7632fi
7633
7634fi
7635
7636
7637
7638
7639
7640
7641 lt_prog_compiler_wl=
7642lt_prog_compiler_pic=
7643lt_prog_compiler_static=
7644
Scott James Remnantfde82c92009-09-22 10:04:15 -07007645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007646$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7647
7648 if test "$GCC" = yes; then
7649 lt_prog_compiler_wl='-Wl,'
7650 lt_prog_compiler_static='-static'
7651
7652 case $host_os in
7653 aix*)
7654 # All AIX code is PIC.
7655 if test "$host_cpu" = ia64; then
7656 # AIX 5 now supports IA64 processor
7657 lt_prog_compiler_static='-Bstatic'
7658 fi
7659 ;;
7660
7661 amigaos*)
7662 case $host_cpu in
7663 powerpc)
7664 # see comment about AmigaOS4 .so support
7665 lt_prog_compiler_pic='-fPIC'
7666 ;;
7667 m68k)
7668 # FIXME: we need at least 68020 code to build shared libraries, but
7669 # adding the `-m68020' flag to GCC prevents building anything better,
7670 # like `-m68040'.
7671 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7672 ;;
7673 esac
7674 ;;
7675
7676 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7677 # PIC is the default for these OSes.
7678 ;;
7679
7680 mingw* | cygwin* | pw32* | os2* | cegcc*)
7681 # This hack is so that the source file can tell whether it is being
7682 # built for inclusion in a dll (and should export symbols for example).
7683 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7684 # (--disable-auto-import) libraries
7685 lt_prog_compiler_pic='-DDLL_EXPORT'
7686 ;;
7687
7688 darwin* | rhapsody*)
7689 # PIC is the default on this platform
7690 # Common symbols not allowed in MH_DYLIB files
7691 lt_prog_compiler_pic='-fno-common'
7692 ;;
7693
7694 hpux*)
7695 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7696 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7697 # sets the default TLS model and affects inlining.
7698 case $host_cpu in
7699 hppa*64*)
7700 # +Z the default
7701 ;;
7702 *)
7703 lt_prog_compiler_pic='-fPIC'
7704 ;;
7705 esac
7706 ;;
7707
7708 interix[3-9]*)
7709 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7710 # Instead, we relocate shared libraries at runtime.
7711 ;;
7712
7713 msdosdjgpp*)
7714 # Just because we use GCC doesn't mean we suddenly get shared libraries
7715 # on systems that don't support them.
7716 lt_prog_compiler_can_build_shared=no
7717 enable_shared=no
7718 ;;
7719
7720 *nto* | *qnx*)
7721 # QNX uses GNU C++, but need to define -shared option too, otherwise
7722 # it will coredump.
7723 lt_prog_compiler_pic='-fPIC -shared'
7724 ;;
7725
7726 sysv4*MP*)
7727 if test -d /usr/nec; then
7728 lt_prog_compiler_pic=-Kconform_pic
7729 fi
7730 ;;
7731
7732 *)
7733 lt_prog_compiler_pic='-fPIC'
7734 ;;
7735 esac
7736 else
7737 # PORTME Check for flag to pass linker flags through the system compiler.
7738 case $host_os in
7739 aix*)
7740 lt_prog_compiler_wl='-Wl,'
7741 if test "$host_cpu" = ia64; then
7742 # AIX 5 now supports IA64 processor
7743 lt_prog_compiler_static='-Bstatic'
7744 else
7745 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7746 fi
7747 ;;
7748
7749 mingw* | cygwin* | pw32* | os2* | cegcc*)
7750 # This hack is so that the source file can tell whether it is being
7751 # built for inclusion in a dll (and should export symbols for example).
7752 lt_prog_compiler_pic='-DDLL_EXPORT'
7753 ;;
7754
7755 hpux9* | hpux10* | hpux11*)
7756 lt_prog_compiler_wl='-Wl,'
7757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7758 # not for PA HP-UX.
7759 case $host_cpu in
7760 hppa*64*|ia64*)
7761 # +Z the default
7762 ;;
7763 *)
7764 lt_prog_compiler_pic='+Z'
7765 ;;
7766 esac
7767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7768 lt_prog_compiler_static='${wl}-a ${wl}archive'
7769 ;;
7770
7771 irix5* | irix6* | nonstopux*)
7772 lt_prog_compiler_wl='-Wl,'
7773 # PIC (with -KPIC) is the default.
7774 lt_prog_compiler_static='-non_shared'
7775 ;;
7776
7777 linux* | k*bsd*-gnu)
7778 case $cc_basename in
7779 # old Intel for x86_64 which still supported -KPIC.
7780 ecc*)
7781 lt_prog_compiler_wl='-Wl,'
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-static'
7784 ;;
7785 # icc used to be incompatible with GCC.
7786 # ICC 10 doesn't accept -KPIC any more.
7787 icc* | ifort*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-fPIC'
7790 lt_prog_compiler_static='-static'
7791 ;;
7792 # Lahey Fortran 8.1.
7793 lf95*)
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_pic='--shared'
7796 lt_prog_compiler_static='--static'
7797 ;;
7798 pgcc* | pgf77* | pgf90* | pgf95*)
7799 # Portland Group compilers (*not* the Pentium gcc compiler,
7800 # which looks to be a dead project)
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_pic='-fpic'
7803 lt_prog_compiler_static='-Bstatic'
7804 ;;
7805 ccc*)
7806 lt_prog_compiler_wl='-Wl,'
7807 # All Alpha code is PIC.
7808 lt_prog_compiler_static='-non_shared'
7809 ;;
7810 xl*)
7811 # IBM XL C 8.0/Fortran 10.1 on PPC
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-qpic'
7814 lt_prog_compiler_static='-qstaticlink'
7815 ;;
7816 *)
7817 case `$CC -V 2>&1 | sed 5q` in
7818 *Sun\ C*)
7819 # Sun C 5.9
7820 lt_prog_compiler_pic='-KPIC'
7821 lt_prog_compiler_static='-Bstatic'
7822 lt_prog_compiler_wl='-Wl,'
7823 ;;
7824 *Sun\ F*)
7825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7828 lt_prog_compiler_wl=''
7829 ;;
7830 esac
7831 ;;
7832 esac
7833 ;;
7834
7835 newsos6)
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 ;;
7839
7840 *nto* | *qnx*)
7841 # QNX uses GNU C++, but need to define -shared option too, otherwise
7842 # it will coredump.
7843 lt_prog_compiler_pic='-fPIC -shared'
7844 ;;
7845
7846 osf3* | osf4* | osf5*)
7847 lt_prog_compiler_wl='-Wl,'
7848 # All OSF/1 code is PIC.
7849 lt_prog_compiler_static='-non_shared'
7850 ;;
7851
7852 rdos*)
7853 lt_prog_compiler_static='-non_shared'
7854 ;;
7855
7856 solaris*)
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-Bstatic'
7859 case $cc_basename in
7860 f77* | f90* | f95*)
7861 lt_prog_compiler_wl='-Qoption ld ';;
7862 *)
7863 lt_prog_compiler_wl='-Wl,';;
7864 esac
7865 ;;
7866
7867 sunos4*)
7868 lt_prog_compiler_wl='-Qoption ld '
7869 lt_prog_compiler_pic='-PIC'
7870 lt_prog_compiler_static='-Bstatic'
7871 ;;
7872
7873 sysv4 | sysv4.2uw2* | sysv4.3*)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-KPIC'
7876 lt_prog_compiler_static='-Bstatic'
7877 ;;
7878
7879 sysv4*MP*)
7880 if test -d /usr/nec ;then
7881 lt_prog_compiler_pic='-Kconform_pic'
7882 lt_prog_compiler_static='-Bstatic'
7883 fi
7884 ;;
7885
7886 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7890 ;;
7891
7892 unicos*)
7893 lt_prog_compiler_wl='-Wl,'
7894 lt_prog_compiler_can_build_shared=no
7895 ;;
7896
7897 uts4*)
7898 lt_prog_compiler_pic='-pic'
7899 lt_prog_compiler_static='-Bstatic'
7900 ;;
7901
7902 *)
7903 lt_prog_compiler_can_build_shared=no
7904 ;;
7905 esac
7906 fi
7907
7908case $host_os in
7909 # For platforms which do not support PIC, -DPIC is meaningless:
7910 *djgpp*)
7911 lt_prog_compiler_pic=
7912 ;;
7913 *)
7914 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7915 ;;
7916esac
Scott James Remnantfde82c92009-09-22 10:04:15 -07007917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007918$as_echo "$lt_prog_compiler_pic" >&6; }
7919
7920
7921
7922
7923
7924
7925#
7926# Check to make sure the PIC flag actually works.
7927#
7928if test -n "$lt_prog_compiler_pic"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07007929 { $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 +01007930$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007931if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007932 $as_echo_n "(cached) " >&6
7933else
7934 lt_cv_prog_compiler_pic_works=no
7935 ac_outfile=conftest.$ac_objext
7936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7937 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7938 # Insert the option either (1) after the last *FLAGS variable, or
7939 # (2) before a word containing "conftest.", or (3) at the end.
7940 # Note that $ac_compile itself does not contain backslashes and begins
7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
7942 # The option is referenced via a variable to avoid confusing sed.
7943 lt_compile=`echo "$ac_compile" | $SED \
7944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7946 -e 's:$: $lt_compiler_flag:'`
Colin Watsond58a9aa2010-01-16 02:55:43 +00007947 (eval echo "\"\$as_me:7947: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01007948 (eval "$lt_compile" 2>conftest.err)
7949 ac_status=$?
7950 cat conftest.err >&5
Colin Watsond58a9aa2010-01-16 02:55:43 +00007951 echo "$as_me:7951: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007952 if (exit $ac_status) && test -s "$ac_outfile"; then
7953 # The compiler can only warn and ignore the option if not recognized
7954 # So say no if there are warnings other than the usual output.
7955 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_pic_works=yes
7959 fi
7960 fi
7961 $RM conftest*
7962
7963fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07007964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01007965$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7966
7967if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7968 case $lt_prog_compiler_pic in
7969 "" | " "*) ;;
7970 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7971 esac
7972else
7973 lt_prog_compiler_pic=
7974 lt_prog_compiler_can_build_shared=no
7975fi
7976
7977fi
7978
7979
7980
7981
7982
7983
7984#
7985# Check to make sure the static flag actually works.
7986#
7987wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -07007988{ $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 +01007989$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07007990if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01007991 $as_echo_n "(cached) " >&6
7992else
7993 lt_cv_prog_compiler_static_works=no
7994 save_LDFLAGS="$LDFLAGS"
7995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7998 # The linker can only warn and ignore the option if not recognized
7999 # So say no if there are warnings
8000 if test -s conftest.err; then
8001 # Append any errors to the config.log.
8002 cat conftest.err 1>&5
8003 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8005 if diff conftest.exp conftest.er2 >/dev/null; then
8006 lt_cv_prog_compiler_static_works=yes
8007 fi
8008 else
8009 lt_cv_prog_compiler_static_works=yes
8010 fi
8011 fi
8012 $RM -r conftest*
8013 LDFLAGS="$save_LDFLAGS"
8014
8015fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008017$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8018
8019if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8020 :
8021else
8022 lt_prog_compiler_static=
8023fi
8024
8025
8026
8027
8028
8029
8030
Scott James Remnantfde82c92009-09-22 10:04:15 -07008031 { $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 +01008032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008033if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008034 $as_echo_n "(cached) " >&6
8035else
8036 lt_cv_prog_compiler_c_o=no
8037 $RM -r conftest 2>/dev/null
8038 mkdir conftest
8039 cd conftest
8040 mkdir out
8041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8042
8043 lt_compiler_flag="-o out/conftest2.$ac_objext"
8044 # Insert the option either (1) after the last *FLAGS variable, or
8045 # (2) before a word containing "conftest.", or (3) at the end.
8046 # Note that $ac_compile itself does not contain backslashes and begins
8047 # with a dollar sign (not a hyphen), so the echo should work correctly.
8048 lt_compile=`echo "$ac_compile" | $SED \
8049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051 -e 's:$: $lt_compiler_flag:'`
Colin Watsond58a9aa2010-01-16 02:55:43 +00008052 (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008053 (eval "$lt_compile" 2>out/conftest.err)
8054 ac_status=$?
8055 cat out/conftest.err >&5
Colin Watsond58a9aa2010-01-16 02:55:43 +00008056 echo "$as_me:8056: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8058 then
8059 # The compiler can only warn and ignore the option if not recognized
8060 # So say no if there are warnings
8061 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8064 lt_cv_prog_compiler_c_o=yes
8065 fi
8066 fi
8067 chmod u+w . 2>&5
8068 $RM conftest*
8069 # SGI C++ compiler will create directory out/ii_files/ for
8070 # template instantiation
8071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8072 $RM out/* && rmdir out
8073 cd ..
8074 $RM -r conftest
8075 $RM conftest*
8076
8077fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008079$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8080
8081
8082
8083
8084
8085
Scott James Remnantfde82c92009-09-22 10:04:15 -07008086 { $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 +01008087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -07008088if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008089 $as_echo_n "(cached) " >&6
8090else
8091 lt_cv_prog_compiler_c_o=no
8092 $RM -r conftest 2>/dev/null
8093 mkdir conftest
8094 cd conftest
8095 mkdir out
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097
8098 lt_compiler_flag="-o out/conftest2.$ac_objext"
8099 # Insert the option either (1) after the last *FLAGS variable, or
8100 # (2) before a word containing "conftest.", or (3) at the end.
8101 # Note that $ac_compile itself does not contain backslashes and begins
8102 # with a dollar sign (not a hyphen), so the echo should work correctly.
8103 lt_compile=`echo "$ac_compile" | $SED \
8104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106 -e 's:$: $lt_compiler_flag:'`
Colin Watsond58a9aa2010-01-16 02:55:43 +00008107 (eval echo "\"\$as_me:8107: $lt_compile\"" >&5)
Scott James Remnant65f683d2009-07-14 13:05:17 +01008108 (eval "$lt_compile" 2>out/conftest.err)
8109 ac_status=$?
8110 cat out/conftest.err >&5
Colin Watsond58a9aa2010-01-16 02:55:43 +00008111 echo "$as_me:8111: \$? = $ac_status" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8113 then
8114 # The compiler can only warn and ignore the option if not recognized
8115 # So say no if there are warnings
8116 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8119 lt_cv_prog_compiler_c_o=yes
8120 fi
8121 fi
8122 chmod u+w . 2>&5
8123 $RM conftest*
8124 # SGI C++ compiler will create directory out/ii_files/ for
8125 # template instantiation
8126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8127 $RM out/* && rmdir out
8128 cd ..
8129 $RM -r conftest
8130 $RM conftest*
8131
8132fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008134$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8135
8136
8137
8138
8139hard_links="nottested"
8140if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8141 # do not overwrite the value of need_locks provided by the user
Scott James Remnantfde82c92009-09-22 10:04:15 -07008142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008143$as_echo_n "checking if we can lock with hard links... " >&6; }
8144 hard_links=yes
8145 $RM conftest*
8146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8147 touch conftest.a
8148 ln conftest.a conftest.b 2>&5 || hard_links=no
8149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Scott James Remnantfde82c92009-09-22 10:04:15 -07008150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01008151$as_echo "$hard_links" >&6; }
8152 if test "$hard_links" = no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -07008153 { $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 +01008154$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8155 need_locks=warn
8156 fi
8157else
8158 need_locks=no
8159fi
8160
8161
8162
8163
8164
8165
Scott James Remnantfde82c92009-09-22 10:04:15 -07008166 { $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 +01008167$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8168
8169 runpath_var=
8170 allow_undefined_flag=
8171 always_export_symbols=no
8172 archive_cmds=
8173 archive_expsym_cmds=
8174 compiler_needs_object=no
8175 enable_shared_with_static_runtimes=no
8176 export_dynamic_flag_spec=
8177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8178 hardcode_automatic=no
8179 hardcode_direct=no
8180 hardcode_direct_absolute=no
8181 hardcode_libdir_flag_spec=
8182 hardcode_libdir_flag_spec_ld=
8183 hardcode_libdir_separator=
8184 hardcode_minus_L=no
8185 hardcode_shlibpath_var=unsupported
8186 inherit_rpath=no
8187 link_all_deplibs=unknown
8188 module_cmds=
8189 module_expsym_cmds=
8190 old_archive_from_new_cmds=
8191 old_archive_from_expsyms_cmds=
8192 thread_safe_flag_spec=
8193 whole_archive_flag_spec=
8194 # include_expsyms should be a list of space-separated symbols to be *always*
8195 # included in the symbol list
8196 include_expsyms=
8197 # exclude_expsyms can be an extended regexp of symbols to exclude
8198 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8199 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8200 # as well as any symbol that contains `d'.
8201 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8202 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8203 # platforms (ab)use it in PIC code, but their linkers get confused if
8204 # the symbol is explicitly referenced. Since portable code cannot
8205 # rely on this symbol name, it's probably fine to never include it in
8206 # preloaded symbol tables.
8207 # Exclude shared library initialization/finalization symbols.
8208 extract_expsyms_cmds=
8209
8210 case $host_os in
8211 cygwin* | mingw* | pw32* | cegcc*)
8212 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8213 # When not using gcc, we currently assume that we are using
8214 # Microsoft Visual C++.
8215 if test "$GCC" != yes; then
8216 with_gnu_ld=no
8217 fi
8218 ;;
8219 interix*)
8220 # we just hope/assume this is gcc and not c89 (= MSVC++)
8221 with_gnu_ld=yes
8222 ;;
8223 openbsd*)
8224 with_gnu_ld=no
8225 ;;
Scott James Remnantb9dc80a2009-08-03 22:58:46 +01008226 linux* | k*bsd*-gnu)
8227 link_all_deplibs=no
8228 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +01008229 esac
8230
8231 ld_shlibs=yes
8232 if test "$with_gnu_ld" = yes; then
8233 # If archive_cmds runs LD, not CC, wlarc should be empty
8234 wlarc='${wl}'
8235
8236 # Set some defaults for GNU ld with shared library support. These
8237 # are reset later if shared libraries are not supported. Putting them
8238 # here allows them to be overridden if necessary.
8239 runpath_var=LD_RUN_PATH
8240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8241 export_dynamic_flag_spec='${wl}--export-dynamic'
8242 # ancient GNU ld didn't support --whole-archive et. al.
8243 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8244 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8245 else
8246 whole_archive_flag_spec=
8247 fi
8248 supports_anon_versioning=no
8249 case `$LD -v 2>&1` in
8250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8253 *\ 2.11.*) ;; # other 2.11 versions
8254 *) supports_anon_versioning=yes ;;
8255 esac
8256
8257 # See if GNU ld supports shared libraries.
8258 case $host_os in
8259 aix[3-9]*)
8260 # On AIX/PPC, the GNU linker is very broken
8261 if test "$host_cpu" != ia64; then
8262 ld_shlibs=no
8263 cat <<_LT_EOF 1>&2
8264
8265*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8266*** to be unable to reliably create shared libraries on AIX.
8267*** Therefore, libtool is disabling shared libraries support. If you
8268*** really care for shared libraries, you may want to modify your PATH
8269*** so that a non-GNU linker is found, and then restart.
8270
8271_LT_EOF
8272 fi
8273 ;;
8274
8275 amigaos*)
8276 case $host_cpu in
8277 powerpc)
8278 # see comment about AmigaOS4 .so support
8279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280 archive_expsym_cmds=''
8281 ;;
8282 m68k)
8283 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)'
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 hardcode_minus_L=yes
8286 ;;
8287 esac
8288 ;;
8289
8290 beos*)
8291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8292 allow_undefined_flag=unsupported
8293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8294 # support --undefined. This deserves some investigation. FIXME
8295 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296 else
8297 ld_shlibs=no
8298 fi
8299 ;;
8300
8301 cygwin* | mingw* | pw32* | cegcc*)
8302 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8303 # as there is no search path for DLLs.
8304 hardcode_libdir_flag_spec='-L$libdir'
8305 allow_undefined_flag=unsupported
8306 always_export_symbols=no
8307 enable_shared_with_static_runtimes=yes
8308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8309
8310 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312 # If the export-symbols file already is a .def file (1st line
8313 # is EXPORTS), use it as is; otherwise, prepend...
8314 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8315 cp $export_symbols $output_objdir/$soname.def;
8316 else
8317 echo EXPORTS > $output_objdir/$soname.def;
8318 cat $export_symbols >> $output_objdir/$soname.def;
8319 fi~
8320 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8321 else
8322 ld_shlibs=no
8323 fi
8324 ;;
8325
8326 interix[3-9]*)
8327 hardcode_direct=no
8328 hardcode_shlibpath_var=no
8329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330 export_dynamic_flag_spec='${wl}-E'
8331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8332 # Instead, shared libraries are loaded at an image base (0x10000000 by
8333 # default) and relocated if they conflict, which is a slow very memory
8334 # consuming and fragmenting process. To avoid this, we pick a random,
8335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8338 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'
8339 ;;
8340
8341 gnu* | linux* | tpf* | k*bsd*-gnu)
8342 tmp_diet=no
8343 if test "$host_os" = linux-dietlibc; then
8344 case $cc_basename in
8345 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8346 esac
8347 fi
8348 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8349 && test "$tmp_diet" = no
8350 then
8351 tmp_addflag=
8352 tmp_sharedflag='-shared'
8353 case $cc_basename,$host_cpu in
8354 pgcc*) # Portland Group C compiler
8355 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'
8356 tmp_addflag=' $pic_flag'
8357 ;;
8358 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8359 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'
8360 tmp_addflag=' $pic_flag -Mnomain' ;;
8361 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8362 tmp_addflag=' -i_dynamic' ;;
8363 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8364 tmp_addflag=' -i_dynamic -nofor_main' ;;
8365 ifc* | ifort*) # Intel Fortran compiler
8366 tmp_addflag=' -nofor_main' ;;
8367 lf95*) # Lahey Fortran 8.1
8368 whole_archive_flag_spec=
8369 tmp_sharedflag='--shared' ;;
8370 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8371 tmp_sharedflag='-qmkshrobj'
8372 tmp_addflag= ;;
8373 esac
8374 case `$CC -V 2>&1 | sed 5q` in
8375 *Sun\ C*) # Sun C 5.9
8376 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'
8377 compiler_needs_object=yes
8378 tmp_sharedflag='-G' ;;
8379 *Sun\ F*) # Sun Fortran 8.3
8380 tmp_sharedflag='-G' ;;
8381 esac
8382 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8383
8384 if test "x$supports_anon_versioning" = xyes; then
8385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8387 echo "local: *; };" >> $output_objdir/$libname.ver~
8388 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8389 fi
8390
8391 case $cc_basename in
8392 xlf*)
8393 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8394 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8395 hardcode_libdir_flag_spec=
8396 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8397 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8398 if test "x$supports_anon_versioning" = xyes; then
8399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8401 echo "local: *; };" >> $output_objdir/$libname.ver~
8402 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8403 fi
8404 ;;
8405 esac
8406 else
8407 ld_shlibs=no
8408 fi
8409 ;;
8410
8411 netbsd* | netbsdelf*-gnu)
8412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8414 wlarc=
8415 else
8416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8418 fi
8419 ;;
8420
8421 solaris*)
8422 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8423 ld_shlibs=no
8424 cat <<_LT_EOF 1>&2
8425
8426*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8427*** create shared libraries on Solaris systems. Therefore, libtool
8428*** is disabling shared libraries support. We urge you to upgrade GNU
8429*** binutils to release 2.9.1 or newer. Another option is to modify
8430*** your PATH or compiler configuration so that the native linker is
8431*** used, and then restart.
8432
8433_LT_EOF
8434 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8437 else
8438 ld_shlibs=no
8439 fi
8440 ;;
8441
8442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8443 case `$LD -v 2>&1` in
8444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8445 ld_shlibs=no
8446 cat <<_LT_EOF 1>&2
8447
8448*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8449*** reliably create shared libraries on SCO systems. Therefore, libtool
8450*** is disabling shared libraries support. We urge you to upgrade GNU
8451*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8452*** your PATH or compiler configuration so that the native linker is
8453*** used, and then restart.
8454
8455_LT_EOF
8456 ;;
8457 *)
8458 # For security reasons, it is highly recommended that you always
8459 # use absolute paths for naming shared libraries, and exclude the
8460 # DT_RUNPATH tag from executables and libraries. But doing so
8461 # requires that you compile everything twice, which is a pain.
8462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8466 else
8467 ld_shlibs=no
8468 fi
8469 ;;
8470 esac
8471 ;;
8472
8473 sunos4*)
8474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8475 wlarc=
8476 hardcode_direct=yes
8477 hardcode_shlibpath_var=no
8478 ;;
8479
8480 *)
8481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484 else
8485 ld_shlibs=no
8486 fi
8487 ;;
8488 esac
8489
8490 if test "$ld_shlibs" = no; then
8491 runpath_var=
8492 hardcode_libdir_flag_spec=
8493 export_dynamic_flag_spec=
8494 whole_archive_flag_spec=
8495 fi
8496 else
8497 # PORTME fill in a description of your system's linker (not GNU ld)
8498 case $host_os in
8499 aix3*)
8500 allow_undefined_flag=unsupported
8501 always_export_symbols=yes
8502 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'
8503 # Note: this linker hardcodes the directories in LIBPATH if there
8504 # are no directories specified by -L.
8505 hardcode_minus_L=yes
8506 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8507 # Neither direct hardcoding nor static linking is supported with a
8508 # broken collect2.
8509 hardcode_direct=unsupported
8510 fi
8511 ;;
8512
8513 aix[4-9]*)
8514 if test "$host_cpu" = ia64; then
8515 # On IA64, the linker does run time linking by default, so we don't
8516 # have to do anything special.
8517 aix_use_runtimelinking=no
8518 exp_sym_flag='-Bexport'
8519 no_entry_flag=""
8520 else
8521 # If we're using GNU nm, then we don't want the "-C" option.
8522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8523 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8524 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'
8525 else
8526 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'
8527 fi
8528 aix_use_runtimelinking=no
8529
8530 # Test if we are trying to use run time linking or normal
8531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8532 # need to do runtime linking.
8533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8534 for ld_flag in $LDFLAGS; do
8535 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8536 aix_use_runtimelinking=yes
8537 break
8538 fi
8539 done
8540 ;;
8541 esac
8542
8543 exp_sym_flag='-bexport'
8544 no_entry_flag='-bnoentry'
8545 fi
8546
8547 # When large executables or shared objects are built, AIX ld can
8548 # have problems creating the table of contents. If linking a library
8549 # or program results in "error TOC overflow" add -mminimal-toc to
8550 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8551 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8552
8553 archive_cmds=''
8554 hardcode_direct=yes
8555 hardcode_direct_absolute=yes
8556 hardcode_libdir_separator=':'
8557 link_all_deplibs=yes
8558 file_list_spec='${wl}-f,'
8559
8560 if test "$GCC" = yes; then
8561 case $host_os in aix4.[012]|aix4.[012].*)
8562 # We only want to do this on AIX 4.2 and lower, the check
8563 # below for broken collect2 doesn't work under 4.3+
8564 collect2name=`${CC} -print-prog-name=collect2`
8565 if test -f "$collect2name" &&
8566 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8567 then
8568 # We have reworked collect2
8569 :
8570 else
8571 # We have old collect2
8572 hardcode_direct=unsupported
8573 # It fails to find uninstalled libraries when the uninstalled
8574 # path is not listed in the libpath. Setting hardcode_minus_L
8575 # to unsupported forces relinking
8576 hardcode_minus_L=yes
8577 hardcode_libdir_flag_spec='-L$libdir'
8578 hardcode_libdir_separator=
8579 fi
8580 ;;
8581 esac
8582 shared_flag='-shared'
8583 if test "$aix_use_runtimelinking" = yes; then
8584 shared_flag="$shared_flag "'${wl}-G'
8585 fi
8586 link_all_deplibs=no
8587 else
8588 # not using gcc
8589 if test "$host_cpu" = ia64; then
8590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8591 # chokes on -Wl,-G. The following line is correct:
8592 shared_flag='-G'
8593 else
8594 if test "$aix_use_runtimelinking" = yes; then
8595 shared_flag='${wl}-G'
8596 else
8597 shared_flag='${wl}-bM:SRE'
8598 fi
8599 fi
8600 fi
8601
8602 export_dynamic_flag_spec='${wl}-bexpall'
8603 # It seems that -bexpall does not export symbols beginning with
8604 # underscore (_), so it is better to generate a list of symbols to export.
8605 always_export_symbols=yes
8606 if test "$aix_use_runtimelinking" = yes; then
8607 # Warning - without using the other runtime loading flags (-brtl),
8608 # -berok will link without error, but may produce a broken library.
8609 allow_undefined_flag='-berok'
8610 # Determine the default libpath from the value encoded in an
8611 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008613/* end confdefs.h. */
8614
8615int
8616main ()
8617{
8618
8619 ;
8620 return 0;
8621}
8622_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008623if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008624
8625lt_aix_libpath_sed='
8626 /Import File Strings/,/^$/ {
8627 /^0/ {
8628 s/^0 *\(.*\)$/\1/
8629 p
8630 }
8631 }'
8632aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633# Check for a 64-bit object if we didn't find anything.
8634if test -z "$aix_libpath"; then
8635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8636fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008637fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008638rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008640if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 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"
8644 else
8645 if test "$host_cpu" = ia64; then
8646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8647 allow_undefined_flag="-z nodefs"
8648 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"
8649 else
8650 # Determine the default libpath from the value encoded in an
8651 # empty executable.
Scott James Remnantfde82c92009-09-22 10:04:15 -07008652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008653/* end confdefs.h. */
8654
8655int
8656main ()
8657{
8658
8659 ;
8660 return 0;
8661}
8662_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008663if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008664
8665lt_aix_libpath_sed='
8666 /Import File Strings/,/^$/ {
8667 /^0/ {
8668 s/^0 *\(.*\)$/\1/
8669 p
8670 }
8671 }'
8672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8673# Check for a 64-bit object if we didn't find anything.
8674if test -z "$aix_libpath"; then
8675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8676fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01008677fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008678rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008680if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8681
8682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8683 # Warning - without using the other run time loading flags,
8684 # -berok will link without error, but may produce a broken library.
8685 no_undefined_flag=' ${wl}-bernotok'
8686 allow_undefined_flag=' ${wl}-berok'
8687 # Exported symbols can be pulled into shared objects from archives
8688 whole_archive_flag_spec='$convenience'
8689 archive_cmds_need_lc=yes
8690 # This is similar to how AIX traditionally builds its shared libraries.
8691 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'
8692 fi
8693 fi
8694 ;;
8695
8696 amigaos*)
8697 case $host_cpu in
8698 powerpc)
8699 # see comment about AmigaOS4 .so support
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds=''
8702 ;;
8703 m68k)
8704 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)'
8705 hardcode_libdir_flag_spec='-L$libdir'
8706 hardcode_minus_L=yes
8707 ;;
8708 esac
8709 ;;
8710
8711 bsdi[45]*)
8712 export_dynamic_flag_spec=-rdynamic
8713 ;;
8714
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # When not using gcc, we currently assume that we are using
8717 # Microsoft Visual C++.
8718 # hardcode_libdir_flag_spec is actually meaningless, as there is
8719 # no search path for DLLs.
8720 hardcode_libdir_flag_spec=' '
8721 allow_undefined_flag=unsupported
8722 # Tell ltmain to make .lib files, not .a files.
8723 libext=lib
8724 # Tell ltmain to make .dll files, not .so files.
8725 shrext_cmds=".dll"
8726 # FIXME: Setting linknames here is a bad hack.
8727 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8728 # The linker will automatically build a .lib file if we build a DLL.
8729 old_archive_from_new_cmds='true'
8730 # FIXME: Should let the user specify the lib program.
8731 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8732 fix_srcfile_path='`cygpath -w "$srcfile"`'
8733 enable_shared_with_static_runtimes=yes
8734 ;;
8735
8736 darwin* | rhapsody*)
8737
8738
8739 archive_cmds_need_lc=no
8740 hardcode_direct=no
8741 hardcode_automatic=yes
8742 hardcode_shlibpath_var=unsupported
8743 whole_archive_flag_spec=''
8744 link_all_deplibs=yes
8745 allow_undefined_flag="$_lt_dar_allow_undefined"
8746 case $cc_basename in
8747 ifort*) _lt_dar_can_shared=yes ;;
8748 *) _lt_dar_can_shared=$GCC ;;
8749 esac
8750 if test "$_lt_dar_can_shared" = "yes"; then
8751 output_verbose_link_cmd=echo
8752 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8753 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8754 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}"
8755 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}"
8756
8757 else
8758 ld_shlibs=no
8759 fi
8760
8761 ;;
8762
8763 dgux*)
8764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765 hardcode_libdir_flag_spec='-L$libdir'
8766 hardcode_shlibpath_var=no
8767 ;;
8768
8769 freebsd1*)
8770 ld_shlibs=no
8771 ;;
8772
8773 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8774 # support. Future versions do this automatically, but an explicit c++rt0.o
8775 # does not break anything, and helps significantly (at the cost of a little
8776 # extra space).
8777 freebsd2.2*)
8778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8779 hardcode_libdir_flag_spec='-R$libdir'
8780 hardcode_direct=yes
8781 hardcode_shlibpath_var=no
8782 ;;
8783
8784 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8785 freebsd2*)
8786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_direct=yes
8788 hardcode_minus_L=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8793 freebsd* | dragonfly*)
8794 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8795 hardcode_libdir_flag_spec='-R$libdir'
8796 hardcode_direct=yes
8797 hardcode_shlibpath_var=no
8798 ;;
8799
8800 hpux9*)
8801 if test "$GCC" = yes; then
8802 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'
8803 else
8804 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'
8805 fi
8806 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8807 hardcode_libdir_separator=:
8808 hardcode_direct=yes
8809
8810 # hardcode_minus_L: Not really in the search PATH,
8811 # but as the default location of the library.
8812 hardcode_minus_L=yes
8813 export_dynamic_flag_spec='${wl}-E'
8814 ;;
8815
8816 hpux10*)
8817 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8818 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8819 else
8820 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8821 fi
8822 if test "$with_gnu_ld" = no; then
8823 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8824 hardcode_libdir_flag_spec_ld='+b $libdir'
8825 hardcode_libdir_separator=:
8826 hardcode_direct=yes
8827 hardcode_direct_absolute=yes
8828 export_dynamic_flag_spec='${wl}-E'
8829 # hardcode_minus_L: Not really in the search PATH,
8830 # but as the default location of the library.
8831 hardcode_minus_L=yes
8832 fi
8833 ;;
8834
8835 hpux11*)
8836 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8837 case $host_cpu in
8838 hppa*64*)
8839 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 ;;
8841 ia64*)
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8843 ;;
8844 *)
8845 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8846 ;;
8847 esac
8848 else
8849 case $host_cpu in
8850 hppa*64*)
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 ;;
8853 ia64*)
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8855 ;;
8856 *)
8857 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8858 ;;
8859 esac
8860 fi
8861 if test "$with_gnu_ld" = no; then
8862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8863 hardcode_libdir_separator=:
8864
8865 case $host_cpu in
8866 hppa*64*|ia64*)
8867 hardcode_direct=no
8868 hardcode_shlibpath_var=no
8869 ;;
8870 *)
8871 hardcode_direct=yes
8872 hardcode_direct_absolute=yes
8873 export_dynamic_flag_spec='${wl}-E'
8874
8875 # hardcode_minus_L: Not really in the search PATH,
8876 # but as the default location of the library.
8877 hardcode_minus_L=yes
8878 ;;
8879 esac
8880 fi
8881 ;;
8882
8883 irix5* | irix6* | nonstopux*)
8884 if test "$GCC" = yes; then
8885 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'
8886 # Try to use the -exported_symbol ld option, if it does not
8887 # work, assume that -exports_file does not work either and
8888 # implicitly export all symbols.
8889 save_LDFLAGS="$LDFLAGS"
8890 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
Scott James Remnantfde82c92009-09-22 10:04:15 -07008891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h. */
Scott James Remnant65f683d2009-07-14 13:05:17 +01008893int foo(void) {}
8894_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07008895if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01008896 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'
8897
Scott James Remnant65f683d2009-07-14 13:05:17 +01008898fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07008899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01008901 LDFLAGS="$save_LDFLAGS"
8902 else
8903 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'
8904 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'
8905 fi
8906 archive_cmds_need_lc='no'
8907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908 hardcode_libdir_separator=:
8909 inherit_rpath=yes
8910 link_all_deplibs=yes
8911 ;;
8912
8913 netbsd* | netbsdelf*-gnu)
8914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8916 else
8917 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8918 fi
8919 hardcode_libdir_flag_spec='-R$libdir'
8920 hardcode_direct=yes
8921 hardcode_shlibpath_var=no
8922 ;;
8923
8924 newsos6)
8925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926 hardcode_direct=yes
8927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8928 hardcode_libdir_separator=:
8929 hardcode_shlibpath_var=no
8930 ;;
8931
8932 *nto* | *qnx*)
8933 ;;
8934
8935 openbsd*)
8936 if test -f /usr/libexec/ld.so; then
8937 hardcode_direct=yes
8938 hardcode_shlibpath_var=no
8939 hardcode_direct_absolute=yes
8940 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8942 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8944 export_dynamic_flag_spec='${wl}-E'
8945 else
8946 case $host_os in
8947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_libdir_flag_spec='-R$libdir'
8950 ;;
8951 *)
8952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954 ;;
8955 esac
8956 fi
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 os2*)
8963 hardcode_libdir_flag_spec='-L$libdir'
8964 hardcode_minus_L=yes
8965 allow_undefined_flag=unsupported
8966 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'
8967 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8968 ;;
8969
8970 osf3*)
8971 if test "$GCC" = yes; then
8972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8974 else
8975 allow_undefined_flag=' -expect_unresolved \*'
8976 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'
8977 fi
8978 archive_cmds_need_lc='no'
8979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980 hardcode_libdir_separator=:
8981 ;;
8982
8983 osf4* | osf5*) # as osf3* with the addition of -msym flag
8984 if test "$GCC" = yes; then
8985 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8986 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'
8987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988 else
8989 allow_undefined_flag=' -expect_unresolved \*'
8990 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'
8991 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~
8992 $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'
8993
8994 # Both c and cxx compiler support -rpath directly
8995 hardcode_libdir_flag_spec='-rpath $libdir'
8996 fi
8997 archive_cmds_need_lc='no'
8998 hardcode_libdir_separator=:
8999 ;;
9000
9001 solaris*)
9002 no_undefined_flag=' -z defs'
9003 if test "$GCC" = yes; then
9004 wlarc='${wl}'
9005 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9007 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9008 else
9009 case `$CC -V 2>&1` in
9010 *"Compilers 5.0"*)
9011 wlarc=''
9012 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9015 ;;
9016 *)
9017 wlarc='${wl}'
9018 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9019 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9020 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9021 ;;
9022 esac
9023 fi
9024 hardcode_libdir_flag_spec='-R$libdir'
9025 hardcode_shlibpath_var=no
9026 case $host_os in
9027 solaris2.[0-5] | solaris2.[0-5].*) ;;
9028 *)
9029 # The compiler driver will combine and reorder linker options,
9030 # but understands `-z linker_flag'. GCC discards it without `$wl',
9031 # but is careful enough not to reorder.
9032 # Supported since Solaris 2.6 (maybe 2.5.1?)
9033 if test "$GCC" = yes; then
9034 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9035 else
9036 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9037 fi
9038 ;;
9039 esac
9040 link_all_deplibs=yes
9041 ;;
9042
9043 sunos4*)
9044 if test "x$host_vendor" = xsequent; then
9045 # Use $CC to link under sequent, because it throws in some extra .o
9046 # files that make .init and .fini sections work.
9047 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9048 else
9049 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9050 fi
9051 hardcode_libdir_flag_spec='-L$libdir'
9052 hardcode_direct=yes
9053 hardcode_minus_L=yes
9054 hardcode_shlibpath_var=no
9055 ;;
9056
9057 sysv4)
9058 case $host_vendor in
9059 sni)
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_direct=yes # is this really true???
9062 ;;
9063 siemens)
9064 ## LD is ld it makes a PLAMLIB
9065 ## CC just makes a GrossModule.
9066 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9067 reload_cmds='$CC -r -o $output$reload_objs'
9068 hardcode_direct=no
9069 ;;
9070 motorola)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9073 ;;
9074 esac
9075 runpath_var='LD_RUN_PATH'
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 sysv4.3*)
9080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9081 hardcode_shlibpath_var=no
9082 export_dynamic_flag_spec='-Bexport'
9083 ;;
9084
9085 sysv4*MP*)
9086 if test -d /usr/nec; then
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_shlibpath_var=no
9089 runpath_var=LD_RUN_PATH
9090 hardcode_runpath_var=yes
9091 ld_shlibs=yes
9092 fi
9093 ;;
9094
9095 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9096 no_undefined_flag='${wl}-z,text'
9097 archive_cmds_need_lc=no
9098 hardcode_shlibpath_var=no
9099 runpath_var='LD_RUN_PATH'
9100
9101 if test "$GCC" = yes; then
9102 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 else
9105 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9107 fi
9108 ;;
9109
9110 sysv5* | sco3.2v5* | sco5v6*)
9111 # Note: We can NOT use -z defs as we might desire, because we do not
9112 # link with -lc, and that would cause any symbols used from libc to
9113 # always be unresolved, which means just about no library would
9114 # ever link correctly. If we're not using GNU ld we use -z text
9115 # though, which does catch some bad symbols but isn't as heavy-handed
9116 # as -z defs.
9117 no_undefined_flag='${wl}-z,text'
9118 allow_undefined_flag='${wl}-z,nodefs'
9119 archive_cmds_need_lc=no
9120 hardcode_shlibpath_var=no
9121 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9122 hardcode_libdir_separator=':'
9123 link_all_deplibs=yes
9124 export_dynamic_flag_spec='${wl}-Bexport'
9125 runpath_var='LD_RUN_PATH'
9126
9127 if test "$GCC" = yes; then
9128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 else
9131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 fi
9134 ;;
9135
9136 uts4*)
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 hardcode_shlibpath_var=no
9140 ;;
9141
9142 *)
9143 ld_shlibs=no
9144 ;;
9145 esac
9146
9147 if test x$host_vendor = xsni; then
9148 case $host in
9149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9150 export_dynamic_flag_spec='${wl}-Blargedynsym'
9151 ;;
9152 esac
9153 fi
9154 fi
9155
Scott James Remnantfde82c92009-09-22 10:04:15 -07009156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009157$as_echo "$ld_shlibs" >&6; }
9158test "$ld_shlibs" = no && can_build_shared=no
9159
9160with_gnu_ld=$with_gnu_ld
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176#
9177# Do we need to explicitly link libc?
9178#
9179case "x$archive_cmds_need_lc" in
9180x|xyes)
9181 # Assume -lc should be added
9182 archive_cmds_need_lc=yes
9183
9184 if test "$enable_shared" = yes && test "$GCC" = yes; then
9185 case $archive_cmds in
9186 *'~'*)
9187 # FIXME: we may have to deal with multi-command sequences.
9188 ;;
9189 '$CC '*)
9190 # Test whether the compiler implicitly links with -lc since on some
9191 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9192 # to ld, don't add -lc before -lgcc.
Scott James Remnantfde82c92009-09-22 10:04:15 -07009193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009194$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9195 $RM conftest*
9196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9197
Scott James Remnantfde82c92009-09-22 10:04:15 -07009198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009199 (eval $ac_compile) 2>&5
9200 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9202 test $ac_status = 0; } 2>conftest.err; then
Scott James Remnant65f683d2009-07-14 13:05:17 +01009203 soname=conftest
9204 lib=conftest
9205 libobjs=conftest.$ac_objext
9206 deplibs=
9207 wl=$lt_prog_compiler_wl
9208 pic_flag=$lt_prog_compiler_pic
9209 compiler_flags=-v
9210 linker_flags=-v
9211 verstring=
9212 output_objdir=.
9213 libname=conftest
9214 lt_save_allow_undefined_flag=$allow_undefined_flag
9215 allow_undefined_flag=
Scott James Remnantfde82c92009-09-22 10:04:15 -07009216 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 +01009217 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9218 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -07009219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9220 test $ac_status = 0; }
Scott James Remnant65f683d2009-07-14 13:05:17 +01009221 then
9222 archive_cmds_need_lc=no
9223 else
9224 archive_cmds_need_lc=yes
9225 fi
9226 allow_undefined_flag=$lt_save_allow_undefined_flag
9227 else
9228 cat conftest.err 1>&5
9229 fi
9230 $RM conftest*
Scott James Remnantfde82c92009-09-22 10:04:15 -07009231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009232$as_echo "$archive_cmds_need_lc" >&6; }
9233 ;;
9234 esac
9235 fi
9236 ;;
9237esac
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
9386
9387
9388
9389
9390
9391
9392
9393
9394
Scott James Remnantfde82c92009-09-22 10:04:15 -07009395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +01009396$as_echo_n "checking dynamic linker characteristics... " >&6; }
9397
9398if test "$GCC" = yes; then
9399 case $host_os in
9400 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9401 *) lt_awk_arg="/^libraries:/" ;;
9402 esac
9403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9404 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9405 # if the path contains ";" then we assume it to be the separator
9406 # otherwise default to the standard path separator (i.e. ":") - it is
9407 # assumed that no part of a normal pathname contains ";" but that should
9408 # okay in the real world where ";" in dirpaths is itself problematic.
9409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9410 else
9411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9412 fi
9413 # Ok, now we have the path, separated by spaces, we can step through it
9414 # and add multilib dir if necessary.
9415 lt_tmp_lt_search_path_spec=
9416 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9417 for lt_sys_path in $lt_search_path_spec; do
9418 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9419 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9420 else
9421 test -d "$lt_sys_path" && \
9422 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9423 fi
9424 done
9425 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9426BEGIN {RS=" "; FS="/|\n";} {
9427 lt_foo="";
9428 lt_count=0;
9429 for (lt_i = NF; lt_i > 0; lt_i--) {
9430 if ($lt_i != "" && $lt_i != ".") {
9431 if ($lt_i == "..") {
9432 lt_count++;
9433 } else {
9434 if (lt_count == 0) {
9435 lt_foo="/" $lt_i lt_foo;
9436 } else {
9437 lt_count--;
9438 }
9439 }
9440 }
9441 }
9442 if (lt_foo != "") { lt_freq[lt_foo]++; }
9443 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9444}'`
9445 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9446else
9447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9448fi
9449library_names_spec=
9450libname_spec='lib$name'
9451soname_spec=
9452shrext_cmds=".so"
9453postinstall_cmds=
9454postuninstall_cmds=
9455finish_cmds=
9456finish_eval=
9457shlibpath_var=
9458shlibpath_overrides_runpath=unknown
9459version_type=none
9460dynamic_linker="$host_os ld.so"
9461sys_lib_dlsearch_path_spec="/lib /usr/lib"
9462need_lib_prefix=unknown
9463hardcode_into_libs=no
9464
9465# when you set need_version to no, make sure it does not cause -set_version
9466# flags to be left without arguments
9467need_version=unknown
9468
9469case $host_os in
9470aix3*)
9471 version_type=linux
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9473 shlibpath_var=LIBPATH
9474
9475 # AIX 3 has no versioning support, so we append a major version to the name.
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 ;;
9478
9479aix[4-9]*)
9480 version_type=linux
9481 need_lib_prefix=no
9482 need_version=no
9483 hardcode_into_libs=yes
9484 if test "$host_cpu" = ia64; then
9485 # AIX 5 supports IA64
9486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 else
9489 # With GCC up to 2.95.x, collect2 would create an import file
9490 # for dependence libraries. The import file would start with
9491 # the line `#! .'. This would cause the generated library to
9492 # depend on `.', always an invalid library. This was fixed in
9493 # development snapshots of GCC prior to 3.0.
9494 case $host_os in
9495 aix4 | aix4.[01] | aix4.[01].*)
9496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9497 echo ' yes '
9498 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9499 :
9500 else
9501 can_build_shared=no
9502 fi
9503 ;;
9504 esac
9505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9506 # soname into executable. Probably we can add versioning support to
9507 # collect2, so additional links can be useful in future.
9508 if test "$aix_use_runtimelinking" = yes; then
9509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9510 # instead of lib<name>.a to let people know that these are not
9511 # typical AIX shared libraries.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 else
9514 # We preserve .a as extension for shared libraries through AIX4.2
9515 # and later when we are not doing run time linking.
9516 library_names_spec='${libname}${release}.a $libname.a'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 fi
9519 shlibpath_var=LIBPATH
9520 fi
9521 ;;
9522
9523amigaos*)
9524 case $host_cpu in
9525 powerpc)
9526 # Since July 2007 AmigaOS4 officially supports .so libraries.
9527 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 ;;
9530 m68k)
9531 library_names_spec='$libname.ixlibrary $libname.a'
9532 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9533 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'
9534 ;;
9535 esac
9536 ;;
9537
9538beos*)
9539 library_names_spec='${libname}${shared_ext}'
9540 dynamic_linker="$host_os ld.so"
9541 shlibpath_var=LIBRARY_PATH
9542 ;;
9543
9544bsdi[45]*)
9545 version_type=linux
9546 need_version=no
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9550 shlibpath_var=LD_LIBRARY_PATH
9551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9553 # the default ld.so.conf also contains /usr/contrib/lib and
9554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9555 # libtool to hard-code these into programs
9556 ;;
9557
9558cygwin* | mingw* | pw32* | cegcc*)
9559 version_type=windows
9560 shrext_cmds=".dll"
9561 need_version=no
9562 need_lib_prefix=no
9563
9564 case $GCC,$host_os in
9565 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9566 library_names_spec='$libname.dll.a'
9567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9568 postinstall_cmds='base_file=`basename \${file}`~
9569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9570 dldir=$destdir/`dirname \$dlpath`~
9571 test -d \$dldir || mkdir -p \$dldir~
9572 $install_prog $dir/$dlname \$dldir/$dlname~
9573 chmod a+x \$dldir/$dlname~
9574 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9575 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9576 fi'
9577 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9578 dlpath=$dir/\$dldll~
9579 $RM \$dlpath'
9580 shlibpath_overrides_runpath=yes
9581
9582 case $host_os in
9583 cygwin*)
9584 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9585 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9586 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9587 ;;
9588 mingw* | cegcc*)
9589 # MinGW DLLs use traditional 'lib' prefix
9590 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9591 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9592 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9593 # It is most probably a Windows format PATH printed by
9594 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9595 # path with ; separators, and with drive letters. We can handle the
9596 # drive letters (cygwin fileutils understands them), so leave them,
9597 # especially as we might pass files found there to a mingw objdump,
9598 # which wouldn't understand a cygwinified path. Ahh.
9599 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9600 else
9601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9602 fi
9603 ;;
9604 pw32*)
9605 # pw32 DLLs use 'pw' prefix rather than 'lib'
9606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9607 ;;
9608 esac
9609 ;;
9610
9611 *)
9612 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9613 ;;
9614 esac
9615 dynamic_linker='Win32 ld.exe'
9616 # FIXME: first we should search . and the directory the executable is in
9617 shlibpath_var=PATH
9618 ;;
9619
9620darwin* | rhapsody*)
9621 dynamic_linker="$host_os dyld"
9622 version_type=darwin
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9626 soname_spec='${libname}${release}${major}$shared_ext'
9627 shlibpath_overrides_runpath=yes
9628 shlibpath_var=DYLD_LIBRARY_PATH
9629 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9630
9631 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9632 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9633 ;;
9634
9635dgux*)
9636 version_type=linux
9637 need_lib_prefix=no
9638 need_version=no
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 shlibpath_var=LD_LIBRARY_PATH
9642 ;;
9643
9644freebsd1*)
9645 dynamic_linker=no
9646 ;;
9647
9648freebsd* | dragonfly*)
9649 # DragonFly does not have aout. When/if they implement a new
9650 # versioning mechanism, adjust this.
9651 if test -x /usr/bin/objformat; then
9652 objformat=`/usr/bin/objformat`
9653 else
9654 case $host_os in
9655 freebsd[123]*) objformat=aout ;;
9656 *) objformat=elf ;;
9657 esac
9658 fi
9659 version_type=freebsd-$objformat
9660 case $version_type in
9661 freebsd-elf*)
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9663 need_version=no
9664 need_lib_prefix=no
9665 ;;
9666 freebsd-*)
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9668 need_version=yes
9669 ;;
9670 esac
9671 shlibpath_var=LD_LIBRARY_PATH
9672 case $host_os in
9673 freebsd2*)
9674 shlibpath_overrides_runpath=yes
9675 ;;
9676 freebsd3.[01]* | freebsdelf3.[01]*)
9677 shlibpath_overrides_runpath=yes
9678 hardcode_into_libs=yes
9679 ;;
9680 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9681 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9682 shlibpath_overrides_runpath=no
9683 hardcode_into_libs=yes
9684 ;;
9685 *) # from 4.6 on, and DragonFly
9686 shlibpath_overrides_runpath=yes
9687 hardcode_into_libs=yes
9688 ;;
9689 esac
9690 ;;
9691
9692gnu*)
9693 version_type=linux
9694 need_lib_prefix=no
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 hardcode_into_libs=yes
9700 ;;
9701
9702hpux9* | hpux10* | hpux11*)
9703 # Give a soname corresponding to the major version so that dld.sl refuses to
9704 # link against other versions.
9705 version_type=sunos
9706 need_lib_prefix=no
9707 need_version=no
9708 case $host_cpu in
9709 ia64*)
9710 shrext_cmds='.so'
9711 hardcode_into_libs=yes
9712 dynamic_linker="$host_os dld.so"
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 if test "X$HPUX_IA64_MODE" = X32; then
9718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9719 else
9720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9721 fi
9722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9723 ;;
9724 hppa*64*)
9725 shrext_cmds='.sl'
9726 hardcode_into_libs=yes
9727 dynamic_linker="$host_os dld.sl"
9728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731 soname_spec='${libname}${release}${shared_ext}$major'
9732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9734 ;;
9735 *)
9736 shrext_cmds='.sl'
9737 dynamic_linker="$host_os dld.sl"
9738 shlibpath_var=SHLIB_PATH
9739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 ;;
9743 esac
9744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9745 postinstall_cmds='chmod 555 $lib'
9746 ;;
9747
9748interix[3-9]*)
9749 version_type=linux
9750 need_lib_prefix=no
9751 need_version=no
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=no
9757 hardcode_into_libs=yes
9758 ;;
9759
9760irix5* | irix6* | nonstopux*)
9761 case $host_os in
9762 nonstopux*) version_type=nonstopux ;;
9763 *)
9764 if test "$lt_cv_prog_gnu_ld" = yes; then
9765 version_type=linux
9766 else
9767 version_type=irix
9768 fi ;;
9769 esac
9770 need_lib_prefix=no
9771 need_version=no
9772 soname_spec='${libname}${release}${shared_ext}$major'
9773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9774 case $host_os in
9775 irix5* | nonstopux*)
9776 libsuff= shlibsuff=
9777 ;;
9778 *)
9779 case $LD in # libtool.m4 will add one of these switches to LD
9780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9781 libsuff= shlibsuff= libmagic=32-bit;;
9782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9783 libsuff=32 shlibsuff=N32 libmagic=N32;;
9784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9786 *) libsuff= shlibsuff= libmagic=never-match;;
9787 esac
9788 ;;
9789 esac
9790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9791 shlibpath_overrides_runpath=no
9792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9794 hardcode_into_libs=yes
9795 ;;
9796
9797# No shared lib support for Linux oldld, aout, or coff.
9798linux*oldld* | linux*aout* | linux*coff*)
9799 dynamic_linker=no
9800 ;;
9801
9802# This must be Linux ELF.
9803linux* | k*bsd*-gnu)
9804 version_type=linux
9805 need_lib_prefix=no
9806 need_version=no
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 # Some binutils ld are patched to set DT_RUNPATH
9813 save_LDFLAGS=$LDFLAGS
9814 save_libdir=$libdir
9815 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9816 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
Scott James Remnantfde82c92009-09-22 10:04:15 -07009817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009818/* end confdefs.h. */
9819
9820int
9821main ()
9822{
9823
9824 ;
9825 return 0;
9826}
9827_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -07009828if ac_fn_c_try_link "$LINENO"; then :
9829 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +01009830 shlibpath_overrides_runpath=yes
9831fi
Scott James Remnant65f683d2009-07-14 13:05:17 +01009832fi
Scott James Remnantfde82c92009-09-22 10:04:15 -07009833rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +01009835 LDFLAGS=$save_LDFLAGS
9836 libdir=$save_libdir
9837
9838 # This implies no fast_install, which is unacceptable.
9839 # Some rework will be needed to allow for fast_install
9840 # before this can be enabled.
9841 hardcode_into_libs=yes
9842
9843 # Append ld.so.conf contents to the search path
9844 if test -f /etc/ld.so.conf; then
9845 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' ' '`
9846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9847 fi
9848
9849 # We used to test for /lib/ld.so.1 and disable shared libraries on
9850 # powerpc, because MkLinux only supported shared libraries with the
9851 # GNU dynamic linker. Since this was broken with cross compilers,
9852 # most powerpc-linux boxes support dynamic linking these days and
9853 # people can always --disable-shared, the test was removed, and we
9854 # assume the GNU/Linux dynamic linker is in use.
9855 dynamic_linker='GNU/Linux ld.so'
9856 ;;
9857
9858netbsdelf*-gnu)
9859 version_type=linux
9860 need_lib_prefix=no
9861 need_version=no
9862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9863 soname_spec='${libname}${release}${shared_ext}$major'
9864 shlibpath_var=LD_LIBRARY_PATH
9865 shlibpath_overrides_runpath=no
9866 hardcode_into_libs=yes
9867 dynamic_linker='NetBSD ld.elf_so'
9868 ;;
9869
9870netbsd*)
9871 version_type=sunos
9872 need_lib_prefix=no
9873 need_version=no
9874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9877 dynamic_linker='NetBSD (a.out) ld.so'
9878 else
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 dynamic_linker='NetBSD ld.elf_so'
9882 fi
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9886 ;;
9887
9888newsos6)
9889 version_type=linux
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 shlibpath_overrides_runpath=yes
9893 ;;
9894
9895*nto* | *qnx*)
9896 version_type=qnx
9897 need_lib_prefix=no
9898 need_version=no
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 shlibpath_var=LD_LIBRARY_PATH
9902 shlibpath_overrides_runpath=no
9903 hardcode_into_libs=yes
9904 dynamic_linker='ldqnx.so'
9905 ;;
9906
9907openbsd*)
9908 version_type=sunos
9909 sys_lib_dlsearch_path_spec="/usr/lib"
9910 need_lib_prefix=no
9911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9912 case $host_os in
9913 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9914 *) need_version=no ;;
9915 esac
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9918 shlibpath_var=LD_LIBRARY_PATH
9919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9920 case $host_os in
9921 openbsd2.[89] | openbsd2.[89].*)
9922 shlibpath_overrides_runpath=no
9923 ;;
9924 *)
9925 shlibpath_overrides_runpath=yes
9926 ;;
9927 esac
9928 else
9929 shlibpath_overrides_runpath=yes
9930 fi
9931 ;;
9932
9933os2*)
9934 libname_spec='$name'
9935 shrext_cmds=".dll"
9936 need_lib_prefix=no
9937 library_names_spec='$libname${shared_ext} $libname.a'
9938 dynamic_linker='OS/2 ld.exe'
9939 shlibpath_var=LIBPATH
9940 ;;
9941
9942osf3* | osf4* | osf5*)
9943 version_type=osf
9944 need_lib_prefix=no
9945 need_version=no
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9951 ;;
9952
9953rdos*)
9954 dynamic_linker=no
9955 ;;
9956
9957solaris*)
9958 version_type=linux
9959 need_lib_prefix=no
9960 need_version=no
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9962 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 shlibpath_overrides_runpath=yes
9965 hardcode_into_libs=yes
9966 # ldd complains unless libraries are executable
9967 postinstall_cmds='chmod +x $lib'
9968 ;;
9969
9970sunos4*)
9971 version_type=sunos
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9973 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath=yes
9976 if test "$with_gnu_ld" = yes; then
9977 need_lib_prefix=no
9978 fi
9979 need_version=yes
9980 ;;
9981
9982sysv4 | sysv4.3*)
9983 version_type=linux
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 case $host_vendor in
9988 sni)
9989 shlibpath_overrides_runpath=no
9990 need_lib_prefix=no
9991 runpath_var=LD_RUN_PATH
9992 ;;
9993 siemens)
9994 need_lib_prefix=no
9995 ;;
9996 motorola)
9997 need_lib_prefix=no
9998 need_version=no
9999 shlibpath_overrides_runpath=no
10000 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10001 ;;
10002 esac
10003 ;;
10004
10005sysv4*MP*)
10006 if test -d /usr/nec ;then
10007 version_type=linux
10008 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10009 soname_spec='$libname${shared_ext}.$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 fi
10012 ;;
10013
10014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10015 version_type=freebsd-elf
10016 need_lib_prefix=no
10017 need_version=no
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=yes
10022 hardcode_into_libs=yes
10023 if test "$with_gnu_ld" = yes; then
10024 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10025 else
10026 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10027 case $host_os in
10028 sco3.2v5*)
10029 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10030 ;;
10031 esac
10032 fi
10033 sys_lib_dlsearch_path_spec='/usr/lib'
10034 ;;
10035
10036tpf*)
10037 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=no
10044 hardcode_into_libs=yes
10045 ;;
10046
10047uts4*)
10048 version_type=linux
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 soname_spec='${libname}${release}${shared_ext}$major'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 ;;
10053
10054*)
10055 dynamic_linker=no
10056 ;;
10057esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010059$as_echo "$dynamic_linker" >&6; }
10060test "$dynamic_linker" = no && can_build_shared=no
10061
10062variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10063if test "$GCC" = yes; then
10064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10065fi
10066
10067if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10068 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10069fi
10070if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10071 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10072fi
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
10151
10152
10153
10154
10155
10156
10157
10158
10159
Scott James Remnantfde82c92009-09-22 10:04:15 -070010160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010161$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10162hardcode_action=
10163if test -n "$hardcode_libdir_flag_spec" ||
10164 test -n "$runpath_var" ||
10165 test "X$hardcode_automatic" = "Xyes" ; then
10166
10167 # We can hardcode non-existent directories.
10168 if test "$hardcode_direct" != no &&
10169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10170 # have to relink, otherwise we might link with an installed library
10171 # when we should be linking with a yet-to-be-installed one
10172 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10173 test "$hardcode_minus_L" != no; then
10174 # Linking always hardcodes the temporary library directory.
10175 hardcode_action=relink
10176 else
10177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10178 hardcode_action=immediate
10179 fi
10180else
10181 # We cannot hardcode anything, or else we can only hardcode existing
10182 # directories.
10183 hardcode_action=unsupported
10184fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010186$as_echo "$hardcode_action" >&6; }
10187
10188if test "$hardcode_action" = relink ||
10189 test "$inherit_rpath" = yes; then
10190 # Fast installation is not supported
10191 enable_fast_install=no
10192elif test "$shlibpath_overrides_runpath" = yes ||
10193 test "$enable_shared" = no; then
10194 # Fast installation is not necessary
10195 enable_fast_install=needless
10196fi
10197
10198
10199
10200
10201
10202
10203 if test "x$enable_dlopen" != xyes; then
10204 enable_dlopen=unknown
10205 enable_dlopen_self=unknown
10206 enable_dlopen_self_static=unknown
10207else
10208 lt_cv_dlopen=no
10209 lt_cv_dlopen_libs=
10210
10211 case $host_os in
10212 beos*)
10213 lt_cv_dlopen="load_add_on"
10214 lt_cv_dlopen_libs=
10215 lt_cv_dlopen_self=yes
10216 ;;
10217
10218 mingw* | pw32* | cegcc*)
10219 lt_cv_dlopen="LoadLibrary"
10220 lt_cv_dlopen_libs=
10221 ;;
10222
10223 cygwin*)
10224 lt_cv_dlopen="dlopen"
10225 lt_cv_dlopen_libs=
10226 ;;
10227
10228 darwin*)
10229 # if libdl is installed we need to link against it
Scott James Remnantfde82c92009-09-22 10:04:15 -070010230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010231$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010232if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010233 $as_echo_n "(cached) " >&6
10234else
10235 ac_check_lib_save_LIBS=$LIBS
10236LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010238/* end confdefs.h. */
10239
10240/* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243#ifdef __cplusplus
10244extern "C"
10245#endif
10246char dlopen ();
10247int
10248main ()
10249{
10250return dlopen ();
10251 ;
10252 return 0;
10253}
10254_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010255if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010256 ac_cv_lib_dl_dlopen=yes
10257else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010258 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010259fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010260rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010262LIBS=$ac_check_lib_save_LIBS
10263fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010265$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010266if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10268else
10269
10270 lt_cv_dlopen="dyld"
10271 lt_cv_dlopen_libs=
10272 lt_cv_dlopen_self=yes
10273
10274fi
10275
10276 ;;
10277
10278 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010279 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10280if test "x$ac_cv_func_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010281 lt_cv_dlopen="shl_load"
10282else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010284$as_echo_n "checking for shl_load in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010285if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010286 $as_echo_n "(cached) " >&6
10287else
10288 ac_check_lib_save_LIBS=$LIBS
10289LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010291/* end confdefs.h. */
10292
10293/* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296#ifdef __cplusplus
10297extern "C"
10298#endif
10299char shl_load ();
10300int
10301main ()
10302{
10303return shl_load ();
10304 ;
10305 return 0;
10306}
10307_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010308if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010309 ac_cv_lib_dld_shl_load=yes
10310else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010311 ac_cv_lib_dld_shl_load=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010312fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010313rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010315LIBS=$ac_check_lib_save_LIBS
10316fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010318$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010319if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010320 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10321else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010322 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10323if test "x$ac_cv_func_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010324 lt_cv_dlopen="dlopen"
10325else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010327$as_echo_n "checking for dlopen in -ldl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010328if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010329 $as_echo_n "(cached) " >&6
10330else
10331 ac_check_lib_save_LIBS=$LIBS
10332LIBS="-ldl $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010334/* end confdefs.h. */
10335
10336/* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10339#ifdef __cplusplus
10340extern "C"
10341#endif
10342char dlopen ();
10343int
10344main ()
10345{
10346return dlopen ();
10347 ;
10348 return 0;
10349}
10350_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010351if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010352 ac_cv_lib_dl_dlopen=yes
10353else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010354 ac_cv_lib_dl_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010355fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010356rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010358LIBS=$ac_check_lib_save_LIBS
10359fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010361$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010362if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010363 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10364else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010366$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010367if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010368 $as_echo_n "(cached) " >&6
10369else
10370 ac_check_lib_save_LIBS=$LIBS
10371LIBS="-lsvld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010373/* end confdefs.h. */
10374
10375/* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10378#ifdef __cplusplus
10379extern "C"
10380#endif
10381char dlopen ();
10382int
10383main ()
10384{
10385return dlopen ();
10386 ;
10387 return 0;
10388}
10389_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010390if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010391 ac_cv_lib_svld_dlopen=yes
10392else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010393 ac_cv_lib_svld_dlopen=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010394fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010395rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010397LIBS=$ac_check_lib_save_LIBS
10398fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010400$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010401if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010402 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10403else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010405$as_echo_n "checking for dld_link in -ldld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010406if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010407 $as_echo_n "(cached) " >&6
10408else
10409 ac_check_lib_save_LIBS=$LIBS
10410LIBS="-ldld $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010412/* end confdefs.h. */
10413
10414/* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417#ifdef __cplusplus
10418extern "C"
10419#endif
10420char dld_link ();
10421int
10422main ()
10423{
10424return dld_link ();
10425 ;
10426 return 0;
10427}
10428_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010429if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010430 ac_cv_lib_dld_dld_link=yes
10431else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010432 ac_cv_lib_dld_dld_link=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010010433fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010434rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010010436LIBS=$ac_check_lib_save_LIBS
10437fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010439$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010440if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010441 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10442fi
10443
10444
10445fi
10446
10447
10448fi
10449
10450
10451fi
10452
10453
10454fi
10455
10456
10457fi
10458
10459 ;;
10460 esac
10461
10462 if test "x$lt_cv_dlopen" != xno; then
10463 enable_dlopen=yes
10464 else
10465 enable_dlopen=no
10466 fi
10467
10468 case $lt_cv_dlopen in
10469 dlopen)
10470 save_CPPFLAGS="$CPPFLAGS"
10471 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10472
10473 save_LDFLAGS="$LDFLAGS"
10474 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10475
10476 save_LIBS="$LIBS"
10477 LIBS="$lt_cv_dlopen_libs $LIBS"
10478
Scott James Remnantfde82c92009-09-22 10:04:15 -070010479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010480$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010481if test "${lt_cv_dlopen_self+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010482 $as_echo_n "(cached) " >&6
10483else
10484 if test "$cross_compiling" = yes; then :
10485 lt_cv_dlopen_self=cross
10486else
10487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488 lt_status=$lt_dlunknown
10489 cat > conftest.$ac_ext <<_LT_EOF
Colin Watsond58a9aa2010-01-16 02:55:43 +000010490#line 10490 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010491#include "confdefs.h"
10492
10493#if HAVE_DLFCN_H
10494#include <dlfcn.h>
10495#endif
10496
10497#include <stdio.h>
10498
10499#ifdef RTLD_GLOBAL
10500# define LT_DLGLOBAL RTLD_GLOBAL
10501#else
10502# ifdef DL_GLOBAL
10503# define LT_DLGLOBAL DL_GLOBAL
10504# else
10505# define LT_DLGLOBAL 0
10506# endif
10507#endif
10508
10509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510 find out it does not work in some platform. */
10511#ifndef LT_DLLAZY_OR_NOW
10512# ifdef RTLD_LAZY
10513# define LT_DLLAZY_OR_NOW RTLD_LAZY
10514# else
10515# ifdef DL_LAZY
10516# define LT_DLLAZY_OR_NOW DL_LAZY
10517# else
10518# ifdef RTLD_NOW
10519# define LT_DLLAZY_OR_NOW RTLD_NOW
10520# else
10521# ifdef DL_NOW
10522# define LT_DLLAZY_OR_NOW DL_NOW
10523# else
10524# define LT_DLLAZY_OR_NOW 0
10525# endif
10526# endif
10527# endif
10528# endif
10529#endif
10530
10531void fnord() { int i=42;}
10532int main ()
10533{
10534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10535 int status = $lt_dlunknown;
10536
10537 if (self)
10538 {
10539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10540 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10541 /* dlclose (self); */
10542 }
10543 else
10544 puts (dlerror ());
10545
10546 return status;
10547}
10548_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010550 (eval $ac_link) 2>&5
10551 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10553 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010554 (./conftest; exit; ) >&5 2>/dev/null
10555 lt_status=$?
10556 case x$lt_status in
10557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10560 esac
10561 else :
10562 # compilation failed
10563 lt_cv_dlopen_self=no
10564 fi
10565fi
10566rm -fr conftest*
10567
10568
10569fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010571$as_echo "$lt_cv_dlopen_self" >&6; }
10572
10573 if test "x$lt_cv_dlopen_self" = xyes; then
10574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010575 { $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 +010010576$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010577if test "${lt_cv_dlopen_self_static+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010578 $as_echo_n "(cached) " >&6
10579else
10580 if test "$cross_compiling" = yes; then :
10581 lt_cv_dlopen_self_static=cross
10582else
10583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10584 lt_status=$lt_dlunknown
10585 cat > conftest.$ac_ext <<_LT_EOF
Colin Watsond58a9aa2010-01-16 02:55:43 +000010586#line 10586 "configure"
Scott James Remnant65f683d2009-07-14 13:05:17 +010010587#include "confdefs.h"
10588
10589#if HAVE_DLFCN_H
10590#include <dlfcn.h>
10591#endif
10592
10593#include <stdio.h>
10594
10595#ifdef RTLD_GLOBAL
10596# define LT_DLGLOBAL RTLD_GLOBAL
10597#else
10598# ifdef DL_GLOBAL
10599# define LT_DLGLOBAL DL_GLOBAL
10600# else
10601# define LT_DLGLOBAL 0
10602# endif
10603#endif
10604
10605/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10606 find out it does not work in some platform. */
10607#ifndef LT_DLLAZY_OR_NOW
10608# ifdef RTLD_LAZY
10609# define LT_DLLAZY_OR_NOW RTLD_LAZY
10610# else
10611# ifdef DL_LAZY
10612# define LT_DLLAZY_OR_NOW DL_LAZY
10613# else
10614# ifdef RTLD_NOW
10615# define LT_DLLAZY_OR_NOW RTLD_NOW
10616# else
10617# ifdef DL_NOW
10618# define LT_DLLAZY_OR_NOW DL_NOW
10619# else
10620# define LT_DLLAZY_OR_NOW 0
10621# endif
10622# endif
10623# endif
10624# endif
10625#endif
10626
10627void fnord() { int i=42;}
10628int main ()
10629{
10630 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10631 int status = $lt_dlunknown;
10632
10633 if (self)
10634 {
10635 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10636 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10637 /* dlclose (self); */
10638 }
10639 else
10640 puts (dlerror ());
10641
10642 return status;
10643}
10644_LT_EOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070010645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010646 (eval $ac_link) 2>&5
10647 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070010648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10649 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010010650 (./conftest; exit; ) >&5 2>/dev/null
10651 lt_status=$?
10652 case x$lt_status in
10653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10655 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10656 esac
10657 else :
10658 # compilation failed
10659 lt_cv_dlopen_self_static=no
10660 fi
10661fi
10662rm -fr conftest*
10663
10664
10665fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070010666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010667$as_echo "$lt_cv_dlopen_self_static" >&6; }
10668 fi
10669
10670 CPPFLAGS="$save_CPPFLAGS"
10671 LDFLAGS="$save_LDFLAGS"
10672 LIBS="$save_LIBS"
10673 ;;
10674 esac
10675
10676 case $lt_cv_dlopen_self in
10677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10678 *) enable_dlopen_self=unknown ;;
10679 esac
10680
10681 case $lt_cv_dlopen_self_static in
10682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10683 *) enable_dlopen_self_static=unknown ;;
10684 esac
10685fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703striplib=
10704old_striplib=
Scott James Remnantfde82c92009-09-22 10:04:15 -070010705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010706$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10707if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10709 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
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; }
10712else
10713# FIXME - insert some real tests, host_os isn't really good enough
10714 case $host_os in
10715 darwin*)
10716 if test -n "$STRIP" ; then
10717 striplib="$STRIP -x"
10718 old_striplib="$STRIP -S"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010720$as_echo "yes" >&6; }
10721 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010723$as_echo "no" >&6; }
10724 fi
10725 ;;
10726 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070010727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010728$as_echo "no" >&6; }
10729 ;;
10730 esac
10731fi
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744 # Report which library types will actually be built
Scott James Remnantfde82c92009-09-22 10:04:15 -070010745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010746$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010748$as_echo "$can_build_shared" >&6; }
10749
Scott James Remnantfde82c92009-09-22 10:04:15 -070010750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010751$as_echo_n "checking whether to build shared libraries... " >&6; }
10752 test "$can_build_shared" = "no" && enable_shared=no
10753
10754 # On AIX, shared libraries and static libraries use the same namespace, and
10755 # are all built from PIC.
10756 case $host_os in
10757 aix3*)
10758 test "$enable_shared" = yes && enable_static=no
10759 if test -n "$RANLIB"; then
10760 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10761 postinstall_cmds='$RANLIB $lib'
10762 fi
10763 ;;
10764
10765 aix[4-9]*)
10766 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10767 test "$enable_shared" = yes && enable_static=no
10768 fi
10769 ;;
10770 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070010771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010772$as_echo "$enable_shared" >&6; }
10773
Scott James Remnantfde82c92009-09-22 10:04:15 -070010774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010775$as_echo_n "checking whether to build static libraries... " >&6; }
10776 # Make sure either enable_shared or enable_static is yes.
10777 test "$enable_shared" = yes || enable_static=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070010778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010779$as_echo "$enable_static" >&6; }
10780
10781
10782
10783
10784fi
10785ac_ext=c
10786ac_cpp='$CPP $CPPFLAGS'
10787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10789ac_compiler_gnu=$ac_cv_c_compiler_gnu
10790
10791CC="$lt_save_CC"
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805 ac_config_commands="$ac_config_commands libtool"
10806
10807
10808
10809
10810# Only expand once:
10811
10812
10813
10814
10815
Scott James Remnantfde82c92009-09-22 10:04:15 -070010816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010817$as_echo_n "checking whether NLS is requested... " >&6; }
10818 # Check whether --enable-nls was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010819if test "${enable_nls+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010820 enableval=$enable_nls; USE_NLS=$enableval
10821else
10822 USE_NLS=yes
10823fi
10824
Scott James Remnantfde82c92009-09-22 10:04:15 -070010825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010826$as_echo "$USE_NLS" >&6; }
10827
10828
10829
10830
10831
10832
10833# Prepare PATH_SEPARATOR.
10834# The user is always right.
10835if test "${PATH_SEPARATOR+set}" != set; then
10836 echo "#! /bin/sh" >conf$$.sh
10837 echo "exit 0" >>conf$$.sh
10838 chmod +x conf$$.sh
10839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10840 PATH_SEPARATOR=';'
10841 else
10842 PATH_SEPARATOR=:
10843 fi
10844 rm -f conf$$.sh
10845fi
10846
10847# Find out how to test for executable files. Don't use a zero-byte file,
10848# as systems may use methods other than mode bits to determine executability.
10849cat >conf$$.file <<_ASEOF
10850#! /bin/sh
10851exit 0
10852_ASEOF
10853chmod +x conf$$.file
10854if test -x conf$$.file >/dev/null 2>&1; then
10855 ac_executable_p="test -x"
10856else
10857 ac_executable_p="test -f"
10858fi
10859rm -f conf$$.file
10860
10861# Extract the first word of "msgfmt", so it can be a program name with args.
10862set dummy msgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010864$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010865if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010866 $as_echo_n "(cached) " >&6
10867else
10868 case "$MSGFMT" in
10869 [\\/]* | ?:[\\/]*)
10870 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10871 ;;
10872 *)
10873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10874 for ac_dir in $PATH; do
10875 IFS="$ac_save_IFS"
10876 test -z "$ac_dir" && ac_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10879 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10880 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10881 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10882 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10883 break 2
10884 fi
10885 fi
10886 done
10887 done
10888 IFS="$ac_save_IFS"
10889 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10890 ;;
10891esac
10892fi
10893MSGFMT="$ac_cv_path_MSGFMT"
10894if test "$MSGFMT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010896$as_echo "$MSGFMT" >&6; }
10897else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010899$as_echo "no" >&6; }
10900fi
10901
10902 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10903set dummy gmsgfmt; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010905$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010906if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010907 $as_echo_n "(cached) " >&6
10908else
10909 case $GMSGFMT in
10910 [\\/]* | ?:[\\/]*)
10911 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10912 ;;
10913 *)
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915for as_dir in $PATH
10916do
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070010919 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010010920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10921 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070010922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010923 break 2
10924 fi
10925done
Scott James Remnantfde82c92009-09-22 10:04:15 -070010926 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010010927IFS=$as_save_IFS
10928
10929 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10930 ;;
10931esac
10932fi
10933GMSGFMT=$ac_cv_path_GMSGFMT
10934if test -n "$GMSGFMT"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070010935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010936$as_echo "$GMSGFMT" >&6; }
10937else
Scott James Remnantfde82c92009-09-22 10:04:15 -070010938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010939$as_echo "no" >&6; }
10940fi
10941
10942
10943
10944 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10945 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10946 *) MSGFMT_015=$MSGFMT ;;
10947 esac
10948
10949 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10950 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10951 *) GMSGFMT_015=$GMSGFMT ;;
10952 esac
10953
10954
10955
10956# Prepare PATH_SEPARATOR.
10957# The user is always right.
10958if test "${PATH_SEPARATOR+set}" != set; then
10959 echo "#! /bin/sh" >conf$$.sh
10960 echo "exit 0" >>conf$$.sh
10961 chmod +x conf$$.sh
10962 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10963 PATH_SEPARATOR=';'
10964 else
10965 PATH_SEPARATOR=:
10966 fi
10967 rm -f conf$$.sh
10968fi
10969
10970# Find out how to test for executable files. Don't use a zero-byte file,
10971# as systems may use methods other than mode bits to determine executability.
10972cat >conf$$.file <<_ASEOF
10973#! /bin/sh
10974exit 0
10975_ASEOF
10976chmod +x conf$$.file
10977if test -x conf$$.file >/dev/null 2>&1; then
10978 ac_executable_p="test -x"
10979else
10980 ac_executable_p="test -f"
10981fi
10982rm -f conf$$.file
10983
10984# Extract the first word of "xgettext", so it can be a program name with args.
10985set dummy xgettext; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070010986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010010987$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070010988if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010010989 $as_echo_n "(cached) " >&6
10990else
10991 case "$XGETTEXT" in
10992 [\\/]* | ?:[\\/]*)
10993 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10994 ;;
10995 *)
10996 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10997 for ac_dir in $PATH; do
10998 IFS="$ac_save_IFS"
10999 test -z "$ac_dir" && ac_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11002 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11003 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
11004 (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
11005 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11006 break 2
11007 fi
11008 fi
11009 done
11010 done
11011 IFS="$ac_save_IFS"
11012 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11013 ;;
11014esac
11015fi
11016XGETTEXT="$ac_cv_path_XGETTEXT"
11017if test "$XGETTEXT" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011019$as_echo "$XGETTEXT" >&6; }
11020else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011022$as_echo "no" >&6; }
11023fi
11024
11025 rm -f messages.po
11026
11027 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
11028 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
11029 *) XGETTEXT_015=$XGETTEXT ;;
11030 esac
11031
11032
11033
11034# Prepare PATH_SEPARATOR.
11035# The user is always right.
11036if test "${PATH_SEPARATOR+set}" != set; then
11037 echo "#! /bin/sh" >conf$$.sh
11038 echo "exit 0" >>conf$$.sh
11039 chmod +x conf$$.sh
11040 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11041 PATH_SEPARATOR=';'
11042 else
11043 PATH_SEPARATOR=:
11044 fi
11045 rm -f conf$$.sh
11046fi
11047
11048# Find out how to test for executable files. Don't use a zero-byte file,
11049# as systems may use methods other than mode bits to determine executability.
11050cat >conf$$.file <<_ASEOF
11051#! /bin/sh
11052exit 0
11053_ASEOF
11054chmod +x conf$$.file
11055if test -x conf$$.file >/dev/null 2>&1; then
11056 ac_executable_p="test -x"
11057else
11058 ac_executable_p="test -f"
11059fi
11060rm -f conf$$.file
11061
11062# Extract the first word of "msgmerge", so it can be a program name with args.
11063set dummy msgmerge; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011065$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011066if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011067 $as_echo_n "(cached) " >&6
11068else
11069 case "$MSGMERGE" in
11070 [\\/]* | ?:[\\/]*)
11071 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11072 ;;
11073 *)
11074 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11075 for ac_dir in $PATH; do
11076 IFS="$ac_save_IFS"
11077 test -z "$ac_dir" && ac_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11080 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11081 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
11082 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11083 break 2
11084 fi
11085 fi
11086 done
11087 done
11088 IFS="$ac_save_IFS"
11089 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11090 ;;
11091esac
11092fi
11093MSGMERGE="$ac_cv_path_MSGMERGE"
11094if test "$MSGMERGE" != ":"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011096$as_echo "$MSGMERGE" >&6; }
11097else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011099$as_echo "no" >&6; }
11100fi
11101
11102
11103 test -n "$localedir" || localedir='${datadir}/locale'
11104
11105
11106 ac_config_commands="$ac_config_commands po-directories"
11107
11108
11109
Scott James Remnantfde82c92009-09-22 10:04:15 -070011110 { $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 +010011111$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011112if test "${ac_cv_gnu_library_2+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011113 $as_echo_n "(cached) " >&6
11114else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011116/* end confdefs.h. */
11117
11118#include <features.h>
11119#ifdef __GNU_LIBRARY__
11120 #if (__GLIBC__ >= 2)
11121 Lucky GNU user
11122 #endif
11123#endif
11124
11125_ACEOF
11126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011127 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011128 ac_cv_gnu_library_2=yes
11129else
11130 ac_cv_gnu_library_2=no
11131fi
11132rm -f conftest*
11133
11134
11135
11136fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011138$as_echo "$ac_cv_gnu_library_2" >&6; }
11139
11140 GLIBC2="$ac_cv_gnu_library_2"
11141
11142
11143if test -n "$ac_tool_prefix"; then
11144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11145set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011147$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011148if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011149 $as_echo_n "(cached) " >&6
11150else
11151 if test -n "$RANLIB"; then
11152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11153else
11154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155for as_dir in $PATH
11156do
11157 IFS=$as_save_IFS
11158 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011159 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011163 break 2
11164 fi
11165done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011166 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011167IFS=$as_save_IFS
11168
11169fi
11170fi
11171RANLIB=$ac_cv_prog_RANLIB
11172if test -n "$RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011174$as_echo "$RANLIB" >&6; }
11175else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011177$as_echo "no" >&6; }
11178fi
11179
11180
11181fi
11182if test -z "$ac_cv_prog_RANLIB"; then
11183 ac_ct_RANLIB=$RANLIB
11184 # Extract the first word of "ranlib", so it can be a program name with args.
11185set dummy ranlib; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070011186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011187$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011188if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011189 $as_echo_n "(cached) " >&6
11190else
11191 if test -n "$ac_ct_RANLIB"; then
11192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011199 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010011200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011203 break 2
11204 fi
11205done
Scott James Remnantfde82c92009-09-22 10:04:15 -070011206 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010011207IFS=$as_save_IFS
11208
11209fi
11210fi
11211ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11212if test -n "$ac_ct_RANLIB"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011214$as_echo "$ac_ct_RANLIB" >&6; }
11215else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011217$as_echo "no" >&6; }
11218fi
11219
11220 if test "x$ac_ct_RANLIB" = x; then
11221 RANLIB=":"
11222 else
11223 case $cross_compiling:$ac_tool_warned in
11224yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070011225{ $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 +010011226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11227ac_tool_warned=yes ;;
11228esac
11229 RANLIB=$ac_ct_RANLIB
11230 fi
11231else
11232 RANLIB="$ac_cv_prog_RANLIB"
11233fi
11234
11235
11236
11237 CFLAG_VISIBILITY=
11238 HAVE_VISIBILITY=0
11239 if test -n "$GCC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011241$as_echo_n "checking for simple visibility declarations... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011242 if test "${gl_cv_cc_visibility+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011243 $as_echo_n "(cached) " >&6
11244else
11245
11246 gl_save_CFLAGS="$CFLAGS"
11247 CFLAGS="$CFLAGS -fvisibility=hidden"
Scott James Remnantfde82c92009-09-22 10:04:15 -070011248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011249/* end confdefs.h. */
11250extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11251 extern __attribute__((__visibility__("default"))) int exportedvar;
11252 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11253 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11254int
11255main ()
11256{
11257
11258 ;
11259 return 0;
11260}
11261_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011262if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011263 gl_cv_cc_visibility=yes
11264else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011265 gl_cv_cc_visibility=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011266fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11268 CFLAGS="$gl_save_CFLAGS"
11269fi
11270
Scott James Remnantfde82c92009-09-22 10:04:15 -070011271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011272$as_echo "$gl_cv_cc_visibility" >&6; }
11273 if test $gl_cv_cc_visibility = yes; then
11274 CFLAG_VISIBILITY="-fvisibility=hidden"
11275 HAVE_VISIBILITY=1
11276 fi
11277 fi
11278
11279
11280
11281cat >>confdefs.h <<_ACEOF
11282#define HAVE_VISIBILITY $HAVE_VISIBILITY
11283_ACEOF
11284
11285
Scott James Remnantfde82c92009-09-22 10:04:15 -070011286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011287$as_echo_n "checking for inline... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011288if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011289 $as_echo_n "(cached) " >&6
11290else
11291 ac_cv_c_inline=no
11292for ac_kw in inline __inline__ __inline; do
Scott James Remnantfde82c92009-09-22 10:04:15 -070011293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011294/* end confdefs.h. */
11295#ifndef __cplusplus
11296typedef int foo_t;
11297static $ac_kw foo_t static_foo () {return 0; }
11298$ac_kw foo_t foo () {return 0; }
11299#endif
11300
11301_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011302if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011303 ac_cv_c_inline=$ac_kw
Scott James Remnant65f683d2009-07-14 13:05:17 +010011304fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306 test "$ac_cv_c_inline" != no && break
11307done
11308
11309fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011311$as_echo "$ac_cv_c_inline" >&6; }
11312
Scott James Remnant65f683d2009-07-14 13:05:17 +010011313case $ac_cv_c_inline in
11314 inline | yes) ;;
11315 *)
11316 case $ac_cv_c_inline in
11317 no) ac_val=;;
11318 *) ac_val=$ac_cv_c_inline;;
11319 esac
11320 cat >>confdefs.h <<_ACEOF
11321#ifndef __cplusplus
11322#define inline $ac_val
11323#endif
11324_ACEOF
11325 ;;
11326esac
11327
Scott James Remnantfde82c92009-09-22 10:04:15 -070011328ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11329if test "x$ac_cv_type_size_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011330
Scott James Remnant65f683d2009-07-14 13:05:17 +010011331else
11332
11333cat >>confdefs.h <<_ACEOF
11334#define size_t unsigned int
11335_ACEOF
11336
11337fi
11338
11339
Scott James Remnantfde82c92009-09-22 10:04:15 -070011340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011341$as_echo_n "checking for stdint.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011342if test "${gl_cv_header_stdint_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011343 $as_echo_n "(cached) " >&6
11344else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011346/* end confdefs.h. */
11347#include <sys/types.h>
11348#include <stdint.h>
11349int
11350main ()
11351{
11352uintmax_t i = (uintmax_t) -1; return !i;
11353 ;
11354 return 0;
11355}
11356_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011357if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011358 gl_cv_header_stdint_h=yes
11359else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011360 gl_cv_header_stdint_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011361fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011365$as_echo "$gl_cv_header_stdint_h" >&6; }
11366 if test $gl_cv_header_stdint_h = yes; then
11367
11368cat >>confdefs.h <<_ACEOF
11369#define HAVE_STDINT_H_WITH_UINTMAX 1
11370_ACEOF
11371
11372 fi
11373
11374# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11375# for constant arguments. Useless!
Scott James Remnantfde82c92009-09-22 10:04:15 -070011376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011377$as_echo_n "checking for working alloca.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011378if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011379 $as_echo_n "(cached) " >&6
11380else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011382/* end confdefs.h. */
11383#include <alloca.h>
11384int
11385main ()
11386{
11387char *p = (char *) alloca (2 * sizeof (int));
11388 if (p) return 0;
11389 ;
11390 return 0;
11391}
11392_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011393if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011394 ac_cv_working_alloca_h=yes
11395else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011396 ac_cv_working_alloca_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011397fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011398rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011400fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011402$as_echo "$ac_cv_working_alloca_h" >&6; }
11403if test $ac_cv_working_alloca_h = yes; then
11404
Scott James Remnantfde82c92009-09-22 10:04:15 -070011405$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011406
11407fi
11408
Scott James Remnantfde82c92009-09-22 10:04:15 -070011409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011410$as_echo_n "checking for alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011411if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011412 $as_echo_n "(cached) " >&6
11413else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011415/* end confdefs.h. */
11416#ifdef __GNUC__
11417# define alloca __builtin_alloca
11418#else
11419# ifdef _MSC_VER
11420# include <malloc.h>
11421# define alloca _alloca
11422# else
11423# ifdef HAVE_ALLOCA_H
11424# include <alloca.h>
11425# else
11426# ifdef _AIX
11427 #pragma alloca
11428# else
11429# ifndef alloca /* predefined by HP cc +Olibcalls */
11430char *alloca ();
11431# endif
11432# endif
11433# endif
11434# endif
11435#endif
11436
11437int
11438main ()
11439{
11440char *p = (char *) alloca (1);
11441 if (p) return 0;
11442 ;
11443 return 0;
11444}
11445_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011446if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011447 ac_cv_func_alloca_works=yes
11448else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011449 ac_cv_func_alloca_works=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011450fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011451rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011453fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011455$as_echo "$ac_cv_func_alloca_works" >&6; }
11456
11457if test $ac_cv_func_alloca_works = yes; then
11458
Scott James Remnantfde82c92009-09-22 10:04:15 -070011459$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011460
11461else
11462 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11463# that cause trouble. Some versions do not even contain alloca or
11464# contain a buggy version. If you still want to use their alloca,
11465# use ar to extract alloca.o from them instead of compiling alloca.c.
11466
11467ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11468
Scott James Remnantfde82c92009-09-22 10:04:15 -070011469$as_echo "#define C_ALLOCA 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011470
11471
Scott James Remnantfde82c92009-09-22 10:04:15 -070011472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011473$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011474if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011475 $as_echo_n "(cached) " >&6
11476else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011478/* end confdefs.h. */
11479#if defined CRAY && ! defined CRAY2
11480webecray
11481#else
11482wenotbecray
11483#endif
11484
11485_ACEOF
11486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070011487 $EGREP "webecray" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011488 ac_cv_os_cray=yes
11489else
11490 ac_cv_os_cray=no
11491fi
11492rm -f conftest*
11493
11494fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011496$as_echo "$ac_cv_os_cray" >&6; }
11497if test $ac_cv_os_cray = yes; then
11498 for ac_func in _getb67 GETB67 getb67; do
11499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Scott James Remnantfde82c92009-09-22 10:04:15 -070011500ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11501eval as_val=\$$as_ac_var
11502 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011503
11504cat >>confdefs.h <<_ACEOF
11505#define CRAY_STACKSEG_END $ac_func
11506_ACEOF
11507
11508 break
11509fi
11510
11511 done
11512fi
11513
Scott James Remnantfde82c92009-09-22 10:04:15 -070011514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011515$as_echo_n "checking stack direction for C alloca... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011516if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011517 $as_echo_n "(cached) " >&6
11518else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011519 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011520 ac_cv_c_stack_direction=0
11521else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011523/* end confdefs.h. */
11524$ac_includes_default
11525int
11526find_stack_direction ()
11527{
11528 static char *addr = 0;
11529 auto char dummy;
11530 if (addr == 0)
11531 {
11532 addr = &dummy;
11533 return find_stack_direction ();
11534 }
11535 else
11536 return (&dummy > addr) ? 1 : -1;
11537}
11538
11539int
11540main ()
11541{
11542 return find_stack_direction () < 0;
11543}
11544_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011545if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011546 ac_cv_c_stack_direction=1
11547else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011548 ac_cv_c_stack_direction=-1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011549fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11551 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011552fi
11553
Scott James Remnant65f683d2009-07-14 13:05:17 +010011554fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011556$as_echo "$ac_cv_c_stack_direction" >&6; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010011557cat >>confdefs.h <<_ACEOF
11558#define STACK_DIRECTION $ac_cv_c_stack_direction
11559_ACEOF
11560
11561
11562fi
11563
Scott James Remnant65f683d2009-07-14 13:05:17 +010011564for ac_header in stdlib.h unistd.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070011565do :
11566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11567ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11568eval as_val=\$$as_ac_Header
11569 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011570 cat >>confdefs.h <<_ACEOF
11571#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11572_ACEOF
11573
11574fi
11575
11576done
11577
Scott James Remnant65f683d2009-07-14 13:05:17 +010011578for ac_func in getpagesize
Scott James Remnantfde82c92009-09-22 10:04:15 -070011579do :
11580 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11581if test "x$ac_cv_func_getpagesize" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011582 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011583#define HAVE_GETPAGESIZE 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011584_ACEOF
11585
11586fi
11587done
11588
Scott James Remnantfde82c92009-09-22 10:04:15 -070011589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011590$as_echo_n "checking for working mmap... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011591if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011592 $as_echo_n "(cached) " >&6
11593else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011594 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011595 ac_cv_func_mmap_fixed_mapped=no
11596else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011598/* end confdefs.h. */
11599$ac_includes_default
11600/* malloc might have been renamed as rpl_malloc. */
11601#undef malloc
11602
11603/* Thanks to Mike Haertel and Jim Avera for this test.
11604 Here is a matrix of mmap possibilities:
11605 mmap private not fixed
11606 mmap private fixed at somewhere currently unmapped
11607 mmap private fixed at somewhere already mapped
11608 mmap shared not fixed
11609 mmap shared fixed at somewhere currently unmapped
11610 mmap shared fixed at somewhere already mapped
11611 For private mappings, we should verify that changes cannot be read()
11612 back from the file, nor mmap's back from the file at a different
11613 address. (There have been systems where private was not correctly
11614 implemented like the infamous i386 svr4.0, and systems where the
11615 VM page cache was not coherent with the file system buffer cache
11616 like early versions of FreeBSD and possibly contemporary NetBSD.)
11617 For shared mappings, we should conversely verify that changes get
11618 propagated back to all the places they're supposed to be.
11619
11620 Grep wants private fixed already mapped.
11621 The main things grep needs to know about mmap are:
11622 * does it exist and is it safe to write into the mmap'd area
11623 * how to use it (BSD variants) */
11624
11625#include <fcntl.h>
11626#include <sys/mman.h>
11627
11628#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11629char *malloc ();
11630#endif
11631
11632/* This mess was copied from the GNU getpagesize.h. */
11633#ifndef HAVE_GETPAGESIZE
11634/* Assume that all systems that can run configure have sys/param.h. */
11635# ifndef HAVE_SYS_PARAM_H
11636# define HAVE_SYS_PARAM_H 1
11637# endif
11638
11639# ifdef _SC_PAGESIZE
11640# define getpagesize() sysconf(_SC_PAGESIZE)
11641# else /* no _SC_PAGESIZE */
11642# ifdef HAVE_SYS_PARAM_H
11643# include <sys/param.h>
11644# ifdef EXEC_PAGESIZE
11645# define getpagesize() EXEC_PAGESIZE
11646# else /* no EXEC_PAGESIZE */
11647# ifdef NBPG
11648# define getpagesize() NBPG * CLSIZE
11649# ifndef CLSIZE
11650# define CLSIZE 1
11651# endif /* no CLSIZE */
11652# else /* no NBPG */
11653# ifdef NBPC
11654# define getpagesize() NBPC
11655# else /* no NBPC */
11656# ifdef PAGESIZE
11657# define getpagesize() PAGESIZE
11658# endif /* PAGESIZE */
11659# endif /* no NBPC */
11660# endif /* no NBPG */
11661# endif /* no EXEC_PAGESIZE */
11662# else /* no HAVE_SYS_PARAM_H */
11663# define getpagesize() 8192 /* punt totally */
11664# endif /* no HAVE_SYS_PARAM_H */
11665# endif /* no _SC_PAGESIZE */
11666
11667#endif /* no HAVE_GETPAGESIZE */
11668
11669int
11670main ()
11671{
11672 char *data, *data2, *data3;
11673 int i, pagesize;
11674 int fd;
11675
11676 pagesize = getpagesize ();
11677
11678 /* First, make a file with some known garbage in it. */
11679 data = (char *) malloc (pagesize);
11680 if (!data)
11681 return 1;
11682 for (i = 0; i < pagesize; ++i)
11683 *(data + i) = rand ();
11684 umask (0);
11685 fd = creat ("conftest.mmap", 0600);
11686 if (fd < 0)
11687 return 1;
11688 if (write (fd, data, pagesize) != pagesize)
11689 return 1;
11690 close (fd);
11691
11692 /* Next, try to mmap the file at a fixed address which already has
11693 something else allocated at it. If we can, also make sure that
11694 we see the same garbage. */
11695 fd = open ("conftest.mmap", O_RDWR);
11696 if (fd < 0)
11697 return 1;
11698 data2 = (char *) malloc (2 * pagesize);
11699 if (!data2)
11700 return 1;
11701 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11702 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11703 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11704 return 1;
11705 for (i = 0; i < pagesize; ++i)
11706 if (*(data + i) != *(data2 + i))
11707 return 1;
11708
11709 /* Finally, make sure that changes to the mapped area do not
11710 percolate back to the file as seen by read(). (This is a bug on
11711 some variants of i386 svr4.0.) */
11712 for (i = 0; i < pagesize; ++i)
11713 *(data2 + i) = *(data2 + i) + 1;
11714 data3 = (char *) malloc (pagesize);
11715 if (!data3)
11716 return 1;
11717 if (read (fd, data3, pagesize) != pagesize)
11718 return 1;
11719 for (i = 0; i < pagesize; ++i)
11720 if (*(data + i) != *(data3 + i))
11721 return 1;
11722 close (fd);
11723 return 0;
11724}
11725_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011726if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011727 ac_cv_func_mmap_fixed_mapped=yes
11728else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011729 ac_cv_func_mmap_fixed_mapped=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011730fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11732 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011733fi
11734
Scott James Remnant65f683d2009-07-14 13:05:17 +010011735fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011737$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11738if test $ac_cv_func_mmap_fixed_mapped = yes; then
11739
Scott James Remnantfde82c92009-09-22 10:04:15 -070011740$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011741
11742fi
11743rm -f conftest.mmap
11744
11745
11746
Scott James Remnantfde82c92009-09-22 10:04:15 -070011747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011748$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011749if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011750 $as_echo_n "(cached) " >&6
11751else
11752
Scott James Remnantfde82c92009-09-22 10:04:15 -070011753 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011754
11755 # Guess based on the CPU.
11756 case "$host_cpu" in
11757 alpha* | i3456786 | m68k | s390*)
11758 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11759 *)
11760 gt_cv_int_divbyzero_sigfpe="guessing no";;
11761 esac
11762
11763else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011765/* end confdefs.h. */
11766
11767#include <stdlib.h>
11768#include <signal.h>
11769
11770static void
11771#ifdef __cplusplus
11772sigfpe_handler (int sig)
11773#else
11774sigfpe_handler (sig) int sig;
11775#endif
11776{
11777 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11778 exit (sig != SIGFPE);
11779}
11780
11781int x = 1;
11782int y = 0;
11783int z;
11784int nan;
11785
11786int main ()
11787{
11788 signal (SIGFPE, sigfpe_handler);
11789/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11790#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11791 signal (SIGTRAP, sigfpe_handler);
11792#endif
11793/* Linux/SPARC yields signal SIGILL. */
11794#if defined (__sparc__) && defined (__linux__)
11795 signal (SIGILL, sigfpe_handler);
11796#endif
11797
11798 z = x / y;
11799 nan = y / y;
11800 exit (1);
11801}
11802
11803_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011804if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011805 gt_cv_int_divbyzero_sigfpe=yes
11806else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011807 gt_cv_int_divbyzero_sigfpe=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011808fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011809rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11810 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011811fi
11812
11813
Scott James Remnant65f683d2009-07-14 13:05:17 +010011814fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011816$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11817 case "$gt_cv_int_divbyzero_sigfpe" in
11818 *yes) value=1;;
11819 *) value=0;;
11820 esac
11821
11822cat >>confdefs.h <<_ACEOF
11823#define INTDIV0_RAISES_SIGFPE $value
11824_ACEOF
11825
11826
11827
Scott James Remnantfde82c92009-09-22 10:04:15 -070011828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011829$as_echo_n "checking for inttypes.h... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011830if test "${gl_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011831 $as_echo_n "(cached) " >&6
11832else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011834/* end confdefs.h. */
11835#include <sys/types.h>
11836#include <inttypes.h>
11837int
11838main ()
11839{
11840uintmax_t i = (uintmax_t) -1; return !i;
11841 ;
11842 return 0;
11843}
11844_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011845if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011846 gl_cv_header_inttypes_h=yes
11847else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011848 gl_cv_header_inttypes_h=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011849fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11851fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011853$as_echo "$gl_cv_header_inttypes_h" >&6; }
11854 if test $gl_cv_header_inttypes_h = yes; then
11855
11856cat >>confdefs.h <<_ACEOF
11857#define HAVE_INTTYPES_H_WITH_UINTMAX 1
11858_ACEOF
11859
11860 fi
11861
11862
Scott James Remnantfde82c92009-09-22 10:04:15 -070011863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011864$as_echo_n "checking for unsigned long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011865if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011866 $as_echo_n "(cached) " >&6
11867else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011869/* end confdefs.h. */
11870unsigned long long int ull = 18446744073709551615ULL;
11871 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
11872 ? 1 : -1)];
11873 int i = 63;
11874int
11875main ()
11876{
11877unsigned long long int ullmax = 18446744073709551615ull;
11878 return (ull << 63 | ull >> 63 | ull << i | ull >> i
11879 | ullmax / ull | ullmax % ull);
11880 ;
11881 return 0;
11882}
11883_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011884if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011885 ac_cv_type_unsigned_long_long_int=yes
11886else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011887 ac_cv_type_unsigned_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010011888fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011889rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011891fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011893$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11894 if test $ac_cv_type_unsigned_long_long_int = yes; then
11895
Scott James Remnantfde82c92009-09-22 10:04:15 -070011896$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011897
11898 fi
11899
11900
11901
11902 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
11903 if test $ac_cv_type_unsigned_long_long = yes; then
11904
Scott James Remnantfde82c92009-09-22 10:04:15 -070011905$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011906
11907 fi
11908
11909
11910
11911
11912 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
11913
11914 test $ac_cv_type_unsigned_long_long = yes \
11915 && ac_type='unsigned long long' \
11916 || ac_type='unsigned long'
11917
11918cat >>confdefs.h <<_ACEOF
11919#define uintmax_t $ac_type
11920_ACEOF
11921
11922 else
11923
Scott James Remnantfde82c92009-09-22 10:04:15 -070011924$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010011925
11926 fi
11927
11928
Scott James Remnantfde82c92009-09-22 10:04:15 -070011929 for ac_header in inttypes.h
11930do :
11931 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11932if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011933 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011934#define HAVE_INTTYPES_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010011935_ACEOF
11936
11937fi
11938
11939done
11940
11941 if test $ac_cv_header_inttypes_h = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070011942 { $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 +010011943$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070011944if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011945 $as_echo_n "(cached) " >&6
11946else
11947
Scott James Remnantfde82c92009-09-22 10:04:15 -070011948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010011949/* end confdefs.h. */
11950#include <inttypes.h>
11951#ifdef PRId32
11952char *p = PRId32;
11953#endif
11954
11955int
11956main ()
11957{
11958
11959 ;
11960 return 0;
11961}
11962_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070011963if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011964 gt_cv_inttypes_pri_broken=no
11965else
Scott James Remnantfde82c92009-09-22 10:04:15 -070011966 gt_cv_inttypes_pri_broken=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010011967fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010011968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969
11970fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070011971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010011972$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11973 fi
11974 if test "$gt_cv_inttypes_pri_broken" = yes; then
11975
11976cat >>confdefs.h <<_ACEOF
11977#define PRI_MACROS_BROKEN 1
11978_ACEOF
11979
11980 PRI_MACROS_BROKEN=1
11981 else
11982 PRI_MACROS_BROKEN=0
11983 fi
11984
11985
11986
11987
11988
11989 # Check whether --enable-threads was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070011990if test "${enable_threads+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010011991 enableval=$enable_threads; gl_use_threads=$enableval
11992else
11993 case "$host_os" in
11994 osf*) gl_use_threads=no ;;
11995 *) gl_use_threads=yes ;;
11996 esac
11997
11998fi
11999
12000 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12001 # For using <pthread.h>:
12002 case "$host_os" in
12003 osf*)
12004 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
12005 # groks <pthread.h>. cc also understands the flag -pthread, but
12006 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
12007 # 2. putting a flag into CPPFLAGS that has an effect on the linker
12008 # causes the AC_TRY_LINK test below to succeed unexpectedly,
12009 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
12010 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
12011 ;;
12012 esac
12013 # Some systems optimize for single-threaded programs by default, and
12014 # need special flags to disable these optimizations. For example, the
12015 # definition of 'errno' in <errno.h>.
12016 case "$host_os" in
12017 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
12018 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
12019 esac
12020 fi
12021
12022
12023
12024
12025
12026 if test "X$prefix" = "XNONE"; then
12027 acl_final_prefix="$ac_default_prefix"
12028 else
12029 acl_final_prefix="$prefix"
12030 fi
12031 if test "X$exec_prefix" = "XNONE"; then
12032 acl_final_exec_prefix='${prefix}'
12033 else
12034 acl_final_exec_prefix="$exec_prefix"
12035 fi
12036 acl_save_prefix="$prefix"
12037 prefix="$acl_final_prefix"
12038 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12039 prefix="$acl_save_prefix"
12040
12041
12042# Check whether --with-gnu-ld was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012043if test "${with_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012044 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12045else
12046 with_gnu_ld=no
12047fi
12048
12049# Prepare PATH_SEPARATOR.
12050# The user is always right.
12051if test "${PATH_SEPARATOR+set}" != set; then
12052 echo "#! /bin/sh" >conf$$.sh
12053 echo "exit 0" >>conf$$.sh
12054 chmod +x conf$$.sh
12055 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12056 PATH_SEPARATOR=';'
12057 else
12058 PATH_SEPARATOR=:
12059 fi
12060 rm -f conf$$.sh
12061fi
12062ac_prog=ld
12063if test "$GCC" = yes; then
12064 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012066$as_echo_n "checking for ld used by GCC... " >&6; }
12067 case $host in
12068 *-*-mingw*)
12069 # gcc leaves a trailing carriage return which upsets mingw
12070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12071 *)
12072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12073 esac
12074 case $ac_prog in
12075 # Accept absolute paths.
12076 [\\/]* | [A-Za-z]:[\\/]*)
12077 re_direlt='/[^/][^/]*/\.\./'
12078 # Canonicalize the path of ld
12079 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12080 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12081 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12082 done
12083 test -z "$LD" && LD="$ac_prog"
12084 ;;
12085 "")
12086 # If it fails, then pretend we aren't using GCC.
12087 ac_prog=ld
12088 ;;
12089 *)
12090 # If it is relative, then search for the first ld in PATH.
12091 with_gnu_ld=unknown
12092 ;;
12093 esac
12094elif test "$with_gnu_ld" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012096$as_echo_n "checking for GNU ld... " >&6; }
12097else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012099$as_echo_n "checking for non-GNU ld... " >&6; }
12100fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012101if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012102 $as_echo_n "(cached) " >&6
12103else
12104 if test -z "$LD"; then
12105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12106 for ac_dir in $PATH; do
12107 test -z "$ac_dir" && ac_dir=.
12108 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12109 acl_cv_path_LD="$ac_dir/$ac_prog"
12110 # Check to see if the program is GNU ld. I'd rather use --version,
12111 # but apparently some GNU ld's only accept -v.
12112 # Break only if it was the GNU/non-GNU ld that we prefer.
12113 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12114 *GNU* | *'with BFD'*)
12115 test "$with_gnu_ld" != no && break ;;
12116 *)
12117 test "$with_gnu_ld" != yes && break ;;
12118 esac
12119 fi
12120 done
12121 IFS="$ac_save_ifs"
12122else
12123 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12124fi
12125fi
12126
12127LD="$acl_cv_path_LD"
12128if test -n "$LD"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012130$as_echo "$LD" >&6; }
12131else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012133$as_echo "no" >&6; }
12134fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012135test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012137$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012138if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012139 $as_echo_n "(cached) " >&6
12140else
12141 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12142case `$LD -v 2>&1 </dev/null` in
12143*GNU* | *'with BFD'*)
12144 acl_cv_prog_gnu_ld=yes ;;
12145*)
12146 acl_cv_prog_gnu_ld=no ;;
12147esac
12148fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012150$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12151with_gnu_ld=$acl_cv_prog_gnu_ld
12152
12153
12154
12155
Scott James Remnantfde82c92009-09-22 10:04:15 -070012156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012157$as_echo_n "checking for shared library run path origin... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012158if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012159 $as_echo_n "(cached) " >&6
12160else
12161
12162 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12163 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12164 . ./conftest.sh
12165 rm -f ./conftest.sh
12166 acl_cv_rpath=done
12167
12168fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012170$as_echo "$acl_cv_rpath" >&6; }
12171 wl="$acl_cv_wl"
12172 libext="$acl_cv_libext"
12173 shlibext="$acl_cv_shlibext"
12174 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12175 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12176 hardcode_direct="$acl_cv_hardcode_direct"
12177 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12178 # Check whether --enable-rpath was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012179if test "${enable_rpath+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012180 enableval=$enable_rpath; :
12181else
12182 enable_rpath=yes
12183fi
12184
12185
12186
12187 acl_libdirstem=lib
12188 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12189 if test -n "$searchpath"; then
12190 acl_save_IFS="${IFS= }"; IFS=":"
12191 for searchdir in $searchpath; do
12192 if test -d "$searchdir"; then
12193 case "$searchdir" in
12194 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12195 *) searchdir=`cd "$searchdir" && pwd`
12196 case "$searchdir" in
12197 */lib64 ) acl_libdirstem=lib64 ;;
12198 esac ;;
12199 esac
12200 fi
12201 done
12202 IFS="$acl_save_IFS"
12203 fi
12204
12205
12206
12207 gl_threads_api=none
12208 LIBTHREAD=
12209 LTLIBTHREAD=
12210 LIBMULTITHREAD=
12211 LTLIBMULTITHREAD=
12212 if test "$gl_use_threads" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070012213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012214$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
12215 gl_have_weak=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070012216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012217/* end confdefs.h. */
12218extern void xyzzy ();
12219#pragma weak xyzzy
12220int
12221main ()
12222{
12223xyzzy();
12224 ;
12225 return 0;
12226}
12227_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012228if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012229 gl_have_weak=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012230fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012231rm -f core conftest.err conftest.$ac_objext \
12232 conftest$ac_exeext conftest.$ac_ext
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012234$as_echo "$gl_have_weak" >&6; }
12235 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
12236 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
12237 # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012238 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12239if test "x$ac_cv_header_pthread_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012240 gl_have_pthread_h=yes
12241else
12242 gl_have_pthread_h=no
12243fi
12244
12245
12246 if test "$gl_have_pthread_h" = yes; then
12247 # Other possible tests:
12248 # -lpthreads (FSU threads, PCthreads)
12249 # -lgthreads
12250 gl_have_pthread=
12251 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
12252 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
12253 # the second one only in libpthread, and lock.c needs it.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012255/* end confdefs.h. */
12256#include <pthread.h>
12257int
12258main ()
12259{
12260pthread_mutex_lock((pthread_mutex_t*)0);
12261 pthread_mutexattr_init((pthread_mutexattr_t*)0);
12262 ;
12263 return 0;
12264}
12265_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012266if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012267 gl_have_pthread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012268fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012269rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012271 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
12272 # since it is defined as a macro on OSF/1.)
12273 if test -n "$gl_have_pthread"; then
12274 # The program links fine without libpthread. But it may actually
12275 # need to link with libpthread in order to create multiple threads.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012277$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012278if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012279 $as_echo_n "(cached) " >&6
12280else
12281 ac_check_lib_save_LIBS=$LIBS
12282LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012284/* end confdefs.h. */
12285
12286/* Override any GCC internal prototype to avoid an error.
12287 Use char because int might match the return type of a GCC
12288 builtin and then its argument prototype would still apply. */
12289#ifdef __cplusplus
12290extern "C"
12291#endif
12292char pthread_kill ();
12293int
12294main ()
12295{
12296return pthread_kill ();
12297 ;
12298 return 0;
12299}
12300_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012301if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012302 ac_cv_lib_pthread_pthread_kill=yes
12303else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012304 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012305fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012306rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012308LIBS=$ac_check_lib_save_LIBS
12309fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012311$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012312if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012313 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12314 # On Solaris and HP-UX, most pthread functions exist also in libc.
12315 # Therefore pthread_in_use() needs to actually try to create a
12316 # thread: pthread_create from libc will fail, whereas
12317 # pthread_create will actually create a thread.
12318 case "$host_os" in
12319 solaris* | hpux*)
12320
Scott James Remnantfde82c92009-09-22 10:04:15 -070012321$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012322
12323 esac
12324
12325fi
12326
12327 else
12328 # Some library is needed. Try libpthread and libc_r.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012330$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012331if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012332 $as_echo_n "(cached) " >&6
12333else
12334 ac_check_lib_save_LIBS=$LIBS
12335LIBS="-lpthread $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012337/* end confdefs.h. */
12338
12339/* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12342#ifdef __cplusplus
12343extern "C"
12344#endif
12345char pthread_kill ();
12346int
12347main ()
12348{
12349return pthread_kill ();
12350 ;
12351 return 0;
12352}
12353_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012354if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012355 ac_cv_lib_pthread_pthread_kill=yes
12356else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012357 ac_cv_lib_pthread_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012358fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012359rm -f core conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012361LIBS=$ac_check_lib_save_LIBS
12362fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012364$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012365if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012366 gl_have_pthread=yes
12367 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
12368 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
12369fi
12370
12371 if test -z "$gl_have_pthread"; then
12372 # For FreeBSD 4.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012374$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012375if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012376 $as_echo_n "(cached) " >&6
12377else
12378 ac_check_lib_save_LIBS=$LIBS
12379LIBS="-lc_r $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012381/* end confdefs.h. */
12382
12383/* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386#ifdef __cplusplus
12387extern "C"
12388#endif
12389char pthread_kill ();
12390int
12391main ()
12392{
12393return pthread_kill ();
12394 ;
12395 return 0;
12396}
12397_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012398if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012399 ac_cv_lib_c_r_pthread_kill=yes
12400else
Scott James Remnantfde82c92009-09-22 10:04:15 -070012401 ac_cv_lib_c_r_pthread_kill=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010012402fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012403rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012405LIBS=$ac_check_lib_save_LIBS
12406fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012408$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012409if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012410 gl_have_pthread=yes
12411 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
12412 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
12413fi
12414
12415 fi
12416 fi
12417 if test -n "$gl_have_pthread"; then
12418 gl_threads_api=posix
12419
Scott James Remnantfde82c92009-09-22 10:04:15 -070012420$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012421
12422 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12423 if test $gl_have_weak = yes; then
12424
Scott James Remnantfde82c92009-09-22 10:04:15 -070012425$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012426
12427 LIBTHREAD=
12428 LTLIBTHREAD=
12429 fi
12430 fi
12431 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
12432 # pthread_rwlock_* functions.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012433 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
12434"
12435if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012436
Scott James Remnantfde82c92009-09-22 10:04:15 -070012437$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012438
12439fi
12440
12441 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012443/* end confdefs.h. */
12444#include <pthread.h>
12445int
12446main ()
12447{
12448#if __FreeBSD__ == 4
12449error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
12450#else
12451int x = (int)PTHREAD_MUTEX_RECURSIVE;
12452return !x;
12453#endif
12454 ;
12455 return 0;
12456}
12457_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012458if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012459
Scott James Remnantfde82c92009-09-22 10:04:15 -070012460$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012461
12462fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010012463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 fi
12465 fi
12466 fi
12467 if test -z "$gl_have_pthread"; then
12468 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
12469 gl_have_solaristhread=
12470 gl_save_LIBS="$LIBS"
12471 LIBS="$LIBS -lthread"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012473/* end confdefs.h. */
12474#include <thread.h>
12475#include <synch.h>
12476int
12477main ()
12478{
12479thr_self();
12480 ;
12481 return 0;
12482}
12483_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012484if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012485 gl_have_solaristhread=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012486fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012487rm -f core conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012489 LIBS="$gl_save_LIBS"
12490 if test -n "$gl_have_solaristhread"; then
12491 gl_threads_api=solaris
12492 LIBTHREAD=-lthread
12493 LTLIBTHREAD=-lthread
12494 LIBMULTITHREAD="$LIBTHREAD"
12495 LTLIBMULTITHREAD="$LTLIBTHREAD"
12496
Scott James Remnantfde82c92009-09-22 10:04:15 -070012497$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012498
12499 if test $gl_have_weak = yes; then
12500
Scott James Remnantfde82c92009-09-22 10:04:15 -070012501$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012502
12503 LIBTHREAD=
12504 LTLIBTHREAD=
12505 fi
12506 fi
12507 fi
12508 fi
12509 if test "$gl_use_threads" = pth; then
12510 gl_save_CPPFLAGS="$CPPFLAGS"
12511
12512
12513
12514
12515
Scott James Remnantfde82c92009-09-22 10:04:15 -070012516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012517$as_echo_n "checking how to link with libpth... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070012518if test "${ac_cv_libpth_libs+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012519 $as_echo_n "(cached) " >&6
12520else
12521
12522
12523
12524
12525 use_additional=yes
12526
12527 acl_save_prefix="$prefix"
12528 prefix="$acl_final_prefix"
12529 acl_save_exec_prefix="$exec_prefix"
12530 exec_prefix="$acl_final_exec_prefix"
12531
12532 eval additional_includedir=\"$includedir\"
12533 eval additional_libdir=\"$libdir\"
12534
12535 exec_prefix="$acl_save_exec_prefix"
12536 prefix="$acl_save_prefix"
12537
12538
12539# Check whether --with-libpth-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070012540if test "${with_libpth_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012541 withval=$with_libpth_prefix;
12542 if test "X$withval" = "Xno"; then
12543 use_additional=no
12544 else
12545 if test "X$withval" = "X"; then
12546
12547 acl_save_prefix="$prefix"
12548 prefix="$acl_final_prefix"
12549 acl_save_exec_prefix="$exec_prefix"
12550 exec_prefix="$acl_final_exec_prefix"
12551
12552 eval additional_includedir=\"$includedir\"
12553 eval additional_libdir=\"$libdir\"
12554
12555 exec_prefix="$acl_save_exec_prefix"
12556 prefix="$acl_save_prefix"
12557
12558 else
12559 additional_includedir="$withval/include"
12560 additional_libdir="$withval/$acl_libdirstem"
12561 fi
12562 fi
12563
12564fi
12565
12566 LIBPTH=
12567 LTLIBPTH=
12568 INCPTH=
12569 rpathdirs=
12570 ltrpathdirs=
12571 names_already_handled=
12572 names_next_round='pth '
12573 while test -n "$names_next_round"; do
12574 names_this_round="$names_next_round"
12575 names_next_round=
12576 for name in $names_this_round; do
12577 already_handled=
12578 for n in $names_already_handled; do
12579 if test "$n" = "$name"; then
12580 already_handled=yes
12581 break
12582 fi
12583 done
12584 if test -z "$already_handled"; then
12585 names_already_handled="$names_already_handled $name"
12586 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12587 eval value=\"\$HAVE_LIB$uppername\"
12588 if test -n "$value"; then
12589 if test "$value" = yes; then
12590 eval value=\"\$LIB$uppername\"
12591 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
12592 eval value=\"\$LTLIB$uppername\"
12593 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
12594 else
12595 :
12596 fi
12597 else
12598 found_dir=
12599 found_la=
12600 found_so=
12601 found_a=
12602 if test $use_additional = yes; then
12603 if test -n "$shlibext" \
12604 && { test -f "$additional_libdir/lib$name.$shlibext" \
12605 || { test "$shlibext" = dll \
12606 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
12607 found_dir="$additional_libdir"
12608 if test -f "$additional_libdir/lib$name.$shlibext"; then
12609 found_so="$additional_libdir/lib$name.$shlibext"
12610 else
12611 found_so="$additional_libdir/lib$name.dll.a"
12612 fi
12613 if test -f "$additional_libdir/lib$name.la"; then
12614 found_la="$additional_libdir/lib$name.la"
12615 fi
12616 else
12617 if test -f "$additional_libdir/lib$name.$libext"; then
12618 found_dir="$additional_libdir"
12619 found_a="$additional_libdir/lib$name.$libext"
12620 if test -f "$additional_libdir/lib$name.la"; then
12621 found_la="$additional_libdir/lib$name.la"
12622 fi
12623 fi
12624 fi
12625 fi
12626 if test "X$found_dir" = "X"; then
12627 for x in $LDFLAGS $LTLIBPTH; do
12628
12629 acl_save_prefix="$prefix"
12630 prefix="$acl_final_prefix"
12631 acl_save_exec_prefix="$exec_prefix"
12632 exec_prefix="$acl_final_exec_prefix"
12633 eval x=\"$x\"
12634 exec_prefix="$acl_save_exec_prefix"
12635 prefix="$acl_save_prefix"
12636
12637 case "$x" in
12638 -L*)
12639 dir=`echo "X$x" | sed -e 's/^X-L//'`
12640 if test -n "$shlibext" \
12641 && { test -f "$dir/lib$name.$shlibext" \
12642 || { test "$shlibext" = dll \
12643 && test -f "$dir/lib$name.dll.a"; }; }; then
12644 found_dir="$dir"
12645 if test -f "$dir/lib$name.$shlibext"; then
12646 found_so="$dir/lib$name.$shlibext"
12647 else
12648 found_so="$dir/lib$name.dll.a"
12649 fi
12650 if test -f "$dir/lib$name.la"; then
12651 found_la="$dir/lib$name.la"
12652 fi
12653 else
12654 if test -f "$dir/lib$name.$libext"; then
12655 found_dir="$dir"
12656 found_a="$dir/lib$name.$libext"
12657 if test -f "$dir/lib$name.la"; then
12658 found_la="$dir/lib$name.la"
12659 fi
12660 fi
12661 fi
12662 ;;
12663 esac
12664 if test "X$found_dir" != "X"; then
12665 break
12666 fi
12667 done
12668 fi
12669 if test "X$found_dir" != "X"; then
12670 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
12671 if test "X$found_so" != "X"; then
12672 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12673 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12674 else
12675 haveit=
12676 for x in $ltrpathdirs; do
12677 if test "X$x" = "X$found_dir"; then
12678 haveit=yes
12679 break
12680 fi
12681 done
12682 if test -z "$haveit"; then
12683 ltrpathdirs="$ltrpathdirs $found_dir"
12684 fi
12685 if test "$hardcode_direct" = yes; then
12686 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12687 else
12688 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12689 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12690 haveit=
12691 for x in $rpathdirs; do
12692 if test "X$x" = "X$found_dir"; then
12693 haveit=yes
12694 break
12695 fi
12696 done
12697 if test -z "$haveit"; then
12698 rpathdirs="$rpathdirs $found_dir"
12699 fi
12700 else
12701 haveit=
12702 for x in $LDFLAGS $LIBPTH; do
12703
12704 acl_save_prefix="$prefix"
12705 prefix="$acl_final_prefix"
12706 acl_save_exec_prefix="$exec_prefix"
12707 exec_prefix="$acl_final_exec_prefix"
12708 eval x=\"$x\"
12709 exec_prefix="$acl_save_exec_prefix"
12710 prefix="$acl_save_prefix"
12711
12712 if test "X$x" = "X-L$found_dir"; then
12713 haveit=yes
12714 break
12715 fi
12716 done
12717 if test -z "$haveit"; then
12718 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
12719 fi
12720 if test "$hardcode_minus_L" != no; then
12721 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
12722 else
12723 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12724 fi
12725 fi
12726 fi
12727 fi
12728 else
12729 if test "X$found_a" != "X"; then
12730 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
12731 else
12732 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
12733 fi
12734 fi
12735 additional_includedir=
12736 case "$found_dir" in
12737 */$acl_libdirstem | */$acl_libdirstem/)
12738 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12739 additional_includedir="$basedir/include"
12740 ;;
12741 esac
12742 if test "X$additional_includedir" != "X"; then
12743 if test "X$additional_includedir" != "X/usr/include"; then
12744 haveit=
12745 if test "X$additional_includedir" = "X/usr/local/include"; then
12746 if test -n "$GCC"; then
12747 case $host_os in
12748 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12749 esac
12750 fi
12751 fi
12752 if test -z "$haveit"; then
12753 for x in $CPPFLAGS $INCPTH; do
12754
12755 acl_save_prefix="$prefix"
12756 prefix="$acl_final_prefix"
12757 acl_save_exec_prefix="$exec_prefix"
12758 exec_prefix="$acl_final_exec_prefix"
12759 eval x=\"$x\"
12760 exec_prefix="$acl_save_exec_prefix"
12761 prefix="$acl_save_prefix"
12762
12763 if test "X$x" = "X-I$additional_includedir"; then
12764 haveit=yes
12765 break
12766 fi
12767 done
12768 if test -z "$haveit"; then
12769 if test -d "$additional_includedir"; then
12770 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
12771 fi
12772 fi
12773 fi
12774 fi
12775 fi
12776 if test -n "$found_la"; then
12777 save_libdir="$libdir"
12778 case "$found_la" in
12779 */* | *\\*) . "$found_la" ;;
12780 *) . "./$found_la" ;;
12781 esac
12782 libdir="$save_libdir"
12783 for dep in $dependency_libs; do
12784 case "$dep" in
12785 -L*)
12786 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12787 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12788 haveit=
12789 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12790 if test -n "$GCC"; then
12791 case $host_os in
12792 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12793 esac
12794 fi
12795 fi
12796 if test -z "$haveit"; then
12797 haveit=
12798 for x in $LDFLAGS $LIBPTH; do
12799
12800 acl_save_prefix="$prefix"
12801 prefix="$acl_final_prefix"
12802 acl_save_exec_prefix="$exec_prefix"
12803 exec_prefix="$acl_final_exec_prefix"
12804 eval x=\"$x\"
12805 exec_prefix="$acl_save_exec_prefix"
12806 prefix="$acl_save_prefix"
12807
12808 if test "X$x" = "X-L$additional_libdir"; then
12809 haveit=yes
12810 break
12811 fi
12812 done
12813 if test -z "$haveit"; then
12814 if test -d "$additional_libdir"; then
12815 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
12816 fi
12817 fi
12818 haveit=
12819 for x in $LDFLAGS $LTLIBPTH; do
12820
12821 acl_save_prefix="$prefix"
12822 prefix="$acl_final_prefix"
12823 acl_save_exec_prefix="$exec_prefix"
12824 exec_prefix="$acl_final_exec_prefix"
12825 eval x=\"$x\"
12826 exec_prefix="$acl_save_exec_prefix"
12827 prefix="$acl_save_prefix"
12828
12829 if test "X$x" = "X-L$additional_libdir"; then
12830 haveit=yes
12831 break
12832 fi
12833 done
12834 if test -z "$haveit"; then
12835 if test -d "$additional_libdir"; then
12836 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
12837 fi
12838 fi
12839 fi
12840 fi
12841 ;;
12842 -R*)
12843 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12844 if test "$enable_rpath" != no; then
12845 haveit=
12846 for x in $rpathdirs; do
12847 if test "X$x" = "X$dir"; then
12848 haveit=yes
12849 break
12850 fi
12851 done
12852 if test -z "$haveit"; then
12853 rpathdirs="$rpathdirs $dir"
12854 fi
12855 haveit=
12856 for x in $ltrpathdirs; do
12857 if test "X$x" = "X$dir"; then
12858 haveit=yes
12859 break
12860 fi
12861 done
12862 if test -z "$haveit"; then
12863 ltrpathdirs="$ltrpathdirs $dir"
12864 fi
12865 fi
12866 ;;
12867 -l*)
12868 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12869 ;;
12870 *.la)
12871 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12872 ;;
12873 *)
12874 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
12875 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
12876 ;;
12877 esac
12878 done
12879 fi
12880 else
12881 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
12882 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
12883 fi
12884 fi
12885 fi
12886 done
12887 done
12888 if test "X$rpathdirs" != "X"; then
12889 if test -n "$hardcode_libdir_separator"; then
12890 alldirs=
12891 for found_dir in $rpathdirs; do
12892 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12893 done
12894 acl_save_libdir="$libdir"
12895 libdir="$alldirs"
12896 eval flag=\"$hardcode_libdir_flag_spec\"
12897 libdir="$acl_save_libdir"
12898 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12899 else
12900 for found_dir in $rpathdirs; do
12901 acl_save_libdir="$libdir"
12902 libdir="$found_dir"
12903 eval flag=\"$hardcode_libdir_flag_spec\"
12904 libdir="$acl_save_libdir"
12905 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
12906 done
12907 fi
12908 fi
12909 if test "X$ltrpathdirs" != "X"; then
12910 for found_dir in $ltrpathdirs; do
12911 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
12912 done
12913 fi
12914
12915 ac_cv_libpth_libs="$LIBPTH"
12916 ac_cv_libpth_ltlibs="$LTLIBPTH"
12917 ac_cv_libpth_cppflags="$INCPTH"
12918
12919fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010012921$as_echo "$ac_cv_libpth_libs" >&6; }
12922 LIBPTH="$ac_cv_libpth_libs"
12923 LTLIBPTH="$ac_cv_libpth_ltlibs"
12924 INCPTH="$ac_cv_libpth_cppflags"
12925
12926 for element in $INCPTH; do
12927 haveit=
12928 for x in $CPPFLAGS; do
12929
12930 acl_save_prefix="$prefix"
12931 prefix="$acl_final_prefix"
12932 acl_save_exec_prefix="$exec_prefix"
12933 exec_prefix="$acl_final_exec_prefix"
12934 eval x=\"$x\"
12935 exec_prefix="$acl_save_exec_prefix"
12936 prefix="$acl_save_prefix"
12937
12938 if test "X$x" = "X$element"; then
12939 haveit=yes
12940 break
12941 fi
12942 done
12943 if test -z "$haveit"; then
12944 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12945 fi
12946 done
12947
12948
12949
12950 HAVE_LIBPTH=yes
12951
12952
12953
12954 gl_have_pth=
12955 gl_save_LIBS="$LIBS"
12956 LIBS="$LIBS -lpth"
Scott James Remnantfde82c92009-09-22 10:04:15 -070012957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012958/* end confdefs.h. */
12959#include <pth.h>
12960int
12961main ()
12962{
12963pth_self();
12964 ;
12965 return 0;
12966}
12967_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070012968if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010012969 gl_have_pth=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010012970fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070012971rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010012973 LIBS="$gl_save_LIBS"
12974 if test -n "$gl_have_pth"; then
12975 gl_threads_api=pth
12976 LIBTHREAD="$LIBPTH"
12977 LTLIBTHREAD="$LTLIBPTH"
12978 LIBMULTITHREAD="$LIBTHREAD"
12979 LTLIBMULTITHREAD="$LTLIBTHREAD"
12980
Scott James Remnantfde82c92009-09-22 10:04:15 -070012981$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012982
12983 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
12984 if test $gl_have_weak = yes; then
12985
Scott James Remnantfde82c92009-09-22 10:04:15 -070012986$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010012987
12988 LIBTHREAD=
12989 LTLIBTHREAD=
12990 fi
12991 fi
12992 else
12993 CPPFLAGS="$gl_save_CPPFLAGS"
12994 fi
12995 fi
12996 if test -z "$gl_have_pthread"; then
12997 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
12998 if { case "$host_os" in
12999 mingw*) true;;
13000 *) false;;
13001 esac
13002 }; then
13003 gl_threads_api=win32
13004
Scott James Remnantfde82c92009-09-22 10:04:15 -070013005$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013006
13007 fi
13008 fi
13009 fi
13010 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013012$as_echo_n "checking for multithread API to use... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013014$as_echo "$gl_threads_api" >&6; }
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034 use_additional=yes
13035
13036 acl_save_prefix="$prefix"
13037 prefix="$acl_final_prefix"
13038 acl_save_exec_prefix="$exec_prefix"
13039 exec_prefix="$acl_final_exec_prefix"
13040
13041 eval additional_includedir=\"$includedir\"
13042 eval additional_libdir=\"$libdir\"
13043
13044 exec_prefix="$acl_save_exec_prefix"
13045 prefix="$acl_save_prefix"
13046
13047
13048# Check whether --with-libiconv-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013049if test "${with_libiconv_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013050 withval=$with_libiconv_prefix;
13051 if test "X$withval" = "Xno"; then
13052 use_additional=no
13053 else
13054 if test "X$withval" = "X"; then
13055
13056 acl_save_prefix="$prefix"
13057 prefix="$acl_final_prefix"
13058 acl_save_exec_prefix="$exec_prefix"
13059 exec_prefix="$acl_final_exec_prefix"
13060
13061 eval additional_includedir=\"$includedir\"
13062 eval additional_libdir=\"$libdir\"
13063
13064 exec_prefix="$acl_save_exec_prefix"
13065 prefix="$acl_save_prefix"
13066
13067 else
13068 additional_includedir="$withval/include"
13069 additional_libdir="$withval/$acl_libdirstem"
13070 fi
13071 fi
13072
13073fi
13074
13075 LIBICONV=
13076 LTLIBICONV=
13077 INCICONV=
13078 rpathdirs=
13079 ltrpathdirs=
13080 names_already_handled=
13081 names_next_round='iconv '
13082 while test -n "$names_next_round"; do
13083 names_this_round="$names_next_round"
13084 names_next_round=
13085 for name in $names_this_round; do
13086 already_handled=
13087 for n in $names_already_handled; do
13088 if test "$n" = "$name"; then
13089 already_handled=yes
13090 break
13091 fi
13092 done
13093 if test -z "$already_handled"; then
13094 names_already_handled="$names_already_handled $name"
13095 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13096 eval value=\"\$HAVE_LIB$uppername\"
13097 if test -n "$value"; then
13098 if test "$value" = yes; then
13099 eval value=\"\$LIB$uppername\"
13100 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13101 eval value=\"\$LTLIB$uppername\"
13102 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13103 else
13104 :
13105 fi
13106 else
13107 found_dir=
13108 found_la=
13109 found_so=
13110 found_a=
13111 if test $use_additional = yes; then
13112 if test -n "$shlibext" \
13113 && { test -f "$additional_libdir/lib$name.$shlibext" \
13114 || { test "$shlibext" = dll \
13115 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
13116 found_dir="$additional_libdir"
13117 if test -f "$additional_libdir/lib$name.$shlibext"; then
13118 found_so="$additional_libdir/lib$name.$shlibext"
13119 else
13120 found_so="$additional_libdir/lib$name.dll.a"
13121 fi
13122 if test -f "$additional_libdir/lib$name.la"; then
13123 found_la="$additional_libdir/lib$name.la"
13124 fi
13125 else
13126 if test -f "$additional_libdir/lib$name.$libext"; then
13127 found_dir="$additional_libdir"
13128 found_a="$additional_libdir/lib$name.$libext"
13129 if test -f "$additional_libdir/lib$name.la"; then
13130 found_la="$additional_libdir/lib$name.la"
13131 fi
13132 fi
13133 fi
13134 fi
13135 if test "X$found_dir" = "X"; then
13136 for x in $LDFLAGS $LTLIBICONV; do
13137
13138 acl_save_prefix="$prefix"
13139 prefix="$acl_final_prefix"
13140 acl_save_exec_prefix="$exec_prefix"
13141 exec_prefix="$acl_final_exec_prefix"
13142 eval x=\"$x\"
13143 exec_prefix="$acl_save_exec_prefix"
13144 prefix="$acl_save_prefix"
13145
13146 case "$x" in
13147 -L*)
13148 dir=`echo "X$x" | sed -e 's/^X-L//'`
13149 if test -n "$shlibext" \
13150 && { test -f "$dir/lib$name.$shlibext" \
13151 || { test "$shlibext" = dll \
13152 && test -f "$dir/lib$name.dll.a"; }; }; then
13153 found_dir="$dir"
13154 if test -f "$dir/lib$name.$shlibext"; then
13155 found_so="$dir/lib$name.$shlibext"
13156 else
13157 found_so="$dir/lib$name.dll.a"
13158 fi
13159 if test -f "$dir/lib$name.la"; then
13160 found_la="$dir/lib$name.la"
13161 fi
13162 else
13163 if test -f "$dir/lib$name.$libext"; then
13164 found_dir="$dir"
13165 found_a="$dir/lib$name.$libext"
13166 if test -f "$dir/lib$name.la"; then
13167 found_la="$dir/lib$name.la"
13168 fi
13169 fi
13170 fi
13171 ;;
13172 esac
13173 if test "X$found_dir" != "X"; then
13174 break
13175 fi
13176 done
13177 fi
13178 if test "X$found_dir" != "X"; then
13179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13180 if test "X$found_so" != "X"; then
13181 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13183 else
13184 haveit=
13185 for x in $ltrpathdirs; do
13186 if test "X$x" = "X$found_dir"; then
13187 haveit=yes
13188 break
13189 fi
13190 done
13191 if test -z "$haveit"; then
13192 ltrpathdirs="$ltrpathdirs $found_dir"
13193 fi
13194 if test "$hardcode_direct" = yes; then
13195 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13196 else
13197 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13199 haveit=
13200 for x in $rpathdirs; do
13201 if test "X$x" = "X$found_dir"; then
13202 haveit=yes
13203 break
13204 fi
13205 done
13206 if test -z "$haveit"; then
13207 rpathdirs="$rpathdirs $found_dir"
13208 fi
13209 else
13210 haveit=
13211 for x in $LDFLAGS $LIBICONV; do
13212
13213 acl_save_prefix="$prefix"
13214 prefix="$acl_final_prefix"
13215 acl_save_exec_prefix="$exec_prefix"
13216 exec_prefix="$acl_final_exec_prefix"
13217 eval x=\"$x\"
13218 exec_prefix="$acl_save_exec_prefix"
13219 prefix="$acl_save_prefix"
13220
13221 if test "X$x" = "X-L$found_dir"; then
13222 haveit=yes
13223 break
13224 fi
13225 done
13226 if test -z "$haveit"; then
13227 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13228 fi
13229 if test "$hardcode_minus_L" != no; then
13230 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13231 else
13232 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13233 fi
13234 fi
13235 fi
13236 fi
13237 else
13238 if test "X$found_a" != "X"; then
13239 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13240 else
13241 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13242 fi
13243 fi
13244 additional_includedir=
13245 case "$found_dir" in
13246 */$acl_libdirstem | */$acl_libdirstem/)
13247 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13248 additional_includedir="$basedir/include"
13249 ;;
13250 esac
13251 if test "X$additional_includedir" != "X"; then
13252 if test "X$additional_includedir" != "X/usr/include"; then
13253 haveit=
13254 if test "X$additional_includedir" = "X/usr/local/include"; then
13255 if test -n "$GCC"; then
13256 case $host_os in
13257 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13258 esac
13259 fi
13260 fi
13261 if test -z "$haveit"; then
13262 for x in $CPPFLAGS $INCICONV; do
13263
13264 acl_save_prefix="$prefix"
13265 prefix="$acl_final_prefix"
13266 acl_save_exec_prefix="$exec_prefix"
13267 exec_prefix="$acl_final_exec_prefix"
13268 eval x=\"$x\"
13269 exec_prefix="$acl_save_exec_prefix"
13270 prefix="$acl_save_prefix"
13271
13272 if test "X$x" = "X-I$additional_includedir"; then
13273 haveit=yes
13274 break
13275 fi
13276 done
13277 if test -z "$haveit"; then
13278 if test -d "$additional_includedir"; then
13279 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13280 fi
13281 fi
13282 fi
13283 fi
13284 fi
13285 if test -n "$found_la"; then
13286 save_libdir="$libdir"
13287 case "$found_la" in
13288 */* | *\\*) . "$found_la" ;;
13289 *) . "./$found_la" ;;
13290 esac
13291 libdir="$save_libdir"
13292 for dep in $dependency_libs; do
13293 case "$dep" in
13294 -L*)
13295 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13296 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13297 haveit=
13298 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13299 if test -n "$GCC"; then
13300 case $host_os in
13301 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13302 esac
13303 fi
13304 fi
13305 if test -z "$haveit"; then
13306 haveit=
13307 for x in $LDFLAGS $LIBICONV; do
13308
13309 acl_save_prefix="$prefix"
13310 prefix="$acl_final_prefix"
13311 acl_save_exec_prefix="$exec_prefix"
13312 exec_prefix="$acl_final_exec_prefix"
13313 eval x=\"$x\"
13314 exec_prefix="$acl_save_exec_prefix"
13315 prefix="$acl_save_prefix"
13316
13317 if test "X$x" = "X-L$additional_libdir"; then
13318 haveit=yes
13319 break
13320 fi
13321 done
13322 if test -z "$haveit"; then
13323 if test -d "$additional_libdir"; then
13324 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13325 fi
13326 fi
13327 haveit=
13328 for x in $LDFLAGS $LTLIBICONV; do
13329
13330 acl_save_prefix="$prefix"
13331 prefix="$acl_final_prefix"
13332 acl_save_exec_prefix="$exec_prefix"
13333 exec_prefix="$acl_final_exec_prefix"
13334 eval x=\"$x\"
13335 exec_prefix="$acl_save_exec_prefix"
13336 prefix="$acl_save_prefix"
13337
13338 if test "X$x" = "X-L$additional_libdir"; then
13339 haveit=yes
13340 break
13341 fi
13342 done
13343 if test -z "$haveit"; then
13344 if test -d "$additional_libdir"; then
13345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13346 fi
13347 fi
13348 fi
13349 fi
13350 ;;
13351 -R*)
13352 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13353 if test "$enable_rpath" != no; then
13354 haveit=
13355 for x in $rpathdirs; do
13356 if test "X$x" = "X$dir"; then
13357 haveit=yes
13358 break
13359 fi
13360 done
13361 if test -z "$haveit"; then
13362 rpathdirs="$rpathdirs $dir"
13363 fi
13364 haveit=
13365 for x in $ltrpathdirs; do
13366 if test "X$x" = "X$dir"; then
13367 haveit=yes
13368 break
13369 fi
13370 done
13371 if test -z "$haveit"; then
13372 ltrpathdirs="$ltrpathdirs $dir"
13373 fi
13374 fi
13375 ;;
13376 -l*)
13377 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13378 ;;
13379 *.la)
13380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13381 ;;
13382 *)
13383 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13384 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13385 ;;
13386 esac
13387 done
13388 fi
13389 else
13390 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13392 fi
13393 fi
13394 fi
13395 done
13396 done
13397 if test "X$rpathdirs" != "X"; then
13398 if test -n "$hardcode_libdir_separator"; then
13399 alldirs=
13400 for found_dir in $rpathdirs; do
13401 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13402 done
13403 acl_save_libdir="$libdir"
13404 libdir="$alldirs"
13405 eval flag=\"$hardcode_libdir_flag_spec\"
13406 libdir="$acl_save_libdir"
13407 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13408 else
13409 for found_dir in $rpathdirs; do
13410 acl_save_libdir="$libdir"
13411 libdir="$found_dir"
13412 eval flag=\"$hardcode_libdir_flag_spec\"
13413 libdir="$acl_save_libdir"
13414 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13415 done
13416 fi
13417 fi
13418 if test "X$ltrpathdirs" != "X"; then
13419 for found_dir in $ltrpathdirs; do
13420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13421 done
13422 fi
13423
13424
13425
13426
13427
Scott James Remnantfde82c92009-09-22 10:04:15 -070013428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013429/* end confdefs.h. */
13430int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
13431int
13432main ()
13433{
13434
13435 ;
13436 return 0;
13437}
13438_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013439if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013440
Scott James Remnantfde82c92009-09-22 10:04:15 -070013441$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013442
13443fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013444rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013446
Scott James Remnantfde82c92009-09-22 10:04:15 -070013447 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
13448do :
13449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13450ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13451eval as_val=\$$as_ac_Header
13452 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013453 cat >>confdefs.h <<_ACEOF
13454#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13455_ACEOF
13456
13457fi
13458
13459done
13460
Scott James Remnantfde82c92009-09-22 10:04:15 -070013461 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
Scott James Remnant65f683d2009-07-14 13:05:17 +010013462 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
13463 argz_next __fsetlocking
Scott James Remnantfde82c92009-09-22 10:04:15 -070013464do :
13465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13466ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13467eval as_val=\$$as_ac_var
13468 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013469 cat >>confdefs.h <<_ACEOF
13470#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13471_ACEOF
13472
13473fi
13474done
13475
13476
13477
Scott James Remnantfde82c92009-09-22 10:04:15 -070013478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013479$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013480if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013481 $as_echo_n "(cached) " >&6
13482else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013484/* end confdefs.h. */
13485#include <stdio.h>
13486int
13487main ()
13488{
13489
13490#ifndef feof_unlocked
13491 char *p = (char *) feof_unlocked;
13492#endif
13493
13494 ;
13495 return 0;
13496}
13497_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013498if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013499 ac_cv_have_decl_feof_unlocked=yes
13500else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013501 ac_cv_have_decl_feof_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013502fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013506$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
13507 if test $ac_cv_have_decl_feof_unlocked = yes; then
13508 gt_value=1
13509 else
13510 gt_value=0
13511 fi
13512
13513cat >>confdefs.h <<_ACEOF
13514#define HAVE_DECL_FEOF_UNLOCKED $gt_value
13515_ACEOF
13516
13517
13518
Scott James Remnantfde82c92009-09-22 10:04:15 -070013519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013520$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013521if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013522 $as_echo_n "(cached) " >&6
13523else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013525/* end confdefs.h. */
13526#include <stdio.h>
13527int
13528main ()
13529{
13530
13531#ifndef fgets_unlocked
13532 char *p = (char *) fgets_unlocked;
13533#endif
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013539if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013540 ac_cv_have_decl_fgets_unlocked=yes
13541else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013542 ac_cv_have_decl_fgets_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013543fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013547$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
13548 if test $ac_cv_have_decl_fgets_unlocked = yes; then
13549 gt_value=1
13550 else
13551 gt_value=0
13552 fi
13553
13554cat >>confdefs.h <<_ACEOF
13555#define HAVE_DECL_FGETS_UNLOCKED $gt_value
13556_ACEOF
13557
13558
13559
13560
13561
13562
13563
13564
13565 am_save_CPPFLAGS="$CPPFLAGS"
13566
13567 for element in $INCICONV; do
13568 haveit=
13569 for x in $CPPFLAGS; do
13570
13571 acl_save_prefix="$prefix"
13572 prefix="$acl_final_prefix"
13573 acl_save_exec_prefix="$exec_prefix"
13574 exec_prefix="$acl_final_exec_prefix"
13575 eval x=\"$x\"
13576 exec_prefix="$acl_save_exec_prefix"
13577 prefix="$acl_save_prefix"
13578
13579 if test "X$x" = "X$element"; then
13580 haveit=yes
13581 break
13582 fi
13583 done
13584 if test -z "$haveit"; then
13585 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13586 fi
13587 done
13588
13589
Scott James Remnantfde82c92009-09-22 10:04:15 -070013590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013591$as_echo_n "checking for iconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013592if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013593 $as_echo_n "(cached) " >&6
13594else
13595
13596 am_cv_func_iconv="no, consider installing GNU libiconv"
13597 am_cv_lib_iconv=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070013598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013599/* end confdefs.h. */
13600#include <stdlib.h>
13601#include <iconv.h>
13602int
13603main ()
13604{
13605iconv_t cd = iconv_open("","");
13606 iconv(cd,NULL,NULL,NULL,NULL);
13607 iconv_close(cd);
13608 ;
13609 return 0;
13610}
13611_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013612if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013613 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013614fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013615rm -f core conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013617 if test "$am_cv_func_iconv" != yes; then
13618 am_save_LIBS="$LIBS"
13619 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013621/* end confdefs.h. */
13622#include <stdlib.h>
13623#include <iconv.h>
13624int
13625main ()
13626{
13627iconv_t cd = iconv_open("","");
13628 iconv(cd,NULL,NULL,NULL,NULL);
13629 iconv_close(cd);
13630 ;
13631 return 0;
13632}
13633_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013634if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013635 am_cv_lib_iconv=yes
13636 am_cv_func_iconv=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010013637fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013638rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013640 LIBS="$am_save_LIBS"
13641 fi
13642
13643fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013645$as_echo "$am_cv_func_iconv" >&6; }
13646 if test "$am_cv_func_iconv" = yes; then
13647
Scott James Remnantfde82c92009-09-22 10:04:15 -070013648$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013649
13650 fi
13651 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013653$as_echo_n "checking how to link with libiconv... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013655$as_echo "$LIBICONV" >&6; }
13656 else
13657 CPPFLAGS="$am_save_CPPFLAGS"
13658 LIBICONV=
13659 LTLIBICONV=
13660 fi
13661
13662
13663
13664 if test "$am_cv_func_iconv" = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013666$as_echo_n "checking for iconv declaration... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013667 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013668 $as_echo_n "(cached) " >&6
13669else
13670
Scott James Remnantfde82c92009-09-22 10:04:15 -070013671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013672/* end confdefs.h. */
13673
13674#include <stdlib.h>
13675#include <iconv.h>
13676extern
13677#ifdef __cplusplus
13678"C"
13679#endif
13680#if defined(__STDC__) || defined(__cplusplus)
13681size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13682#else
13683size_t iconv();
13684#endif
13685
13686int
13687main ()
13688{
13689
13690 ;
13691 return 0;
13692}
13693_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013694if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013695 am_cv_proto_iconv_arg1=""
13696else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013697 am_cv_proto_iconv_arg1="const"
Scott James Remnant65f683d2009-07-14 13:05:17 +010013698fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 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);"
13701fi
13702
13703 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070013704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Scott James Remnant65f683d2009-07-14 13:05:17 +010013705 }$am_cv_proto_iconv" >&5
13706$as_echo "${ac_t:-
13707 }$am_cv_proto_iconv" >&6; }
13708
13709cat >>confdefs.h <<_ACEOF
13710#define ICONV_CONST $am_cv_proto_iconv_arg1
13711_ACEOF
13712
13713 fi
13714
13715
Scott James Remnantfde82c92009-09-22 10:04:15 -070013716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013717$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013718if test "${gt_cv_nl_locale_name+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013719 $as_echo_n "(cached) " >&6
13720else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013722/* end confdefs.h. */
13723#include <langinfo.h>
13724#include <locale.h>
13725int
13726main ()
13727{
13728char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
13729 ;
13730 return 0;
13731}
13732_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013733if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013734 gt_cv_nl_locale_name=yes
13735else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013736 gt_cv_nl_locale_name=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013737fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013738rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013740
13741fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013743$as_echo "$gt_cv_nl_locale_name" >&6; }
13744 if test $gt_cv_nl_locale_name = yes; then
13745
Scott James Remnantfde82c92009-09-22 10:04:15 -070013746$as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013747
13748 fi
13749
13750 for ac_prog in bison
13751do
13752 # Extract the first word of "$ac_prog", so it can be a program name with args.
13753set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070013754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013755$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013756if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013757 $as_echo_n "(cached) " >&6
13758else
13759 if test -n "$INTLBISON"; then
13760 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13761else
13762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763for as_dir in $PATH
13764do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070013767 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010013768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070013770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013771 break 2
13772 fi
13773done
Scott James Remnantfde82c92009-09-22 10:04:15 -070013774 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010013775IFS=$as_save_IFS
13776
13777fi
13778fi
13779INTLBISON=$ac_cv_prog_INTLBISON
13780if test -n "$INTLBISON"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070013781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013782$as_echo "$INTLBISON" >&6; }
13783else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013785$as_echo "no" >&6; }
13786fi
13787
13788
13789 test -n "$INTLBISON" && break
13790done
13791
13792 if test -z "$INTLBISON"; then
13793 ac_verc_fail=yes
13794 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013796$as_echo_n "checking version of bison... " >&6; }
13797 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13798 case $ac_prog_version in
13799 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13800 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13801 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13802 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13803 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070013804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013805$as_echo "$ac_prog_version" >&6; }
13806 fi
13807 if test $ac_verc_fail = yes; then
13808 INTLBISON=:
13809 fi
13810
13811
Scott James Remnantfde82c92009-09-22 10:04:15 -070013812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013813$as_echo_n "checking for long long int... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013814if test "${ac_cv_type_long_long_int+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013815 $as_echo_n "(cached) " >&6
13816else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013818/* end confdefs.h. */
13819long long int ll = 9223372036854775807ll;
13820 long long int nll = -9223372036854775807LL;
13821 typedef int a[((-9223372036854775807LL < 0
13822 && 0 < 9223372036854775807ll)
13823 ? 1 : -1)];
13824 int i = 63;
13825int
13826main ()
13827{
13828long long int llmax = 9223372036854775807ll;
13829 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
13830 | (llmax / ll) | (llmax % ll));
13831 ;
13832 return 0;
13833}
13834_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013835if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013836 ac_cv_type_long_long_int=yes
13837else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013838 ac_cv_type_long_long_int=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013839fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013840rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013842fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013844$as_echo "$ac_cv_type_long_long_int" >&6; }
13845 if test $ac_cv_type_long_long_int = yes; then
13846
Scott James Remnantfde82c92009-09-22 10:04:15 -070013847$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013848
13849 fi
13850
13851
Scott James Remnantfde82c92009-09-22 10:04:15 -070013852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013853$as_echo_n "checking for long double... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013854if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013855 $as_echo_n "(cached) " >&6
13856else
13857 if test "$GCC" = yes; then
13858 gt_cv_c_long_double=yes
13859 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013861/* end confdefs.h. */
13862
13863 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
13864 long double foo = 0.0;
13865 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13866 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
13867
13868int
13869main ()
13870{
13871
13872 ;
13873 return 0;
13874}
13875_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013876if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013877 gt_cv_c_long_double=yes
13878else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013879 gt_cv_c_long_double=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013880fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013885$as_echo "$gt_cv_c_long_double" >&6; }
13886 if test $gt_cv_c_long_double = yes; then
13887
Scott James Remnantfde82c92009-09-22 10:04:15 -070013888$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013889
13890 fi
13891
13892
Scott James Remnantfde82c92009-09-22 10:04:15 -070013893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013894$as_echo_n "checking for wchar_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013895if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013896 $as_echo_n "(cached) " >&6
13897else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013899/* end confdefs.h. */
13900#include <stddef.h>
13901 wchar_t foo = (wchar_t)'\0';
13902int
13903main ()
13904{
13905
13906 ;
13907 return 0;
13908}
13909_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013910if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013911 gt_cv_c_wchar_t=yes
13912else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013913 gt_cv_c_wchar_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013914fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013918$as_echo "$gt_cv_c_wchar_t" >&6; }
13919 if test $gt_cv_c_wchar_t = yes; then
13920
Scott James Remnantfde82c92009-09-22 10:04:15 -070013921$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013922
13923 fi
13924
13925
Scott James Remnantfde82c92009-09-22 10:04:15 -070013926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013927$as_echo_n "checking for wint_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013928if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013929 $as_echo_n "(cached) " >&6
13930else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013932/* end confdefs.h. */
13933#include <wchar.h>
13934 wint_t foo = (wchar_t)'\0';
13935int
13936main ()
13937{
13938
13939 ;
13940 return 0;
13941}
13942_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013943if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013944 gt_cv_c_wint_t=yes
13945else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013946 gt_cv_c_wint_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013947fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013951$as_echo "$gt_cv_c_wint_t" >&6; }
13952 if test $gt_cv_c_wint_t = yes; then
13953
Scott James Remnantfde82c92009-09-22 10:04:15 -070013954$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013955
13956 fi
13957
13958
13959
13960
Scott James Remnantfde82c92009-09-22 10:04:15 -070013961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013962$as_echo_n "checking for intmax_t... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070013963if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013964 $as_echo_n "(cached) " >&6
13965else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010013967/* end confdefs.h. */
13968
13969#include <stddef.h>
13970#include <stdlib.h>
13971#if HAVE_STDINT_H_WITH_UINTMAX
13972#include <stdint.h>
13973#endif
13974#if HAVE_INTTYPES_H_WITH_UINTMAX
13975#include <inttypes.h>
13976#endif
13977
13978int
13979main ()
13980{
13981intmax_t x = -1;
13982 return !x;
13983 ;
13984 return 0;
13985}
13986_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070013987if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010013988 gt_cv_c_intmax_t=yes
13989else
Scott James Remnantfde82c92009-09-22 10:04:15 -070013990 gt_cv_c_intmax_t=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010013991fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010013992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070013994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010013995$as_echo "$gt_cv_c_intmax_t" >&6; }
13996 if test $gt_cv_c_intmax_t = yes; then
13997
Scott James Remnantfde82c92009-09-22 10:04:15 -070013998$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010013999
14000 fi
14001
14002
14003
Scott James Remnantfde82c92009-09-22 10:04:15 -070014004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014005$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014006if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014007 $as_echo_n "(cached) " >&6
14008else
14009
Scott James Remnantfde82c92009-09-22 10:04:15 -070014010 if test "$cross_compiling" = yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014011
Scott James Remnantfde82c92009-09-22 10:04:15 -070014012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014013/* end confdefs.h. */
14014
14015#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
14016 notposix
14017#endif
14018
14019_ACEOF
14020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014021 $EGREP "notposix" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014022 gt_cv_func_printf_posix="guessing no"
14023else
14024 gt_cv_func_printf_posix="guessing yes"
14025fi
14026rm -f conftest*
14027
14028
14029else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014031/* end confdefs.h. */
14032
14033#include <stdio.h>
14034#include <string.h>
14035/* The string "%2$d %1$d", with dollar characters protected from the shell's
14036 dollar expansion (possibly an autoconf bug). */
14037static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
14038static char buf[100];
14039int main ()
14040{
14041 sprintf (buf, format, 33, 55);
14042 return (strcmp (buf, "55 33") != 0);
14043}
14044_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014045if ac_fn_c_try_run "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014046 gt_cv_func_printf_posix=yes
14047else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014048 gt_cv_func_printf_posix=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014049fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14051 conftest.$ac_objext conftest.beam conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014052fi
14053
14054
Scott James Remnant65f683d2009-07-14 13:05:17 +010014055fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014057$as_echo "$gt_cv_func_printf_posix" >&6; }
14058 case $gt_cv_func_printf_posix in
14059 *yes)
14060
Scott James Remnantfde82c92009-09-22 10:04:15 -070014061$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014062
14063 ;;
14064 esac
14065
14066
Scott James Remnantfde82c92009-09-22 10:04:15 -070014067 { $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 +010014068$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 -070014069if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014070 $as_echo_n "(cached) " >&6
14071else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014073/* end confdefs.h. */
14074
14075#include <features.h>
14076#ifdef __GNU_LIBRARY__
14077 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14078 Lucky GNU user
14079 #endif
14080#endif
14081
14082_ACEOF
14083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014084 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014085 ac_cv_gnu_library_2_1=yes
14086else
14087 ac_cv_gnu_library_2_1=no
14088fi
14089rm -f conftest*
14090
14091
14092
14093fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014095$as_echo "$ac_cv_gnu_library_2_1" >&6; }
14096
14097 GLIBC21="$ac_cv_gnu_library_2_1"
14098
14099
14100
Scott James Remnantfde82c92009-09-22 10:04:15 -070014101 for ac_header in stdint.h
14102do :
14103 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14104if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014105 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014106#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014107_ACEOF
14108
14109fi
14110
14111done
14112
Scott James Remnantfde82c92009-09-22 10:04:15 -070014113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014114$as_echo_n "checking for SIZE_MAX... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014115 if test "${gl_cv_size_max+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014116 $as_echo_n "(cached) " >&6
14117else
14118
14119 gl_cv_size_max=
Scott James Remnantfde82c92009-09-22 10:04:15 -070014120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014121/* end confdefs.h. */
14122
14123#include <limits.h>
14124#if HAVE_STDINT_H
14125#include <stdint.h>
14126#endif
14127#ifdef SIZE_MAX
14128Found it
14129#endif
14130
14131_ACEOF
14132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Scott James Remnantfde82c92009-09-22 10:04:15 -070014133 $EGREP "Found it" >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014134 gl_cv_size_max=yes
14135fi
14136rm -f conftest*
14137
14138 if test -z "$gl_cv_size_max"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014139 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
14140#include <limits.h>"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014141
Scott James Remnant65f683d2009-07-14 13:05:17 +010014142else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014143 size_t_bits_minus_1=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014144fi
14145
Scott James Remnantfde82c92009-09-22 10:04:15 -070014146
14147 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14148
Scott James Remnant65f683d2009-07-14 13:05:17 +010014149else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014150 fits_in_uint=
Scott James Remnant65f683d2009-07-14 13:05:17 +010014151fi
14152
Scott James Remnant65f683d2009-07-14 13:05:17 +010014153
14154 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
14155 if test $fits_in_uint = 1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070014156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014157/* end confdefs.h. */
14158#include <stddef.h>
14159 extern size_t foo;
14160 extern unsigned long foo;
14161
14162int
14163main ()
14164{
14165
14166 ;
14167 return 0;
14168}
14169_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014170if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014171 fits_in_uint=0
Scott James Remnant65f683d2009-07-14 13:05:17 +010014172fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174 fi
14175 if test $fits_in_uint = 1; then
14176 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
14177 else
14178 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
14179 fi
14180 else
14181 gl_cv_size_max='((size_t)~(size_t)0)'
14182 fi
14183 fi
14184
14185fi
14186
Scott James Remnantfde82c92009-09-22 10:04:15 -070014187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014188$as_echo "$gl_cv_size_max" >&6; }
14189 if test "$gl_cv_size_max" != yes; then
14190
14191cat >>confdefs.h <<_ACEOF
14192#define SIZE_MAX $gl_cv_size_max
14193_ACEOF
14194
14195 fi
14196
14197
14198
14199
Scott James Remnantfde82c92009-09-22 10:04:15 -070014200 for ac_header in stdint.h
14201do :
14202 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14203if test "x$ac_cv_header_stdint_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014204 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014205#define HAVE_STDINT_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010014206_ACEOF
14207
14208fi
14209
14210done
14211
14212
14213
Scott James Remnantfde82c92009-09-22 10:04:15 -070014214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014215$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014216if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014217 $as_echo_n "(cached) " >&6
14218else
14219 gt_save_LIBS="$LIBS"
14220 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014222/* end confdefs.h. */
14223#include <CoreFoundation/CFPreferences.h>
14224int
14225main ()
14226{
14227CFPreferencesCopyAppValue(NULL, NULL)
14228 ;
14229 return 0;
14230}
14231_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014232if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014233 gt_cv_func_CFPreferencesCopyAppValue=yes
14234else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014235 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014236fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014237rm -f core conftest.err conftest.$ac_objext \
14238 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014239 LIBS="$gt_save_LIBS"
14240fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014242$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14243 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14244
Scott James Remnantfde82c92009-09-22 10:04:15 -070014245$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014246
14247 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014249$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014250if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014251 $as_echo_n "(cached) " >&6
14252else
14253 gt_save_LIBS="$LIBS"
14254 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014256/* end confdefs.h. */
14257#include <CoreFoundation/CFLocale.h>
14258int
14259main ()
14260{
14261CFLocaleCopyCurrent();
14262 ;
14263 return 0;
14264}
14265_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014266if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014267 gt_cv_func_CFLocaleCopyCurrent=yes
14268else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014269 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014270fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014271rm -f core conftest.err conftest.$ac_objext \
14272 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014273 LIBS="$gt_save_LIBS"
14274fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014276$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14277 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14278
Scott James Remnantfde82c92009-09-22 10:04:15 -070014279$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014280
14281 fi
14282 INTL_MACOSX_LIBS=
14283 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14284 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14285 fi
14286
14287
14288
14289
14290
14291
14292
Scott James Remnantfde82c92009-09-22 10:04:15 -070014293 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14294if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014295
Scott James Remnant2a66c572009-09-15 03:19:16 +010014296else
14297
Scott James Remnantfde82c92009-09-22 10:04:15 -070014298$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant2a66c572009-09-15 03:19:16 +010014299
14300
14301fi
14302
Scott James Remnantfde82c92009-09-22 10:04:15 -070014303 for ac_header in stddef.h stdlib.h string.h
14304do :
14305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14306ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14307eval as_val=\$$as_ac_Header
14308 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014309 cat >>confdefs.h <<_ACEOF
14310#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14311_ACEOF
14312
14313fi
14314
14315done
14316
Scott James Remnantfde82c92009-09-22 10:04:15 -070014317 for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
14318do :
14319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14321eval as_val=\$$as_ac_var
14322 if test "x$as_val" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014323 cat >>confdefs.h <<_ACEOF
14324#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325_ACEOF
14326
14327fi
14328done
14329
14330
14331
Scott James Remnantfde82c92009-09-22 10:04:15 -070014332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014333$as_echo_n "checking whether _snprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014334if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014335 $as_echo_n "(cached) " >&6
14336else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014338/* end confdefs.h. */
14339#include <stdio.h>
14340int
14341main ()
14342{
14343
14344#ifndef _snprintf
14345 char *p = (char *) _snprintf;
14346#endif
14347
14348 ;
14349 return 0;
14350}
14351_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014352if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014353 ac_cv_have_decl__snprintf=yes
14354else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014355 ac_cv_have_decl__snprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014356fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014360$as_echo "$ac_cv_have_decl__snprintf" >&6; }
14361 if test $ac_cv_have_decl__snprintf = yes; then
14362 gt_value=1
14363 else
14364 gt_value=0
14365 fi
14366
14367cat >>confdefs.h <<_ACEOF
14368#define HAVE_DECL__SNPRINTF $gt_value
14369_ACEOF
14370
14371
14372
Scott James Remnantfde82c92009-09-22 10:04:15 -070014373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014374$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014375if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014376 $as_echo_n "(cached) " >&6
14377else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014379/* end confdefs.h. */
14380#include <stdio.h>
14381int
14382main ()
14383{
14384
14385#ifndef _snwprintf
14386 char *p = (char *) _snwprintf;
14387#endif
14388
14389 ;
14390 return 0;
14391}
14392_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014393if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014394 ac_cv_have_decl__snwprintf=yes
14395else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014396 ac_cv_have_decl__snwprintf=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014397fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014401$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
14402 if test $ac_cv_have_decl__snwprintf = yes; then
14403 gt_value=1
14404 else
14405 gt_value=0
14406 fi
14407
14408cat >>confdefs.h <<_ACEOF
14409#define HAVE_DECL__SNWPRINTF $gt_value
14410_ACEOF
14411
14412
14413
14414
Scott James Remnantfde82c92009-09-22 10:04:15 -070014415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014416$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014417if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014418 $as_echo_n "(cached) " >&6
14419else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014421/* end confdefs.h. */
14422#include <stdio.h>
14423int
14424main ()
14425{
14426
14427#ifndef getc_unlocked
14428 char *p = (char *) getc_unlocked;
14429#endif
14430
14431 ;
14432 return 0;
14433}
14434_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014435if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014436 ac_cv_have_decl_getc_unlocked=yes
14437else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014438 ac_cv_have_decl_getc_unlocked=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014439fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010014440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014443$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
14444 if test $ac_cv_have_decl_getc_unlocked = yes; then
14445 gt_value=1
14446 else
14447 gt_value=0
14448 fi
14449
14450cat >>confdefs.h <<_ACEOF
14451#define HAVE_DECL_GETC_UNLOCKED $gt_value
14452_ACEOF
14453
14454
14455
14456 case $gt_cv_func_printf_posix in
14457 *yes) HAVE_POSIX_PRINTF=1 ;;
14458 *) HAVE_POSIX_PRINTF=0 ;;
14459 esac
14460
14461 if test "$ac_cv_func_asprintf" = yes; then
14462 HAVE_ASPRINTF=1
14463 else
14464 HAVE_ASPRINTF=0
14465 fi
14466
14467 if test "$ac_cv_func_snprintf" = yes; then
14468 HAVE_SNPRINTF=1
14469 else
14470 HAVE_SNPRINTF=0
14471 fi
14472
14473 if test "$ac_cv_func_wprintf" = yes; then
14474 HAVE_WPRINTF=1
14475 else
14476 HAVE_WPRINTF=0
14477 fi
14478
14479
14480
Scott James Remnantfde82c92009-09-22 10:04:15 -070014481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014482$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014483if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014484 $as_echo_n "(cached) " >&6
14485else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014487/* end confdefs.h. */
14488#include <langinfo.h>
14489int
14490main ()
14491{
14492char* cs = nl_langinfo(CODESET); return !cs;
14493 ;
14494 return 0;
14495}
14496_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014497if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014498 am_cv_langinfo_codeset=yes
14499else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014500 am_cv_langinfo_codeset=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014501fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014502rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014504
14505fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014507$as_echo "$am_cv_langinfo_codeset" >&6; }
14508 if test $am_cv_langinfo_codeset = yes; then
14509
Scott James Remnantfde82c92009-09-22 10:04:15 -070014510$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014511
14512 fi
14513
14514
Scott James Remnantfde82c92009-09-22 10:04:15 -070014515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014516$as_echo_n "checking for LC_MESSAGES... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014517if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014518 $as_echo_n "(cached) " >&6
14519else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014521/* end confdefs.h. */
14522#include <locale.h>
14523int
14524main ()
14525{
14526return LC_MESSAGES
14527 ;
14528 return 0;
14529}
14530_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014531if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014532 gt_cv_val_LC_MESSAGES=yes
14533else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014534 gt_cv_val_LC_MESSAGES=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014535fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014536rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014538fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014540$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
14541 if test $gt_cv_val_LC_MESSAGES = yes; then
14542
Scott James Remnantfde82c92009-09-22 10:04:15 -070014543$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014544
14545 fi
14546
14547
14548 if test "$enable_shared" = yes; then
14549 case "$host_os" in
14550 cygwin*) is_woe32dll=yes ;;
14551 *) is_woe32dll=no ;;
14552 esac
14553 else
14554 is_woe32dll=no
14555 fi
14556 WOE32DLL=$is_woe32dll
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
Scott James Remnantfde82c92009-09-22 10:04:15 -070014583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014584$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014585if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014586 $as_echo_n "(cached) " >&6
14587else
14588 gt_save_LIBS="$LIBS"
14589 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014591/* end confdefs.h. */
14592#include <CoreFoundation/CFPreferences.h>
14593int
14594main ()
14595{
14596CFPreferencesCopyAppValue(NULL, NULL)
14597 ;
14598 return 0;
14599}
14600_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014601if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014602 gt_cv_func_CFPreferencesCopyAppValue=yes
14603else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014604 gt_cv_func_CFPreferencesCopyAppValue=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014605fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014606rm -f core conftest.err conftest.$ac_objext \
14607 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014608 LIBS="$gt_save_LIBS"
14609fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014611$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14612 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14613
Scott James Remnantfde82c92009-09-22 10:04:15 -070014614$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014615
14616 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014618$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014619if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014620 $as_echo_n "(cached) " >&6
14621else
14622 gt_save_LIBS="$LIBS"
14623 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
Scott James Remnantfde82c92009-09-22 10:04:15 -070014624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014625/* end confdefs.h. */
14626#include <CoreFoundation/CFLocale.h>
14627int
14628main ()
14629{
14630CFLocaleCopyCurrent();
14631 ;
14632 return 0;
14633}
14634_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014635if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014636 gt_cv_func_CFLocaleCopyCurrent=yes
14637else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014638 gt_cv_func_CFLocaleCopyCurrent=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010014639fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014640rm -f core conftest.err conftest.$ac_objext \
14641 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014642 LIBS="$gt_save_LIBS"
14643fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014645$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14646 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14647
Scott James Remnantfde82c92009-09-22 10:04:15 -070014648$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010014649
14650 fi
14651 INTL_MACOSX_LIBS=
14652 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14653 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14654 fi
14655
14656
14657
14658
14659
14660
14661 BUILD_INCLUDED_LIBINTL=no
14662 USE_INCLUDED_LIBINTL=no
14663
14664 LIBINTL=
14665 LTLIBINTL=
14666 POSUB=
14667
14668 case " $gt_needs " in
14669 *" need-formatstring-macros "*) gt_api_version=3 ;;
14670 *" need-ngettext "*) gt_api_version=2 ;;
14671 *) gt_api_version=1 ;;
14672 esac
14673 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14674 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14675
14676 if test "$USE_NLS" = "yes"; then
14677 gt_use_preinstalled_gnugettext=no
14678
Scott James Remnantfde82c92009-09-22 10:04:15 -070014679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014680$as_echo_n "checking whether included gettext is requested... " >&6; }
14681
14682# Check whether --with-included-gettext was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014683if test "${with_included_gettext+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014684 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14685else
14686 nls_cv_force_use_gnu_gettext=no
14687fi
14688
Scott James Remnantfde82c92009-09-22 10:04:15 -070014689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014690$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14691
14692 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14693 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14694
14695
14696 if test $gt_api_version -ge 3; then
14697 gt_revision_test_code='
14698#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14699#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14700#endif
14701typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14702'
14703 else
14704 gt_revision_test_code=
14705 fi
14706 if test $gt_api_version -ge 2; then
14707 gt_expression_test_code=' + * ngettext ("", "", 0)'
14708 else
14709 gt_expression_test_code=
14710 fi
14711
Scott James Remnantfde82c92009-09-22 10:04:15 -070014712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014713$as_echo_n "checking for GNU gettext in libc... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070014714if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014715 $as_echo_n "(cached) " >&6
14716else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014718/* end confdefs.h. */
14719#include <libintl.h>
14720$gt_revision_test_code
14721extern int _nl_msg_cat_cntr;
14722extern int *_nl_domain_bindings;
14723int
14724main ()
14725{
14726bindtextdomain ("", "");
14727return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14728 ;
14729 return 0;
14730}
14731_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070014732if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014733 eval "$gt_func_gnugettext_libc=yes"
14734else
Scott James Remnantfde82c92009-09-22 10:04:15 -070014735 eval "$gt_func_gnugettext_libc=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010014736fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014737rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010014739fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070014740eval ac_res=\$$gt_func_gnugettext_libc
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010014742$as_echo "$ac_res" >&6; }
14743
14744 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14745
14746
14747
14748
14749 use_additional=yes
14750
14751 acl_save_prefix="$prefix"
14752 prefix="$acl_final_prefix"
14753 acl_save_exec_prefix="$exec_prefix"
14754 exec_prefix="$acl_final_exec_prefix"
14755
14756 eval additional_includedir=\"$includedir\"
14757 eval additional_libdir=\"$libdir\"
14758
14759 exec_prefix="$acl_save_exec_prefix"
14760 prefix="$acl_save_prefix"
14761
14762
14763# Check whether --with-libintl-prefix was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070014764if test "${with_libintl_prefix+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010014765 withval=$with_libintl_prefix;
14766 if test "X$withval" = "Xno"; then
14767 use_additional=no
14768 else
14769 if test "X$withval" = "X"; then
14770
14771 acl_save_prefix="$prefix"
14772 prefix="$acl_final_prefix"
14773 acl_save_exec_prefix="$exec_prefix"
14774 exec_prefix="$acl_final_exec_prefix"
14775
14776 eval additional_includedir=\"$includedir\"
14777 eval additional_libdir=\"$libdir\"
14778
14779 exec_prefix="$acl_save_exec_prefix"
14780 prefix="$acl_save_prefix"
14781
14782 else
14783 additional_includedir="$withval/include"
14784 additional_libdir="$withval/$acl_libdirstem"
14785 fi
14786 fi
14787
14788fi
14789
14790 LIBINTL=
14791 LTLIBINTL=
14792 INCINTL=
14793 rpathdirs=
14794 ltrpathdirs=
14795 names_already_handled=
14796 names_next_round='intl '
14797 while test -n "$names_next_round"; do
14798 names_this_round="$names_next_round"
14799 names_next_round=
14800 for name in $names_this_round; do
14801 already_handled=
14802 for n in $names_already_handled; do
14803 if test "$n" = "$name"; then
14804 already_handled=yes
14805 break
14806 fi
14807 done
14808 if test -z "$already_handled"; then
14809 names_already_handled="$names_already_handled $name"
14810 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14811 eval value=\"\$HAVE_LIB$uppername\"
14812 if test -n "$value"; then
14813 if test "$value" = yes; then
14814 eval value=\"\$LIB$uppername\"
14815 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14816 eval value=\"\$LTLIB$uppername\"
14817 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14818 else
14819 :
14820 fi
14821 else
14822 found_dir=
14823 found_la=
14824 found_so=
14825 found_a=
14826 if test $use_additional = yes; then
14827 if test -n "$shlibext" \
14828 && { test -f "$additional_libdir/lib$name.$shlibext" \
14829 || { test "$shlibext" = dll \
14830 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
14831 found_dir="$additional_libdir"
14832 if test -f "$additional_libdir/lib$name.$shlibext"; then
14833 found_so="$additional_libdir/lib$name.$shlibext"
14834 else
14835 found_so="$additional_libdir/lib$name.dll.a"
14836 fi
14837 if test -f "$additional_libdir/lib$name.la"; then
14838 found_la="$additional_libdir/lib$name.la"
14839 fi
14840 else
14841 if test -f "$additional_libdir/lib$name.$libext"; then
14842 found_dir="$additional_libdir"
14843 found_a="$additional_libdir/lib$name.$libext"
14844 if test -f "$additional_libdir/lib$name.la"; then
14845 found_la="$additional_libdir/lib$name.la"
14846 fi
14847 fi
14848 fi
14849 fi
14850 if test "X$found_dir" = "X"; then
14851 for x in $LDFLAGS $LTLIBINTL; do
14852
14853 acl_save_prefix="$prefix"
14854 prefix="$acl_final_prefix"
14855 acl_save_exec_prefix="$exec_prefix"
14856 exec_prefix="$acl_final_exec_prefix"
14857 eval x=\"$x\"
14858 exec_prefix="$acl_save_exec_prefix"
14859 prefix="$acl_save_prefix"
14860
14861 case "$x" in
14862 -L*)
14863 dir=`echo "X$x" | sed -e 's/^X-L//'`
14864 if test -n "$shlibext" \
14865 && { test -f "$dir/lib$name.$shlibext" \
14866 || { test "$shlibext" = dll \
14867 && test -f "$dir/lib$name.dll.a"; }; }; then
14868 found_dir="$dir"
14869 if test -f "$dir/lib$name.$shlibext"; then
14870 found_so="$dir/lib$name.$shlibext"
14871 else
14872 found_so="$dir/lib$name.dll.a"
14873 fi
14874 if test -f "$dir/lib$name.la"; then
14875 found_la="$dir/lib$name.la"
14876 fi
14877 else
14878 if test -f "$dir/lib$name.$libext"; then
14879 found_dir="$dir"
14880 found_a="$dir/lib$name.$libext"
14881 if test -f "$dir/lib$name.la"; then
14882 found_la="$dir/lib$name.la"
14883 fi
14884 fi
14885 fi
14886 ;;
14887 esac
14888 if test "X$found_dir" != "X"; then
14889 break
14890 fi
14891 done
14892 fi
14893 if test "X$found_dir" != "X"; then
14894 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14895 if test "X$found_so" != "X"; then
14896 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14897 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14898 else
14899 haveit=
14900 for x in $ltrpathdirs; do
14901 if test "X$x" = "X$found_dir"; then
14902 haveit=yes
14903 break
14904 fi
14905 done
14906 if test -z "$haveit"; then
14907 ltrpathdirs="$ltrpathdirs $found_dir"
14908 fi
14909 if test "$hardcode_direct" = yes; then
14910 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14911 else
14912 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14913 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14914 haveit=
14915 for x in $rpathdirs; do
14916 if test "X$x" = "X$found_dir"; then
14917 haveit=yes
14918 break
14919 fi
14920 done
14921 if test -z "$haveit"; then
14922 rpathdirs="$rpathdirs $found_dir"
14923 fi
14924 else
14925 haveit=
14926 for x in $LDFLAGS $LIBINTL; do
14927
14928 acl_save_prefix="$prefix"
14929 prefix="$acl_final_prefix"
14930 acl_save_exec_prefix="$exec_prefix"
14931 exec_prefix="$acl_final_exec_prefix"
14932 eval x=\"$x\"
14933 exec_prefix="$acl_save_exec_prefix"
14934 prefix="$acl_save_prefix"
14935
14936 if test "X$x" = "X-L$found_dir"; then
14937 haveit=yes
14938 break
14939 fi
14940 done
14941 if test -z "$haveit"; then
14942 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14943 fi
14944 if test "$hardcode_minus_L" != no; then
14945 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14946 else
14947 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14948 fi
14949 fi
14950 fi
14951 fi
14952 else
14953 if test "X$found_a" != "X"; then
14954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14955 else
14956 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14957 fi
14958 fi
14959 additional_includedir=
14960 case "$found_dir" in
14961 */$acl_libdirstem | */$acl_libdirstem/)
14962 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14963 additional_includedir="$basedir/include"
14964 ;;
14965 esac
14966 if test "X$additional_includedir" != "X"; then
14967 if test "X$additional_includedir" != "X/usr/include"; then
14968 haveit=
14969 if test "X$additional_includedir" = "X/usr/local/include"; then
14970 if test -n "$GCC"; then
14971 case $host_os in
14972 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14973 esac
14974 fi
14975 fi
14976 if test -z "$haveit"; then
14977 for x in $CPPFLAGS $INCINTL; do
14978
14979 acl_save_prefix="$prefix"
14980 prefix="$acl_final_prefix"
14981 acl_save_exec_prefix="$exec_prefix"
14982 exec_prefix="$acl_final_exec_prefix"
14983 eval x=\"$x\"
14984 exec_prefix="$acl_save_exec_prefix"
14985 prefix="$acl_save_prefix"
14986
14987 if test "X$x" = "X-I$additional_includedir"; then
14988 haveit=yes
14989 break
14990 fi
14991 done
14992 if test -z "$haveit"; then
14993 if test -d "$additional_includedir"; then
14994 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14995 fi
14996 fi
14997 fi
14998 fi
14999 fi
15000 if test -n "$found_la"; then
15001 save_libdir="$libdir"
15002 case "$found_la" in
15003 */* | *\\*) . "$found_la" ;;
15004 *) . "./$found_la" ;;
15005 esac
15006 libdir="$save_libdir"
15007 for dep in $dependency_libs; do
15008 case "$dep" in
15009 -L*)
15010 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15011 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15012 haveit=
15013 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15014 if test -n "$GCC"; then
15015 case $host_os in
15016 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15017 esac
15018 fi
15019 fi
15020 if test -z "$haveit"; then
15021 haveit=
15022 for x in $LDFLAGS $LIBINTL; do
15023
15024 acl_save_prefix="$prefix"
15025 prefix="$acl_final_prefix"
15026 acl_save_exec_prefix="$exec_prefix"
15027 exec_prefix="$acl_final_exec_prefix"
15028 eval x=\"$x\"
15029 exec_prefix="$acl_save_exec_prefix"
15030 prefix="$acl_save_prefix"
15031
15032 if test "X$x" = "X-L$additional_libdir"; then
15033 haveit=yes
15034 break
15035 fi
15036 done
15037 if test -z "$haveit"; then
15038 if test -d "$additional_libdir"; then
15039 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15040 fi
15041 fi
15042 haveit=
15043 for x in $LDFLAGS $LTLIBINTL; do
15044
15045 acl_save_prefix="$prefix"
15046 prefix="$acl_final_prefix"
15047 acl_save_exec_prefix="$exec_prefix"
15048 exec_prefix="$acl_final_exec_prefix"
15049 eval x=\"$x\"
15050 exec_prefix="$acl_save_exec_prefix"
15051 prefix="$acl_save_prefix"
15052
15053 if test "X$x" = "X-L$additional_libdir"; then
15054 haveit=yes
15055 break
15056 fi
15057 done
15058 if test -z "$haveit"; then
15059 if test -d "$additional_libdir"; then
15060 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15061 fi
15062 fi
15063 fi
15064 fi
15065 ;;
15066 -R*)
15067 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15068 if test "$enable_rpath" != no; then
15069 haveit=
15070 for x in $rpathdirs; do
15071 if test "X$x" = "X$dir"; then
15072 haveit=yes
15073 break
15074 fi
15075 done
15076 if test -z "$haveit"; then
15077 rpathdirs="$rpathdirs $dir"
15078 fi
15079 haveit=
15080 for x in $ltrpathdirs; do
15081 if test "X$x" = "X$dir"; then
15082 haveit=yes
15083 break
15084 fi
15085 done
15086 if test -z "$haveit"; then
15087 ltrpathdirs="$ltrpathdirs $dir"
15088 fi
15089 fi
15090 ;;
15091 -l*)
15092 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15093 ;;
15094 *.la)
15095 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15096 ;;
15097 *)
15098 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15099 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15100 ;;
15101 esac
15102 done
15103 fi
15104 else
15105 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15107 fi
15108 fi
15109 fi
15110 done
15111 done
15112 if test "X$rpathdirs" != "X"; then
15113 if test -n "$hardcode_libdir_separator"; then
15114 alldirs=
15115 for found_dir in $rpathdirs; do
15116 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15117 done
15118 acl_save_libdir="$libdir"
15119 libdir="$alldirs"
15120 eval flag=\"$hardcode_libdir_flag_spec\"
15121 libdir="$acl_save_libdir"
15122 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15123 else
15124 for found_dir in $rpathdirs; do
15125 acl_save_libdir="$libdir"
15126 libdir="$found_dir"
15127 eval flag=\"$hardcode_libdir_flag_spec\"
15128 libdir="$acl_save_libdir"
15129 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15130 done
15131 fi
15132 fi
15133 if test "X$ltrpathdirs" != "X"; then
15134 for found_dir in $ltrpathdirs; do
15135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15136 done
15137 fi
15138
Scott James Remnantfde82c92009-09-22 10:04:15 -070015139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015140$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015141if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015142 $as_echo_n "(cached) " >&6
15143else
15144 gt_save_CPPFLAGS="$CPPFLAGS"
15145 CPPFLAGS="$CPPFLAGS $INCINTL"
15146 gt_save_LIBS="$LIBS"
15147 LIBS="$LIBS $LIBINTL"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015149/* end confdefs.h. */
15150#include <libintl.h>
15151$gt_revision_test_code
15152extern int _nl_msg_cat_cntr;
15153extern
15154#ifdef __cplusplus
15155"C"
15156#endif
15157const char *_nl_expand_alias (const char *);
15158int
15159main ()
15160{
15161bindtextdomain ("", "");
15162return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15163 ;
15164 return 0;
15165}
15166_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015167if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015168 eval "$gt_func_gnugettext_libintl=yes"
15169else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015170 eval "$gt_func_gnugettext_libintl=no"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015171fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015172rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015174 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15175 LIBS="$LIBS $LIBICONV"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015177/* end confdefs.h. */
15178#include <libintl.h>
15179$gt_revision_test_code
15180extern int _nl_msg_cat_cntr;
15181extern
15182#ifdef __cplusplus
15183"C"
15184#endif
15185const char *_nl_expand_alias (const char *);
15186int
15187main ()
15188{
15189bindtextdomain ("", "");
15190return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15191 ;
15192 return 0;
15193}
15194_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015195if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015196 LIBINTL="$LIBINTL $LIBICONV"
15197 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15198 eval "$gt_func_gnugettext_libintl=yes"
15199
Scott James Remnant65f683d2009-07-14 13:05:17 +010015200fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015201rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015203 fi
15204 CPPFLAGS="$gt_save_CPPFLAGS"
15205 LIBS="$gt_save_LIBS"
15206fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015207eval ac_res=\$$gt_func_gnugettext_libintl
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015209$as_echo "$ac_res" >&6; }
15210 fi
15211
15212 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15213 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15214 && test "$PACKAGE" != gettext-runtime \
15215 && test "$PACKAGE" != gettext-tools; }; then
15216 gt_use_preinstalled_gnugettext=yes
15217 else
15218 LIBINTL=
15219 LTLIBINTL=
15220 INCINTL=
15221 fi
15222
15223
15224 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15225 nls_cv_use_gnu_gettext=yes
15226 fi
15227 fi
15228
15229 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15230 BUILD_INCLUDED_LIBINTL=yes
15231 USE_INCLUDED_LIBINTL=yes
15232 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
15233 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
15234 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15235 fi
15236
15237 CATOBJEXT=
15238 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15239 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15240 CATOBJEXT=.gmo
15241 fi
15242
15243
15244 if test -n "$INTL_MACOSX_LIBS"; then
15245 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15246 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15247 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15248 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15249 fi
15250 fi
15251
15252 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15253 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15254
Scott James Remnantfde82c92009-09-22 10:04:15 -070015255$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015256
15257 else
15258 USE_NLS=no
15259 fi
15260 fi
15261
Scott James Remnantfde82c92009-09-22 10:04:15 -070015262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015263$as_echo_n "checking whether to use NLS... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015265$as_echo "$USE_NLS" >&6; }
15266 if test "$USE_NLS" = "yes"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015268$as_echo_n "checking where the gettext function comes from... " >&6; }
15269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15270 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15271 gt_source="external libintl"
15272 else
15273 gt_source="libc"
15274 fi
15275 else
15276 gt_source="included intl directory"
15277 fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015279$as_echo "$gt_source" >&6; }
15280 fi
15281
15282 if test "$USE_NLS" = "yes"; then
15283
15284 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15285 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015287$as_echo_n "checking how to link with libintl... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015289$as_echo "$LIBINTL" >&6; }
15290
15291 for element in $INCINTL; do
15292 haveit=
15293 for x in $CPPFLAGS; do
15294
15295 acl_save_prefix="$prefix"
15296 prefix="$acl_final_prefix"
15297 acl_save_exec_prefix="$exec_prefix"
15298 exec_prefix="$acl_final_exec_prefix"
15299 eval x=\"$x\"
15300 exec_prefix="$acl_save_exec_prefix"
15301 prefix="$acl_save_prefix"
15302
15303 if test "X$x" = "X$element"; then
15304 haveit=yes
15305 break
15306 fi
15307 done
15308 if test -z "$haveit"; then
15309 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15310 fi
15311 done
15312
15313 fi
15314
15315
Scott James Remnantfde82c92009-09-22 10:04:15 -070015316$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015317
15318
Scott James Remnantfde82c92009-09-22 10:04:15 -070015319$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010015320
15321 fi
15322
15323 POSUB=po
15324 fi
15325
15326
15327 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
15328 BUILD_INCLUDED_LIBINTL=yes
15329 fi
15330
15331
15332
15333
15334
15335 nls_cv_header_intl=
15336 nls_cv_header_libgt=
15337
15338 DATADIRNAME=share
15339
15340
15341 INSTOBJEXT=.mo
15342
15343
15344 GENCAT=gencat
15345
15346
15347 INTLOBJS=
15348 if test "$USE_INCLUDED_LIBINTL" = yes; then
15349 INTLOBJS="\$(GETTOBJS)"
15350 fi
15351
15352
15353 INTL_LIBTOOL_SUFFIX_PREFIX=
15354
15355
15356
15357 INTLLIBS="$LIBINTL"
15358
15359
15360
15361
15362
15363
15364
15365# Checks for programs.
15366ac_ext=c
15367ac_cpp='$CPP $CPPFLAGS'
15368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370ac_compiler_gnu=$ac_cv_c_compiler_gnu
15371if test -n "$ac_tool_prefix"; then
15372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15373set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015375$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015376if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015377 $as_echo_n "(cached) " >&6
15378else
15379 if test -n "$CC"; then
15380 ac_cv_prog_CC="$CC" # Let the user override the test.
15381else
15382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15383for as_dir in $PATH
15384do
15385 IFS=$as_save_IFS
15386 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015387 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015391 break 2
15392 fi
15393done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015394 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015395IFS=$as_save_IFS
15396
15397fi
15398fi
15399CC=$ac_cv_prog_CC
15400if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015402$as_echo "$CC" >&6; }
15403else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015405$as_echo "no" >&6; }
15406fi
15407
15408
15409fi
15410if test -z "$ac_cv_prog_CC"; then
15411 ac_ct_CC=$CC
15412 # Extract the first word of "gcc", so it can be a program name with args.
15413set dummy gcc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015415$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015417 $as_echo_n "(cached) " >&6
15418else
15419 if test -n "$ac_ct_CC"; then
15420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15421else
15422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15423for as_dir in $PATH
15424do
15425 IFS=$as_save_IFS
15426 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015427 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15429 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015431 break 2
15432 fi
15433done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015434 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015435IFS=$as_save_IFS
15436
15437fi
15438fi
15439ac_ct_CC=$ac_cv_prog_ac_ct_CC
15440if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015442$as_echo "$ac_ct_CC" >&6; }
15443else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015445$as_echo "no" >&6; }
15446fi
15447
15448 if test "x$ac_ct_CC" = x; then
15449 CC=""
15450 else
15451 case $cross_compiling:$ac_tool_warned in
15452yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015453{ $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 +010015454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15455ac_tool_warned=yes ;;
15456esac
15457 CC=$ac_ct_CC
15458 fi
15459else
15460 CC="$ac_cv_prog_CC"
15461fi
15462
15463if test -z "$CC"; then
15464 if test -n "$ac_tool_prefix"; then
15465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15466set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015468$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015469if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015470 $as_echo_n "(cached) " >&6
15471else
15472 if test -n "$CC"; then
15473 ac_cv_prog_CC="$CC" # Let the user override the test.
15474else
15475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15476for as_dir in $PATH
15477do
15478 IFS=$as_save_IFS
15479 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015480 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15482 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015484 break 2
15485 fi
15486done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015487 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015488IFS=$as_save_IFS
15489
15490fi
15491fi
15492CC=$ac_cv_prog_CC
15493if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015495$as_echo "$CC" >&6; }
15496else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015498$as_echo "no" >&6; }
15499fi
15500
15501
15502 fi
15503fi
15504if test -z "$CC"; then
15505 # Extract the first word of "cc", so it can be a program name with args.
15506set dummy cc; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015508$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015509if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015510 $as_echo_n "(cached) " >&6
15511else
15512 if test -n "$CC"; then
15513 ac_cv_prog_CC="$CC" # Let the user override the test.
15514else
15515 ac_prog_rejected=no
15516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517for as_dir in $PATH
15518do
15519 IFS=$as_save_IFS
15520 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015521 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15524 ac_prog_rejected=yes
15525 continue
15526 fi
15527 ac_cv_prog_CC="cc"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015529 break 2
15530 fi
15531done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015532 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015533IFS=$as_save_IFS
15534
15535if test $ac_prog_rejected = yes; then
15536 # We found a bogon in the path, so make sure we never use it.
15537 set dummy $ac_cv_prog_CC
15538 shift
15539 if test $# != 0; then
15540 # We chose a different compiler from the bogus one.
15541 # However, it has the same basename, so the bogon will be chosen
15542 # first if we set CC to just the basename; use the full file name.
15543 shift
15544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15545 fi
15546fi
15547fi
15548fi
15549CC=$ac_cv_prog_CC
15550if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015552$as_echo "$CC" >&6; }
15553else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015555$as_echo "no" >&6; }
15556fi
15557
15558
15559fi
15560if test -z "$CC"; then
15561 if test -n "$ac_tool_prefix"; then
15562 for ac_prog in cl.exe
15563 do
15564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015567$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015568if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015569 $as_echo_n "(cached) " >&6
15570else
15571 if test -n "$CC"; then
15572 ac_cv_prog_CC="$CC" # Let the user override the test.
15573else
15574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15575for as_dir in $PATH
15576do
15577 IFS=$as_save_IFS
15578 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015579 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015583 break 2
15584 fi
15585done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015586 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015587IFS=$as_save_IFS
15588
15589fi
15590fi
15591CC=$ac_cv_prog_CC
15592if test -n "$CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015594$as_echo "$CC" >&6; }
15595else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015597$as_echo "no" >&6; }
15598fi
15599
15600
15601 test -n "$CC" && break
15602 done
15603fi
15604if test -z "$CC"; then
15605 ac_ct_CC=$CC
15606 for ac_prog in cl.exe
15607do
15608 # Extract the first word of "$ac_prog", so it can be a program name with args.
15609set dummy $ac_prog; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015611$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015612if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015613 $as_echo_n "(cached) " >&6
15614else
15615 if test -n "$ac_ct_CC"; then
15616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15617else
15618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15619for as_dir in $PATH
15620do
15621 IFS=$as_save_IFS
15622 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015623 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010015624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15625 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015627 break 2
15628 fi
15629done
Scott James Remnantfde82c92009-09-22 10:04:15 -070015630 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015631IFS=$as_save_IFS
15632
15633fi
15634fi
15635ac_ct_CC=$ac_cv_prog_ac_ct_CC
15636if test -n "$ac_ct_CC"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015638$as_echo "$ac_ct_CC" >&6; }
15639else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015641$as_echo "no" >&6; }
15642fi
15643
15644
15645 test -n "$ac_ct_CC" && break
15646done
15647
15648 if test "x$ac_ct_CC" = x; then
15649 CC=""
15650 else
15651 case $cross_compiling:$ac_tool_warned in
15652yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015653{ $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 +010015654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15655ac_tool_warned=yes ;;
15656esac
15657 CC=$ac_ct_CC
15658 fi
15659fi
15660
15661fi
15662
15663
Scott James Remnantfde82c92009-09-22 10:04:15 -070015664test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070015666as_fn_error "no acceptable C compiler found in \$PATH
15667See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010015668
15669# Provide some information about the compiler.
Scott James Remnantfde82c92009-09-22 10:04:15 -070015670$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015671set X $ac_compile
15672ac_compiler=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070015673for ac_option in --version -v -V -qversion; do
15674 { { ac_try="$ac_compiler $ac_option >&5"
Scott James Remnant65f683d2009-07-14 13:05:17 +010015675case "(($ac_try" in
15676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677 *) ac_try_echo=$ac_try;;
15678esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15680$as_echo "$ac_try_echo"; } >&5
15681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Scott James Remnant65f683d2009-07-14 13:05:17 +010015682 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015683 if test -s conftest.err; then
15684 sed '10a\
15685... rest of stderr output deleted ...
15686 10q' conftest.err >conftest.er1
15687 cat conftest.er1 >&5
15688 rm -f conftest.er1 conftest.err
15689 fi
15690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15691 test $ac_status = 0; }
15692done
Scott James Remnant65f683d2009-07-14 13:05:17 +010015693
Scott James Remnantfde82c92009-09-22 10:04:15 -070015694{ $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 +010015695$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015696if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015697 $as_echo_n "(cached) " >&6
15698else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015700/* end confdefs.h. */
15701
15702int
15703main ()
15704{
15705#ifndef __GNUC__
15706 choke me
15707#endif
15708
15709 ;
15710 return 0;
15711}
15712_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015713if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015714 ac_compiler_gnu=yes
15715else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015716 ac_compiler_gnu=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010015717fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15719ac_cv_c_compiler_gnu=$ac_compiler_gnu
15720
15721fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015723$as_echo "$ac_cv_c_compiler_gnu" >&6; }
15724if test $ac_compiler_gnu = yes; then
15725 GCC=yes
15726else
15727 GCC=
15728fi
15729ac_test_CFLAGS=${CFLAGS+set}
15730ac_save_CFLAGS=$CFLAGS
Scott James Remnantfde82c92009-09-22 10:04:15 -070015731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015732$as_echo_n "checking whether $CC accepts -g... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015733if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015734 $as_echo_n "(cached) " >&6
15735else
15736 ac_save_c_werror_flag=$ac_c_werror_flag
15737 ac_c_werror_flag=yes
15738 ac_cv_prog_cc_g=no
15739 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015741/* end confdefs.h. */
15742
15743int
15744main ()
15745{
15746
15747 ;
15748 return 0;
15749}
15750_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015751if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015752 ac_cv_prog_cc_g=yes
15753else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015754 CFLAGS=""
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015756/* end confdefs.h. */
15757
15758int
15759main ()
15760{
15761
15762 ;
15763 return 0;
15764}
15765_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015766if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010015767
Scott James Remnantfde82c92009-09-22 10:04:15 -070015768else
15769 ac_c_werror_flag=$ac_save_c_werror_flag
Scott James Remnant65f683d2009-07-14 13:05:17 +010015770 CFLAGS="-g"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015772/* end confdefs.h. */
15773
15774int
15775main ()
15776{
15777
15778 ;
15779 return 0;
15780}
15781_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070015782if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015783 ac_cv_prog_cc_g=yes
Scott James Remnant65f683d2009-07-14 13:05:17 +010015784fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 ac_c_werror_flag=$ac_save_c_werror_flag
15791fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015793$as_echo "$ac_cv_prog_cc_g" >&6; }
15794if test "$ac_test_CFLAGS" = set; then
15795 CFLAGS=$ac_save_CFLAGS
15796elif test $ac_cv_prog_cc_g = yes; then
15797 if test "$GCC" = yes; then
15798 CFLAGS="-g -O2"
15799 else
15800 CFLAGS="-g"
15801 fi
15802else
15803 if test "$GCC" = yes; then
15804 CFLAGS="-O2"
15805 else
15806 CFLAGS=
15807 fi
15808fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070015809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015810$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070015811if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015812 $as_echo_n "(cached) " >&6
15813else
15814 ac_cv_prog_cc_c89=no
15815ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070015816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015817/* end confdefs.h. */
15818#include <stdarg.h>
15819#include <stdio.h>
15820#include <sys/types.h>
15821#include <sys/stat.h>
15822/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15823struct buf { int x; };
15824FILE * (*rcsopen) (struct buf *, struct stat *, int);
15825static char *e (p, i)
15826 char **p;
15827 int i;
15828{
15829 return p[i];
15830}
15831static char *f (char * (*g) (char **, int), char **p, ...)
15832{
15833 char *s;
15834 va_list v;
15835 va_start (v,p);
15836 s = g (p, va_arg (v,int));
15837 va_end (v);
15838 return s;
15839}
15840
15841/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15842 function prototypes and stuff, but not '\xHH' hex character constants.
15843 These don't provoke an error unfortunately, instead are silently treated
15844 as 'x'. The following induces an error, until -std is added to get
15845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15846 array size at least. It's necessary to write '\x00'==0 to get something
15847 that's true only with -std. */
15848int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15849
15850/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15851 inside strings and character constants. */
15852#define FOO(x) 'x'
15853int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15854
15855int test (int i, double x);
15856struct s1 {int (*f) (int a);};
15857struct s2 {int (*f) (double a);};
15858int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15859int argc;
15860char **argv;
15861int
15862main ()
15863{
15864return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15865 ;
15866 return 0;
15867}
15868_ACEOF
15869for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15871do
15872 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015873 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015874 ac_cv_prog_cc_c89=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010015875fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015876rm -f core conftest.err conftest.$ac_objext
15877 test "x$ac_cv_prog_cc_c89" != "xno" && break
15878done
15879rm -f conftest.$ac_ext
15880CC=$ac_save_CC
15881
15882fi
15883# AC_CACHE_VAL
15884case "x$ac_cv_prog_cc_c89" in
15885 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015887$as_echo "none needed" >&6; } ;;
15888 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070015889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015890$as_echo "unsupported" >&6; } ;;
15891 *)
15892 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnantfde82c92009-09-22 10:04:15 -070015893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015894$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15895esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015896if test "x$ac_cv_prog_cc_c89" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010015897
Scott James Remnantfde82c92009-09-22 10:04:15 -070015898fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010015899
15900ac_ext=c
15901ac_cpp='$CPP $CPPFLAGS'
15902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904ac_compiler_gnu=$ac_cv_c_compiler_gnu
15905
15906if test "x$CC" != xcc; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070015907 { $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 +010015908$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15909else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015911$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15912fi
15913set dummy $CC; ac_cc=`$as_echo "$2" |
15914 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070015915if { 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 +010015916 $as_echo_n "(cached) " >&6
15917else
Scott James Remnantfde82c92009-09-22 10:04:15 -070015918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010015919/* end confdefs.h. */
15920
15921int
15922main ()
15923{
15924
15925 ;
15926 return 0;
15927}
15928_ACEOF
15929# Make sure it works both with $CC and with simple cc.
15930# We do the test twice because some compilers refuse to overwrite an
15931# existing .o file with -o, though they will create one.
15932ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15933rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015934if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15937esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15939$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015940 (eval "$ac_try") 2>&5
15941 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943 test $ac_status = 0; } &&
15944 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15947esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15949$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015950 (eval "$ac_try") 2>&5
15951 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15953 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015954then
15955 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15956 if test "x$CC" != xcc; then
15957 # Test first that cc exists at all.
15958 if { ac_try='cc -c conftest.$ac_ext >&5'
Scott James Remnantfde82c92009-09-22 10:04:15 -070015959 { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15964$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015965 (eval "$ac_try") 2>&5
15966 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15968 test $ac_status = 0; }; }; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010015969 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15970 rm -f conftest2.*
Scott James Remnantfde82c92009-09-22 10:04:15 -070015971 if { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15976$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015977 (eval "$ac_try") 2>&5
15978 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15980 test $ac_status = 0; } &&
15981 test -f conftest2.$ac_objext && { { case "(($ac_try" in
Scott James Remnant65f683d2009-07-14 13:05:17 +010015982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15984esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070015985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15986$as_echo "$ac_try_echo"; } >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010015987 (eval "$ac_try") 2>&5
15988 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070015989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15990 test $ac_status = 0; };
Scott James Remnant65f683d2009-07-14 13:05:17 +010015991 then
15992 # cc works too.
15993 :
15994 else
15995 # cc exists but doesn't like -o.
15996 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15997 fi
15998 fi
15999 fi
16000else
16001 eval ac_cv_prog_cc_${ac_cc}_c_o=no
16002fi
16003rm -f core conftest*
16004
16005fi
16006if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016008$as_echo "yes" >&6; }
16009else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016011$as_echo "no" >&6; }
16012
Scott James Remnantfde82c92009-09-22 10:04:15 -070016013$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016014
16015fi
16016
16017# FIXME: we rely on the cache variable name because
16018# there is no other way.
16019set dummy $CC
16020am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16021eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16022if test "$am_t" != yes; then
16023 # Losing compiler, so override with the script.
16024 # FIXME: It is wrong to rewrite CC.
16025 # But if we don't then we get into trouble of one sort or another.
16026 # A longer-term fix would be to have automake use am__CC in this case,
16027 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16028 CC="$am_aux_dir/compile $CC"
16029fi
16030
16031
16032
Scott James Remnant2a66c572009-09-15 03:19:16 +010016033
16034if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16035 if test -n "$ac_tool_prefix"; then
16036 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16037set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016039$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016040if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016041 $as_echo_n "(cached) " >&6
16042else
16043 case $PKG_CONFIG in
16044 [\\/]* | ?:[\\/]*)
16045 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16046 ;;
16047 *)
16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049for as_dir in $PATH
16050do
16051 IFS=$as_save_IFS
16052 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016053 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16055 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016057 break 2
16058 fi
16059done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016060 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016061IFS=$as_save_IFS
16062
16063 ;;
16064esac
16065fi
16066PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16067if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016069$as_echo "$PKG_CONFIG" >&6; }
16070else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016072$as_echo "no" >&6; }
16073fi
16074
16075
16076fi
16077if test -z "$ac_cv_path_PKG_CONFIG"; then
16078 ac_pt_PKG_CONFIG=$PKG_CONFIG
16079 # Extract the first word of "pkg-config", so it can be a program name with args.
16080set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016082$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016083if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant2a66c572009-09-15 03:19:16 +010016084 $as_echo_n "(cached) " >&6
16085else
16086 case $ac_pt_PKG_CONFIG in
16087 [\\/]* | ?:[\\/]*)
16088 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16089 ;;
16090 *)
16091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16092for as_dir in $PATH
16093do
16094 IFS=$as_save_IFS
16095 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016096 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant2a66c572009-09-15 03:19:16 +010016097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16098 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016100 break 2
16101 fi
16102done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016103 done
Scott James Remnant2a66c572009-09-15 03:19:16 +010016104IFS=$as_save_IFS
16105
16106 ;;
16107esac
16108fi
16109ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16110if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016112$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16113else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016115$as_echo "no" >&6; }
16116fi
16117
16118 if test "x$ac_pt_PKG_CONFIG" = x; then
16119 PKG_CONFIG=""
16120 else
16121 case $cross_compiling:$ac_tool_warned in
16122yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016123{ $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 +010016124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16125ac_tool_warned=yes ;;
16126esac
16127 PKG_CONFIG=$ac_pt_PKG_CONFIG
16128 fi
16129else
16130 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16131fi
16132
16133fi
16134if test -n "$PKG_CONFIG"; then
16135 _pkg_min_version=0.9.0
Scott James Remnantfde82c92009-09-22 10:04:15 -070016136 { $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 +010016137$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16138 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016140$as_echo "yes" >&6; }
16141 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010016143$as_echo "no" >&6; }
16144 PKG_CONFIG=""
16145 fi
16146
16147fi
16148
Scott James Remnant65f683d2009-07-14 13:05:17 +010016149# Checks for libraries.
16150
16151
16152
16153 if test "x$nih_install" = "xyes"; then
16154 INSTALL_NIH_TRUE=
16155 INSTALL_NIH_FALSE='#'
16156else
16157 INSTALL_NIH_TRUE='#'
16158 INSTALL_NIH_FALSE=
16159fi
16160
16161
16162
16163
16164if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16165 if test -n "$ac_tool_prefix"; then
16166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16167set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016169$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016170if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016171 $as_echo_n "(cached) " >&6
16172else
16173 case $PKG_CONFIG in
16174 [\\/]* | ?:[\\/]*)
16175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16176 ;;
16177 *)
16178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16179for as_dir in $PATH
16180do
16181 IFS=$as_save_IFS
16182 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016183 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016187 break 2
16188 fi
16189done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016190 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016191IFS=$as_save_IFS
16192
16193 ;;
16194esac
16195fi
16196PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16197if test -n "$PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016199$as_echo "$PKG_CONFIG" >&6; }
16200else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016202$as_echo "no" >&6; }
16203fi
16204
16205
16206fi
16207if test -z "$ac_cv_path_PKG_CONFIG"; then
16208 ac_pt_PKG_CONFIG=$PKG_CONFIG
16209 # Extract the first word of "pkg-config", so it can be a program name with args.
16210set dummy pkg-config; ac_word=$2
Scott James Remnantfde82c92009-09-22 10:04:15 -070016211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016212$as_echo_n "checking for $ac_word... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016213if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016214 $as_echo_n "(cached) " >&6
16215else
16216 case $ac_pt_PKG_CONFIG in
16217 [\\/]* | ?:[\\/]*)
16218 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16219 ;;
16220 *)
16221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222for as_dir in $PATH
16223do
16224 IFS=$as_save_IFS
16225 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016226 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant65f683d2009-07-14 13:05:17 +010016227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16228 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016230 break 2
16231 fi
16232done
Scott James Remnantfde82c92009-09-22 10:04:15 -070016233 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010016234IFS=$as_save_IFS
16235
16236 ;;
16237esac
16238fi
16239ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16240if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016242$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16243else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016245$as_echo "no" >&6; }
16246fi
16247
16248 if test "x$ac_pt_PKG_CONFIG" = x; then
16249 PKG_CONFIG=""
16250 else
16251 case $cross_compiling:$ac_tool_warned in
16252yes:)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016253{ $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 +010016254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16255ac_tool_warned=yes ;;
16256esac
16257 PKG_CONFIG=$ac_pt_PKG_CONFIG
16258 fi
16259else
16260 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16261fi
16262
16263fi
16264if test -n "$PKG_CONFIG"; then
16265 _pkg_min_version=0.22
Scott James Remnantfde82c92009-09-22 10:04:15 -070016266 { $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 +010016267$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016270$as_echo "yes" >&6; }
16271 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016273$as_echo "no" >&6; }
16274 PKG_CONFIG=""
16275 fi
16276
16277fi
16278
16279# Checks for libraries
16280
16281nih_with_dbus=yes
Scott James Remnantfde82c92009-09-22 10:04:15 -070016282if test "x$nih_with_dbus" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016283
16284pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016286$as_echo_n "checking for DBUS... " >&6; }
16287
16288if test -n "$PKG_CONFIG"; then
16289 if test -n "$DBUS_CFLAGS"; then
16290 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16291 else
16292 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016293 { { $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 +010016294 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016295 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016298 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016299else
16300 pkg_failed=yes
16301fi
16302 fi
16303else
16304 pkg_failed=untried
16305fi
16306if test -n "$PKG_CONFIG"; then
16307 if test -n "$DBUS_LIBS"; then
16308 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16309 else
16310 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016311 { { $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 +010016312 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016313 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16315 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016316 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016317else
16318 pkg_failed=yes
16319fi
16320 fi
16321else
16322 pkg_failed=untried
16323fi
16324
16325
16326
16327if test $pkg_failed = yes; then
16328
16329if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16330 _pkg_short_errors_supported=yes
16331else
16332 _pkg_short_errors_supported=no
16333fi
16334 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016335 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 +010016336 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016337 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016338 fi
16339 # Put the nasty error message in config.log where it belongs
16340 echo "$DBUS_PKG_ERRORS" >&5
16341
Scott James Remnantfde82c92009-09-22 10:04:15 -070016342 as_fn_error "Package requirements (dbus-1 >= 1.2.16) were not met:
Scott James Remnant65f683d2009-07-14 13:05:17 +010016343
16344$DBUS_PKG_ERRORS
16345
16346Consider adjusting the PKG_CONFIG_PATH environment variable if you
16347installed software in a non-standard prefix.
16348
16349Alternatively, you may set the environment variables DBUS_CFLAGS
16350and DBUS_LIBS to avoid the need to call pkg-config.
16351See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016352" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016353elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070016354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070016356as_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 +010016357is in your PATH or set the PKG_CONFIG environment variable to the full
16358path to pkg-config.
16359
16360Alternatively, you may set the environment variables DBUS_CFLAGS
16361and DBUS_LIBS to avoid the need to call pkg-config.
16362See the pkg-config man page for more details.
16363
16364To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016365See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant65f683d2009-07-14 13:05:17 +010016366else
16367 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16368 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016370$as_echo "yes" >&6; }
16371 :
16372fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016374$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016375if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016376 $as_echo_n "(cached) " >&6
16377else
16378 ac_check_lib_save_LIBS=$LIBS
16379LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016381/* end confdefs.h. */
16382
16383/* Override any GCC internal prototype to avoid an error.
16384 Use char because int might match the return type of a GCC
16385 builtin and then its argument prototype would still apply. */
16386#ifdef __cplusplus
16387extern "C"
16388#endif
16389char XML_ParserCreate ();
16390int
16391main ()
16392{
16393return XML_ParserCreate ();
16394 ;
16395 return 0;
16396}
16397_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016398if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016399 ac_cv_lib_expat_XML_ParserCreate=yes
16400else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016401 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016402fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016403rm -f core conftest.err conftest.$ac_objext \
16404 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016405LIBS=$ac_check_lib_save_LIBS
16406fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016408$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016409if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016411$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016412if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016413 $as_echo_n "(cached) " >&6
16414else
16415 ac_check_lib_save_LIBS=$LIBS
16416LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016418/* end confdefs.h. */
16419
16420/* Override any GCC internal prototype to avoid an error.
16421 Use char because int might match the return type of a GCC
16422 builtin and then its argument prototype would still apply. */
16423#ifdef __cplusplus
16424extern "C"
16425#endif
16426char XML_StopParser ();
16427int
16428main ()
16429{
16430return XML_StopParser ();
16431 ;
16432 return 0;
16433}
16434_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016435if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016436 ac_cv_lib_expat_XML_StopParser=yes
16437else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016438 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016439fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016440rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016442LIBS=$ac_check_lib_save_LIBS
16443fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016445$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016446if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016447 EXPAT_LIBS=-lexpat
16448
16449else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016450 as_fn_error "expat >= 2.0.0 required" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016451fi
16452
16453else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016454 as_fn_error "expat library not found" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016455fi
16456
16457else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016458 if test "x$nih_with_dbus" != "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016459
16460pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070016461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016462$as_echo_n "checking for DBUS... " >&6; }
16463
16464if test -n "$PKG_CONFIG"; then
16465 if test -n "$DBUS_CFLAGS"; then
16466 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
16467 else
16468 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016469 { { $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 +010016470 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016471 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16473 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016474 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016475else
16476 pkg_failed=yes
16477fi
16478 fi
16479else
16480 pkg_failed=untried
16481fi
16482if test -n "$PKG_CONFIG"; then
16483 if test -n "$DBUS_LIBS"; then
16484 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
16485 else
16486 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070016487 { { $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 +010016488 ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.16") 2>&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016489 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070016490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16491 test $ac_status = 0; }; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016492 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.16" 2>/dev/null`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016493else
16494 pkg_failed=yes
16495fi
16496 fi
16497else
16498 pkg_failed=untried
16499fi
16500
16501
16502
16503if test $pkg_failed = yes; then
16504
16505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16506 _pkg_short_errors_supported=yes
16507else
16508 _pkg_short_errors_supported=no
16509fi
16510 if test $_pkg_short_errors_supported = yes; then
Scott James Remnantd91d8522009-07-16 18:21:14 +010016511 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 +010016512 else
Scott James Remnantd91d8522009-07-16 18:21:14 +010016513 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.2.16"`
Scott James Remnant65f683d2009-07-14 13:05:17 +010016514 fi
16515 # Put the nasty error message in config.log where it belongs
16516 echo "$DBUS_PKG_ERRORS" >&5
16517
Scott James Remnantfde82c92009-09-22 10:04:15 -070016518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016519$as_echo "no" >&6; }
16520 nih_have_dbus=no
16521elif test $pkg_failed = untried; then
16522 nih_have_dbus=no
16523else
16524 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
16525 DBUS_LIBS=$pkg_cv_DBUS_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070016526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016527$as_echo "yes" >&6; }
16528 :
16529fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016531$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016532if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016533 $as_echo_n "(cached) " >&6
16534else
16535 ac_check_lib_save_LIBS=$LIBS
16536LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016538/* end confdefs.h. */
16539
16540/* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16543#ifdef __cplusplus
16544extern "C"
16545#endif
16546char XML_ParserCreate ();
16547int
16548main ()
16549{
16550return XML_ParserCreate ();
16551 ;
16552 return 0;
16553}
16554_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016555if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016556 ac_cv_lib_expat_XML_ParserCreate=yes
16557else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016558 ac_cv_lib_expat_XML_ParserCreate=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016559fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016560rm -f core conftest.err conftest.$ac_objext \
16561 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016562LIBS=$ac_check_lib_save_LIBS
16563fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016565$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016566if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_StopParser in -lexpat" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016568$as_echo_n "checking for XML_StopParser in -lexpat... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016569if test "${ac_cv_lib_expat_XML_StopParser+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016570 $as_echo_n "(cached) " >&6
16571else
16572 ac_check_lib_save_LIBS=$LIBS
16573LIBS="-lexpat $LIBS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016575/* end confdefs.h. */
16576
16577/* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16580#ifdef __cplusplus
16581extern "C"
16582#endif
16583char XML_StopParser ();
16584int
16585main ()
16586{
16587return XML_StopParser ();
16588 ;
16589 return 0;
16590}
16591_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016592if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016593 ac_cv_lib_expat_XML_StopParser=yes
16594else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016595 ac_cv_lib_expat_XML_StopParser=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016596fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016597rm -f core conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016599LIBS=$ac_check_lib_save_LIBS
16600fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_StopParser" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016602$as_echo "$ac_cv_lib_expat_XML_StopParser" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016603if test "x$ac_cv_lib_expat_XML_StopParser" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016604 EXPAT_LIBS=-lexpat
16605
16606else
16607 nih_have_dbus=no
16608fi
16609
16610else
16611 nih_have_dbus=no
16612fi
16613
16614else
16615 nih_have_dbus=no
16616fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016617fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016618 if test "x$nih_have_dbus" != "xno"; then
16619 HAVE_DBUS_TRUE=
16620 HAVE_DBUS_FALSE='#'
16621else
16622 HAVE_DBUS_TRUE='#'
16623 HAVE_DBUS_FALSE=
16624fi
16625
16626
Scott James Remnant2c84e532009-10-14 05:31:38 +010016627if test "x$nih_have_dbus" != "xno"; then :
16628
16629 if test "$cross_compiling" = "yes"; then :
16630 for ac_prog in nih-dbus-tool
16631do
16632 # Extract the first word of "$ac_prog", so it can be a program name with args.
16633set dummy $ac_prog; ac_word=$2
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16635$as_echo_n "checking for $ac_word... " >&6; }
16636if test "${ac_cv_prog_NIH_DBUS_TOOL+set}" = set; then :
16637 $as_echo_n "(cached) " >&6
16638else
16639 if test -n "$NIH_DBUS_TOOL"; then
16640 ac_cv_prog_NIH_DBUS_TOOL="$NIH_DBUS_TOOL" # Let the user override the test.
16641else
16642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643for as_dir in $PATH
16644do
16645 IFS=$as_save_IFS
16646 test -z "$as_dir" && as_dir=.
16647 for ac_exec_ext in '' $ac_executable_extensions; do
16648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16649 ac_cv_prog_NIH_DBUS_TOOL="$ac_prog"
16650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16651 break 2
16652 fi
16653done
16654 done
16655IFS=$as_save_IFS
16656
16657fi
16658fi
16659NIH_DBUS_TOOL=$ac_cv_prog_NIH_DBUS_TOOL
16660if test -n "$NIH_DBUS_TOOL"; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NIH_DBUS_TOOL" >&5
16662$as_echo "$NIH_DBUS_TOOL" >&6; }
16663else
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16665$as_echo "no" >&6; }
16666fi
16667
16668
16669 test -n "$NIH_DBUS_TOOL" && break
16670done
16671
16672 if test -z "$NIH_DBUS_TOOL"; then :
16673 { $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
16674$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;}
Colin Watsond58a9aa2010-01-16 02:55:43 +000016675 NIH_DBUS_TOOL="\${top_builddir}/nih-dbus-tool/nih-dbus-tool-build"
Scott James Remnant2c84e532009-10-14 05:31:38 +010016676
16677fi
16678else
Colin Watsond58a9aa2010-01-16 02:55:43 +000016679 NIH_DBUS_TOOL="\${top_builddir}/nih-dbus-tool/nih-dbus-tool-build"
Scott James Remnant2c84e532009-10-14 05:31:38 +010016680
16681fi
16682fi
16683
Scott James Remnant65f683d2009-07-14 13:05:17 +010016684
16685# Checks for header files.
Scott James Remnant65f683d2009-07-14 13:05:17 +010016686for ac_header in valgrind/valgrind.h
Scott James Remnantfde82c92009-09-22 10:04:15 -070016687do :
16688 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16689if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016690 cat >>confdefs.h <<_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016691#define HAVE_VALGRIND_VALGRIND_H 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010016692_ACEOF
16693
16694fi
16695
16696done
16697
16698
16699# Checks for typedefs, structures, and compiler characteristics.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016701$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016702if test "${ac_cv_prog_cc_c99+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016703 $as_echo_n "(cached) " >&6
16704else
16705 ac_cv_prog_cc_c99=no
16706ac_save_CC=$CC
Scott James Remnantfde82c92009-09-22 10:04:15 -070016707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016708/* end confdefs.h. */
16709#include <stdarg.h>
16710#include <stdbool.h>
16711#include <stdlib.h>
16712#include <wchar.h>
16713#include <stdio.h>
16714
16715// Check varargs macros. These examples are taken from C99 6.10.3.5.
16716#define debug(...) fprintf (stderr, __VA_ARGS__)
16717#define showlist(...) puts (#__VA_ARGS__)
16718#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16719static void
16720test_varargs_macros (void)
16721{
16722 int x = 1234;
16723 int y = 5678;
16724 debug ("Flag");
16725 debug ("X = %d\n", x);
16726 showlist (The first, second, and third items.);
16727 report (x>y, "x is %d but y is %d", x, y);
16728}
16729
16730// Check long long types.
16731#define BIG64 18446744073709551615ull
16732#define BIG32 4294967295ul
16733#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
16734#if !BIG_OK
16735 your preprocessor is broken;
16736#endif
16737#if BIG_OK
16738#else
16739 your preprocessor is broken;
16740#endif
16741static long long int bignum = -9223372036854775807LL;
16742static unsigned long long int ubignum = BIG64;
16743
16744struct incomplete_array
16745{
16746 int datasize;
16747 double data[];
16748};
16749
16750struct named_init {
16751 int number;
16752 const wchar_t *name;
16753 double average;
16754};
16755
16756typedef const char *ccp;
16757
16758static inline int
16759test_restrict (ccp restrict text)
16760{
16761 // See if C++-style comments work.
16762 // Iterate through items via the restricted pointer.
16763 // Also check for declarations in for loops.
16764 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
16765 continue;
16766 return 0;
16767}
16768
16769// Check varargs and va_copy.
16770static void
16771test_varargs (const char *format, ...)
16772{
16773 va_list args;
16774 va_start (args, format);
16775 va_list args_copy;
16776 va_copy (args_copy, args);
16777
16778 const char *str;
16779 int number;
16780 float fnumber;
16781
16782 while (*format)
16783 {
16784 switch (*format++)
16785 {
16786 case 's': // string
16787 str = va_arg (args_copy, const char *);
16788 break;
16789 case 'd': // int
16790 number = va_arg (args_copy, int);
16791 break;
16792 case 'f': // float
16793 fnumber = va_arg (args_copy, double);
16794 break;
16795 default:
16796 break;
16797 }
16798 }
16799 va_end (args_copy);
16800 va_end (args);
16801}
16802
16803int
16804main ()
16805{
16806
16807 // Check bool.
16808 _Bool success = false;
16809
16810 // Check restrict.
16811 if (test_restrict ("String literal") == 0)
16812 success = true;
16813 char *restrict newvar = "Another string";
16814
16815 // Check varargs.
16816 test_varargs ("s, d' f .", "string", 65, 34.234);
16817 test_varargs_macros ();
16818
16819 // Check flexible array members.
16820 struct incomplete_array *ia =
16821 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
16822 ia->datasize = 10;
16823 for (int i = 0; i < ia->datasize; ++i)
16824 ia->data[i] = i * 1.234;
16825
16826 // Check named initializers.
16827 struct named_init ni = {
16828 .number = 34,
16829 .name = L"Test wide string",
16830 .average = 543.34343,
16831 };
16832
16833 ni.number = 58;
16834
16835 int dynamic_array[ni.number];
16836 dynamic_array[ni.number - 1] = 543;
16837
16838 // work around unused variable warnings
16839 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
16840 || dynamic_array[ni.number - 1] != 543);
16841
16842 ;
16843 return 0;
16844}
16845_ACEOF
16846for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
16847do
16848 CC="$ac_save_CC $ac_arg"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016849 if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016850 ac_cv_prog_cc_c99=$ac_arg
Scott James Remnant65f683d2009-07-14 13:05:17 +010016851fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016852rm -f core conftest.err conftest.$ac_objext
16853 test "x$ac_cv_prog_cc_c99" != "xno" && break
16854done
16855rm -f conftest.$ac_ext
16856CC=$ac_save_CC
16857
16858fi
16859# AC_CACHE_VAL
16860case "x$ac_cv_prog_cc_c99" in
16861 x)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016863$as_echo "none needed" >&6; } ;;
16864 xno)
Scott James Remnantfde82c92009-09-22 10:04:15 -070016865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016866$as_echo "unsupported" >&6; } ;;
16867 *)
16868 CC="$CC $ac_cv_prog_cc_c99"
Scott James Remnantfde82c92009-09-22 10:04:15 -070016869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016870$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
16871esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070016872if test "x$ac_cv_prog_cc_c99" != xno; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016873
Scott James Remnantfde82c92009-09-22 10:04:15 -070016874fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016875
16876
16877# FIXME: we rely on the cache variable name because
16878# there is no other way.
16879set dummy $CC
16880am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
16881eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
16882if test "$am_t" != yes; then
16883 # Losing compiler, so override with the script.
16884 # FIXME: It is wrong to rewrite CC.
16885 # But if we don't then we get into trouble of one sort or another.
16886 # A longer-term fix would be to have automake use am__CC in this case,
16887 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16888 CC="$am_aux_dir/compile $CC"
16889fi
16890
16891
16892# Check whether --enable-threading was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016893if test "${enable_threading+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016894 enableval=$enable_threading;
16895else
16896 enable_threading=no
16897fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016898if test "x$enable_threading" != "xno" ; then :
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016900$as_echo_n "checking whether compiler supports __thread... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016901if test "${nih_cv_c_thread+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016902 $as_echo_n "(cached) " >&6
16903else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016905/* end confdefs.h. */
16906int __thread a;
16907int
16908main ()
16909{
16910
16911 ;
16912 return 0;
16913}
16914_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070016915if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016916 nih_cv_c_thread=yes
16917else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016918 nih_cv_c_thread=no
Scott James Remnant65f683d2009-07-14 13:05:17 +010016919fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_c_thread" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016923$as_echo "$nih_cv_c_thread" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016924if test "x$nih_cv_c_thread" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016925
Scott James Remnantfde82c92009-09-22 10:04:15 -070016926$as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016927
16928fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016929else
Scott James Remnantfde82c92009-09-22 10:04:15 -070016930 $as_echo "#define __thread /**/" >>confdefs.h
Scott James Remnant65f683d2009-07-14 13:05:17 +010016931
16932fi
16933
Scott James Remnant65f683d2009-07-14 13:05:17 +010016934# Other checks
16935# Check whether --enable-compiler-warnings was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016936if test "${enable_compiler_warnings+set}" = set; then :
16937 enableval=$enable_compiler_warnings; if test "x$enable_compiler_warnings" = "xyes"; then :
16938 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016939 CFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CFLAGS"
16940fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016941 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016942 CXXFLAGS="-Wall -Wextra -Wno-empty-body -Wno-missing-field-initializers -Wno-unused-parameter -Wformat-security -Werror -D_FORTIFY_SOURCE=2 $CXXFLAGS"
16943fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016944fi
16945
Scott James Remnant65f683d2009-07-14 13:05:17 +010016946fi
16947
16948# Check whether --enable-compiler-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016949if test "${enable_compiler_optimisations+set}" = set; then :
16950 enableval=$enable_compiler_optimisations; if test "x$enable_compiler_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016951 CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16952 CXXFLAGS=`echo "$CXXFLAGS" | sed -e "s/ -O[1-9s]*\b/ -O0/g"`
16953fi
16954
Scott James Remnant65f683d2009-07-14 13:05:17 +010016955fi
16956
16957# Check whether --enable-compiler-coverage was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016958if test "${enable_compiler_coverage+set}" = set; then :
16959 enableval=$enable_compiler_coverage; if test "x$enable_compiler_coverage" = "xyes"; then :
16960 if test "x$GCC" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016961 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
16962fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070016963 if test "x$GXX" = "xyes"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016964 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
16965fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010016966fi
16967
Scott James Remnant65f683d2009-07-14 13:05:17 +010016968fi
16969
16970
16971# Check whether --enable-linker-optimisations was given.
Scott James Remnantfde82c92009-09-22 10:04:15 -070016972if test "${enable_linker_optimisations+set}" = set; then :
16973 enableval=$enable_linker_optimisations; if test "x$enable_linker_optimisations" = "xno"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016974 LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O0-9*\b//g"`
16975else
16976 LDFLAGS="$LDFLAGS -Wl,-O1"
16977fi
16978
Scott James Remnant65f683d2009-07-14 13:05:17 +010016979fi
16980
Scott James Remnantfde82c92009-09-22 10:04:15 -070016981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version script argument" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010016982$as_echo_n "checking for linker version script argument... " >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070016983if test "${nih_cv_version_script+set}" = set; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010016984 $as_echo_n "(cached) " >&6
16985else
16986 nih_cv_version_script=none
16987for nih_try_arg in "-Wl,--version-script"; do
16988 nih_old_libs="$LIBS"
16989 LIBS="$LIBS $nih_try_arg=conftest.ver"
16990
16991 cat >conftest.ver <<EOF
16992TEST {
16993 global:
16994 *;
16995};
16996EOF
16997
Scott James Remnantfde82c92009-09-22 10:04:15 -070016998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010016999/* end confdefs.h. */
17000
17001int
17002main ()
17003{
17004
17005 ;
17006 return 0;
17007}
17008_ACEOF
Scott James Remnantfde82c92009-09-22 10:04:15 -070017009if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017010
17011 rm -f conftest.ver
17012 LIBS="$nih_old_libs"
17013 nih_cv_version_script="$nih_try_arg"
17014 break
17015
Scott James Remnant65f683d2009-07-14 13:05:17 +010017016fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070017017rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant65f683d2009-07-14 13:05:17 +010017019
17020 rm -f conftest.ver
17021 LIBS="$nih_old_libs"
17022done
17023fi
Scott James Remnantfde82c92009-09-22 10:04:15 -070017024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $nih_cv_version_script" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017025$as_echo "$nih_cv_version_script" >&6; }
Scott James Remnantfde82c92009-09-22 10:04:15 -070017026if test "x$nih_cv_version_script" != "xnone"; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017027 VERSION_SCRIPT_ARG=$nih_cv_version_script
17028
17029fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017030 if test "x$nih_cv_version_script" != "xnone"; then
17031 HAVE_VERSION_SCRIPT_ARG_TRUE=
17032 HAVE_VERSION_SCRIPT_ARG_FALSE='#'
17033else
17034 HAVE_VERSION_SCRIPT_ARG_TRUE='#'
17035 HAVE_VERSION_SCRIPT_ARG_FALSE=
17036fi
17037
17038
17039
17040
17041# Checks for header files.
17042
17043# Checks for typedefs, structures, and compiler characteristics.
17044
17045# Checks for library functions.
17046
17047# Other checks
Scott James Remnantfde82c92009-09-22 10:04:15 -070017048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sbindir in PATH" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017049$as_echo_n "checking whether to include sbindir in PATH... " >&6; }
17050eval upstart_sbindir=\"$sbindir\"
17051case $upstart_sbindir in
17052 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017054$as_echo "no" >&6; }
17055 ;;
17056 *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017058$as_echo "yes" >&6; }
17059
17060cat >>confdefs.h <<_ACEOF
17061#define EXTRA_PATH "$upstart_sbindir"
17062_ACEOF
17063
17064 ;;
17065esac
17066
17067
Scott James Remnant2a66c572009-09-15 03:19:16 +010017068pkg_failed=no
Scott James Remnantfde82c92009-09-22 10:04:15 -070017069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017070$as_echo_n "checking for UDEV... " >&6; }
17071
17072if test -n "$PKG_CONFIG"; then
17073 if test -n "$UDEV_CFLAGS"; then
17074 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
17075 else
17076 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070017077 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017078 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
17079 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070017080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17081 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017082 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 146" 2>/dev/null`
17083else
17084 pkg_failed=yes
17085fi
17086 fi
17087else
17088 pkg_failed=untried
17089fi
17090if test -n "$PKG_CONFIG"; then
17091 if test -n "$UDEV_LIBS"; then
17092 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
17093 else
17094 if test -n "$PKG_CONFIG" && \
Scott James Remnantfde82c92009-09-22 10:04:15 -070017095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 146\""; } >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017096 ($PKG_CONFIG --exists --print-errors "libudev >= 146") 2>&5
17097 ac_status=$?
Scott James Remnantfde82c92009-09-22 10:04:15 -070017098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17099 test $ac_status = 0; }; then
Scott James Remnant2a66c572009-09-15 03:19:16 +010017100 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 146" 2>/dev/null`
17101else
17102 pkg_failed=yes
17103fi
17104 fi
17105else
17106 pkg_failed=untried
17107fi
17108
17109
17110
17111if test $pkg_failed = yes; then
17112
17113if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17114 _pkg_short_errors_supported=yes
17115else
17116 _pkg_short_errors_supported=no
17117fi
17118 if test $_pkg_short_errors_supported = yes; then
17119 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libudev >= 146"`
17120 else
17121 UDEV_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libudev >= 146"`
17122 fi
17123 # Put the nasty error message in config.log where it belongs
17124 echo "$UDEV_PKG_ERRORS" >&5
17125
Scott James Remnantfde82c92009-09-22 10:04:15 -070017126 as_fn_error "Package requirements (libudev >= 146) were not met:
Scott James Remnant2a66c572009-09-15 03:19:16 +010017127
17128$UDEV_PKG_ERRORS
17129
17130Consider adjusting the PKG_CONFIG_PATH environment variable if you
17131installed software in a non-standard prefix.
17132
17133Alternatively, you may set the environment variables UDEV_CFLAGS
17134and UDEV_LIBS to avoid the need to call pkg-config.
17135See the pkg-config man page for more details.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017136" "$LINENO" 5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017137elif test $pkg_failed = untried; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017140as_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 +010017141is in your PATH or set the PKG_CONFIG environment variable to the full
17142path to pkg-config.
17143
17144Alternatively, you may set the environment variables UDEV_CFLAGS
17145and UDEV_LIBS to avoid the need to call pkg-config.
17146See the pkg-config man page for more details.
17147
17148To get pkg-config, see <http://pkg-config.freedesktop.org/>.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017149See \`config.log' for more details." "$LINENO" 5; }
Scott James Remnant2a66c572009-09-15 03:19:16 +010017150else
17151 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
17152 UDEV_LIBS=$pkg_cv_UDEV_LIBS
Scott James Remnantfde82c92009-09-22 10:04:15 -070017153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant2a66c572009-09-15 03:19:16 +010017154$as_echo "yes" >&6; }
17155 :
17156fi
17157
17158
Colin Watsond58a9aa2010-01-16 02:55:43 +000017159 if test "x$cross_compiling" = xyes; then
17160 CROSS_COMPILING_TRUE=
17161 CROSS_COMPILING_FALSE='#'
17162else
17163 CROSS_COMPILING_TRUE='#'
17164 CROSS_COMPILING_FALSE=
17165fi
17166
17167if test "x$cross_compiling" = xyes; then
17168 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
17169 CC_FOR_BUILD=${CC_FOR_BUILD-gcc -std=gnu99}
17170 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
17171
17172 DBUS_CFLAGS_FOR_BUILD=`unset PKG_CONFIG_LIBDIR; pkg-config --cflags 'dbus-1 >= 1.2.16'`
17173 DBUS_LIBS_FOR_BUILD=`unset PKG_CONFIG_LIBDIR; pkg-config --libs 'dbus-1 >= 1.2.16'`
17174else
17175 AR_FOR_BUILD="\$(AR)"
17176 CC_FOR_BUILD="\$(CC)"
17177 RANLIB_FOR_BUILD="\$(RANLIB)"
17178 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-$CFLAGS}
17179 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-$LDFLAGS}
17180fi
17181
17182
17183
17184
17185
17186
17187
17188
17189
Scott James Remnant2a66c572009-09-15 03:19:16 +010017190ac_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 +010017191
17192ac_config_headers="$ac_config_headers config.h"
17193
17194cat >confcache <<\_ACEOF
17195# This file is a shell script that caches the results of configure
17196# tests run on this system so they can be shared between configure
17197# scripts and configure runs, see configure's option --config-cache.
17198# It is not useful on other systems. If it contains results you don't
17199# want to keep, you may remove or edit it.
17200#
17201# config.status only pays attention to the cache file if you give it
17202# the --recheck option to rerun configure.
17203#
17204# `ac_cv_env_foo' variables (set or unset) will be overridden when
17205# loading this file, other *unset* `ac_cv_foo' will be assigned the
17206# following values.
17207
17208_ACEOF
17209
17210# The following way of writing the cache mishandles newlines in values,
17211# but we know of no workaround that is simple, portable, and efficient.
17212# So, we kill variables containing newlines.
17213# Ultrix sh set writes to stderr and can't be redirected directly,
17214# and sets the high bit in the cache file unless we assign to the vars.
17215(
17216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17217 eval ac_val=\$$ac_var
17218 case $ac_val in #(
17219 *${as_nl}*)
17220 case $ac_var in #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017221 *_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 +010017222$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17223 esac
17224 case $ac_var in #(
17225 _ | IFS | as_nl) ;; #(
17226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Scott James Remnantfde82c92009-09-22 10:04:15 -070017227 *) { eval $ac_var=; unset $ac_var;} ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017228 esac ;;
17229 esac
17230 done
17231
17232 (set) 2>&1 |
17233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17234 *${as_nl}ac_space=\ *)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017235 # `set' does not quote correctly, so add quotes: double-quote
17236 # substitution turns \\\\ into \\, and sed turns \\ into \.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017237 sed -n \
17238 "s/'/'\\\\''/g;
17239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17240 ;; #(
17241 *)
17242 # `set' quotes correctly as required by POSIX, so do not add quotes.
17243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17244 ;;
17245 esac |
17246 sort
17247) |
17248 sed '
17249 /^ac_cv_env_/b end
17250 t clear
17251 :clear
17252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17253 t end
17254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17255 :end' >>confcache
17256if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17257 if test -w "$cache_file"; then
17258 test "x$cache_file" != "x/dev/null" &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070017259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017260$as_echo "$as_me: updating cache $cache_file" >&6;}
17261 cat confcache >$cache_file
17262 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017264$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17265 fi
17266fi
17267rm -f confcache
17268
17269test "x$prefix" = xNONE && prefix=$ac_default_prefix
17270# Let make expand exec_prefix.
17271test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17272
17273DEFS=-DHAVE_CONFIG_H
17274
17275ac_libobjs=
17276ac_ltlibobjs=
17277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17278 # 1. Remove the extension, and $U if already installed.
17279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17282 # will be set to the directory where LIBOBJS objects are built.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017285done
17286LIBOBJS=$ac_libobjs
17287
17288LTLIBOBJS=$ac_ltlibobjs
17289
17290
17291if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017292 as_fn_error "conditional \"AMDEP\" was never defined.
17293Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017294fi
17295if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017296 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17297Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017298fi
Scott James Remnantc5b65582009-09-23 14:16:28 -070017299 if test -n "$EXEEXT"; then
17300 am__EXEEXT_TRUE=
17301 am__EXEEXT_FALSE='#'
17302else
17303 am__EXEEXT_TRUE='#'
17304 am__EXEEXT_FALSE=
17305fi
17306
Scott James Remnant65f683d2009-07-14 13:05:17 +010017307if test -z "${INSTALL_NIH_TRUE}" && test -z "${INSTALL_NIH_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017308 as_fn_error "conditional \"INSTALL_NIH\" was never defined.
17309Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017310fi
17311if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017312 as_fn_error "conditional \"HAVE_DBUS\" was never defined.
17313Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017314fi
17315if test -z "${HAVE_VERSION_SCRIPT_ARG_TRUE}" && test -z "${HAVE_VERSION_SCRIPT_ARG_FALSE}"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017316 as_fn_error "conditional \"HAVE_VERSION_SCRIPT_ARG\" was never defined.
17317Usually this means the macro was only invoked conditionally." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017318fi
Colin Watsond58a9aa2010-01-16 02:55:43 +000017319if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17320 as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
17321Usually this means the macro was only invoked conditionally." "$LINENO" 5
17322fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017323
17324: ${CONFIG_STATUS=./config.status}
17325ac_write_fail=0
17326ac_clean_files_save=$ac_clean_files
17327ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnantfde82c92009-09-22 10:04:15 -070017328{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010017329$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Scott James Remnantfde82c92009-09-22 10:04:15 -070017330as_write_fail=0
17331cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017332#! $SHELL
17333# Generated by $as_me.
17334# Run this file to recreate the current configuration.
17335# Compiler output produced by configure, useful for debugging
17336# configure, is in config.log if it exists.
17337
17338debug=false
17339ac_cs_recheck=false
17340ac_cs_silent=false
Scott James Remnant2a66c572009-09-15 03:19:16 +010017341
Scott James Remnantfde82c92009-09-22 10:04:15 -070017342SHELL=\${CONFIG_SHELL-$SHELL}
17343export SHELL
17344_ASEOF
17345cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17346## -------------------- ##
17347## M4sh Initialization. ##
17348## -------------------- ##
Scott James Remnant65f683d2009-07-14 13:05:17 +010017349
17350# Be more Bourne compatible
17351DUALCASE=1; export DUALCASE # for MKS sh
Scott James Remnantfde82c92009-09-22 10:04:15 -070017352if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017353 emulate sh
17354 NULLCMD=:
17355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17356 # is contrary to our usage. Disable this feature.
17357 alias -g '${1+"$@"}'='"$@"'
17358 setopt NO_GLOB_SUBST
17359else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017360 case `(set -o) 2>/dev/null` in #(
17361 *posix*) :
17362 set -o posix ;; #(
17363 *) :
17364 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017365esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017366fi
17367
17368
Scott James Remnant65f683d2009-07-14 13:05:17 +010017369as_nl='
17370'
17371export as_nl
17372# Printing a long string crashes Solaris 7 /usr/bin/printf.
17373as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17374as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17375as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Scott James Remnantfde82c92009-09-22 10:04:15 -070017376# Prefer a ksh shell builtin over an external printf program on Solaris,
17377# but without wasting forks for bash or zsh.
17378if test -z "$BASH_VERSION$ZSH_VERSION" \
17379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17380 as_echo='print -r --'
17381 as_echo_n='print -rn --'
17382elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant65f683d2009-07-14 13:05:17 +010017383 as_echo='printf %s\n'
17384 as_echo_n='printf %s'
17385else
17386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17388 as_echo_n='/usr/ucb/echo -n'
17389 else
17390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17391 as_echo_n_body='eval
17392 arg=$1;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017393 case $arg in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017394 *"$as_nl"*)
17395 expr "X$arg" : "X\\(.*\\)$as_nl";
17396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17397 esac;
17398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17399 '
17400 export as_echo_n_body
17401 as_echo_n='sh -c $as_echo_n_body as_echo'
17402 fi
17403 export as_echo_body
17404 as_echo='sh -c $as_echo_body as_echo'
17405fi
17406
17407# The user is always right.
17408if test "${PATH_SEPARATOR+set}" != set; then
17409 PATH_SEPARATOR=:
17410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17412 PATH_SEPARATOR=';'
17413 }
17414fi
17415
Scott James Remnant65f683d2009-07-14 13:05:17 +010017416
17417# IFS
17418# We need space, tab and new line, in precisely that order. Quoting is
17419# there to prevent editors from complaining about space-tab.
17420# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17421# splitting by setting IFS to empty value.)
17422IFS=" "" $as_nl"
17423
17424# Find who we are. Look in the path if we contain no directory separator.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017425case $0 in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017426 *[\\/]* ) as_myself=$0 ;;
17427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17428for as_dir in $PATH
17429do
17430 IFS=$as_save_IFS
17431 test -z "$as_dir" && as_dir=.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17433 done
Scott James Remnant65f683d2009-07-14 13:05:17 +010017434IFS=$as_save_IFS
17435
17436 ;;
17437esac
17438# We did not find ourselves, most probably we were run as `sh COMMAND'
17439# in which case we are not to be found in the path.
17440if test "x$as_myself" = x; then
17441 as_myself=$0
17442fi
17443if test ! -f "$as_myself"; then
17444 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Scott James Remnantfde82c92009-09-22 10:04:15 -070017445 exit 1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017446fi
17447
Scott James Remnantfde82c92009-09-22 10:04:15 -070017448# Unset variables that we do not need and which cause bugs (e.g. in
17449# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17450# suppresses any "Segmentation fault" message there. '((' could
17451# trigger a bug in pdksh 5.2.14.
17452for as_var in BASH_ENV ENV MAIL MAILPATH
17453do eval test x\${$as_var+set} = xset \
17454 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Scott James Remnant65f683d2009-07-14 13:05:17 +010017455done
17456PS1='$ '
17457PS2='> '
17458PS4='+ '
17459
17460# NLS nuisances.
17461LC_ALL=C
17462export LC_ALL
17463LANGUAGE=C
17464export LANGUAGE
17465
Scott James Remnantfde82c92009-09-22 10:04:15 -070017466# CDPATH.
17467(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17468
17469
17470# as_fn_error ERROR [LINENO LOG_FD]
17471# ---------------------------------
17472# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17473# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17474# script with status $?, using 1 if that was 0.
17475as_fn_error ()
17476{
17477 as_status=$?; test $as_status -eq 0 && as_status=1
17478 if test "$3"; then
17479 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17480 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17481 fi
17482 $as_echo "$as_me: error: $1" >&2
17483 as_fn_exit $as_status
17484} # as_fn_error
17485
17486
17487# as_fn_set_status STATUS
17488# -----------------------
17489# Set $? to STATUS, without forking.
17490as_fn_set_status ()
17491{
17492 return $1
17493} # as_fn_set_status
17494
17495# as_fn_exit STATUS
17496# -----------------
17497# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17498as_fn_exit ()
17499{
17500 set +e
17501 as_fn_set_status $1
17502 exit $1
17503} # as_fn_exit
17504
17505# as_fn_unset VAR
17506# ---------------
17507# Portably unset VAR.
17508as_fn_unset ()
17509{
17510 { eval $1=; unset $1;}
17511}
17512as_unset=as_fn_unset
17513# as_fn_append VAR VALUE
17514# ----------------------
17515# Append the text in VALUE to the end of the definition contained in VAR. Take
17516# advantage of any shell optimizations that allow amortized linear growth over
17517# repeated appends, instead of the typical quadratic growth present in naive
17518# implementations.
17519if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17520 eval 'as_fn_append ()
17521 {
17522 eval $1+=\$2
17523 }'
17524else
17525 as_fn_append ()
17526 {
17527 eval $1=\$$1\$2
17528 }
17529fi # as_fn_append
17530
17531# as_fn_arith ARG...
17532# ------------------
17533# Perform arithmetic evaluation on the ARGs, and store the result in the
17534# global $as_val. Take advantage of shells that can avoid forks. The arguments
17535# must be portable across $(()) and expr.
17536if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17537 eval 'as_fn_arith ()
17538 {
17539 as_val=$(( $* ))
17540 }'
17541else
17542 as_fn_arith ()
17543 {
17544 as_val=`expr "$@" || test $? -eq 1`
17545 }
17546fi # as_fn_arith
17547
17548
Scott James Remnant65f683d2009-07-14 13:05:17 +010017549if expr a : '\(a\)' >/dev/null 2>&1 &&
17550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17551 as_expr=expr
17552else
17553 as_expr=false
17554fi
17555
17556if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17557 as_basename=basename
17558else
17559 as_basename=false
17560fi
17561
Scott James Remnantfde82c92009-09-22 10:04:15 -070017562if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17563 as_dirname=dirname
17564else
17565 as_dirname=false
17566fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010017567
Scott James Remnant65f683d2009-07-14 13:05:17 +010017568as_me=`$as_basename -- "$0" ||
17569$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17570 X"$0" : 'X\(//\)$' \| \
17571 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17572$as_echo X/"$0" |
17573 sed '/^.*\/\([^/][^/]*\)\/*$/{
17574 s//\1/
17575 q
17576 }
17577 /^X\/\(\/\/\)$/{
17578 s//\1/
17579 q
17580 }
17581 /^X\/\(\/\).*/{
17582 s//\1/
17583 q
17584 }
17585 s/.*/./; q'`
17586
Scott James Remnantfde82c92009-09-22 10:04:15 -070017587# Avoid depending upon Character Ranges.
17588as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17589as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17590as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17591as_cr_digits='0123456789'
17592as_cr_alnum=$as_cr_Letters$as_cr_digits
Scott James Remnant65f683d2009-07-14 13:05:17 +010017593
17594ECHO_C= ECHO_N= ECHO_T=
Scott James Remnantfde82c92009-09-22 10:04:15 -070017595case `echo -n x` in #(((((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017596-n*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070017597 case `echo 'xy\c'` in
Scott James Remnant65f683d2009-07-14 13:05:17 +010017598 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017599 xy) ECHO_C='\c';;
17600 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17601 ECHO_T=' ';;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017602 esac;;
17603*)
17604 ECHO_N='-n';;
17605esac
Scott James Remnant65f683d2009-07-14 13:05:17 +010017606
17607rm -f conf$$ conf$$.exe conf$$.file
17608if test -d conf$$.dir; then
17609 rm -f conf$$.dir/conf$$.file
17610else
17611 rm -f conf$$.dir
17612 mkdir conf$$.dir 2>/dev/null
17613fi
17614if (echo >conf$$.file) 2>/dev/null; then
17615 if ln -s conf$$.file conf$$ 2>/dev/null; then
17616 as_ln_s='ln -s'
17617 # ... but there are two gotchas:
17618 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17619 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17620 # In both cases, we have to default to `cp -p'.
17621 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17622 as_ln_s='cp -p'
17623 elif ln conf$$.file conf$$ 2>/dev/null; then
17624 as_ln_s=ln
17625 else
17626 as_ln_s='cp -p'
17627 fi
17628else
17629 as_ln_s='cp -p'
17630fi
17631rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17632rmdir conf$$.dir 2>/dev/null
17633
Scott James Remnantfde82c92009-09-22 10:04:15 -070017634
17635# as_fn_mkdir_p
17636# -------------
17637# Create "$as_dir" as a directory, including parents if necessary.
17638as_fn_mkdir_p ()
17639{
17640
17641 case $as_dir in #(
17642 -*) as_dir=./$as_dir;;
17643 esac
17644 test -d "$as_dir" || eval $as_mkdir_p || {
17645 as_dirs=
17646 while :; do
17647 case $as_dir in #(
17648 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17649 *) as_qdir=$as_dir;;
17650 esac
17651 as_dirs="'$as_qdir' $as_dirs"
17652 as_dir=`$as_dirname -- "$as_dir" ||
17653$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17654 X"$as_dir" : 'X\(//\)[^/]' \| \
17655 X"$as_dir" : 'X\(//\)$' \| \
17656 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17657$as_echo X"$as_dir" |
17658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17659 s//\1/
17660 q
17661 }
17662 /^X\(\/\/\)[^/].*/{
17663 s//\1/
17664 q
17665 }
17666 /^X\(\/\/\)$/{
17667 s//\1/
17668 q
17669 }
17670 /^X\(\/\).*/{
17671 s//\1/
17672 q
17673 }
17674 s/.*/./; q'`
17675 test -d "$as_dir" && break
17676 done
17677 test -z "$as_dirs" || eval "mkdir $as_dirs"
17678 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17679
17680
17681} # as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010017682if mkdir -p . 2>/dev/null; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070017683 as_mkdir_p='mkdir -p "$as_dir"'
Scott James Remnant65f683d2009-07-14 13:05:17 +010017684else
17685 test -d ./-p && rmdir ./-p
17686 as_mkdir_p=false
17687fi
17688
17689if test -x / >/dev/null 2>&1; then
17690 as_test_x='test -x'
17691else
17692 if ls -dL / >/dev/null 2>&1; then
17693 as_ls_L_option=L
17694 else
17695 as_ls_L_option=
17696 fi
17697 as_test_x='
17698 eval sh -c '\''
17699 if test -d "$1"; then
17700 test -d "$1/.";
17701 else
Scott James Remnantfde82c92009-09-22 10:04:15 -070017702 case $1 in #(
Scott James Remnant65f683d2009-07-14 13:05:17 +010017703 -*)set "./$1";;
17704 esac;
Scott James Remnantfde82c92009-09-22 10:04:15 -070017705 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Scott James Remnant65f683d2009-07-14 13:05:17 +010017706 ???[sx]*):;;*)false;;esac;fi
17707 '\'' sh
17708 '
17709fi
17710as_executable_p=$as_test_x
17711
17712# Sed expression to map a string onto a valid CPP name.
17713as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17714
17715# Sed expression to map a string onto a valid variable name.
17716as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17717
17718
17719exec 6>&1
Scott James Remnantfde82c92009-09-22 10:04:15 -070017720## ----------------------------------- ##
17721## Main body of $CONFIG_STATUS script. ##
17722## ----------------------------------- ##
17723_ASEOF
17724test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Scott James Remnant65f683d2009-07-14 13:05:17 +010017725
Scott James Remnantfde82c92009-09-22 10:04:15 -070017726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17727# Save the log message, to keep $0 and so on meaningful, and to
Scott James Remnant65f683d2009-07-14 13:05:17 +010017728# report actual input values of CONFIG_FILES etc. instead of their
17729# values after options handling.
17730ac_log="
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017731This file was extended by upstart $as_me 0.6.3, which was
Scott James Remnantfde82c92009-09-22 10:04:15 -070017732generated by GNU Autoconf 2.64. Invocation command line was
Scott James Remnant65f683d2009-07-14 13:05:17 +010017733
17734 CONFIG_FILES = $CONFIG_FILES
17735 CONFIG_HEADERS = $CONFIG_HEADERS
17736 CONFIG_LINKS = $CONFIG_LINKS
17737 CONFIG_COMMANDS = $CONFIG_COMMANDS
17738 $ $0 $@
17739
17740on `(hostname || uname -n) 2>/dev/null | sed 1q`
17741"
17742
17743_ACEOF
17744
17745case $ac_config_files in *"
17746"*) set x $ac_config_files; shift; ac_config_files=$*;;
17747esac
17748
17749case $ac_config_headers in *"
17750"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17751esac
17752
17753
17754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755# Files that config.status was made for.
17756config_files="$ac_config_files"
17757config_headers="$ac_config_headers"
17758config_commands="$ac_config_commands"
17759
17760_ACEOF
17761
17762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17763ac_cs_usage="\
Scott James Remnantfde82c92009-09-22 10:04:15 -070017764\`$as_me' instantiates files and other configuration actions
17765from templates according to the current configuration. Unless the files
17766and actions are specified as TAGs, all are instantiated by default.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017767
Scott James Remnantfde82c92009-09-22 10:04:15 -070017768Usage: $0 [OPTION]... [TAG]...
Scott James Remnant65f683d2009-07-14 13:05:17 +010017769
17770 -h, --help print this help, then exit
17771 -V, --version print version number and configuration settings, then exit
17772 -q, --quiet, --silent
17773 do not print progress messages
17774 -d, --debug don't remove temporary files
17775 --recheck update $as_me by reconfiguring in the same conditions
17776 --file=FILE[:TEMPLATE]
17777 instantiate the configuration file FILE
17778 --header=FILE[:TEMPLATE]
17779 instantiate the configuration header FILE
17780
17781Configuration files:
17782$config_files
17783
17784Configuration headers:
17785$config_headers
17786
17787Configuration commands:
17788$config_commands
17789
Scott James Remnantfde82c92009-09-22 10:04:15 -070017790Report bugs to <upstart-devel@lists.ubuntu.com>."
Scott James Remnant65f683d2009-07-14 13:05:17 +010017791
17792_ACEOF
17793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17794ac_cs_version="\\
Scott James Remnantb9dc80a2009-08-03 22:58:46 +010017795upstart config.status 0.6.3
Scott James Remnantfde82c92009-09-22 10:04:15 -070017796configured by $0, generated by GNU Autoconf 2.64,
Scott James Remnant65f683d2009-07-14 13:05:17 +010017797 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17798
Scott James Remnantfde82c92009-09-22 10:04:15 -070017799Copyright (C) 2009 Free Software Foundation, Inc.
Scott James Remnant65f683d2009-07-14 13:05:17 +010017800This config.status script is free software; the Free Software Foundation
17801gives unlimited permission to copy, distribute and modify it."
17802
17803ac_pwd='$ac_pwd'
17804srcdir='$srcdir'
17805INSTALL='$INSTALL'
17806MKDIR_P='$MKDIR_P'
17807AWK='$AWK'
17808test -n "\$AWK" || AWK=awk
17809_ACEOF
17810
17811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17812# The default lists apply if the user does not specify any file.
17813ac_need_defaults=:
17814while test $# != 0
17815do
17816 case $1 in
17817 --*=*)
17818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17820 ac_shift=:
17821 ;;
17822 *)
17823 ac_option=$1
17824 ac_optarg=$2
17825 ac_shift=shift
17826 ;;
17827 esac
17828
17829 case $ac_option in
17830 # Handling of the options.
17831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17832 ac_cs_recheck=: ;;
17833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17834 $as_echo "$ac_cs_version"; exit ;;
17835 --debug | --debu | --deb | --de | --d | -d )
17836 debug=: ;;
17837 --file | --fil | --fi | --f )
17838 $ac_shift
17839 case $ac_optarg in
17840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17841 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017842 as_fn_append CONFIG_FILES " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017843 ac_need_defaults=false;;
17844 --header | --heade | --head | --hea )
17845 $ac_shift
17846 case $ac_optarg in
17847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17848 esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070017849 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017850 ac_need_defaults=false;;
17851 --he | --h)
17852 # Conflict between --help and --header
Scott James Remnantfde82c92009-09-22 10:04:15 -070017853 as_fn_error "ambiguous option: \`$1'
17854Try \`$0 --help' for more information.";;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017855 --help | --hel | -h )
17856 $as_echo "$ac_cs_usage"; exit ;;
17857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17859 ac_cs_silent=: ;;
17860
17861 # This is an error.
Scott James Remnantfde82c92009-09-22 10:04:15 -070017862 -*) as_fn_error "unrecognized option: \`$1'
17863Try \`$0 --help' for more information." ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010017864
Scott James Remnantfde82c92009-09-22 10:04:15 -070017865 *) as_fn_append ac_config_targets " $1"
Scott James Remnant65f683d2009-07-14 13:05:17 +010017866 ac_need_defaults=false ;;
17867
17868 esac
17869 shift
17870done
17871
17872ac_configure_extra_args=
17873
17874if $ac_cs_silent; then
17875 exec 6>/dev/null
17876 ac_configure_extra_args="$ac_configure_extra_args --silent"
17877fi
17878
17879_ACEOF
17880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17881if \$ac_cs_recheck; then
17882 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17883 shift
17884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17885 CONFIG_SHELL='$SHELL'
17886 export CONFIG_SHELL
17887 exec "\$@"
17888fi
17889
17890_ACEOF
17891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17892exec 5>>config.log
17893{
17894 echo
17895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17896## Running $as_me. ##
17897_ASBOX
17898 $as_echo "$ac_log"
17899} >&5
17900
17901_ACEOF
17902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17903#
17904# INIT-COMMANDS
17905#
17906AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17907
17908
17909# The HP-UX ksh and POSIX shell print the target directory to stdout
17910# if CDPATH is set.
17911(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17912
17913sed_quote_subst='$sed_quote_subst'
17914double_quote_subst='$double_quote_subst'
17915delay_variable_subst='$delay_variable_subst'
17916macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17917macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17918enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17919enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17920pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17921enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17922host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17923host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17924host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17925build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17926build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17927build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17928SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17929Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17930GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17931EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17932FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17933LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17934NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17935LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17936max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17937ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17938exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17939lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17940lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17941lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17942reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17943reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17944OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17945deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17946file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17947AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17948AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17949STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17950RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17951old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17952old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17953old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17954CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17955CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17956compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17957GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17958lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17959lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17960lt_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"`'
17961lt_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"`'
17962objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17963SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17964ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17965MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17966lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17967lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17968lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17969lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17970lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17971need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17972DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17973NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17974LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17975OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17976OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17977libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17978shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17979extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17980archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17981enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17982export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17983whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17984compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17985old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17986old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17987archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17988archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17989module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17990module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17991with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17992allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17993no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17994hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17995hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17996hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17997hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17998hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17999hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18000hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18001hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18002inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18003link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18004fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18005always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18006export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18007exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18008include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18009prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18010file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18011variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18012need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18013need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18014version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18015runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18016shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18017shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18018libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18019library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18020soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18021postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18022postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18023finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18024finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18025hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18026sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18027sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18028hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18029enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18030enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18031enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18032old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18033striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18034
18035LTCC='$LTCC'
18036LTCFLAGS='$LTCFLAGS'
18037compiler='$compiler_DEFAULT'
18038
18039# Quote evaled strings.
18040for var in SED \
18041GREP \
18042EGREP \
18043FGREP \
18044LD \
18045NM \
18046LN_S \
18047lt_SP2NL \
18048lt_NL2SP \
18049reload_flag \
18050OBJDUMP \
18051deplibs_check_method \
18052file_magic_cmd \
18053AR \
18054AR_FLAGS \
18055STRIP \
18056RANLIB \
18057CC \
18058CFLAGS \
18059compiler \
18060lt_cv_sys_global_symbol_pipe \
18061lt_cv_sys_global_symbol_to_cdecl \
18062lt_cv_sys_global_symbol_to_c_name_address \
18063lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18064SHELL \
18065ECHO \
18066lt_prog_compiler_no_builtin_flag \
18067lt_prog_compiler_wl \
18068lt_prog_compiler_pic \
18069lt_prog_compiler_static \
18070lt_cv_prog_compiler_c_o \
18071need_locks \
18072DSYMUTIL \
18073NMEDIT \
18074LIPO \
18075OTOOL \
18076OTOOL64 \
18077shrext_cmds \
18078export_dynamic_flag_spec \
18079whole_archive_flag_spec \
18080compiler_needs_object \
18081with_gnu_ld \
18082allow_undefined_flag \
18083no_undefined_flag \
18084hardcode_libdir_flag_spec \
18085hardcode_libdir_flag_spec_ld \
18086hardcode_libdir_separator \
18087fix_srcfile_path \
18088exclude_expsyms \
18089include_expsyms \
18090file_list_spec \
18091variables_saved_for_relink \
18092libname_spec \
18093library_names_spec \
18094soname_spec \
18095finish_eval \
18096old_striplib \
18097striplib; do
18098 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18099 *[\\\\\\\`\\"\\\$]*)
18100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18101 ;;
18102 *)
18103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18104 ;;
18105 esac
18106done
18107
18108# Double-quote double-evaled strings.
18109for var in reload_cmds \
18110old_postinstall_cmds \
18111old_postuninstall_cmds \
18112old_archive_cmds \
18113extract_expsyms_cmds \
18114old_archive_from_new_cmds \
18115old_archive_from_expsyms_cmds \
18116archive_cmds \
18117archive_expsym_cmds \
18118module_cmds \
18119module_expsym_cmds \
18120export_symbols_cmds \
18121prelink_cmds \
18122postinstall_cmds \
18123postuninstall_cmds \
18124finish_cmds \
18125sys_lib_search_path_spec \
18126sys_lib_dlsearch_path_spec; do
18127 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18128 *[\\\\\\\`\\"\\\$]*)
18129 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18130 ;;
18131 *)
18132 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18133 ;;
18134 esac
18135done
18136
18137# Fix-up fallback echo if it was mangled by the above quoting rules.
18138case \$lt_ECHO in
18139*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18140 ;;
18141esac
18142
18143ac_aux_dir='$ac_aux_dir'
18144xsi_shell='$xsi_shell'
18145lt_shell_append='$lt_shell_append'
18146
18147# See if we are running on zsh, and set the options which allow our
18148# commands through without removal of \ escapes INIT.
18149if test -n "\${ZSH_VERSION+set}" ; then
18150 setopt NO_GLOB_SUBST
18151fi
18152
18153
18154 PACKAGE='$PACKAGE'
18155 VERSION='$VERSION'
18156 TIMESTAMP='$TIMESTAMP'
18157 RM='$RM'
18158 ofile='$ofile'
18159
18160
18161
18162# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18163 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18164 # from automake < 1.5.
18165 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18166 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18167 LINGUAS="${LINGUAS-%UNSET%}"
18168
18169
18170_ACEOF
18171
18172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18173
18174# Handling of arguments.
18175for ac_config_target in $ac_config_targets
18176do
18177 case $ac_config_target in
18178 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18179 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18180 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18182 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18183 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18184 "nih/Makefile") CONFIG_FILES="$CONFIG_FILES nih/Makefile" ;;
18185 "nih-dbus/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus/Makefile" ;;
18186 "nih-dbus-tool/Makefile") CONFIG_FILES="$CONFIG_FILES nih-dbus-tool/Makefile" ;;
18187 "dbus/Makefile") CONFIG_FILES="$CONFIG_FILES dbus/Makefile" ;;
18188 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
18189 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
Scott James Remnant2a66c572009-09-15 03:19:16 +010018190 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018191 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
18192 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18193 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18194 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18195 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18196
Scott James Remnantfde82c92009-09-22 10:04:15 -070018197 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018198 esac
18199done
18200
18201
18202# If the user did not use the arguments to specify the items to instantiate,
18203# then the envvar interface is used. Set only those that are not.
18204# We use the long form for the default assignment because of an extremely
18205# bizarre bug on SunOS 4.1.3.
18206if $ac_need_defaults; then
18207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18210fi
18211
18212# Have a temporary directory for convenience. Make it in the build tree
18213# simply because there is no reason against having it here, and in addition,
18214# creating and moving files from /tmp can sometimes cause problems.
18215# Hook for its removal unless debugging.
18216# Note that there is a small window in which the directory will not be cleaned:
18217# after its creation but before its name has been assigned to `$tmp'.
18218$debug ||
18219{
18220 tmp=
18221 trap 'exit_status=$?
18222 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18223' 0
Scott James Remnantfde82c92009-09-22 10:04:15 -070018224 trap 'as_fn_exit 1' 1 2 13 15
Scott James Remnant65f683d2009-07-14 13:05:17 +010018225}
18226# Create a (secure) tmp directory for tmp files.
18227
18228{
18229 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18230 test -n "$tmp" && test -d "$tmp"
18231} ||
18232{
18233 tmp=./conf$$-$RANDOM
18234 (umask 077 && mkdir "$tmp")
Scott James Remnantfde82c92009-09-22 10:04:15 -070018235} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018236
18237# Set up the scripts for CONFIG_FILES section.
18238# No need to generate them if there are no CONFIG_FILES.
18239# This happens for instance with `./config.status config.h'.
18240if test -n "$CONFIG_FILES"; then
18241
18242
Scott James Remnantfde82c92009-09-22 10:04:15 -070018243ac_cr=`echo X | tr X '\015'`
18244# On cygwin, bash can eat \r inside `` if the user requested igncr.
18245# But we know of no other shell where ac_cr would be empty at this
18246# point, so we can use a bashism as a fallback.
18247if test "x$ac_cr" = x; then
18248 eval ac_cr=\$\'\\r\'
18249fi
Scott James Remnant65f683d2009-07-14 13:05:17 +010018250ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18251if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018252 ac_cs_awk_cr='\r'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018253else
18254 ac_cs_awk_cr=$ac_cr
18255fi
18256
18257echo 'BEGIN {' >"$tmp/subs1.awk" &&
18258_ACEOF
18259
18260
18261{
18262 echo "cat >conf$$subs.awk <<_ACEOF" &&
18263 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18264 echo "_ACEOF"
18265} >conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018266 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018267ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18268ac_delim='%!_!# '
18269for ac_last_try in false false false false false :; do
18270 . ./conf$$subs.sh ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018271 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018272
18273 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18274 if test $ac_delim_n = $ac_delim_num; then
18275 break
18276 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018278 else
18279 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18280 fi
18281done
18282rm -f conf$$subs.sh
18283
18284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18285cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18286_ACEOF
18287sed -n '
18288h
18289s/^/S["/; s/!.*/"]=/
18290p
18291g
18292s/^[^!]*!//
18293:repl
18294t repl
18295s/'"$ac_delim"'$//
18296t delim
18297:nl
18298h
18299s/\(.\{148\}\).*/\1/
18300t more1
18301s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18302p
18303n
18304b repl
18305:more1
18306s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18307p
18308g
18309s/.\{148\}//
18310t nl
18311:delim
18312h
18313s/\(.\{148\}\).*/\1/
18314t more2
18315s/["\\]/\\&/g; s/^/"/; s/$/"/
18316p
18317b
18318:more2
18319s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18320p
18321g
18322s/.\{148\}//
18323t delim
18324' <conf$$subs.awk | sed '
18325/^[^""]/{
18326 N
18327 s/\n//
18328}
18329' >>$CONFIG_STATUS || ac_write_fail=1
18330rm -f conf$$subs.awk
18331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18332_ACAWK
18333cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18334 for (key in S) S_is_set[key] = 1
18335 FS = ""
18336
18337}
18338{
18339 line = $ 0
18340 nfields = split(line, field, "@")
18341 substed = 0
18342 len = length(field[1])
18343 for (i = 2; i < nfields; i++) {
18344 key = field[i]
18345 keylen = length(key)
18346 if (S_is_set[key]) {
18347 value = S[key]
18348 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18349 len += length(value) + length(field[++i])
18350 substed = 1
18351 } else
18352 len += 1 + keylen
18353 }
18354
18355 print line
18356}
18357
18358_ACAWK
18359_ACEOF
18360cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18361if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18362 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18363else
18364 cat
18365fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018366 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018367_ACEOF
18368
18369# VPATH may cause trouble with some makes, so we remove $(srcdir),
18370# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18371# trailing colons and then remove the whole line if VPATH becomes empty
18372# (actually we leave an empty line to preserve line numbers).
18373if test "x$srcdir" = x.; then
18374 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18375s/:*\$(srcdir):*/:/
18376s/:*\${srcdir}:*/:/
18377s/:*@srcdir@:*/:/
18378s/^\([^=]*=[ ]*\):*/\1/
18379s/:*$//
18380s/^[^=]*=[ ]*$//
18381}'
18382fi
18383
18384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18385fi # test -n "$CONFIG_FILES"
18386
18387# Set up the scripts for CONFIG_HEADERS section.
18388# No need to generate them if there are no CONFIG_HEADERS.
18389# This happens for instance with `./config.status Makefile'.
18390if test -n "$CONFIG_HEADERS"; then
18391cat >"$tmp/defines.awk" <<\_ACAWK ||
18392BEGIN {
18393_ACEOF
18394
18395# Transform confdefs.h into an awk script `defines.awk', embedded as
18396# here-document in config.status, that substitutes the proper values into
18397# config.h.in to produce config.h.
18398
18399# Create a delimiter string that does not exist in confdefs.h, to ease
18400# handling of long lines.
18401ac_delim='%!_!# '
18402for ac_last_try in false false :; do
18403 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18404 if test -z "$ac_t"; then
18405 break
18406 elif $ac_last_try; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018407 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018408 else
18409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18410 fi
18411done
18412
18413# For the awk script, D is an array of macro values keyed by name,
18414# likewise P contains macro parameters if any. Preserve backslash
18415# newline sequences.
18416
18417ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18418sed -n '
18419s/.\{148\}/&'"$ac_delim"'/g
18420t rset
18421:rset
18422s/^[ ]*#[ ]*define[ ][ ]*/ /
18423t def
18424d
18425:def
18426s/\\$//
18427t bsnl
18428s/["\\]/\\&/g
18429s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18430D["\1"]=" \3"/p
18431s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18432d
18433:bsnl
18434s/["\\]/\\&/g
18435s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18436D["\1"]=" \3\\\\\\n"\\/p
18437t cont
18438s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18439t cont
18440d
18441:cont
18442n
18443s/.\{148\}/&'"$ac_delim"'/g
18444t clear
18445:clear
18446s/\\$//
18447t bsnlc
18448s/["\\]/\\&/g; s/^/"/; s/$/"/p
18449d
18450:bsnlc
18451s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18452b cont
18453' <confdefs.h | sed '
18454s/'"$ac_delim"'/"\\\
18455"/g' >>$CONFIG_STATUS || ac_write_fail=1
18456
18457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18458 for (key in D) D_is_set[key] = 1
18459 FS = ""
18460}
18461/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18462 line = \$ 0
18463 split(line, arg, " ")
18464 if (arg[1] == "#") {
18465 defundef = arg[2]
18466 mac1 = arg[3]
18467 } else {
18468 defundef = substr(arg[1], 2)
18469 mac1 = arg[2]
18470 }
18471 split(mac1, mac2, "(") #)
18472 macro = mac2[1]
18473 prefix = substr(line, 1, index(line, defundef) - 1)
18474 if (D_is_set[macro]) {
18475 # Preserve the white space surrounding the "#".
18476 print prefix "define", macro P[macro] D[macro]
18477 next
18478 } else {
18479 # Replace #undef with comments. This is necessary, for example,
18480 # in the case of _POSIX_SOURCE, which is predefined and required
18481 # on some systems where configure will not decide to define it.
18482 if (defundef == "undef") {
18483 print "/*", prefix defundef, macro, "*/"
18484 next
18485 }
18486 }
18487}
18488{ print }
18489_ACAWK
18490_ACEOF
18491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Scott James Remnantfde82c92009-09-22 10:04:15 -070018492 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018493fi # test -n "$CONFIG_HEADERS"
18494
18495
18496eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18497shift
18498for ac_tag
18499do
18500 case $ac_tag in
18501 :[FHLC]) ac_mode=$ac_tag; continue;;
18502 esac
18503 case $ac_mode$ac_tag in
18504 :[FHL]*:*);;
Scott James Remnantfde82c92009-09-22 10:04:15 -070018505 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018506 :[FH]-) ac_tag=-:-;;
18507 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18508 esac
18509 ac_save_IFS=$IFS
18510 IFS=:
18511 set x $ac_tag
18512 IFS=$ac_save_IFS
18513 shift
18514 ac_file=$1
18515 shift
18516
18517 case $ac_mode in
18518 :L) ac_source=$1;;
18519 :[FH])
18520 ac_file_inputs=
18521 for ac_f
18522 do
18523 case $ac_f in
18524 -) ac_f="$tmp/stdin";;
18525 *) # Look for the file first in the build tree, then in the source tree
18526 # (if the path is not absolute). The absolute path cannot be DOS-style,
18527 # because $ac_f cannot contain `:'.
18528 test -f "$ac_f" ||
18529 case $ac_f in
18530 [\\/$]*) false;;
18531 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18532 esac ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070018533 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018534 esac
18535 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Scott James Remnantfde82c92009-09-22 10:04:15 -070018536 as_fn_append ac_file_inputs " '$ac_f'"
Scott James Remnant65f683d2009-07-14 13:05:17 +010018537 done
18538
18539 # Let's still pretend it is `configure' which instantiates (i.e., don't
18540 # use $as_me), people would be surprised to read:
18541 # /* config.h. Generated by config.status. */
18542 configure_input='Generated from '`
18543 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18544 `' by configure.'
18545 if test x"$ac_file" != x-; then
18546 configure_input="$ac_file. $configure_input"
Scott James Remnantfde82c92009-09-22 10:04:15 -070018547 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018548$as_echo "$as_me: creating $ac_file" >&6;}
18549 fi
18550 # Neutralize special characters interpreted by sed in replacement strings.
18551 case $configure_input in #(
18552 *\&* | *\|* | *\\* )
18553 ac_sed_conf_input=`$as_echo "$configure_input" |
18554 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18555 *) ac_sed_conf_input=$configure_input;;
18556 esac
18557
18558 case $ac_tag in
18559 *:-:* | *:-) cat >"$tmp/stdin" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018560 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018561 esac
18562 ;;
18563 esac
18564
18565 ac_dir=`$as_dirname -- "$ac_file" ||
18566$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18567 X"$ac_file" : 'X\(//\)[^/]' \| \
18568 X"$ac_file" : 'X\(//\)$' \| \
18569 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18570$as_echo X"$ac_file" |
18571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18572 s//\1/
18573 q
18574 }
18575 /^X\(\/\/\)[^/].*/{
18576 s//\1/
18577 q
18578 }
18579 /^X\(\/\/\)$/{
18580 s//\1/
18581 q
18582 }
18583 /^X\(\/\).*/{
18584 s//\1/
18585 q
18586 }
18587 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018588 as_dir="$ac_dir"; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018589 ac_builddir=.
18590
18591case "$ac_dir" in
18592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18593*)
18594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18595 # A ".." for each directory in $ac_dir_suffix.
18596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18597 case $ac_top_builddir_sub in
18598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18600 esac ;;
18601esac
18602ac_abs_top_builddir=$ac_pwd
18603ac_abs_builddir=$ac_pwd$ac_dir_suffix
18604# for backward compatibility:
18605ac_top_builddir=$ac_top_build_prefix
18606
18607case $srcdir in
18608 .) # We are building in place.
18609 ac_srcdir=.
18610 ac_top_srcdir=$ac_top_builddir_sub
18611 ac_abs_top_srcdir=$ac_pwd ;;
18612 [\\/]* | ?:[\\/]* ) # Absolute name.
18613 ac_srcdir=$srcdir$ac_dir_suffix;
18614 ac_top_srcdir=$srcdir
18615 ac_abs_top_srcdir=$srcdir ;;
18616 *) # Relative name.
18617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18618 ac_top_srcdir=$ac_top_build_prefix$srcdir
18619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18620esac
18621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18622
18623
18624 case $ac_mode in
18625 :F)
18626 #
18627 # CONFIG_FILE
18628 #
18629
18630 case $INSTALL in
18631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18633 esac
18634 ac_MKDIR_P=$MKDIR_P
18635 case $MKDIR_P in
18636 [\\/$]* | ?:[\\/]* ) ;;
18637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18638 esac
18639_ACEOF
18640
18641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642# If the template does not know about datarootdir, expand it.
18643# FIXME: This hack should be removed a few years after 2.60.
18644ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant65f683d2009-07-14 13:05:17 +010018645ac_sed_dataroot='
18646/datarootdir/ {
18647 p
18648 q
18649}
18650/@datadir@/p
18651/@docdir@/p
18652/@infodir@/p
18653/@localedir@/p
Scott James Remnantfde82c92009-09-22 10:04:15 -070018654/@mandir@/p'
Scott James Remnant65f683d2009-07-14 13:05:17 +010018655case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18656*datarootdir*) ac_datarootdir_seen=yes;;
18657*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnantfde82c92009-09-22 10:04:15 -070018658 { $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 +010018659$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18660_ACEOF
18661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 ac_datarootdir_hack='
18663 s&@datadir@&$datadir&g
18664 s&@docdir@&$docdir&g
18665 s&@infodir@&$infodir&g
18666 s&@localedir@&$localedir&g
18667 s&@mandir@&$mandir&g
Scott James Remnantfde82c92009-09-22 10:04:15 -070018668 s&\\\${datarootdir}&$datarootdir&g' ;;
Scott James Remnant65f683d2009-07-14 13:05:17 +010018669esac
18670_ACEOF
18671
18672# Neutralize VPATH when `$srcdir' = `.'.
18673# Shell code in configure.ac might set extrasub.
18674# FIXME: do we really want to maintain this feature?
18675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18676ac_sed_extra="$ac_vpsub
18677$extrasub
18678_ACEOF
18679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680:t
18681/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18682s|@configure_input@|$ac_sed_conf_input|;t t
18683s&@top_builddir@&$ac_top_builddir_sub&;t t
18684s&@top_build_prefix@&$ac_top_build_prefix&;t t
18685s&@srcdir@&$ac_srcdir&;t t
18686s&@abs_srcdir@&$ac_abs_srcdir&;t t
18687s&@top_srcdir@&$ac_top_srcdir&;t t
18688s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18689s&@builddir@&$ac_builddir&;t t
18690s&@abs_builddir@&$ac_abs_builddir&;t t
18691s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18692s&@INSTALL@&$ac_INSTALL&;t t
18693s&@MKDIR_P@&$ac_MKDIR_P&;t t
18694$ac_datarootdir_hack
18695"
18696eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018697 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018698
18699test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnantfde82c92009-09-22 10:04:15 -070018702 { $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 +010018703which seems to be undefined. Please make sure it is defined." >&5
18704$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18705which seems to be undefined. Please make sure it is defined." >&2;}
18706
18707 rm -f "$tmp/stdin"
18708 case $ac_file in
18709 -) cat "$tmp/out" && rm -f "$tmp/out";;
18710 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18711 esac \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018712 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018713 ;;
18714 :H)
18715 #
18716 # CONFIG_HEADER
18717 #
18718 if test x"$ac_file" != x-; then
18719 {
18720 $as_echo "/* $configure_input */" \
18721 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18722 } >"$tmp/config.h" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018723 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018724 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070018725 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018726$as_echo "$as_me: $ac_file is unchanged" >&6;}
18727 else
18728 rm -f "$ac_file"
18729 mv "$tmp/config.h" "$ac_file" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018730 || as_fn_error "could not create $ac_file" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018731 fi
18732 else
18733 $as_echo "/* $configure_input */" \
18734 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Scott James Remnantfde82c92009-09-22 10:04:15 -070018735 || as_fn_error "could not create -" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018736 fi
18737# Compute "$ac_file"'s index in $config_headers.
18738_am_arg="$ac_file"
18739_am_stamp_count=1
18740for _am_header in $config_headers :; do
18741 case $_am_header in
18742 $_am_arg | $_am_arg:* )
18743 break ;;
18744 * )
18745 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18746 esac
18747done
18748echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18749$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750 X"$_am_arg" : 'X\(//\)[^/]' \| \
18751 X"$_am_arg" : 'X\(//\)$' \| \
18752 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18753$as_echo X"$_am_arg" |
18754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\/\)[^/].*/{
18759 s//\1/
18760 q
18761 }
18762 /^X\(\/\/\)$/{
18763 s//\1/
18764 q
18765 }
18766 /^X\(\/\).*/{
18767 s//\1/
18768 q
18769 }
18770 s/.*/./; q'`/stamp-h$_am_stamp_count
18771 ;;
18772
Scott James Remnantfde82c92009-09-22 10:04:15 -070018773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010018774$as_echo "$as_me: executing $ac_file commands" >&6;}
18775 ;;
18776 esac
18777
18778
18779 case $ac_file$ac_mode in
18780 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18781 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18782 # are listed without --file. Let's play safe and only enable the eval
18783 # if we detect the quoting.
18784 case $CONFIG_FILES in
18785 *\'*) eval set x "$CONFIG_FILES" ;;
18786 *) set x $CONFIG_FILES ;;
18787 esac
18788 shift
18789 for mf
18790 do
18791 # Strip MF so we end up with the name of the file.
18792 mf=`echo "$mf" | sed -e 's/:.*$//'`
18793 # Check whether this is an Automake generated Makefile or not.
18794 # We used to match only the files named `Makefile.in', but
18795 # some people rename them; so instead we look at the file content.
18796 # Grep'ing the first line is not enough: some people post-process
18797 # each Makefile.in and add a new line on top of each file to say so.
18798 # Grep'ing the whole file is not good either: AIX grep has a line
18799 # limit of 2048, but all sed's we know have understand at least 4000.
18800 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18801 dirpart=`$as_dirname -- "$mf" ||
18802$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18803 X"$mf" : 'X\(//\)[^/]' \| \
18804 X"$mf" : 'X\(//\)$' \| \
18805 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18806$as_echo X"$mf" |
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'`
18824 else
18825 continue
18826 fi
18827 # Extract the definition of DEPDIR, am__include, and am__quote
18828 # from the Makefile without running `make'.
18829 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18830 test -z "$DEPDIR" && continue
18831 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18832 test -z "am__include" && continue
18833 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18834 # When using ansi2knr, U may be empty or an underscore; expand it
18835 U=`sed -n 's/^U = //p' < "$mf"`
18836 # Find all dependency output files, they are included files with
18837 # $(DEPDIR) in their names. We invoke sed twice because it is the
18838 # simplest approach to changing $(DEPDIR) to its actual value in the
18839 # expansion.
18840 for file in `sed -n "
18841 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18842 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18843 # Make sure the directory exists.
18844 test -f "$dirpart/$file" && continue
18845 fdir=`$as_dirname -- "$file" ||
18846$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18847 X"$file" : 'X\(//\)[^/]' \| \
18848 X"$file" : 'X\(//\)$' \| \
18849 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18850$as_echo X"$file" |
18851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18852 s//\1/
18853 q
18854 }
18855 /^X\(\/\/\)[^/].*/{
18856 s//\1/
18857 q
18858 }
18859 /^X\(\/\/\)$/{
18860 s//\1/
18861 q
18862 }
18863 /^X\(\/\).*/{
18864 s//\1/
18865 q
18866 }
18867 s/.*/./; q'`
Scott James Remnantfde82c92009-09-22 10:04:15 -070018868 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Scott James Remnant65f683d2009-07-14 13:05:17 +010018869 # echo "creating $dirpart/$file"
18870 echo '# dummy' > "$dirpart/$file"
18871 done
18872 done
18873}
18874 ;;
18875 "libtool":C)
18876
18877 # See if we are running on zsh, and set the options which allow our
18878 # commands through without removal of \ escapes.
18879 if test -n "${ZSH_VERSION+set}" ; then
18880 setopt NO_GLOB_SUBST
18881 fi
18882
18883 cfgfile="${ofile}T"
18884 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18885 $RM "$cfgfile"
18886
18887 cat <<_LT_EOF >> "$cfgfile"
18888#! $SHELL
18889
18890# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18891# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18892# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18893# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18894#
18895# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18896# 2006, 2007, 2008 Free Software Foundation, Inc.
18897# Written by Gordon Matzigkeit, 1996
18898#
18899# This file is part of GNU Libtool.
18900#
18901# GNU Libtool is free software; you can redistribute it and/or
18902# modify it under the terms of the GNU General Public License as
18903# published by the Free Software Foundation; either version 2 of
18904# the License, or (at your option) any later version.
18905#
18906# As a special exception to the GNU General Public License,
18907# if you distribute this file as part of a program or library that
18908# is built using GNU Libtool, you may include this file under the
18909# same distribution terms that you use for the rest of that program.
18910#
18911# GNU Libtool is distributed in the hope that it will be useful,
18912# but WITHOUT ANY WARRANTY; without even the implied warranty of
18913# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18914# GNU General Public License for more details.
18915#
18916# You should have received a copy of the GNU General Public License
18917# along with GNU Libtool; see the file COPYING. If not, a copy
18918# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18919# obtained by writing to the Free Software Foundation, Inc.,
18920# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18921
18922
18923# The names of the tagged configurations supported by this script.
18924available_tags=""
18925
18926# ### BEGIN LIBTOOL CONFIG
18927
18928# Which release of libtool.m4 was used?
18929macro_version=$macro_version
18930macro_revision=$macro_revision
18931
18932# Whether or not to build shared libraries.
18933build_libtool_libs=$enable_shared
18934
18935# Whether or not to build static libraries.
18936build_old_libs=$enable_static
18937
18938# What type of objects to build.
18939pic_mode=$pic_mode
18940
18941# Whether or not to optimize for fast installation.
18942fast_install=$enable_fast_install
18943
18944# The host system.
18945host_alias=$host_alias
18946host=$host
18947host_os=$host_os
18948
18949# The build system.
18950build_alias=$build_alias
18951build=$build
18952build_os=$build_os
18953
18954# A sed program that does not truncate output.
18955SED=$lt_SED
18956
18957# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18958Xsed="\$SED -e 1s/^X//"
18959
18960# A grep program that handles long lines.
18961GREP=$lt_GREP
18962
18963# An ERE matcher.
18964EGREP=$lt_EGREP
18965
18966# A literal string matcher.
18967FGREP=$lt_FGREP
18968
18969# A BSD- or MS-compatible name lister.
18970NM=$lt_NM
18971
18972# Whether we need soft or hard links.
18973LN_S=$lt_LN_S
18974
18975# What is the maximum length of a command?
18976max_cmd_len=$max_cmd_len
18977
18978# Object file suffix (normally "o").
18979objext=$ac_objext
18980
18981# Executable file suffix (normally "").
18982exeext=$exeext
18983
18984# whether the shell understands "unset".
18985lt_unset=$lt_unset
18986
18987# turn spaces into newlines.
18988SP2NL=$lt_lt_SP2NL
18989
18990# turn newlines into spaces.
18991NL2SP=$lt_lt_NL2SP
18992
18993# How to create reloadable object files.
18994reload_flag=$lt_reload_flag
18995reload_cmds=$lt_reload_cmds
18996
18997# An object symbol dumper.
18998OBJDUMP=$lt_OBJDUMP
18999
19000# Method to check whether dependent libraries are shared objects.
19001deplibs_check_method=$lt_deplibs_check_method
19002
19003# Command to use when deplibs_check_method == "file_magic".
19004file_magic_cmd=$lt_file_magic_cmd
19005
19006# The archiver.
19007AR=$lt_AR
19008AR_FLAGS=$lt_AR_FLAGS
19009
19010# A symbol stripping program.
19011STRIP=$lt_STRIP
19012
19013# Commands used to install an old-style archive.
19014RANLIB=$lt_RANLIB
19015old_postinstall_cmds=$lt_old_postinstall_cmds
19016old_postuninstall_cmds=$lt_old_postuninstall_cmds
19017
19018# A C compiler.
19019LTCC=$lt_CC
19020
19021# LTCC compiler flags.
19022LTCFLAGS=$lt_CFLAGS
19023
19024# Take the output of nm and produce a listing of raw symbols and C names.
19025global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19026
19027# Transform the output of nm in a proper C declaration.
19028global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19029
19030# Transform the output of nm in a C name address pair.
19031global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19032
19033# Transform the output of nm in a C name address pair when lib prefix is needed.
19034global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19035
19036# The name of the directory that contains temporary libtool files.
19037objdir=$objdir
19038
19039# Shell to use when invoking shell scripts.
19040SHELL=$lt_SHELL
19041
19042# An echo program that does not interpret backslashes.
19043ECHO=$lt_ECHO
19044
19045# Used to examine libraries when file_magic_cmd begins with "file".
19046MAGIC_CMD=$MAGIC_CMD
19047
19048# Must we lock files when doing compilation?
19049need_locks=$lt_need_locks
19050
19051# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19052DSYMUTIL=$lt_DSYMUTIL
19053
19054# Tool to change global to local symbols on Mac OS X.
19055NMEDIT=$lt_NMEDIT
19056
19057# Tool to manipulate fat objects and archives on Mac OS X.
19058LIPO=$lt_LIPO
19059
19060# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19061OTOOL=$lt_OTOOL
19062
19063# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19064OTOOL64=$lt_OTOOL64
19065
19066# Old archive suffix (normally "a").
19067libext=$libext
19068
19069# Shared library suffix (normally ".so").
19070shrext_cmds=$lt_shrext_cmds
19071
19072# The commands to extract the exported symbol list from a shared archive.
19073extract_expsyms_cmds=$lt_extract_expsyms_cmds
19074
19075# Variables whose values should be saved in libtool wrapper scripts and
19076# restored at link time.
19077variables_saved_for_relink=$lt_variables_saved_for_relink
19078
19079# Do we need the "lib" prefix for modules?
19080need_lib_prefix=$need_lib_prefix
19081
19082# Do we need a version for libraries?
19083need_version=$need_version
19084
19085# Library versioning type.
19086version_type=$version_type
19087
19088# Shared library runtime path variable.
19089runpath_var=$runpath_var
19090
19091# Shared library path variable.
19092shlibpath_var=$shlibpath_var
19093
19094# Is shlibpath searched before the hard-coded library search path?
19095shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19096
19097# Format of library name prefix.
19098libname_spec=$lt_libname_spec
19099
19100# List of archive names. First name is the real one, the rest are links.
19101# The last name is the one that the linker finds with -lNAME
19102library_names_spec=$lt_library_names_spec
19103
19104# The coded name of the library, if different from the real name.
19105soname_spec=$lt_soname_spec
19106
19107# Command to use after installation of a shared archive.
19108postinstall_cmds=$lt_postinstall_cmds
19109
19110# Command to use after uninstallation of a shared archive.
19111postuninstall_cmds=$lt_postuninstall_cmds
19112
19113# Commands used to finish a libtool library installation in a directory.
19114finish_cmds=$lt_finish_cmds
19115
19116# As "finish_cmds", except a single script fragment to be evaled but
19117# not shown.
19118finish_eval=$lt_finish_eval
19119
19120# Whether we should hardcode library paths into libraries.
19121hardcode_into_libs=$hardcode_into_libs
19122
19123# Compile-time system search path for libraries.
19124sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19125
19126# Run-time system search path for libraries.
19127sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19128
19129# Whether dlopen is supported.
19130dlopen_support=$enable_dlopen
19131
19132# Whether dlopen of programs is supported.
19133dlopen_self=$enable_dlopen_self
19134
19135# Whether dlopen of statically linked programs is supported.
19136dlopen_self_static=$enable_dlopen_self_static
19137
19138# Commands to strip libraries.
19139old_striplib=$lt_old_striplib
19140striplib=$lt_striplib
19141
19142
19143# The linker used to build libraries.
19144LD=$lt_LD
19145
19146# Commands used to build an old-style archive.
19147old_archive_cmds=$lt_old_archive_cmds
19148
19149# A language specific compiler.
19150CC=$lt_compiler
19151
19152# Is the compiler the GNU compiler?
19153with_gcc=$GCC
19154
19155# Compiler flag to turn off builtin functions.
19156no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19157
19158# How to pass a linker flag through the compiler.
19159wl=$lt_lt_prog_compiler_wl
19160
19161# Additional compiler flags for building library objects.
19162pic_flag=$lt_lt_prog_compiler_pic
19163
19164# Compiler flag to prevent dynamic linking.
19165link_static_flag=$lt_lt_prog_compiler_static
19166
19167# Does compiler simultaneously support -c and -o options?
19168compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19169
19170# Whether or not to add -lc for building shared libraries.
19171build_libtool_need_lc=$archive_cmds_need_lc
19172
19173# Whether or not to disallow shared libs when runtime libs are static.
19174allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19175
19176# Compiler flag to allow reflexive dlopens.
19177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19178
19179# Compiler flag to generate shared objects directly from archives.
19180whole_archive_flag_spec=$lt_whole_archive_flag_spec
19181
19182# Whether the compiler copes with passing no objects directly.
19183compiler_needs_object=$lt_compiler_needs_object
19184
19185# Create an old-style archive from a shared archive.
19186old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19187
19188# Create a temporary old-style archive to link instead of a shared archive.
19189old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19190
19191# Commands used to build a shared archive.
19192archive_cmds=$lt_archive_cmds
19193archive_expsym_cmds=$lt_archive_expsym_cmds
19194
19195# Commands used to build a loadable module if different from building
19196# a shared archive.
19197module_cmds=$lt_module_cmds
19198module_expsym_cmds=$lt_module_expsym_cmds
19199
19200# Whether we are building with GNU ld or not.
19201with_gnu_ld=$lt_with_gnu_ld
19202
19203# Flag that allows shared libraries with undefined symbols to be built.
19204allow_undefined_flag=$lt_allow_undefined_flag
19205
19206# Flag that enforces no undefined symbols.
19207no_undefined_flag=$lt_no_undefined_flag
19208
19209# Flag to hardcode \$libdir into a binary during linking.
19210# This must work even if \$libdir does not exist
19211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19212
19213# If ld is used when linking, flag to hardcode \$libdir into a binary
19214# during linking. This must work even if \$libdir does not exist.
19215hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19216
19217# Whether we need a single "-rpath" flag with a separated argument.
19218hardcode_libdir_separator=$lt_hardcode_libdir_separator
19219
19220# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19221# DIR into the resulting binary.
19222hardcode_direct=$hardcode_direct
19223
19224# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19225# DIR into the resulting binary and the resulting library dependency is
19226# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19227# library is relocated.
19228hardcode_direct_absolute=$hardcode_direct_absolute
19229
19230# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19231# into the resulting binary.
19232hardcode_minus_L=$hardcode_minus_L
19233
19234# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19235# into the resulting binary.
19236hardcode_shlibpath_var=$hardcode_shlibpath_var
19237
19238# Set to "yes" if building a shared library automatically hardcodes DIR
19239# into the library and all subsequent libraries and executables linked
19240# against it.
19241hardcode_automatic=$hardcode_automatic
19242
19243# Set to yes if linker adds runtime paths of dependent libraries
19244# to runtime path list.
19245inherit_rpath=$inherit_rpath
19246
19247# Whether libtool must link a program against all its dependency libraries.
19248link_all_deplibs=$link_all_deplibs
19249
19250# Fix the shell variable \$srcfile for the compiler.
19251fix_srcfile_path=$lt_fix_srcfile_path
19252
19253# Set to "yes" if exported symbols are required.
19254always_export_symbols=$always_export_symbols
19255
19256# The commands to list exported symbols.
19257export_symbols_cmds=$lt_export_symbols_cmds
19258
19259# Symbols that should not be listed in the preloaded symbols.
19260exclude_expsyms=$lt_exclude_expsyms
19261
19262# Symbols that must always be exported.
19263include_expsyms=$lt_include_expsyms
19264
19265# Commands necessary for linking programs (against libraries) with templates.
19266prelink_cmds=$lt_prelink_cmds
19267
19268# Specify filename containing input files.
19269file_list_spec=$lt_file_list_spec
19270
19271# How to hardcode a shared library path into an executable.
19272hardcode_action=$hardcode_action
19273
19274# ### END LIBTOOL CONFIG
19275
19276_LT_EOF
19277
19278 case $host_os in
19279 aix3*)
19280 cat <<\_LT_EOF >> "$cfgfile"
19281# AIX sometimes has problems with the GCC collect2 program. For some
19282# reason, if we set the COLLECT_NAMES environment variable, the problems
19283# vanish in a puff of smoke.
19284if test "X${COLLECT_NAMES+set}" != Xset; then
19285 COLLECT_NAMES=
19286 export COLLECT_NAMES
19287fi
19288_LT_EOF
19289 ;;
19290 esac
19291
19292
19293ltmain="$ac_aux_dir/ltmain.sh"
19294
19295
19296 # We use sed instead of cat because bash on DJGPP gets confused if
19297 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19298 # text mode, it properly converts lines to CR/LF. This bash problem
19299 # is reportedly fixed, but why not run on old versions too?
19300 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19301 || (rm -f "$cfgfile"; exit 1)
19302
19303 case $xsi_shell in
19304 yes)
19305 cat << \_LT_EOF >> "$cfgfile"
19306
19307# func_dirname file append nondir_replacement
19308# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19309# otherwise set result to NONDIR_REPLACEMENT.
19310func_dirname ()
19311{
19312 case ${1} in
19313 */*) func_dirname_result="${1%/*}${2}" ;;
19314 * ) func_dirname_result="${3}" ;;
19315 esac
19316}
19317
19318# func_basename file
19319func_basename ()
19320{
19321 func_basename_result="${1##*/}"
19322}
19323
19324# func_dirname_and_basename file append nondir_replacement
19325# perform func_basename and func_dirname in a single function
19326# call:
19327# dirname: Compute the dirname of FILE. If nonempty,
19328# add APPEND to the result, otherwise set result
19329# to NONDIR_REPLACEMENT.
19330# value returned in "$func_dirname_result"
19331# basename: Compute filename of FILE.
19332# value retuned in "$func_basename_result"
19333# Implementation must be kept synchronized with func_dirname
19334# and func_basename. For efficiency, we do not delegate to
19335# those functions but instead duplicate the functionality here.
19336func_dirname_and_basename ()
19337{
19338 case ${1} in
19339 */*) func_dirname_result="${1%/*}${2}" ;;
19340 * ) func_dirname_result="${3}" ;;
19341 esac
19342 func_basename_result="${1##*/}"
19343}
19344
19345# func_stripname prefix suffix name
19346# strip PREFIX and SUFFIX off of NAME.
19347# PREFIX and SUFFIX must not contain globbing or regex special
19348# characters, hashes, percent signs, but SUFFIX may contain a leading
19349# dot (in which case that matches only a dot).
19350func_stripname ()
19351{
19352 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19353 # positional parameters, so assign one to ordinary parameter first.
19354 func_stripname_result=${3}
19355 func_stripname_result=${func_stripname_result#"${1}"}
19356 func_stripname_result=${func_stripname_result%"${2}"}
19357}
19358
19359# func_opt_split
19360func_opt_split ()
19361{
19362 func_opt_split_opt=${1%%=*}
19363 func_opt_split_arg=${1#*=}
19364}
19365
19366# func_lo2o object
19367func_lo2o ()
19368{
19369 case ${1} in
19370 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19371 *) func_lo2o_result=${1} ;;
19372 esac
19373}
19374
19375# func_xform libobj-or-source
19376func_xform ()
19377{
19378 func_xform_result=${1%.*}.lo
19379}
19380
19381# func_arith arithmetic-term...
19382func_arith ()
19383{
19384 func_arith_result=$(( $* ))
19385}
19386
19387# func_len string
19388# STRING may not start with a hyphen.
19389func_len ()
19390{
19391 func_len_result=${#1}
19392}
19393
19394_LT_EOF
19395 ;;
19396 *) # Bourne compatible functions.
19397 cat << \_LT_EOF >> "$cfgfile"
19398
19399# func_dirname file append nondir_replacement
19400# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19401# otherwise set result to NONDIR_REPLACEMENT.
19402func_dirname ()
19403{
19404 # Extract subdirectory from the argument.
19405 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19406 if test "X$func_dirname_result" = "X${1}"; then
19407 func_dirname_result="${3}"
19408 else
19409 func_dirname_result="$func_dirname_result${2}"
19410 fi
19411}
19412
19413# func_basename file
19414func_basename ()
19415{
19416 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19417}
19418
19419
19420# func_stripname prefix suffix name
19421# strip PREFIX and SUFFIX off of NAME.
19422# PREFIX and SUFFIX must not contain globbing or regex special
19423# characters, hashes, percent signs, but SUFFIX may contain a leading
19424# dot (in which case that matches only a dot).
19425# func_strip_suffix prefix name
19426func_stripname ()
19427{
19428 case ${2} in
19429 .*) func_stripname_result=`$ECHO "X${3}" \
19430 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19431 *) func_stripname_result=`$ECHO "X${3}" \
19432 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19433 esac
19434}
19435
19436# sed scripts:
19437my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19438my_sed_long_arg='1s/^-[^=]*=//'
19439
19440# func_opt_split
19441func_opt_split ()
19442{
19443 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19444 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19445}
19446
19447# func_lo2o object
19448func_lo2o ()
19449{
19450 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19451}
19452
19453# func_xform libobj-or-source
19454func_xform ()
19455{
19456 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19457}
19458
19459# func_arith arithmetic-term...
19460func_arith ()
19461{
19462 func_arith_result=`expr "$@"`
19463}
19464
19465# func_len string
19466# STRING may not start with a hyphen.
19467func_len ()
19468{
19469 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19470}
19471
19472_LT_EOF
19473esac
19474
19475case $lt_shell_append in
19476 yes)
19477 cat << \_LT_EOF >> "$cfgfile"
19478
19479# func_append var value
19480# Append VALUE to the end of shell variable VAR.
19481func_append ()
19482{
19483 eval "$1+=\$2"
19484}
19485_LT_EOF
19486 ;;
19487 *)
19488 cat << \_LT_EOF >> "$cfgfile"
19489
19490# func_append var value
19491# Append VALUE to the end of shell variable VAR.
19492func_append ()
19493{
19494 eval "$1=\$$1\$2"
19495}
19496
19497_LT_EOF
19498 ;;
19499 esac
19500
19501
19502 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19503 || (rm -f "$cfgfile"; exit 1)
19504
19505 mv -f "$cfgfile" "$ofile" ||
19506 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19507 chmod +x "$ofile"
19508
19509 ;;
19510 "po-directories":C)
19511 for ac_file in $CONFIG_FILES; do
19512 # Support "outfile[:infile[:infile...]]"
19513 case "$ac_file" in
19514 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19515 esac
19516 # PO directories have a Makefile.in generated from Makefile.in.in.
19517 case "$ac_file" in */Makefile.in)
19518 # Adjust a relative srcdir.
19519 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19520 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19521 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19522 # In autoconf-2.13 it is called $ac_given_srcdir.
19523 # In autoconf-2.50 it is called $srcdir.
19524 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19525 case "$ac_given_srcdir" in
19526 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19527 /*) top_srcdir="$ac_given_srcdir" ;;
19528 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19529 esac
19530 # Treat a directory as a PO directory if and only if it has a
19531 # POTFILES.in file. This allows packages to have multiple PO
19532 # directories under different names or in different locations.
19533 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19534 rm -f "$ac_dir/POTFILES"
19535 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19536 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19537 POMAKEFILEDEPS="POTFILES.in"
19538 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19539 # on $ac_dir but don't depend on user-specified configuration
19540 # parameters.
19541 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19542 # The LINGUAS file contains the set of available languages.
19543 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19544 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19545 fi
19546 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19547 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19548 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19549 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19550 else
19551 # The set of available languages was given in configure.in.
19552 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19553 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19554 fi
19555 # Compute POFILES
19556 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19557 # Compute UPDATEPOFILES
19558 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19559 # Compute DUMMYPOFILES
19560 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19561 # Compute GMOFILES
19562 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19563 case "$ac_given_srcdir" in
19564 .) srcdirpre= ;;
19565 *) srcdirpre='$(srcdir)/' ;;
19566 esac
19567 POFILES=
19568 UPDATEPOFILES=
19569 DUMMYPOFILES=
19570 GMOFILES=
19571 for lang in $ALL_LINGUAS; do
19572 POFILES="$POFILES $srcdirpre$lang.po"
19573 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19574 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19575 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19576 done
19577 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19578 # environment variable.
19579 INST_LINGUAS=
19580 if test -n "$ALL_LINGUAS"; then
19581 for presentlang in $ALL_LINGUAS; do
19582 useit=no
19583 if test "%UNSET%" != "$LINGUAS"; then
19584 desiredlanguages="$LINGUAS"
19585 else
19586 desiredlanguages="$ALL_LINGUAS"
19587 fi
19588 for desiredlang in $desiredlanguages; do
19589 # Use the presentlang catalog if desiredlang is
19590 # a. equal to presentlang, or
19591 # b. a variant of presentlang (because in this case,
19592 # presentlang can be used as a fallback for messages
19593 # which are not translated in the desiredlang catalog).
19594 case "$desiredlang" in
19595 "$presentlang"*) useit=yes;;
19596 esac
19597 done
19598 if test $useit = yes; then
19599 INST_LINGUAS="$INST_LINGUAS $presentlang"
19600 fi
19601 done
19602 fi
19603 CATALOGS=
19604 if test -n "$INST_LINGUAS"; then
19605 for lang in $INST_LINGUAS; do
19606 CATALOGS="$CATALOGS $lang.gmo"
19607 done
19608 fi
19609 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19610 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"
19611 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19612 if test -f "$f"; then
19613 case "$f" in
19614 *.orig | *.bak | *~) ;;
19615 *) cat "$f" >> "$ac_dir/Makefile" ;;
19616 esac
19617 fi
19618 done
19619 fi
19620 ;;
19621 esac
19622 done ;;
19623
19624 esac
19625done # for ac_tag
19626
19627
Scott James Remnantfde82c92009-09-22 10:04:15 -070019628as_fn_exit 0
Scott James Remnant65f683d2009-07-14 13:05:17 +010019629_ACEOF
Scott James Remnant65f683d2009-07-14 13:05:17 +010019630ac_clean_files=$ac_clean_files_save
19631
19632test $ac_write_fail = 0 ||
Scott James Remnantfde82c92009-09-22 10:04:15 -070019633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019634
19635
19636# configure is writing to config.log, and then calls config.status.
19637# config.status does its own redirection, appending to config.log.
19638# Unfortunately, on DOS this fails, as config.log is still kept open
19639# by configure, so config.status won't be able to write to it; its
19640# output is simply discarded. So we exec the FD to /dev/null,
19641# effectively closing config.log, so it can be properly (re)opened and
19642# appended to by config.status. When coming back to configure, we
19643# need to make the FD available again.
19644if test "$no_create" != yes; then
19645 ac_cs_success=:
19646 ac_config_status_args=
19647 test "$silent" = yes &&
19648 ac_config_status_args="$ac_config_status_args --quiet"
19649 exec 5>/dev/null
19650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19651 exec 5>>config.log
19652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19653 # would make configure fail if this is the last instruction.
Scott James Remnantfde82c92009-09-22 10:04:15 -070019654 $ac_cs_success || as_fn_exit $?
Scott James Remnant65f683d2009-07-14 13:05:17 +010019655fi
19656if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Scott James Remnantfde82c92009-09-22 10:04:15 -070019657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant65f683d2009-07-14 13:05:17 +010019658$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19659fi
19660