blob: caf48d5cc1e4974fb36a70ad3e00c0752346923d [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jimblandy92b1f832009-12-23 22:23:49 +00003# Generated by GNU Autoconf 2.64 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
5# Report bugs to <opensource@google.com>.
6#
mmentovai8c2a4de2006-09-20 16:20:15 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
jimblandy92b1f832009-12-23 22:23:49 +00008# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
brynercb91a2f2006-08-25 21:14:45 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000016
mmentovaiaf3c43f2007-05-17 18:34:37 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000020 emulate sh
21 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000025 setopt NO_GLOB_SUBST
26else
jimblandy92b1f832009-12-23 22:23:49 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000032esac
brynercb91a2f2006-08-25 21:14:45 +000033fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000034
35
jimblandy92b1f832009-12-23 22:23:49 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
brynercb91a2f2006-08-25 21:14:45 +000073
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
mmentovai8c2a4de2006-09-20 16:20:15 +000081fi
brynercb91a2f2006-08-25 21:14:45 +000082
mmentovai8c2a4de2006-09-20 16:20:15 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000092case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000101IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000102
mmentovai8c2a4de2006-09-20 16:20:15 +0000103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000113fi
114
jimblandy92b1f832009-12-23 22:23:49 +0000115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000132
jimblandy92b1f832009-12-23 22:23:49 +0000133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: opensource@google.com about your system, including any
233$0: error possibly output before this message. Then install
234$0: a modern shell, or manually run the script under such a
235$0: shell if you do have one."
236 fi
237 exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255 { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264 return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272 set +e
273 as_fn_set_status $1
274 exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374} # as_fn_error
375
mmentovai8c2a4de2006-09-20 16:20:15 +0000376if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379else
380 as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385else
386 as_basename=false
387fi
388
jimblandy92b1f832009-12-23 22:23:49 +0000389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391else
392 as_dirname=false
393fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000394
mmentovai8c2a4de2006-09-20 16:20:15 +0000395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000399$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
jimblandy92b1f832009-12-23 22:23:49 +0000414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000420
421
jimblandy92b1f832009-12-23 22:23:49 +0000422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000431 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000436 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000439 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000440 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000441 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000442 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
brynercb91a2f2006-08-25 21:14:45 +0000444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000449 # Exit status is that of the last command.
450 exit
451}
452
mmentovai8c2a4de2006-09-20 16:20:15 +0000453ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000454case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000455-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000456 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000461 esac;;
462*)
463 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000464esac
465
brynercb91a2f2006-08-25 21:14:45 +0000466rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000467if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469else
470 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000471 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000472fi
jimblandy92b1f832009-12-23 22:23:49 +0000473if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
brynercb91a2f2006-08-25 21:14:45 +0000485 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000486 fi
brynercb91a2f2006-08-25 21:14:45 +0000487else
488 as_ln_s='cp -p'
489fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000492
493if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000494 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000495else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498fi
499
mmentovaiaf3c43f2007-05-17 18:34:37 +0000500if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +0000502else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +0000511 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +0000512 else
jimblandy92b1f832009-12-23 22:23:49 +0000513 case $1 in #(
514 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +0000515 esac;
jimblandy92b1f832009-12-23 22:23:49 +0000516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +0000517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
mmentovai8c2a4de2006-09-20 16:20:15 +0000520fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000521as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
brynercb91a2f2006-08-25 21:14:45 +0000530
brynercb91a2f2006-08-25 21:14:45 +0000531# Check that we are running under the correct shell.
532SHELL=${CONFIG_SHELL-/bin/sh}
533
jimblandy92b1f832009-12-23 22:23:49 +0000534case X$lt_ECHO in
brynercb91a2f2006-08-25 21:14:45 +0000535X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
jimblandy92b1f832009-12-23 22:23:49 +0000537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
brynercb91a2f2006-08-25 21:14:45 +0000538 ;;
539esac
540
jimblandy92b1f832009-12-23 22:23:49 +0000541ECHO=${lt_ECHO-echo}
brynercb91a2f2006-08-25 21:14:45 +0000542if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
547 :
jimblandy92b1f832009-12-23 22:23:49 +0000548elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
brynercb91a2f2006-08-25 21:14:45 +0000550 :
551else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
554fi
555
556if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
jimblandy92b1f832009-12-23 22:23:49 +0000559 cat <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +0000560$*
jimblandy92b1f832009-12-23 22:23:49 +0000561_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +0000562 exit 0
563fi
564
565# The HP-UX ksh and POSIX shell print the target directory to stdout
566# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +0000567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000568
jimblandy92b1f832009-12-23 22:23:49 +0000569if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
578 fi
579 done
580 fi
brynercb91a2f2006-08-25 21:14:45 +0000581
jimblandy92b1f832009-12-23 22:23:49 +0000582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
585 :
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
590 #
591 # So, first we look for a working echo in the user's PATH.
brynercb91a2f2006-08-25 21:14:45 +0000592
jimblandy92b1f832009-12-23 22:23:49 +0000593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
602 fi
603 done
brynercb91a2f2006-08-25 21:14:45 +0000604 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +0000605
jimblandy92b1f832009-12-23 22:23:49 +0000606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
brynercb91a2f2006-08-25 21:14:45 +0000621 else
jimblandy92b1f832009-12-23 22:23:49 +0000622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
628 :
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
brynercb91a2f2006-08-25 21:14:45 +0000646
jimblandy92b1f832009-12-23 22:23:49 +0000647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
651 fi
652 prev="$cmd"
653 done
654
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
brynercb91a2f2006-08-25 21:14:45 +0000662 fi
jimblandy92b1f832009-12-23 22:23:49 +0000663 fi
brynercb91a2f2006-08-25 21:14:45 +0000664 fi
665 fi
666 fi
667fi
brynercb91a2f2006-08-25 21:14:45 +0000668
669# Copy echo and quote the copy suitably for passing to libtool from
670# the Makefile, instead of quoting the original, which is used later.
jimblandy92b1f832009-12-23 22:23:49 +0000671lt_ECHO=$ECHO
672if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
brynercb91a2f2006-08-25 21:14:45 +0000674fi
675
676
677
678
mmentovai8c2a4de2006-09-20 16:20:15 +0000679exec 7<&0 </dev/null 6>&1
680
brynercb91a2f2006-08-25 21:14:45 +0000681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
brynercb91a2f2006-08-25 21:14:45 +0000686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000690ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000691ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000692LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000697
brynercb91a2f2006-08-25 21:14:45 +0000698# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000699PACKAGE_NAME='breakpad'
700PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000701PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000702PACKAGE_STRING='breakpad 0.1'
brynercb91a2f2006-08-25 21:14:45 +0000703PACKAGE_BUGREPORT='opensource@google.com'
jimblandy92b1f832009-12-23 22:23:49 +0000704PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000705
706ac_unique_file="README"
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
mmentovaiaf3c43f2007-05-17 18:34:37 +0000710#ifdef HAVE_SYS_TYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000711# include <sys/types.h>
712#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000713#ifdef HAVE_SYS_STAT_H
brynercb91a2f2006-08-25 21:14:45 +0000714# include <sys/stat.h>
715#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000716#ifdef STDC_HEADERS
brynercb91a2f2006-08-25 21:14:45 +0000717# include <stdlib.h>
718# include <stddef.h>
719#else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000720# ifdef HAVE_STDLIB_H
brynercb91a2f2006-08-25 21:14:45 +0000721# include <stdlib.h>
722# endif
723#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
brynercb91a2f2006-08-25 21:14:45 +0000726# include <memory.h>
727# endif
728# include <string.h>
729#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000730#ifdef HAVE_STRINGS_H
brynercb91a2f2006-08-25 21:14:45 +0000731# include <strings.h>
732#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000733#ifdef HAVE_INTTYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000734# include <inttypes.h>
mmentovai8c2a4de2006-09-20 16:20:15 +0000735#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000736#ifdef HAVE_STDINT_H
mmentovai8c2a4de2006-09-20 16:20:15 +0000737# include <stdint.h>
brynercb91a2f2006-08-25 21:14:45 +0000738#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000739#ifdef HAVE_UNISTD_H
brynercb91a2f2006-08-25 21:14:45 +0000740# include <unistd.h>
741#endif"
742
jimblandy92b1f832009-12-23 22:23:49 +0000743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000746LIBOBJS
jimblandy92b1f832009-12-23 22:23:49 +0000747SELFTEST_FALSE
748SELFTEST_TRUE
749LIBTOOL_DEPS
750CXXCPP
751OTOOL64
752OTOOL
753LIPO
754NMEDIT
755DSYMUTIL
756lt_ECHO
757RANLIB
758AR
759OBJDUMP
760LN_S
761NM
762ac_ct_DUMPBIN
763DUMPBIN
764LD
765FGREP
766EGREP
767GREP
768SED
769host_os
770host_vendor
771host_cpu
772host
773build_os
774build_vendor
775build_cpu
776build
777LIBTOOL
778am__fastdepCXX_FALSE
779am__fastdepCXX_TRUE
780CXXDEPMODE
781ac_ct_CXX
782CXXFLAGS
783CXX
784CPP
785am__fastdepCC_FALSE
786am__fastdepCC_TRUE
787CCDEPMODE
788AMDEPBACKSLASH
789AMDEP_FALSE
790AMDEP_TRUE
791am__quote
792am__include
793DEPDIR
794OBJEXT
795EXEEXT
796ac_ct_CC
797CPPFLAGS
798LDFLAGS
799CFLAGS
800CC
801am__untar
802am__tar
803AMTAR
804am__leading_dot
805SET_MAKE
806AWK
807mkdir_p
808MKDIR_P
809INSTALL_STRIP_PROGRAM
810STRIP
811install_sh
812MAKEINFO
813AUTOHEADER
814AUTOMAKE
815AUTOCONF
816ACLOCAL
817VERSION
818PACKAGE
819CYGPATH_W
820am__isrc
821INSTALL_DATA
822INSTALL_SCRIPT
823INSTALL_PROGRAM
824target_alias
825host_alias
826build_alias
827LIBS
828ECHO_T
829ECHO_N
830ECHO_C
831DEFS
832mandir
833localedir
834libdir
835psdir
836pdfdir
837dvidir
838htmldir
839infodir
840docdir
841oldincludedir
842includedir
843localstatedir
844sharedstatedir
845sysconfdir
846datadir
847datarootdir
848libexecdir
849sbindir
850bindir
851program_transform_name
852prefix
853exec_prefix
854PACKAGE_URL
855PACKAGE_BUGREPORT
856PACKAGE_STRING
857PACKAGE_VERSION
858PACKAGE_TARNAME
859PACKAGE_NAME
860PATH_SEPARATOR
861SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000862ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000863ac_user_opts='
864enable_option_checking
865enable_dependency_tracking
866enable_shared
867enable_static
868with_pic
869enable_fast_install
870with_gnu_ld
871enable_libtool_lock
872enable_selftest
873'
mmentovai8c2a4de2006-09-20 16:20:15 +0000874 ac_precious_vars='build_alias
875host_alias
876target_alias
877CC
878CFLAGS
879LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000880LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000881CPPFLAGS
882CPP
883CXX
884CXXFLAGS
885CCC
jimblandy92b1f832009-12-23 22:23:49 +0000886CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000887
brynercb91a2f2006-08-25 21:14:45 +0000888
889# Initialize some variables set by options.
890ac_init_help=
891ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000892ac_unrecognized_opts=
893ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000894# The variables have the same names as the options, with
895# dashes changed to underlines.
896cache_file=/dev/null
897exec_prefix=NONE
898no_create=
899no_recursion=
900prefix=NONE
901program_prefix=NONE
902program_suffix=NONE
903program_transform_name=s,x,x,
904silent=
905site=
906srcdir=
907verbose=
908x_includes=NONE
909x_libraries=NONE
910
911# Installation directory options.
912# These are left unexpanded so users can "make install exec_prefix=/foo"
913# and all the variables that are supposed to be based on exec_prefix
914# by default will actually change.
915# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000916# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000917bindir='${exec_prefix}/bin'
918sbindir='${exec_prefix}/sbin'
919libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000920datarootdir='${prefix}/share'
921datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000922sysconfdir='${prefix}/etc'
923sharedstatedir='${prefix}/com'
924localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000925includedir='${prefix}/include'
926oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000927docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928infodir='${datarootdir}/info'
929htmldir='${docdir}'
930dvidir='${docdir}'
931pdfdir='${docdir}'
932psdir='${docdir}'
933libdir='${exec_prefix}/lib'
934localedir='${datarootdir}/locale'
935mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000936
937ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000938ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000939for ac_option
940do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000943 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000944 ac_prev=
945 continue
946 fi
947
mmentovai8c2a4de2006-09-20 16:20:15 +0000948 case $ac_option in
949 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *) ac_optarg=yes ;;
951 esac
brynercb91a2f2006-08-25 21:14:45 +0000952
953 # Accept the important Cygnus configure options, so we can diagnose typos.
954
mmentovai8c2a4de2006-09-20 16:20:15 +0000955 case $ac_dashdash$ac_option in
956 --)
957 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000958
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
963
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
968
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
975
976 --config-cache | -C)
977 cache_file=config.cache ;;
978
mmentovai8c2a4de2006-09-20 16:20:15 +0000979 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000980 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000982 datadir=$ac_optarg ;;
983
mmentovai8c2a4de2006-09-20 16:20:15 +0000984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
990
brynercb91a2f2006-08-25 21:14:45 +0000991 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000993 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"enable_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001016
1017 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001019 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001032
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1041
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1045
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1052
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1057
mmentovai8c2a4de2006-09-20 16:20:15 +00001058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1063
brynercb91a2f2006-08-25 21:14:45 +00001064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1070
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1075
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1080
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1087
mmentovai8c2a4de2006-09-20 16:20:15 +00001088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1092
brynercb91a2f2006-08-25 21:14:45 +00001093 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001094 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001098 localstatedir=$ac_optarg ;;
1099
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1104
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1108
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1112
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1116
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1125
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1130
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1137
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1144
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1161
mmentovai8c2a4de2006-09-20 16:20:15 +00001162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1166
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1171
brynercb91a2f2006-08-25 21:14:45 +00001172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1175
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1181
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1192
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1197
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1202
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1209
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1214
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1217
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1220
1221 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001223 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001236
1237 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001239 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1245 *"
1246"with_$ac_useropt"
1247"*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001252
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1256
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1263
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1270
jimblandy92b1f832009-12-23 22:23:49 +00001271 -*) as_fn_error "unrecognized option: \`$ac_option'
1272Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001273 ;;
1274
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1281 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001282 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001283 export $ac_envvar ;;
1284
1285 *)
1286 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001290 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 ;;
1292
1293 esac
1294done
1295
1296if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jimblandy92b1f832009-12-23 22:23:49 +00001298 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001299fi
1300
jimblandy92b1f832009-12-23 22:23:49 +00001301if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1307fi
1308
1309# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001310for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001314do
mmentovai8c2a4de2006-09-20 16:20:15 +00001315 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001323 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001326 esac
jimblandy92b1f832009-12-23 22:23:49 +00001327 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001328done
1329
1330# There might be people who depend on the old broken behavior: `$host'
1331# used to hold the argument of --host etc.
1332# FIXME: To remove some day.
1333build=$build_alias
1334host=$host_alias
1335target=$target_alias
1336
1337# FIXME: To remove some day.
1338if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
jimblandy92b1f832009-12-23 22:23:49 +00001341 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
brynercb91a2f2006-08-25 21:14:45 +00001342 If a cross compiler is detected then cross compile mode will be used." >&2
1343 elif test "x$build_alias" != "x$host_alias"; then
1344 cross_compiling=yes
1345 fi
1346fi
1347
1348ac_tool_prefix=
1349test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351test "$silent" = yes && exec 6>/dev/null
1352
1353
mmentovai8c2a4de2006-09-20 16:20:15 +00001354ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355ac_ls_di=`ls -di .` &&
1356ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
jimblandy92b1f832009-12-23 22:23:49 +00001357 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001358test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
jimblandy92b1f832009-12-23 22:23:49 +00001359 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001360
1361
brynercb91a2f2006-08-25 21:14:45 +00001362# Find the source files, if location was not specified.
1363if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001365 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\/\)$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\).*/{
1385 s//\1/
1386 q
1387 }
1388 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001389 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001390 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001391 srcdir=..
1392 fi
1393else
1394 ac_srcdir_defaulted=no
1395fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001396if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
jimblandy92b1f832009-12-23 22:23:49 +00001398 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001399fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401ac_abs_confdir=`(
jimblandy92b1f832009-12-23 22:23:49 +00001402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001403 pwd)`
1404# When building in place, set srcdir=.
1405if test "$ac_abs_confdir" = "$ac_pwd"; then
1406 srcdir=.
1407fi
1408# Remove unnecessary trailing slashes from srcdir.
1409# Double slashes in file names in object file debugging info
1410# mess up M-x gdb in Emacs.
1411case $srcdir in
1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413esac
1414for ac_var in $ac_precious_vars; do
1415 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_env_${ac_var}_value=\$${ac_var}
1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419done
brynercb91a2f2006-08-25 21:14:45 +00001420
1421#
1422# Report the --help message.
1423#
1424if test "$ac_init_help" = "long"; then
1425 # Omit some internal or obsolete options to make the list less imposing.
1426 # This message is too long to be a string in the A/UX 3.1 sh.
1427 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001428\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001429
1430Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433VAR=VALUE. See below for descriptions of some of the useful variables.
1434
1435Defaults for the options are specified in brackets.
1436
1437Configuration:
1438 -h, --help display this help and exit
1439 --help=short display options specific to this package
1440 --help=recursive display the short help of all the included packages
1441 -V, --version display version information and exit
1442 -q, --quiet, --silent do not print \`checking...' messages
1443 --cache-file=FILE cache test results in FILE [disabled]
1444 -C, --config-cache alias for \`--cache-file=config.cache'
1445 -n, --no-create do not create output files
1446 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447
brynercb91a2f2006-08-25 21:14:45 +00001448Installation directories:
1449 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001450 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001452 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001453
1454By default, \`make install' will install all the files in
1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457for instance \`--prefix=\$HOME'.
1458
1459For better control, use the options below.
1460
1461Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001462 --bindir=DIR user executables [EPREFIX/bin]
1463 --sbindir=DIR system admin executables [EPREFIX/sbin]
1464 --libexecdir=DIR program executables [EPREFIX/libexec]
1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001481_ACEOF
1482
1483 cat <<\_ACEOF
1484
1485Program names:
1486 --program-prefix=PREFIX prepend PREFIX to installed program names
1487 --program-suffix=SUFFIX append SUFFIX to installed program names
1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489
1490System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493_ACEOF
1494fi
1495
1496if test -n "$ac_init_help"; then
1497 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001498 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001499 esac
1500 cat <<\_ACEOF
1501
1502Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001503 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --disable-dependency-tracking speeds up one-time build
1507 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001510 --enable-fast-install[=PKGS]
1511 optimize for fast installation [default=yes]
1512 --disable-libtool-lock avoid locking (might break parallel builds)
mmentovai0dbedc92006-09-25 21:16:15 +00001513 --enable-selftest Run extra tests with "make check" (may conflict with
1514 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001519 --with-pic try to use only PIC/non-PIC objects [default=use
1520 both]
jimblandy92b1f832009-12-23 22:23:49 +00001521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001528 LIBS libraries to pass to the linker, e.g. -l<library>
mmentovai8c2a4de2006-09-20 16:20:15 +00001529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001531 CPP C preprocessor
1532 CXX C++ compiler command
1533 CXXFLAGS C++ compiler flags
1534 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001535
1536Use these variables to override the choices made by `configure' or to help
1537it to find libraries and programs with nonstandard names/locations.
1538
1539Report bugs to <opensource@google.com>.
1540_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001541ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001542fi
1543
1544if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
brynercb91a2f2006-08-25 21:14:45 +00001550 ac_builddir=.
1551
mmentovai8c2a4de2006-09-20 16:20:15 +00001552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
jimblandy92b1f832009-12-23 22:23:49 +00001555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001556 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001567
1568case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001569 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001570 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001574 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001581esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001583
mmentovai8c2a4de2006-09-20 16:20:15 +00001584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001592 else
jimblandy92b1f832009-12-23 22:23:49 +00001593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001596 done
1597fi
1598
mmentovai8c2a4de2006-09-20 16:20:15 +00001599test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001600if $ac_init_version; then
1601 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001602breakpad configure 0.1
jimblandy92b1f832009-12-23 22:23:49 +00001603generated by GNU Autoconf 2.64
brynercb91a2f2006-08-25 21:14:45 +00001604
jimblandy92b1f832009-12-23 22:23:49 +00001605Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001609 exit
brynercb91a2f2006-08-25 21:14:45 +00001610fi
jimblandy92b1f832009-12-23 22:23:49 +00001611
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
1615
1616# ac_fn_c_try_compile LINENO
1617# --------------------------
1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_compile ()
1620{
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1650 return $ac_retval
1651
1652} # ac_fn_c_try_compile
1653
1654# ac_fn_c_try_cpp LINENO
1655# ----------------------
1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657ac_fn_c_try_cpp ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } >/dev/null && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1688
1689} # ac_fn_c_try_cpp
1690
1691# ac_fn_cxx_try_compile LINENO
1692# ----------------------------
1693# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_cxx_try_compile ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext
1698 if { { ac_try="$ac_compile"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_compile") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_cxx_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest.$ac_objext; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1726
1727} # ac_fn_cxx_try_compile
1728
1729# ac_fn_c_try_link LINENO
1730# -----------------------
1731# Try to link conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_c_try_link ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1772
1773} # ac_fn_c_try_link
1774
1775# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776# -------------------------------------------------------
1777# Tests whether HEADER exists and can be compiled using the include files in
1778# INCLUDES, setting the cache variable VAR accordingly.
1779ac_fn_c_check_header_compile ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783$as_echo_n "checking for $2... " >&6; }
1784if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1786else
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788/* end confdefs.h. */
1789$4
1790#include <$2>
1791_ACEOF
1792if ac_fn_c_try_compile "$LINENO"; then :
1793 eval "$3=yes"
1794else
1795 eval "$3=no"
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
1804} # ac_fn_c_check_header_compile
1805
1806# ac_fn_c_try_run LINENO
1807# ----------------------
1808# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1809# that executables *can* be run.
1810ac_fn_c_try_run ()
1811{
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_link"
1814case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819$as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>&5
1821 ac_status=$?
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1824 { { case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_try") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; }; }; then :
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: program exited with status $ac_status" >&5
1837 $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=$ac_status
1841fi
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1845
1846} # ac_fn_c_try_run
1847
1848# ac_fn_c_check_func LINENO FUNC VAR
1849# ----------------------------------
1850# Tests whether FUNC exists, setting the cache variable VAR accordingly
1851ac_fn_c_check_func ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855$as_echo_n "checking for $2... " >&6; }
1856if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 $as_echo_n "(cached) " >&6
1858else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860/* end confdefs.h. */
1861/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1863#define $2 innocuous_$2
1864
1865/* System header to define __stub macros and hopefully few prototypes,
1866 which can conflict with char $2 (); below.
1867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868 <limits.h> exists even on freestanding compilers. */
1869
1870#ifdef __STDC__
1871# include <limits.h>
1872#else
1873# include <assert.h>
1874#endif
1875
1876#undef $2
1877
1878/* Override any GCC internal prototype to avoid an error.
1879 Use char because int might match the return type of a GCC
1880 builtin and then its argument prototype would still apply. */
1881#ifdef __cplusplus
1882extern "C"
1883#endif
1884char $2 ();
1885/* The GNU C library defines this for functions which it implements
1886 to always fail with ENOSYS. Some functions are actually named
1887 something starting with __ and the normal name is an alias. */
1888#if defined __stub_$2 || defined __stub___$2
1889choke me
1890#endif
1891
1892int
1893main ()
1894{
1895return $2 ();
1896 ;
1897 return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_link "$LINENO"; then :
1901 eval "$3=yes"
1902else
1903 eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext \
1906 conftest$ac_exeext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912
1913} # ac_fn_c_check_func
1914
1915# ac_fn_cxx_try_cpp LINENO
1916# ------------------------
1917# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918ac_fn_cxx_try_cpp ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_cpp conftest.$ac_ext"
1922case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929 ac_status=$?
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1934 fi
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev/null && {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1939 }; then :
1940 ac_retval=0
1941else
1942 $as_echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=1
1946fi
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 return $ac_retval
1949
1950} # ac_fn_cxx_try_cpp
1951
1952# ac_fn_cxx_try_link LINENO
1953# -------------------------
1954# Try to link conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_link ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext conftest$ac_exeext
1959 if { { ac_try="$ac_link"
1960case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>conftest.err
1967 ac_status=$?
1968 if test -s conftest.err; then
1969 grep -v '^ *+' conftest.err >conftest.er1
1970 cat conftest.er1 >&5
1971 mv -f conftest.er1 conftest.err
1972 fi
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest$ac_exeext && {
1978 test "$cross_compiling" = yes ||
1979 $as_test_x conftest$ac_exeext
1980 }; then :
1981 ac_retval=0
1982else
1983 $as_echo "$as_me: failed program was:" >&5
1984sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=1
1987fi
1988 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1989 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1990 # interfere with the next link command; also delete a directory that is
1991 # left behind by Apple's compiler. We do this before executing the actions.
1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994 return $ac_retval
1995
1996} # ac_fn_cxx_try_link
mmentovai8c2a4de2006-09-20 16:20:15 +00001997cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00001998This file contains any messages produced by compilers while
1999running configure, to aid debugging if configure makes a mistake.
2000
mmentovaie5dc6082007-02-14 19:51:05 +00002001It was created by breakpad $as_me 0.1, which was
jimblandy92b1f832009-12-23 22:23:49 +00002002generated by GNU Autoconf 2.64. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002003
2004 $ $0 $@
2005
2006_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002007exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002008{
2009cat <<_ASUNAME
2010## --------- ##
2011## Platform. ##
2012## --------- ##
2013
2014hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2022
2023/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002026/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002027/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2030
2031_ASUNAME
2032
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002038 $as_echo "PATH: $as_dir"
2039 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002040IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002041
2042} >&5
2043
2044cat >&5 <<_ACEOF
2045
2046
2047## ----------- ##
2048## Core tests. ##
2049## ----------- ##
2050
2051_ACEOF
2052
2053
2054# Keep a trace of the command line.
2055# Strip out --no-create and --no-recursion so they do not pile up.
2056# Strip out --silent because we don't want to record it for future runs.
2057# Also quote any args containing shell meta-characters.
2058# Make two passes to allow for proper duplicate-argument suppression.
2059ac_configure_args=
2060ac_configure_args0=
2061ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002062ac_must_keep_next=false
2063for ac_pass in 1 2
2064do
2065 for ac_arg
2066 do
2067 case $ac_arg in
2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070 | -silent | --silent | --silen | --sile | --sil)
2071 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002072 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002074 esac
2075 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002077 2)
jimblandy92b1f832009-12-23 22:23:49 +00002078 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002079 if test $ac_must_keep_next = true; then
2080 ac_must_keep_next=false # Got value, back to normal.
2081 else
2082 case $ac_arg in
2083 *=* | --config-cache | -C | -disable-* | --disable-* \
2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086 | -with-* | --with-* | -without-* | --without-* | --x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 esac
2090 ;;
2091 -* ) ac_must_keep_next=true ;;
2092 esac
2093 fi
jimblandy92b1f832009-12-23 22:23:49 +00002094 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002095 ;;
2096 esac
2097 done
2098done
jimblandy92b1f832009-12-23 22:23:49 +00002099{ ac_configure_args0=; unset ac_configure_args0;}
2100{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002101
2102# When interrupted or exit'd, cleanup temporary files, and complete
2103# config.log. We remove comments because anyway the quotes in there
2104# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002105# WARNING: Use '\'' to represent an apostrophe within the trap.
2106# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002107trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2109 {
2110 echo
2111
2112 cat <<\_ASBOX
2113## ---------------- ##
2114## Cache variables. ##
2115## ---------------- ##
2116_ASBOX
2117 echo
2118 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002119(
2120 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in #(
2123 *${as_nl}*)
2124 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002127 esac
2128 case $ac_var in #(
2129 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002132 esac ;;
2133 esac
2134 done
brynercb91a2f2006-08-25 21:14:45 +00002135 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002136 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002138 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002139 "s/'\''/'\''\\\\'\'''\''/g;
2140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002142 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002144 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002145 esac |
2146 sort
2147)
brynercb91a2f2006-08-25 21:14:45 +00002148 echo
2149
2150 cat <<\_ASBOX
2151## ----------------- ##
2152## Output variables. ##
2153## ----------------- ##
2154_ASBOX
2155 echo
2156 for ac_var in $ac_subst_vars
2157 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002158 eval ac_val=\$$ac_var
2159 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002161 esac
jimblandy92b1f832009-12-23 22:23:49 +00002162 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002163 done | sort
2164 echo
2165
2166 if test -n "$ac_subst_files"; then
2167 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00002168## ------------------- ##
2169## File substitutions. ##
2170## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002171_ASBOX
2172 echo
2173 for ac_var in $ac_subst_files
2174 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002175 eval ac_val=\$$ac_var
2176 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002178 esac
jimblandy92b1f832009-12-23 22:23:49 +00002179 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002180 done | sort
2181 echo
2182 fi
2183
2184 if test -s confdefs.h; then
2185 cat <<\_ASBOX
2186## ----------- ##
2187## confdefs.h. ##
2188## ----------- ##
2189_ASBOX
2190 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002191 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002192 echo
2193 fi
2194 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002195 $as_echo "$as_me: caught signal $ac_signal"
2196 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002197 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002198 rm -f core *.core core.conftest.* &&
2199 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002200 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002201' 0
brynercb91a2f2006-08-25 21:14:45 +00002202for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002203 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002204done
2205ac_signal=0
2206
2207# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002208rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002209
jimblandy92b1f832009-12-23 22:23:49 +00002210$as_echo "/* confdefs.h */" > confdefs.h
2211
brynercb91a2f2006-08-25 21:14:45 +00002212# Predefined preprocessor variables.
2213
2214cat >>confdefs.h <<_ACEOF
2215#define PACKAGE_NAME "$PACKAGE_NAME"
2216_ACEOF
2217
brynercb91a2f2006-08-25 21:14:45 +00002218cat >>confdefs.h <<_ACEOF
2219#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2220_ACEOF
2221
brynercb91a2f2006-08-25 21:14:45 +00002222cat >>confdefs.h <<_ACEOF
2223#define PACKAGE_VERSION "$PACKAGE_VERSION"
2224_ACEOF
2225
brynercb91a2f2006-08-25 21:14:45 +00002226cat >>confdefs.h <<_ACEOF
2227#define PACKAGE_STRING "$PACKAGE_STRING"
2228_ACEOF
2229
brynercb91a2f2006-08-25 21:14:45 +00002230cat >>confdefs.h <<_ACEOF
2231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2232_ACEOF
2233
jimblandy92b1f832009-12-23 22:23:49 +00002234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_URL "$PACKAGE_URL"
2236_ACEOF
2237
brynercb91a2f2006-08-25 21:14:45 +00002238
2239# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002240# Prefer an explicitly selected file to automatically selected ones.
2241ac_site_file1=NONE
2242ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002243if test -n "$CONFIG_SITE"; then
jimblandy92b1f832009-12-23 22:23:49 +00002244 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002245elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002246 ac_site_file1=$prefix/share/config.site
2247 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002248else
jimblandy92b1f832009-12-23 22:23:49 +00002249 ac_site_file1=$ac_default_prefix/share/config.site
2250 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002251fi
jimblandy92b1f832009-12-23 22:23:49 +00002252for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002253do
jimblandy92b1f832009-12-23 22:23:49 +00002254 test "x$ac_site_file" = xNONE && continue
brynercb91a2f2006-08-25 21:14:45 +00002255 if test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2257$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002258 sed 's/^/| /' "$ac_site_file" >&5
2259 . "$ac_site_file"
2260 fi
2261done
2262
2263if test -r "$cache_file"; then
2264 # Some versions of bash will fail to source /dev/null (special
2265 # files actually), so we avoid doing that.
2266 if test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2268$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002269 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002270 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2271 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002272 esac
2273 fi
2274else
jimblandy92b1f832009-12-23 22:23:49 +00002275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2276$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002277 >$cache_file
2278fi
2279
2280# Check that the precious variables saved in the cache have kept the same
2281# value.
2282ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002283for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2285 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002286 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2287 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002288 case $ac_old_set,$ac_new_set in
2289 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2291$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002292 ac_cache_corrupted=: ;;
2293 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2295$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002296 ac_cache_corrupted=: ;;
2297 ,);;
2298 *)
2299 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002300 # differences in whitespace do not lead to failure.
2301 ac_old_val_w=`echo x $ac_old_val`
2302 ac_new_val_w=`echo x $ac_new_val`
2303 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2305$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2306 ac_cache_corrupted=:
2307 else
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2309$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2310 eval $ac_var=\$ac_old_val
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2313$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2315$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002316 fi;;
2317 esac
2318 # Pass precious variables to config.status.
2319 if test "$ac_new_set" = set; then
2320 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002321 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002322 *) ac_arg=$ac_var=$ac_new_val ;;
2323 esac
2324 case " $ac_configure_args " in
2325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002326 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002327 esac
2328 fi
2329done
2330if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2334$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2335 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002336fi
jimblandy92b1f832009-12-23 22:23:49 +00002337## -------------------- ##
2338## Main body of script. ##
2339## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002340
brynercb91a2f2006-08-25 21:14:45 +00002341ac_ext=c
2342ac_cpp='$CPP $CPPFLAGS'
2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346
2347
2348
brynercb91a2f2006-08-25 21:14:45 +00002349ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002350for ac_dir in autotools "$srcdir"/autotools; do
jimblandy92b1f832009-12-23 22:23:49 +00002351 for ac_t in install-sh install.sh shtool; do
2352 if test -f "$ac_dir/$ac_t"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/$ac_t -c"
2355 break 2
2356 fi
2357 done
brynercb91a2f2006-08-25 21:14:45 +00002358done
2359if test -z "$ac_aux_dir"; then
jimblandy92b1f832009-12-23 22:23:49 +00002360 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002361fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002362
2363# These three variables are undocumented and unsupported,
2364# and are intended to be withdrawn in a future Autoconf release.
2365# They can cause serious problems if a builder's source tree is in a directory
2366# whose full name contains unusual characters.
2367ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2368ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2369ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370
brynercb91a2f2006-08-25 21:14:45 +00002371
mmentovai425d2562006-08-30 20:05:05 +00002372
jimblandy92b1f832009-12-23 22:23:49 +00002373am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002374
brynercb91a2f2006-08-25 21:14:45 +00002375# Find a good install program. We prefer a C program (faster),
2376# so one script is as good as another. But avoid the broken or
2377# incompatible versions:
2378# SysV /etc/install, /usr/sbin/install
2379# SunOS /usr/etc/install
2380# IRIX /sbin/install
2381# AIX /bin/install
2382# AmigaOS /C/install, which installs bootblocks on floppy discs
2383# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386# OS/2's system install, which has a completely different semantic
2387# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002388# Reject install programs that cannot install multiple files.
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002391if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002392if test "${ac_cv_path_install+set}" = set; then :
2393 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002394else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002400 # Account for people who put trailing slashes in PATH elements.
2401case $as_dir/ in #((
2402 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002404 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002405 /usr/ucb/* ) ;;
2406 *)
2407 # OSF1 and SCO ODT 3.0 have their own names for install.
2408 # Don't use installbsd from OSF since it installs stuff as root
2409 # by default.
2410 for ac_prog in ginstall scoinst install; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002413 if test $ac_prog = install &&
2414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # AIX install. It has an incompatible calling convention.
2416 :
2417 elif test $ac_prog = install &&
2418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # program-specific install script used by HP pwplus--don't use.
2420 :
2421 else
jimblandy92b1f832009-12-23 22:23:49 +00002422 rm -rf conftest.one conftest.two conftest.dir
2423 echo one > conftest.one
2424 echo two > conftest.two
2425 mkdir conftest.dir
2426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427 test -s conftest.one && test -s conftest.two &&
2428 test -s conftest.dir/conftest.one &&
2429 test -s conftest.dir/conftest.two
2430 then
2431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2432 break 3
2433 fi
brynercb91a2f2006-08-25 21:14:45 +00002434 fi
2435 fi
2436 done
2437 done
2438 ;;
2439esac
jimblandy92b1f832009-12-23 22:23:49 +00002440
2441 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002442IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002443
jimblandy92b1f832009-12-23 22:23:49 +00002444rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002445
2446fi
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2449 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002452 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002453 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002454 INSTALL=$ac_install_sh
2455 fi
2456fi
jimblandy92b1f832009-12-23 22:23:49 +00002457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002459
2460# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461# It thinks the first close brace ends the variable substitution.
2462test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2463
2464test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2465
2466test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2467
jimblandy92b1f832009-12-23 22:23:49 +00002468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002470# Just in case
2471sleep 1
2472echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002473# Reject unsafe characters in $srcdir or the absolute working directory
2474# name. Accept space and tab only in the latter.
2475am_lf='
2476'
2477case `pwd` in
2478 *[\\\"\#\$\&\'\`$am_lf]*)
2479 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2480esac
2481case $srcdir in
2482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2483 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2484esac
2485
brynercb91a2f2006-08-25 21:14:45 +00002486# Do `set' in a subshell so we don't clobber the current shell's
2487# arguments. Must try -L first in case configure is actually a
2488# symlink; some systems play weird games with the mod time of symlinks
2489# (eg FreeBSD returns the mod time of the symlink's containing
2490# directory).
2491if (
jimblandy92b1f832009-12-23 22:23:49 +00002492 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002493 if test "$*" = "X"; then
2494 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002495 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002496 fi
2497 rm -f conftest.file
2498 if test "$*" != "X $srcdir/configure conftest.file" \
2499 && test "$*" != "X conftest.file $srcdir/configure"; then
2500
2501 # If neither matched, then we have a broken ls. This can happen
2502 # if, for instance, CONFIG_SHELL is bash and it inherits a
2503 # broken ls alias from the environment. This has actually
2504 # happened. Such a system could not be considered "sane".
jimblandy92b1f832009-12-23 22:23:49 +00002505 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2506alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002507 fi
2508
2509 test "$2" = conftest.file
2510 )
2511then
2512 # Ok.
2513 :
2514else
jimblandy92b1f832009-12-23 22:23:49 +00002515 as_fn_error "newly created file is older than distributed files!
2516Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002517fi
jimblandy92b1f832009-12-23 22:23:49 +00002518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002520test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002525# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002526# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002529
2530# expand $ac_aux_dir to an absolute path
2531am_aux_dir=`cd $ac_aux_dir && pwd`
2532
jimblandy92b1f832009-12-23 22:23:49 +00002533if test x"${MISSING+set}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537 *)
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539 esac
2540fi
brynercb91a2f2006-08-25 21:14:45 +00002541# Use eval to expand $SHELL
2542if eval "$MISSING --run true"; then
2543 am_missing_run="$MISSING --run "
2544else
2545 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2547$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002548fi
2549
jimblandy92b1f832009-12-23 22:23:49 +00002550if test x"${install_sh}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554 *)
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2556 esac
2557fi
2558
2559# Installed binaries are usually stripped using `strip' when the user
2560# run `make install-strip'. However `strip' might not be the right
2561# tool to use in cross-compilation environments, therefore Automake
2562# will honor the `STRIP' environment variable to overrule this program.
2563if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}strip; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if test "${ac_cv_prog_STRIP+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587 done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592STRIP=$ac_cv_prog_STRIP
2593if test -n "$STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595$as_echo "$STRIP" >&6; }
2596else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602fi
2603if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606set dummy strip; ac_word=$2
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627 done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633if test -n "$ac_ct_STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635$as_echo "$ac_ct_STRIP" >&6; }
2636else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645yes:)
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650 STRIP=$ac_ct_STRIP
2651 fi
2652else
2653 STRIP="$ac_cv_prog_STRIP"
2654fi
2655
2656fi
2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002661if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002662 if test "${ac_cv_path_mkdir+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002664else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002670 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 break 3;;
2679 esac
2680 done
2681 done
jimblandy92b1f832009-12-23 22:23:49 +00002682 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002683IFS=$as_save_IFS
2684
2685fi
2686
2687 if test "${ac_cv_path_mkdir+set}" = set; then
2688 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002689 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002690 # As a last resort, use the slow shell script. Don't cache a
2691 # value for MKDIR_P within a source directory, because that will
2692 # break other packages using the cache if that directory is
2693 # removed, or if the value is a relative name.
2694 test -d ./--version && rmdir ./--version
2695 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002696 fi
2697fi
jimblandy92b1f832009-12-23 22:23:49 +00002698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002700
2701mkdir_p="$MKDIR_P"
2702case $mkdir_p in
2703 [\\/$]* | ?:[\\/]*) ;;
2704 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2705esac
brynercb91a2f2006-08-25 21:14:45 +00002706
2707for ac_prog in gawk mawk nawk awk
2708do
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712$as_echo_n "checking for $ac_word... " >&6; }
2713if test "${ac_cv_prog_AWK+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002715else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718else
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002724 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002726 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002728 break 2
2729 fi
2730done
jimblandy92b1f832009-12-23 22:23:49 +00002731 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002732IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002733
2734fi
2735fi
2736AWK=$ac_cv_prog_AWK
2737if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002740else
jimblandy92b1f832009-12-23 22:23:49 +00002741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002743fi
2744
mmentovai8c2a4de2006-09-20 16:20:15 +00002745
brynercb91a2f2006-08-25 21:14:45 +00002746 test -n "$AWK" && break
2747done
2748
jimblandy92b1f832009-12-23 22:23:49 +00002749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2751set x ${MAKE-make}
2752ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2754 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002755else
2756 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002757SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002758all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002759 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002760_ACEOF
2761# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002762case `${MAKE-make} -f conftest.make 2>/dev/null` in
2763 *@@@%%%=?*=@@@%%%*)
2764 eval ac_cv_prog_make_${ac_make}_set=yes;;
2765 *)
2766 eval ac_cv_prog_make_${ac_make}_set=no;;
2767esac
brynercb91a2f2006-08-25 21:14:45 +00002768rm -f conftest.make
2769fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002770if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002773 SET_MAKE=
2774else
jimblandy92b1f832009-12-23 22:23:49 +00002775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002777 SET_MAKE="MAKE=${MAKE-make}"
2778fi
2779
2780rm -rf .tst 2>/dev/null
2781mkdir .tst 2>/dev/null
2782if test -d .tst; then
2783 am__leading_dot=.
2784else
2785 am__leading_dot=_
2786fi
2787rmdir .tst 2>/dev/null
2788
mmentovaiaf3c43f2007-05-17 18:34:37 +00002789if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791 # is not polluted with repeated "-I."
2792 am__isrc=' -I$(srcdir)'
2793 # test to see if srcdir already configured
2794 if test -f $srcdir/config.status; then
jimblandy92b1f832009-12-23 22:23:49 +00002795 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002796 fi
brynercb91a2f2006-08-25 21:14:45 +00002797fi
2798
2799# test whether we have cygpath
2800if test -z "$CYGPATH_W"; then
2801 if (cygpath --version) >/dev/null 2>/dev/null; then
2802 CYGPATH_W='cygpath -w'
2803 else
2804 CYGPATH_W=echo
2805 fi
2806fi
2807
2808
2809# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002810 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002811 VERSION='0.1'
2812
2813
2814cat >>confdefs.h <<_ACEOF
2815#define PACKAGE "$PACKAGE"
2816_ACEOF
2817
2818
2819cat >>confdefs.h <<_ACEOF
2820#define VERSION "$VERSION"
2821_ACEOF
2822
2823# Some tools Automake needs.
2824
2825ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2826
2827
2828AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2829
2830
2831AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2832
2833
2834AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2835
2836
2837MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2838
brynercb91a2f2006-08-25 21:14:45 +00002839# We need awk for the "check" target. The system "awk" is bad on
2840# some platforms.
2841# Always define AMTAR for backward compatibility.
2842
2843AMTAR=${AMTAR-"${am_missing_run}tar"}
2844
mmentovaidb3342a2006-12-05 22:52:28 +00002845
jimblandy92b1f832009-12-23 22:23:49 +00002846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2847$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002848# Loop over all known methods to create a tar archive until one works.
2849_am_tools='gnutar plaintar pax cpio none'
2850_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2851# Do not fold the above two line into one, because Tru64 sh and
2852# Solaris sh will not grok spaces in the rhs of `-'.
2853for _am_tool in $_am_tools
2854do
2855 case $_am_tool in
2856 gnutar)
2857 for _am_tar in tar gnutar gtar;
2858 do
2859 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2860 ($_am_tar --version) >&5 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && break
2864 done
2865 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2866 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2867 am__untar="$_am_tar -xf -"
2868 ;;
2869 plaintar)
2870 # Must skip GNU tar: if it does not support --format= it doesn't create
2871 # ustar tarball either.
2872 (tar --version) >/dev/null 2>&1 && continue
2873 am__tar='tar chf - "$$tardir"'
2874 am__tar_='tar chf - "$tardir"'
2875 am__untar='tar xf -'
2876 ;;
2877 pax)
2878 am__tar='pax -L -x ustar -w "$$tardir"'
2879 am__tar_='pax -L -x ustar -w "$tardir"'
2880 am__untar='pax -r'
2881 ;;
2882 cpio)
2883 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2884 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2885 am__untar='cpio -i -H ustar -d'
2886 ;;
2887 none)
2888 am__tar=false
2889 am__tar_=false
2890 am__untar=false
2891 ;;
2892 esac
2893
2894 # If the value was cached, stop now. We just wanted to have am__tar
2895 # and am__untar set.
2896 test -n "${am_cv_prog_tar_ustar}" && break
2897
2898 # tar/untar a dummy directory, and stop if the command works
2899 rm -rf conftest.dir
2900 mkdir conftest.dir
2901 echo GrepMe > conftest.dir/file
2902 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2903 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907 rm -rf conftest.dir
2908 if test -s conftest.tar; then
2909 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2910 ($am__untar <conftest.tar) >&5 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }
2914 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2915 fi
2916done
2917rm -rf conftest.dir
2918
jimblandy92b1f832009-12-23 22:23:49 +00002919if test "${am_cv_prog_tar_ustar+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002921else
2922 am_cv_prog_tar_ustar=$_am_tool
2923fi
2924
jimblandy92b1f832009-12-23 22:23:49 +00002925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2926$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002927
2928
2929
2930
2931
mmentovai8c2a4de2006-09-20 16:20:15 +00002932ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002933
2934
brynercb91a2f2006-08-25 21:14:45 +00002935ac_ext=c
2936ac_cpp='$CPP $CPPFLAGS'
2937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
2945if test "${ac_cv_prog_CC+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002947else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002956 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002960 break 2
2961 fi
2962done
jimblandy92b1f832009-12-23 22:23:49 +00002963 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002964IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002965
2966fi
2967fi
2968CC=$ac_cv_prog_CC
2969if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002972else
jimblandy92b1f832009-12-23 22:23:49 +00002973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002975fi
2976
mmentovai8c2a4de2006-09-20 16:20:15 +00002977
brynercb91a2f2006-08-25 21:14:45 +00002978fi
2979if test -z "$ac_cv_prog_CC"; then
2980 ac_ct_CC=$CC
2981 # Extract the first word of "gcc", so it can be a program name with args.
2982set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002987else
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002996 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002998 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003000 break 2
3001 fi
3002done
jimblandy92b1f832009-12-23 22:23:49 +00003003 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003004IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003005
3006fi
3007fi
3008ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003012else
jimblandy92b1f832009-12-23 22:23:49 +00003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003015fi
3016
mmentovai8c2a4de2006-09-20 16:20:15 +00003017 if test "x$ac_ct_CC" = x; then
3018 CC=""
3019 else
3020 case $cross_compiling:$ac_tool_warned in
3021yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003024ac_tool_warned=yes ;;
3025esac
3026 CC=$ac_ct_CC
3027 fi
brynercb91a2f2006-08-25 21:14:45 +00003028else
3029 CC="$ac_cv_prog_CC"
3030fi
3031
3032if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003035set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if test "${ac_cv_prog_CC+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003040else
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003049 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003051 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003053 break 2
3054 fi
3055done
jimblandy92b1f832009-12-23 22:23:49 +00003056 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003057IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003058
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003065else
jimblandy92b1f832009-12-23 22:23:49 +00003066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003068fi
3069
mmentovai8c2a4de2006-09-20 16:20:15 +00003070
brynercb91a2f2006-08-25 21:14:45 +00003071 fi
brynercb91a2f2006-08-25 21:14:45 +00003072fi
3073if test -z "$CC"; then
3074 # Extract the first word of "cc", so it can be a program name with args.
3075set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077$as_echo_n "checking for $ac_word... " >&6; }
3078if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003080else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083else
3084 ac_prog_rejected=no
3085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086for as_dir in $PATH
3087do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003090 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093 ac_prog_rejected=yes
3094 continue
3095 fi
3096 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003098 break 2
3099 fi
3100done
jimblandy92b1f832009-12-23 22:23:49 +00003101 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003102IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003103
3104if test $ac_prog_rejected = yes; then
3105 # We found a bogon in the path, so make sure we never use it.
3106 set dummy $ac_cv_prog_CC
3107 shift
3108 if test $# != 0; then
3109 # We chose a different compiler from the bogus one.
3110 # However, it has the same basename, so the bogon will be chosen
3111 # first if we set CC to just the basename; use the full file name.
3112 shift
3113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114 fi
3115fi
3116fi
3117fi
3118CC=$ac_cv_prog_CC
3119if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003122else
jimblandy92b1f832009-12-23 22:23:49 +00003123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003125fi
3126
mmentovai8c2a4de2006-09-20 16:20:15 +00003127
brynercb91a2f2006-08-25 21:14:45 +00003128fi
3129if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003131 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003132 do
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if test "${ac_cv_prog_CC+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003139else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003148 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003152 break 2
3153 fi
3154done
jimblandy92b1f832009-12-23 22:23:49 +00003155 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003156IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003157
3158fi
3159fi
3160CC=$ac_cv_prog_CC
3161if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003164else
jimblandy92b1f832009-12-23 22:23:49 +00003165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003167fi
3168
mmentovai8c2a4de2006-09-20 16:20:15 +00003169
brynercb91a2f2006-08-25 21:14:45 +00003170 test -n "$CC" && break
3171 done
3172fi
3173if test -z "$CC"; then
3174 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003175 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003176do
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003183else
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003192 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003194 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003196 break 2
3197 fi
3198done
jimblandy92b1f832009-12-23 22:23:49 +00003199 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003200IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003201
3202fi
3203fi
3204ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003208else
jimblandy92b1f832009-12-23 22:23:49 +00003209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003211fi
3212
mmentovai8c2a4de2006-09-20 16:20:15 +00003213
brynercb91a2f2006-08-25 21:14:45 +00003214 test -n "$ac_ct_CC" && break
3215done
3216
mmentovai8c2a4de2006-09-20 16:20:15 +00003217 if test "x$ac_ct_CC" = x; then
3218 CC=""
3219 else
3220 case $cross_compiling:$ac_tool_warned in
3221yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003224ac_tool_warned=yes ;;
3225esac
3226 CC=$ac_ct_CC
3227 fi
brynercb91a2f2006-08-25 21:14:45 +00003228fi
3229
3230fi
3231
3232
jimblandy92b1f832009-12-23 22:23:49 +00003233test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235as_fn_error "no acceptable C compiler found in \$PATH
3236See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003237
3238# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003239$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3240set X $ac_compile
3241ac_compiler=$2
3242for ac_option in --version -v -V -qversion; do
3243 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003244case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
jimblandy92b1f832009-12-23 22:23:49 +00003248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249$as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003251 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003252 if test -s conftest.err; then
3253 sed '10a\
3254... rest of stderr output deleted ...
3255 10q' conftest.err >conftest.er1
3256 cat conftest.er1 >&5
3257 rm -f conftest.er1 conftest.err
3258 fi
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }
3261done
brynercb91a2f2006-08-25 21:14:45 +00003262
jimblandy92b1f832009-12-23 22:23:49 +00003263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003264/* end confdefs.h. */
jimblandy92b1f832009-12-23 22:23:49 +00003265#include <stdio.h>
brynercb91a2f2006-08-25 21:14:45 +00003266int
3267main ()
3268{
jimblandy92b1f832009-12-23 22:23:49 +00003269FILE *f = fopen ("conftest.out", "w");
3270 return ferror (f) || fclose (f) != 0;
brynercb91a2f2006-08-25 21:14:45 +00003271
3272 ;
3273 return 0;
3274}
3275_ACEOF
3276ac_clean_files_save=$ac_clean_files
jimblandy92b1f832009-12-23 22:23:49 +00003277ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
brynercb91a2f2006-08-25 21:14:45 +00003278# Try to create an executable without -o first, disregard a.out.
3279# It will help us diagnose broken compilers, and finding out an intuition
3280# of exeext.
jimblandy92b1f832009-12-23 22:23:49 +00003281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3282$as_echo_n "checking for C compiler default output file name... " >&6; }
3283ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3284
3285# The possible output files:
3286ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3287
mmentovai8c2a4de2006-09-20 16:20:15 +00003288ac_rmfiles=
3289for ac_file in $ac_files
3290do
3291 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003293 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3294 esac
3295done
3296rm -f $ac_rmfiles
3297
jimblandy92b1f832009-12-23 22:23:49 +00003298if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003299case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302esac
jimblandy92b1f832009-12-23 22:23:49 +00003303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003305 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003306 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3308 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003309 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3310# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3311# in a Makefile. We should not override ac_cv_exeext if it was cached,
3312# so that the user can short-circuit this test for compilers unknown to
3313# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003314for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003315do
3316 test -f "$ac_file" || continue
3317 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003319 ;;
3320 [ab].out )
3321 # We found the default executable, but exeext='' is most
3322 # certainly right.
3323 break;;
3324 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003325 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003326 then :; else
3327 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3328 fi
3329 # We set ac_cv_exeext here because the later test for it is not
3330 # safe: cross compilers may not add the suffix if given an `-o'
3331 # argument, so we may need to know it at that point already.
3332 # Even if this section looks crufty: it has the advantage of
3333 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003334 break;;
3335 * )
3336 break;;
3337 esac
3338done
mmentovai8c2a4de2006-09-20 16:20:15 +00003339test "$ac_cv_exeext" = no && ac_cv_exeext=
3340
brynercb91a2f2006-08-25 21:14:45 +00003341else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003342 ac_file=''
3343fi
jimblandy92b1f832009-12-23 22:23:49 +00003344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3345$as_echo "$ac_file" >&6; }
3346if test -z "$ac_file"; then :
3347 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003348sed 's/^/| /' conftest.$ac_ext >&5
3349
jimblandy92b1f832009-12-23 22:23:49 +00003350{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352{ as_fn_set_status 77
3353as_fn_error "C compiler cannot create executables
3354See \`config.log' for more details." "$LINENO" 5; }; }
brynercb91a2f2006-08-25 21:14:45 +00003355fi
brynercb91a2f2006-08-25 21:14:45 +00003356ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003357
mmentovai8c2a4de2006-09-20 16:20:15 +00003358# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00003359# the compiler is broken, or we cross compile.
jimblandy92b1f832009-12-23 22:23:49 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3361$as_echo_n "checking whether the C compiler works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003362# If not cross compiling, check that we can run a simple program.
3363if test "$cross_compiling" != yes; then
3364 if { ac_try='./$ac_file'
jimblandy92b1f832009-12-23 22:23:49 +00003365 { { case "(($ac_try" in
mmentovai8c2a4de2006-09-20 16:20:15 +00003366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
jimblandy92b1f832009-12-23 22:23:49 +00003369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003371 (eval "$ac_try") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003372 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; }; then
brynercb91a2f2006-08-25 21:14:45 +00003375 cross_compiling=no
3376 else
3377 if test "$cross_compiling" = maybe; then
3378 cross_compiling=yes
3379 else
jimblandy92b1f832009-12-23 22:23:49 +00003380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382as_fn_error "cannot run C compiled programs.
brynercb91a2f2006-08-25 21:14:45 +00003383If you meant to cross compile, use \`--host'.
jimblandy92b1f832009-12-23 22:23:49 +00003384See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003385 fi
3386 fi
3387fi
jimblandy92b1f832009-12-23 22:23:49 +00003388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3389$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003390
jimblandy92b1f832009-12-23 22:23:49 +00003391rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
brynercb91a2f2006-08-25 21:14:45 +00003392ac_clean_files=$ac_clean_files_save
mmentovai8c2a4de2006-09-20 16:20:15 +00003393# Check that the compiler produces executables we can run. If not, either
brynercb91a2f2006-08-25 21:14:45 +00003394# the compiler is broken, or we cross compile.
jimblandy92b1f832009-12-23 22:23:49 +00003395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3396$as_echo_n "checking whether we are cross compiling... " >&6; }
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3398$as_echo "$cross_compiling" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003399
jimblandy92b1f832009-12-23 22:23:49 +00003400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3401$as_echo_n "checking for suffix of executables... " >&6; }
3402if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
jimblandy92b1f832009-12-23 22:23:49 +00003407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003409 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003410 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003413 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3415# work properly (i.e., refer to `conftest.exe'), while it won't with
3416# `rm'.
3417for ac_file in conftest.exe conftest conftest.*; do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003422 break;;
3423 * ) break;;
3424 esac
3425done
3426else
jimblandy92b1f832009-12-23 22:23:49 +00003427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429as_fn_error "cannot compute suffix of executables: cannot compile and link
3430See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003431fi
brynercb91a2f2006-08-25 21:14:45 +00003432rm -f conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3434$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003435
3436rm -f conftest.$ac_ext
3437EXEEXT=$ac_cv_exeext
3438ac_exeext=$EXEEXT
jimblandy92b1f832009-12-23 22:23:49 +00003439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440$as_echo_n "checking for suffix of object files... " >&6; }
3441if test "${ac_cv_objext+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003443else
jimblandy92b1f832009-12-23 22:23:49 +00003444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003445/* end confdefs.h. */
3446
3447int
3448main ()
3449{
3450
3451 ;
3452 return 0;
3453}
3454_ACEOF
3455rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003456if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003457case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460esac
jimblandy92b1f832009-12-23 22:23:49 +00003461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003463 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003464 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003467 for ac_file in conftest.o conftest.obj conftest.*; do
3468 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003469 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003471 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472 break;;
3473 esac
3474done
3475else
jimblandy92b1f832009-12-23 22:23:49 +00003476 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003477sed 's/^/| /' conftest.$ac_ext >&5
3478
jimblandy92b1f832009-12-23 22:23:49 +00003479{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error "cannot compute suffix of object files: cannot compile
3482See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003483fi
brynercb91a2f2006-08-25 21:14:45 +00003484rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485fi
jimblandy92b1f832009-12-23 22:23:49 +00003486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003488OBJEXT=$ac_cv_objext
3489ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3493 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003494else
jimblandy92b1f832009-12-23 22:23:49 +00003495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003496/* end confdefs.h. */
3497
3498int
3499main ()
3500{
3501#ifndef __GNUC__
3502 choke me
3503#endif
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003509if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003510 ac_compiler_gnu=yes
3511else
jimblandy92b1f832009-12-23 22:23:49 +00003512 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003513fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003515ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
3517fi
jimblandy92b1f832009-12-23 22:23:49 +00003518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520if test $ac_compiler_gnu = yes; then
3521 GCC=yes
3522else
3523 GCC=
3524fi
brynercb91a2f2006-08-25 21:14:45 +00003525ac_test_CFLAGS=${CFLAGS+set}
3526ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528$as_echo_n "checking whether $CC accepts -g... " >&6; }
3529if test "${ac_cv_prog_cc_g+set}" = set; then :
3530 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003531else
mmentovai8c2a4de2006-09-20 16:20:15 +00003532 ac_save_c_werror_flag=$ac_c_werror_flag
3533 ac_c_werror_flag=yes
3534 ac_cv_prog_cc_g=no
3535 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003547if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003548 ac_cv_prog_cc_g=yes
3549else
jimblandy92b1f832009-12-23 22:23:49 +00003550 CFLAGS=""
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003552/* end confdefs.h. */
3553
3554int
3555main ()
3556{
3557
3558 ;
3559 return 0;
3560}
3561_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003562if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003563
jimblandy92b1f832009-12-23 22:23:49 +00003564else
3565 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003566 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003578if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003579 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003580fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003582fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_c_werror_flag=$ac_save_c_werror_flag
3587fi
jimblandy92b1f832009-12-23 22:23:49 +00003588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003590if test "$ac_test_CFLAGS" = set; then
3591 CFLAGS=$ac_save_CFLAGS
3592elif test $ac_cv_prog_cc_g = yes; then
3593 if test "$GCC" = yes; then
3594 CFLAGS="-g -O2"
3595 else
3596 CFLAGS="-g"
3597 fi
3598else
3599 if test "$GCC" = yes; then
3600 CFLAGS="-O2"
3601 else
3602 CFLAGS=
3603 fi
3604fi
jimblandy92b1f832009-12-23 22:23:49 +00003605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607if test "${ac_cv_prog_cc_c89+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003609else
mmentovai8c2a4de2006-09-20 16:20:15 +00003610 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003611ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003613/* end confdefs.h. */
3614#include <stdarg.h>
3615#include <stdio.h>
3616#include <sys/types.h>
3617#include <sys/stat.h>
3618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3619struct buf { int x; };
3620FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621static char *e (p, i)
3622 char **p;
3623 int i;
3624{
3625 return p[i];
3626}
3627static char *f (char * (*g) (char **, int), char **p, ...)
3628{
3629 char *s;
3630 va_list v;
3631 va_start (v,p);
3632 s = g (p, va_arg (v,int));
3633 va_end (v);
3634 return s;
3635}
3636
3637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3638 function prototypes and stuff, but not '\xHH' hex character constants.
3639 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003640 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3642 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003643 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645
mmentovai8c2a4de2006-09-20 16:20:15 +00003646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647 inside strings and character constants. */
3648#define FOO(x) 'x'
3649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650
brynercb91a2f2006-08-25 21:14:45 +00003651int test (int i, double x);
3652struct s1 {int (*f) (int a);};
3653struct s2 {int (*f) (double a);};
3654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655int argc;
3656char **argv;
3657int
3658main ()
3659{
3660return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3661 ;
3662 return 0;
3663}
3664_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003667do
3668 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003669 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003670 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003671fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003672rm -f core conftest.err conftest.$ac_objext
3673 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003674done
mmentovai8c2a4de2006-09-20 16:20:15 +00003675rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003676CC=$ac_save_CC
3677
3678fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003679# AC_CACHE_VAL
3680case "x$ac_cv_prog_cc_c89" in
3681 x)
jimblandy92b1f832009-12-23 22:23:49 +00003682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3683$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003684 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003687 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003688 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003691esac
jimblandy92b1f832009-12-23 22:23:49 +00003692if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003693
jimblandy92b1f832009-12-23 22:23:49 +00003694fi
brynercb91a2f2006-08-25 21:14:45 +00003695
brynercb91a2f2006-08-25 21:14:45 +00003696ac_ext=c
3697ac_cpp='$CPP $CPPFLAGS'
3698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701DEPDIR="${am__leading_dot}deps"
3702
mmentovai8c2a4de2006-09-20 16:20:15 +00003703ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003704
3705
3706am_make=${MAKE-make}
3707cat > confinc << 'END'
3708am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003709 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003710.PHONY: am__doit
3711END
3712# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3714$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003715am__include="#"
3716am__quote=
3717_am_result=none
3718# First try GNU make style include.
3719echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003720# Ignore all kinds of additional output from `make'.
3721case `$am_make -s -f confmf 2> /dev/null` in #(
3722*the\ am__doit\ target*)
3723 am__include=include
3724 am__quote=
3725 _am_result=GNU
3726 ;;
3727esac
brynercb91a2f2006-08-25 21:14:45 +00003728# Now try BSD make style include.
3729if test "$am__include" = "#"; then
3730 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003731 case `$am_make -s -f confmf 2> /dev/null` in #(
3732 *the\ am__doit\ target*)
3733 am__include=.include
3734 am__quote="\""
3735 _am_result=BSD
3736 ;;
3737 esac
brynercb91a2f2006-08-25 21:14:45 +00003738fi
3739
3740
jimblandy92b1f832009-12-23 22:23:49 +00003741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3742$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003743rm -f confinc confmf
3744
mmentovai8c2a4de2006-09-20 16:20:15 +00003745# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003746if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003747 enableval=$enable_dependency_tracking;
3748fi
brynercb91a2f2006-08-25 21:14:45 +00003749
brynercb91a2f2006-08-25 21:14:45 +00003750if test "x$enable_dependency_tracking" != xno; then
3751 am_depcomp="$ac_aux_dir/depcomp"
3752 AMDEPBACKSLASH='\'
3753fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003754 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003755 AMDEP_TRUE=
3756 AMDEP_FALSE='#'
3757else
3758 AMDEP_TRUE='#'
3759 AMDEP_FALSE=
3760fi
3761
3762
3763
brynercb91a2f2006-08-25 21:14:45 +00003764depcc="$CC" am_compiler_list=
3765
jimblandy92b1f832009-12-23 22:23:49 +00003766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3767$as_echo_n "checking dependency style of $depcc... " >&6; }
3768if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003770else
3771 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3772 # We make a subdir and do the tests there. Otherwise we can end up
3773 # making bogus files that we don't know about and never remove. For
3774 # instance it was reported that on HP-UX the gcc test will end up
3775 # making a dummy file named `D' -- because `-MD' means `put the output
3776 # in D'.
3777 mkdir conftest.dir
3778 # Copy depcomp to subdir because otherwise we won't find it if we're
3779 # using a relative directory.
3780 cp "$am_depcomp" conftest.dir
3781 cd conftest.dir
3782 # We will build objects and dependencies in a subdirectory because
3783 # it helps to detect inapplicable dependency modes. For instance
3784 # both Tru64's cc and ICC support -MD to output dependencies as a
3785 # side effect of compilation, but ICC will put the dependencies in
3786 # the current directory while Tru64 will put them in the object
3787 # directory.
3788 mkdir sub
3789
3790 am_cv_CC_dependencies_compiler_type=none
3791 if test "$am_compiler_list" = ""; then
3792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3793 fi
jimblandy92b1f832009-12-23 22:23:49 +00003794 am__universal=false
3795 case " $depcc " in #(
3796 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3797 esac
3798
brynercb91a2f2006-08-25 21:14:45 +00003799 for depmode in $am_compiler_list; do
3800 # Setup a source with many dependencies, because some compilers
3801 # like to wrap large dependency lists on column 80 (with \), and
3802 # we should not choose a depcomp mode which is confused by this.
3803 #
3804 # We need to recreate these files for each test, as the compiler may
3805 # overwrite some of them when testing with obscure command lines.
3806 # This happens at least with the AIX C compiler.
3807 : > sub/conftest.c
3808 for i in 1 2 3 4 5 6; do
3809 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3811 # Solaris 8's {/usr,}/bin/sh.
3812 touch sub/conftst$i.h
3813 done
3814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3815
jimblandy92b1f832009-12-23 22:23:49 +00003816 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3817 # mode. It turns out that the SunPro C++ compiler does not properly
3818 # handle `-M -o', and we need to detect this. Also, some Intel
3819 # versions had trouble with output in subdirs
3820 am__obj=sub/conftest.${OBJEXT-o}
3821 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003822 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003823 gcc)
3824 # This depmode causes a compiler race in universal mode.
3825 test "$am__universal" = false || continue
3826 ;;
brynercb91a2f2006-08-25 21:14:45 +00003827 nosideeffect)
3828 # after this tag, mechanisms are not by side-effect, so they'll
3829 # only be used when explicitly requested
3830 if test "x$enable_dependency_tracking" = xyes; then
3831 continue
3832 else
3833 break
3834 fi
3835 ;;
jimblandy92b1f832009-12-23 22:23:49 +00003836 msvisualcpp | msvcmsys)
3837 # This compiler won't grok `-c -o', but also, the minuso test has
3838 # not run yet. These depmodes are late enough in the game, and
3839 # so weak that their functioning should not be impacted.
3840 am__obj=conftest.${OBJEXT-o}
3841 am__minus_obj=
3842 ;;
brynercb91a2f2006-08-25 21:14:45 +00003843 none) break ;;
3844 esac
brynercb91a2f2006-08-25 21:14:45 +00003845 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00003846 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00003847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00003848 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00003849 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003850 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00003852 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3854 # icc doesn't choke on unknown options, it will just issue warnings
3855 # or remarks (even with -Werror). So we grep stderr for any message
3856 # that says an option was ignored or not supported.
3857 # When given -MP, icc 7.0 and 7.1 complain thusly:
3858 # icc: Command line warning: ignoring option '-M'; no argument required
3859 # The diagnosis changed in icc 8.0:
3860 # icc: Command line remark: option '-MP' not supported
3861 if (grep 'ignoring option' conftest.err ||
3862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3863 am_cv_CC_dependencies_compiler_type=$depmode
3864 break
3865 fi
3866 fi
3867 done
3868
3869 cd ..
3870 rm -rf conftest.dir
3871else
3872 am_cv_CC_dependencies_compiler_type=none
3873fi
3874
3875fi
jimblandy92b1f832009-12-23 22:23:49 +00003876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3877$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003878CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3879
mmentovaiaf3c43f2007-05-17 18:34:37 +00003880 if
brynercb91a2f2006-08-25 21:14:45 +00003881 test "x$enable_dependency_tracking" != xno \
3882 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3883 am__fastdepCC_TRUE=
3884 am__fastdepCC_FALSE='#'
3885else
3886 am__fastdepCC_TRUE='#'
3887 am__fastdepCC_FALSE=
3888fi
3889
3890
3891ac_ext=c
3892ac_cpp='$CPP $CPPFLAGS'
3893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00003896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3897$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003898# On Suns, sometimes $CPP names a directory.
3899if test -n "$CPP" && test -d "$CPP"; then
3900 CPP=
3901fi
3902if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00003903 if test "${ac_cv_prog_CPP+set}" = set; then :
3904 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003905else
3906 # Double quotes because CPP needs to be expanded
3907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3908 do
3909 ac_preproc_ok=false
3910for ac_c_preproc_warn_flag in '' yes
3911do
3912 # Use a header file that comes with gcc, so configuring glibc
3913 # with a fresh cross-compiler works.
3914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3915 # <limits.h> exists even on freestanding compilers.
3916 # On the NeXT, cc -E runs the code through the compiler's parser,
3917 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00003918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003919/* end confdefs.h. */
3920#ifdef __STDC__
3921# include <limits.h>
3922#else
3923# include <assert.h>
3924#endif
3925 Syntax error
3926_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003927if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003928
jimblandy92b1f832009-12-23 22:23:49 +00003929else
brynercb91a2f2006-08-25 21:14:45 +00003930 # Broken: fails on valid input.
3931continue
3932fi
3933rm -f conftest.err conftest.$ac_ext
3934
mmentovai8c2a4de2006-09-20 16:20:15 +00003935 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003936 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003938/* end confdefs.h. */
3939#include <ac_nonexistent.h>
3940_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003941if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003942 # Broken: success on invalid input.
3943continue
3944else
brynercb91a2f2006-08-25 21:14:45 +00003945 # Passes both tests.
3946ac_preproc_ok=:
3947break
3948fi
3949rm -f conftest.err conftest.$ac_ext
3950
3951done
3952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3953rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00003954if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00003955 break
3956fi
3957
3958 done
3959 ac_cv_prog_CPP=$CPP
3960
3961fi
3962 CPP=$ac_cv_prog_CPP
3963else
3964 ac_cv_prog_CPP=$CPP
3965fi
jimblandy92b1f832009-12-23 22:23:49 +00003966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3967$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003968ac_preproc_ok=false
3969for ac_c_preproc_warn_flag in '' yes
3970do
3971 # Use a header file that comes with gcc, so configuring glibc
3972 # with a fresh cross-compiler works.
3973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974 # <limits.h> exists even on freestanding compilers.
3975 # On the NeXT, cc -E runs the code through the compiler's parser,
3976 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00003977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003978/* end confdefs.h. */
3979#ifdef __STDC__
3980# include <limits.h>
3981#else
3982# include <assert.h>
3983#endif
3984 Syntax error
3985_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003986if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003987
jimblandy92b1f832009-12-23 22:23:49 +00003988else
brynercb91a2f2006-08-25 21:14:45 +00003989 # Broken: fails on valid input.
3990continue
3991fi
3992rm -f conftest.err conftest.$ac_ext
3993
mmentovai8c2a4de2006-09-20 16:20:15 +00003994 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003995 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003997/* end confdefs.h. */
3998#include <ac_nonexistent.h>
3999_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004000if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004001 # Broken: success on invalid input.
4002continue
4003else
brynercb91a2f2006-08-25 21:14:45 +00004004 # Passes both tests.
4005ac_preproc_ok=:
4006break
4007fi
4008rm -f conftest.err conftest.$ac_ext
4009
4010done
4011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004013if $ac_preproc_ok; then :
4014
brynercb91a2f2006-08-25 21:14:45 +00004015else
jimblandy92b1f832009-12-23 22:23:49 +00004016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018as_fn_error "C preprocessor \"$CPP\" fails sanity check
4019See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004020fi
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
mmentovai8c2a4de2006-09-20 16:20:15 +00004028ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004029ac_cpp='$CXXCPP $CPPFLAGS'
4030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004033if test -z "$CXX"; then
4034 if test -n "$CCC"; then
4035 CXX=$CCC
4036 else
4037 if test -n "$ac_tool_prefix"; then
4038 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004039 do
4040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043$as_echo_n "checking for $ac_word... " >&6; }
4044if test "${ac_cv_prog_CXX+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004046else
4047 if test -n "$CXX"; then
4048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4049else
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004055 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004059 break 2
4060 fi
4061done
jimblandy92b1f832009-12-23 22:23:49 +00004062 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004063IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004064
4065fi
4066fi
4067CXX=$ac_cv_prog_CXX
4068if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4070$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004071else
jimblandy92b1f832009-12-23 22:23:49 +00004072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004074fi
4075
mmentovai8c2a4de2006-09-20 16:20:15 +00004076
brynercb91a2f2006-08-25 21:14:45 +00004077 test -n "$CXX" && break
4078 done
4079fi
4080if test -z "$CXX"; then
4081 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004083do
4084 # Extract the first word of "$ac_prog", so it can be a program name with args.
4085set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004090else
4091 if test -n "$ac_ct_CXX"; then
4092 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4093else
4094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004099 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004101 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004103 break 2
4104 fi
4105done
jimblandy92b1f832009-12-23 22:23:49 +00004106 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004107IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004108
4109fi
4110fi
4111ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4112if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4114$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004115else
jimblandy92b1f832009-12-23 22:23:49 +00004116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004118fi
4119
mmentovai8c2a4de2006-09-20 16:20:15 +00004120
brynercb91a2f2006-08-25 21:14:45 +00004121 test -n "$ac_ct_CXX" && break
4122done
brynercb91a2f2006-08-25 21:14:45 +00004123
mmentovai8c2a4de2006-09-20 16:20:15 +00004124 if test "x$ac_ct_CXX" = x; then
4125 CXX="g++"
4126 else
4127 case $cross_compiling:$ac_tool_warned in
4128yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004131ac_tool_warned=yes ;;
4132esac
4133 CXX=$ac_ct_CXX
4134 fi
brynercb91a2f2006-08-25 21:14:45 +00004135fi
4136
mmentovai8c2a4de2006-09-20 16:20:15 +00004137 fi
4138fi
brynercb91a2f2006-08-25 21:14:45 +00004139# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4141set X $ac_compile
4142ac_compiler=$2
4143for ac_option in --version -v -V -qversion; do
4144 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
jimblandy92b1f832009-12-23 22:23:49 +00004149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150$as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004152 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004153 if test -s conftest.err; then
4154 sed '10a\
4155... rest of stderr output deleted ...
4156 10q' conftest.err >conftest.er1
4157 cat conftest.er1 >&5
4158 rm -f conftest.er1 conftest.err
4159 fi
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162done
brynercb91a2f2006-08-25 21:14:45 +00004163
jimblandy92b1f832009-12-23 22:23:49 +00004164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4165$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4166if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004168else
jimblandy92b1f832009-12-23 22:23:49 +00004169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004170/* end confdefs.h. */
4171
4172int
4173main ()
4174{
4175#ifndef __GNUC__
4176 choke me
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004183if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004184 ac_compiler_gnu=yes
4185else
jimblandy92b1f832009-12-23 22:23:49 +00004186 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004187fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004189ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4190
4191fi
jimblandy92b1f832009-12-23 22:23:49 +00004192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4193$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4194if test $ac_compiler_gnu = yes; then
4195 GXX=yes
4196else
4197 GXX=
4198fi
brynercb91a2f2006-08-25 21:14:45 +00004199ac_test_CXXFLAGS=${CXXFLAGS+set}
4200ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4202$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4203if test "${ac_cv_prog_cxx_g+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004205else
mmentovai8c2a4de2006-09-20 16:20:15 +00004206 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4207 ac_cxx_werror_flag=yes
4208 ac_cv_prog_cxx_g=no
4209 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004211/* end confdefs.h. */
4212
4213int
4214main ()
4215{
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004221if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004222 ac_cv_prog_cxx_g=yes
4223else
jimblandy92b1f832009-12-23 22:23:49 +00004224 CXXFLAGS=""
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004226/* end confdefs.h. */
4227
4228int
4229main ()
4230{
4231
4232 ;
4233 return 0;
4234}
4235_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004236if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004237
jimblandy92b1f832009-12-23 22:23:49 +00004238else
4239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004240 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004242/* end confdefs.h. */
4243
4244int
4245main ()
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004252if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004253 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004254fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004256fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4261fi
jimblandy92b1f832009-12-23 22:23:49 +00004262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4263$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004264if test "$ac_test_CXXFLAGS" = set; then
4265 CXXFLAGS=$ac_save_CXXFLAGS
4266elif test $ac_cv_prog_cxx_g = yes; then
4267 if test "$GXX" = yes; then
4268 CXXFLAGS="-g -O2"
4269 else
4270 CXXFLAGS="-g"
4271 fi
4272else
4273 if test "$GXX" = yes; then
4274 CXXFLAGS="-O2"
4275 else
4276 CXXFLAGS=
4277 fi
4278fi
brynercb91a2f2006-08-25 21:14:45 +00004279ac_ext=c
4280ac_cpp='$CPP $CPPFLAGS'
4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284
4285depcc="$CXX" am_compiler_list=
4286
jimblandy92b1f832009-12-23 22:23:49 +00004287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4288$as_echo_n "checking dependency style of $depcc... " >&6; }
4289if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004291else
4292 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4293 # We make a subdir and do the tests there. Otherwise we can end up
4294 # making bogus files that we don't know about and never remove. For
4295 # instance it was reported that on HP-UX the gcc test will end up
4296 # making a dummy file named `D' -- because `-MD' means `put the output
4297 # in D'.
4298 mkdir conftest.dir
4299 # Copy depcomp to subdir because otherwise we won't find it if we're
4300 # using a relative directory.
4301 cp "$am_depcomp" conftest.dir
4302 cd conftest.dir
4303 # We will build objects and dependencies in a subdirectory because
4304 # it helps to detect inapplicable dependency modes. For instance
4305 # both Tru64's cc and ICC support -MD to output dependencies as a
4306 # side effect of compilation, but ICC will put the dependencies in
4307 # the current directory while Tru64 will put them in the object
4308 # directory.
4309 mkdir sub
4310
4311 am_cv_CXX_dependencies_compiler_type=none
4312 if test "$am_compiler_list" = ""; then
4313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4314 fi
jimblandy92b1f832009-12-23 22:23:49 +00004315 am__universal=false
4316 case " $depcc " in #(
4317 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4318 esac
4319
brynercb91a2f2006-08-25 21:14:45 +00004320 for depmode in $am_compiler_list; do
4321 # Setup a source with many dependencies, because some compilers
4322 # like to wrap large dependency lists on column 80 (with \), and
4323 # we should not choose a depcomp mode which is confused by this.
4324 #
4325 # We need to recreate these files for each test, as the compiler may
4326 # overwrite some of them when testing with obscure command lines.
4327 # This happens at least with the AIX C compiler.
4328 : > sub/conftest.c
4329 for i in 1 2 3 4 5 6; do
4330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4331 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4332 # Solaris 8's {/usr,}/bin/sh.
4333 touch sub/conftst$i.h
4334 done
4335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4336
jimblandy92b1f832009-12-23 22:23:49 +00004337 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4338 # mode. It turns out that the SunPro C++ compiler does not properly
4339 # handle `-M -o', and we need to detect this. Also, some Intel
4340 # versions had trouble with output in subdirs
4341 am__obj=sub/conftest.${OBJEXT-o}
4342 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004343 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004344 gcc)
4345 # This depmode causes a compiler race in universal mode.
4346 test "$am__universal" = false || continue
4347 ;;
brynercb91a2f2006-08-25 21:14:45 +00004348 nosideeffect)
4349 # after this tag, mechanisms are not by side-effect, so they'll
4350 # only be used when explicitly requested
4351 if test "x$enable_dependency_tracking" = xyes; then
4352 continue
4353 else
4354 break
4355 fi
4356 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004357 msvisualcpp | msvcmsys)
4358 # This compiler won't grok `-c -o', but also, the minuso test has
4359 # not run yet. These depmodes are late enough in the game, and
4360 # so weak that their functioning should not be impacted.
4361 am__obj=conftest.${OBJEXT-o}
4362 am__minus_obj=
4363 ;;
brynercb91a2f2006-08-25 21:14:45 +00004364 none) break ;;
4365 esac
brynercb91a2f2006-08-25 21:14:45 +00004366 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004367 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004370 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4375 # icc doesn't choke on unknown options, it will just issue warnings
4376 # or remarks (even with -Werror). So we grep stderr for any message
4377 # that says an option was ignored or not supported.
4378 # When given -MP, icc 7.0 and 7.1 complain thusly:
4379 # icc: Command line warning: ignoring option '-M'; no argument required
4380 # The diagnosis changed in icc 8.0:
4381 # icc: Command line remark: option '-MP' not supported
4382 if (grep 'ignoring option' conftest.err ||
4383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4384 am_cv_CXX_dependencies_compiler_type=$depmode
4385 break
4386 fi
4387 fi
4388 done
4389
4390 cd ..
4391 rm -rf conftest.dir
4392else
4393 am_cv_CXX_dependencies_compiler_type=none
4394fi
4395
4396fi
jimblandy92b1f832009-12-23 22:23:49 +00004397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4398$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004399CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4400
mmentovaiaf3c43f2007-05-17 18:34:37 +00004401 if
brynercb91a2f2006-08-25 21:14:45 +00004402 test "x$enable_dependency_tracking" != xno \
4403 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4404 am__fastdepCXX_TRUE=
4405 am__fastdepCXX_FALSE='#'
4406else
4407 am__fastdepCXX_TRUE='#'
4408 am__fastdepCXX_FALSE=
4409fi
4410
4411
4412
jimblandy92b1f832009-12-23 22:23:49 +00004413case `pwd` in
4414 *\ * | *\ *)
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4416$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4417esac
brynercb91a2f2006-08-25 21:14:45 +00004418
mmentovai8c2a4de2006-09-20 16:20:15 +00004419
jimblandy92b1f832009-12-23 22:23:49 +00004420
4421macro_version='2.2.6'
4422macro_revision='1.3012'
brynercb91a2f2006-08-25 21:14:45 +00004423
mmentovai8c2a4de2006-09-20 16:20:15 +00004424
mmentovai8c2a4de2006-09-20 16:20:15 +00004425
brynercb91a2f2006-08-25 21:14:45 +00004426
jimblandy92b1f832009-12-23 22:23:49 +00004427
4428
4429
4430
4431
4432
4433
4434
4435
4436ltmain="$ac_aux_dir/ltmain.sh"
4437
brynercb91a2f2006-08-25 21:14:45 +00004438# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004439$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
jimblandy92b1f832009-12-23 22:23:49 +00004440 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004441
jimblandy92b1f832009-12-23 22:23:49 +00004442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4443$as_echo_n "checking build system type... " >&6; }
4444if test "${ac_cv_build+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004446else
mmentovai8c2a4de2006-09-20 16:20:15 +00004447 ac_build_alias=$build_alias
4448test "x$ac_build_alias" = x &&
4449 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4450test "x$ac_build_alias" = x &&
jimblandy92b1f832009-12-23 22:23:49 +00004451 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004452ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004453 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004454
4455fi
jimblandy92b1f832009-12-23 22:23:49 +00004456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4457$as_echo "$ac_cv_build" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004458case $ac_cv_build in
4459*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004460*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004461esac
brynercb91a2f2006-08-25 21:14:45 +00004462build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004463ac_save_IFS=$IFS; IFS='-'
4464set x $ac_cv_build
4465shift
4466build_cpu=$1
4467build_vendor=$2
4468shift; shift
4469# Remember, the first character of IFS is used to create $*,
4470# except with old shells:
4471build_os=$*
4472IFS=$ac_save_IFS
4473case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004474
4475
jimblandy92b1f832009-12-23 22:23:49 +00004476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4477$as_echo_n "checking host system type... " >&6; }
4478if test "${ac_cv_host+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004480else
mmentovai8c2a4de2006-09-20 16:20:15 +00004481 if test "x$host_alias" = x; then
4482 ac_cv_host=$ac_cv_build
4483else
4484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004485 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004486fi
brynercb91a2f2006-08-25 21:14:45 +00004487
4488fi
jimblandy92b1f832009-12-23 22:23:49 +00004489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4490$as_echo "$ac_cv_host" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004491case $ac_cv_host in
4492*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004493*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004494esac
brynercb91a2f2006-08-25 21:14:45 +00004495host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004496ac_save_IFS=$IFS; IFS='-'
4497set x $ac_cv_host
4498shift
4499host_cpu=$1
4500host_vendor=$2
4501shift; shift
4502# Remember, the first character of IFS is used to create $*,
4503# except with old shells:
4504host_os=$*
4505IFS=$ac_save_IFS
4506case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004507
4508
jimblandy92b1f832009-12-23 22:23:49 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4510$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4511if test "${ac_cv_path_SED+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004513else
jimblandy92b1f832009-12-23 22:23:49 +00004514 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4515 for ac_i in 1 2 3 4 5 6 7; do
4516 ac_script="$ac_script$as_nl$ac_script"
4517 done
4518 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4519 { ac_script=; unset ac_script;}
4520 if test -z "$SED"; then
4521 ac_path_SED_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004528 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004529 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004530 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4532# Check for GNU ac_path_SED and select it if it is found.
4533 # Check for GNU $ac_path_SED
4534case `"$ac_path_SED" --version 2>&1` in
4535*GNU*)
4536 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4537*)
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo '' >> "conftest.nl"
4546 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_SED_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_SED="$ac_path_SED"
4552 ac_path_SED_max=$ac_count
4553 fi
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004561 done
4562 done
brynercb91a2f2006-08-25 21:14:45 +00004563 done
jimblandy92b1f832009-12-23 22:23:49 +00004564IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_SED"; then
4566 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4567 fi
4568else
4569 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004570fi
4571
jimblandy92b1f832009-12-23 22:23:49 +00004572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4574$as_echo "$ac_cv_path_SED" >&6; }
4575 SED="$ac_cv_path_SED"
4576 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004577
jimblandy92b1f832009-12-23 22:23:49 +00004578test -z "$SED" && SED=sed
4579Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004580
jimblandy92b1f832009-12-23 22:23:49 +00004581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4592$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4593if test "${ac_cv_path_GREP+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004595else
jimblandy92b1f832009-12-23 22:23:49 +00004596 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004597 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004604 for ac_prog in grep ggrep; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4607 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4608# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004609 # Check for GNU $ac_path_GREP
4610case `"$ac_path_GREP" --version 2>&1` in
4611*GNU*)
4612 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4613*)
4614 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004615 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004616 while :
4617 do
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004621 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004622 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004624 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004625 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_GREP="$ac_path_GREP"
4628 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004629 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4632 done
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634esac
4635
jimblandy92b1f832009-12-23 22:23:49 +00004636 $ac_path_GREP_found && break 3
4637 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004638 done
jimblandy92b1f832009-12-23 22:23:49 +00004639 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004640IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004641 if test -z "$ac_cv_path_GREP"; then
4642 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004644else
4645 ac_cv_path_GREP=$GREP
4646fi
4647
mmentovai8c2a4de2006-09-20 16:20:15 +00004648fi
jimblandy92b1f832009-12-23 22:23:49 +00004649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4650$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004651 GREP="$ac_cv_path_GREP"
4652
4653
jimblandy92b1f832009-12-23 22:23:49 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4655$as_echo_n "checking for egrep... " >&6; }
4656if test "${ac_cv_path_EGREP+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004658else
4659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4660 then ac_cv_path_EGREP="$GREP -E"
4661 else
jimblandy92b1f832009-12-23 22:23:49 +00004662 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004663 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004664 # Loop through the user's path and test for each of PROGNAME-LIST
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004670 for ac_prog in egrep; do
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4674# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004675 # Check for GNU $ac_path_EGREP
4676case `"$ac_path_EGREP" --version 2>&1` in
4677*GNU*)
4678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4679*)
4680 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004681 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004682 while :
4683 do
4684 cat "conftest.in" "conftest.in" >"conftest.tmp"
4685 mv "conftest.tmp" "conftest.in"
4686 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004687 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004690 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4692 # Best one so far, save it but keep looking for a better one
4693 ac_cv_path_EGREP="$ac_path_EGREP"
4694 ac_path_EGREP_max=$ac_count
4695 fi
4696 # 10*(2^10) chars as input seems more than enough
4697 test $ac_count -gt 10 && break
4698 done
4699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700esac
4701
jimblandy92b1f832009-12-23 22:23:49 +00004702 $ac_path_EGREP_found && break 3
4703 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004704 done
jimblandy92b1f832009-12-23 22:23:49 +00004705 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004706IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004707 if test -z "$ac_cv_path_EGREP"; then
4708 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004710else
4711 ac_cv_path_EGREP=$EGREP
4712fi
4713
jimblandy92b1f832009-12-23 22:23:49 +00004714 fi
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4717$as_echo "$ac_cv_path_EGREP" >&6; }
4718 EGREP="$ac_cv_path_EGREP"
4719
4720
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4722$as_echo_n "checking for fgrep... " >&6; }
4723if test "${ac_cv_path_FGREP+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725else
4726 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4727 then ac_cv_path_FGREP="$GREP -F"
4728 else
4729 if test -z "$FGREP"; then
4730 ac_path_FGREP_found=false
4731 # Loop through the user's path and test for each of PROGNAME-LIST
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734do
4735 IFS=$as_save_IFS
4736 test -z "$as_dir" && as_dir=.
4737 for ac_prog in fgrep; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4740 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4741# Check for GNU ac_path_FGREP and select it if it is found.
4742 # Check for GNU $ac_path_FGREP
4743case `"$ac_path_FGREP" --version 2>&1` in
4744*GNU*)
4745 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4746*)
4747 ac_count=0
4748 $as_echo_n 0123456789 >"conftest.in"
4749 while :
4750 do
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 $as_echo 'FGREP' >> "conftest.nl"
4755 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_FGREP="$ac_path_FGREP"
4761 ac_path_FGREP_max=$ac_count
4762 fi
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4765 done
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767esac
4768
4769 $ac_path_FGREP_found && break 3
4770 done
4771 done
4772 done
4773IFS=$as_save_IFS
4774 if test -z "$ac_cv_path_FGREP"; then
4775 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776 fi
4777else
4778 ac_cv_path_FGREP=$FGREP
4779fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004780
4781 fi
4782fi
jimblandy92b1f832009-12-23 22:23:49 +00004783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4784$as_echo "$ac_cv_path_FGREP" >&6; }
4785 FGREP="$ac_cv_path_FGREP"
4786
4787
4788test -z "$GREP" && GREP=grep
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
brynercb91a2f2006-08-25 21:14:45 +00004805
4806
4807
mmentovai8c2a4de2006-09-20 16:20:15 +00004808# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004809if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004810 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004811else
4812 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004813fi
4814
brynercb91a2f2006-08-25 21:14:45 +00004815ac_prog=ld
4816if test "$GCC" = yes; then
4817 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4819$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004820 case $host in
4821 *-*-mingw*)
4822 # gcc leaves a trailing carriage return which upsets mingw
4823 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4824 *)
4825 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4826 esac
4827 case $ac_prog in
4828 # Accept absolute paths.
4829 [\\/]* | ?:[\\/]*)
4830 re_direlt='/[^/][^/]*/\.\./'
4831 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004832 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4833 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4834 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004835 done
4836 test -z "$LD" && LD="$ac_prog"
4837 ;;
4838 "")
4839 # If it fails, then pretend we aren't using GCC.
4840 ac_prog=ld
4841 ;;
4842 *)
4843 # If it is relative, then search for the first ld in PATH.
4844 with_gnu_ld=unknown
4845 ;;
4846 esac
4847elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4849$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004850else
jimblandy92b1f832009-12-23 22:23:49 +00004851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4852$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004853fi
jimblandy92b1f832009-12-23 22:23:49 +00004854if test "${lt_cv_path_LD+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004856else
4857 if test -z "$LD"; then
4858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4859 for ac_dir in $PATH; do
4860 IFS="$lt_save_ifs"
4861 test -z "$ac_dir" && ac_dir=.
4862 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4863 lt_cv_path_LD="$ac_dir/$ac_prog"
4864 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004865 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004866 # Break only if it was the GNU/non-GNU ld that we prefer.
4867 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4868 *GNU* | *'with BFD'*)
4869 test "$with_gnu_ld" != no && break
4870 ;;
4871 *)
4872 test "$with_gnu_ld" != yes && break
4873 ;;
4874 esac
4875 fi
4876 done
4877 IFS="$lt_save_ifs"
4878else
4879 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4880fi
4881fi
4882
4883LD="$lt_cv_path_LD"
4884if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4886$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004887else
jimblandy92b1f832009-12-23 22:23:49 +00004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004890fi
jimblandy92b1f832009-12-23 22:23:49 +00004891test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4893$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4894if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004896else
mmentovai8c2a4de2006-09-20 16:20:15 +00004897 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004898case `$LD -v 2>&1 </dev/null` in
4899*GNU* | *'with BFD'*)
4900 lt_cv_prog_gnu_ld=yes
4901 ;;
4902*)
4903 lt_cv_prog_gnu_ld=no
4904 ;;
4905esac
4906fi
jimblandy92b1f832009-12-23 22:23:49 +00004907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4908$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004909with_gnu_ld=$lt_cv_prog_gnu_ld
4910
4911
brynercb91a2f2006-08-25 21:14:45 +00004912
jimblandy92b1f832009-12-23 22:23:49 +00004913
4914
4915
4916
4917
4918
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4920$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4921if test "${lt_cv_path_NM+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004923else
4924 if test -n "$NM"; then
4925 # Let the user override the test.
4926 lt_cv_path_NM="$NM"
4927else
mmentovai8c2a4de2006-09-20 16:20:15 +00004928 lt_nm_to_check="${ac_tool_prefix}nm"
4929 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4930 lt_nm_to_check="$lt_nm_to_check nm"
4931 fi
4932 for lt_tmp_nm in $lt_nm_to_check; do
4933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4934 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4935 IFS="$lt_save_ifs"
4936 test -z "$ac_dir" && ac_dir=.
4937 tmp_nm="$ac_dir/$lt_tmp_nm"
4938 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4939 # Check to see if the nm accepts a BSD-compat flag.
4940 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4941 # nm: unknown option "B" ignored
4942 # Tru64's nm complains that /dev/null is an invalid object file
4943 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4944 */dev/null* | *'Invalid file or object type'*)
4945 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004946 break
4947 ;;
4948 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004949 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4950 */dev/null*)
4951 lt_cv_path_NM="$tmp_nm -p"
4952 break
4953 ;;
4954 *)
4955 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4956 continue # so that we can try to find one that supports BSD flags
4957 ;;
4958 esac
brynercb91a2f2006-08-25 21:14:45 +00004959 ;;
4960 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004961 fi
4962 done
4963 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004964 done
jimblandy92b1f832009-12-23 22:23:49 +00004965 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00004966fi
4967fi
jimblandy92b1f832009-12-23 22:23:49 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4969$as_echo "$lt_cv_path_NM" >&6; }
4970if test "$lt_cv_path_NM" != "no"; then
4971 NM="$lt_cv_path_NM"
4972else
4973 # Didn't find any BSD compatible name lister, look for dumpbin.
4974 if test -n "$ac_tool_prefix"; then
4975 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4976 do
4977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
4981if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983else
4984 if test -n "$DUMPBIN"; then
4985 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 break 2
4997 fi
4998done
4999 done
5000IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005001
jimblandy92b1f832009-12-23 22:23:49 +00005002fi
5003fi
5004DUMPBIN=$ac_cv_prog_DUMPBIN
5005if test -n "$DUMPBIN"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5007$as_echo "$DUMPBIN" >&6; }
5008else
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013
5014 test -n "$DUMPBIN" && break
5015 done
5016fi
5017if test -z "$DUMPBIN"; then
5018 ac_ct_DUMPBIN=$DUMPBIN
5019 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5020do
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022set dummy $ac_prog; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -n "$ac_ct_DUMPBIN"; then
5029 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043 done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5049if test -n "$ac_ct_DUMPBIN"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5051$as_echo "$ac_ct_DUMPBIN" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058 test -n "$ac_ct_DUMPBIN" && break
5059done
5060
5061 if test "x$ac_ct_DUMPBIN" = x; then
5062 DUMPBIN=":"
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065yes:)
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068ac_tool_warned=yes ;;
5069esac
5070 DUMPBIN=$ac_ct_DUMPBIN
5071 fi
5072fi
5073
5074
5075 if test "$DUMPBIN" != ":"; then
5076 NM="$DUMPBIN"
5077 fi
5078fi
5079test -z "$NM" && NM=nm
5080
5081
5082
5083
5084
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5087$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5088if test "${lt_cv_nm_interface+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090else
5091 lt_cv_nm_interface="BSD nm"
5092 echo "int some_variable = 0;" > conftest.$ac_ext
5093 (eval echo "\"\$as_me:5093: $ac_compile\"" >&5)
5094 (eval "$ac_compile" 2>conftest.err)
5095 cat conftest.err >&5
5096 (eval echo "\"\$as_me:5096: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5097 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5098 cat conftest.err >&5
5099 (eval echo "\"\$as_me:5099: output\"" >&5)
5100 cat conftest.out >&5
5101 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5102 lt_cv_nm_interface="MS dumpbin"
5103 fi
5104 rm -f conftest*
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5107$as_echo "$lt_cv_nm_interface" >&6; }
5108
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5110$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005111LN_S=$as_ln_s
5112if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005115else
jimblandy92b1f832009-12-23 22:23:49 +00005116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5117$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005118fi
5119
jimblandy92b1f832009-12-23 22:23:49 +00005120# find the maximum length of command line arguments
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5122$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5123if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5125else
5126 i=0
5127 teststring="ABCD"
5128
5129 case $build_os in
5130 msdosdjgpp*)
5131 # On DJGPP, this test can blow up pretty badly due to problems in libc
5132 # (any single argument exceeding 2000 bytes causes a buffer overrun
5133 # during glob expansion). Even if it were fixed, the result of this
5134 # check would be larger than it should be.
5135 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5136 ;;
5137
5138 gnu*)
5139 # Under GNU Hurd, this test is not required because there is
5140 # no limit to the length of command line arguments.
5141 # Libtool will interpret -1 as no limit whatsoever
5142 lt_cv_sys_max_cmd_len=-1;
5143 ;;
5144
5145 cygwin* | mingw* | cegcc*)
5146 # On Win9x/ME, this test blows up -- it succeeds, but takes
5147 # about 5 minutes as the teststring grows exponentially.
5148 # Worse, since 9x/ME are not pre-emptively multitasking,
5149 # you end up with a "frozen" computer, even though with patience
5150 # the test eventually succeeds (with a max line length of 256k).
5151 # Instead, let's just punt: use the minimum linelength reported by
5152 # all of the supported platforms: 8192 (on NT/2K/XP).
5153 lt_cv_sys_max_cmd_len=8192;
5154 ;;
5155
5156 amigaos*)
5157 # On AmigaOS with pdksh, this test takes hours, literally.
5158 # So we just punt and use a minimum line length of 8192.
5159 lt_cv_sys_max_cmd_len=8192;
5160 ;;
5161
5162 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5163 # This has been around since 386BSD, at least. Likely further.
5164 if test -x /sbin/sysctl; then
5165 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5166 elif test -x /usr/sbin/sysctl; then
5167 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5168 else
5169 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5170 fi
5171 # And add a safety zone
5172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5174 ;;
5175
5176 interix*)
5177 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5178 lt_cv_sys_max_cmd_len=196608
5179 ;;
5180
5181 osf*)
5182 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5183 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5184 # nice to cause kernel panics so lets avoid the loop below.
5185 # First set a reasonable default.
5186 lt_cv_sys_max_cmd_len=16384
5187 #
5188 if test -x /sbin/sysconfig; then
5189 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5190 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5191 esac
5192 fi
5193 ;;
5194 sco3.2v5*)
5195 lt_cv_sys_max_cmd_len=102400
5196 ;;
5197 sysv5* | sco5v6* | sysv4.2uw2*)
5198 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5199 if test -n "$kargmax"; then
5200 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5201 else
5202 lt_cv_sys_max_cmd_len=32768
5203 fi
5204 ;;
5205 *)
5206 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5207 if test -n "$lt_cv_sys_max_cmd_len"; then
5208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5210 else
5211 # Make teststring a little bigger before we do anything with it.
5212 # a 1K string should be a reasonable start.
5213 for i in 1 2 3 4 5 6 7 8 ; do
5214 teststring=$teststring$teststring
5215 done
5216 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5217 # If test is not a shell built-in, we'll probably end up computing a
5218 # maximum length that is only half of the actual maximum length, but
5219 # we can't tell.
5220 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5221 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5222 test $i != 17 # 1/2 MB should be enough
5223 do
5224 i=`expr $i + 1`
5225 teststring=$teststring$teststring
5226 done
5227 # Only check the string length outside the loop.
5228 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5229 teststring=
5230 # Add a significant safety factor because C++ compilers can tack on
5231 # massive amounts of additional arguments before passing them to the
5232 # linker. It appears as though 1/2 is a usable value.
5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5234 fi
5235 ;;
5236 esac
5237
5238fi
5239
5240if test -n $lt_cv_sys_max_cmd_len ; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5242$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5243else
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5245$as_echo "none" >&6; }
5246fi
5247max_cmd_len=$lt_cv_sys_max_cmd_len
5248
5249
5250
5251
5252
5253
5254: ${CP="cp -f"}
5255: ${MV="mv -f"}
5256: ${RM="rm -f"}
5257
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5259$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5260# Try some XSI features
5261xsi_shell=no
5262( _lt_dummy="a/b/c"
5263 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5264 = c,a/b,, \
5265 && eval 'test $(( 1 + 1 )) -eq 2 \
5266 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5267 && xsi_shell=yes
5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5269$as_echo "$xsi_shell" >&6; }
5270
5271
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5273$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5274lt_shell_append=no
5275( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5276 >/dev/null 2>&1 \
5277 && lt_shell_append=yes
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5279$as_echo "$lt_shell_append" >&6; }
5280
5281
5282if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5283 lt_unset=unset
5284else
5285 lt_unset=false
5286fi
5287
5288
5289
5290
5291
5292# test EBCDIC or ASCII
5293case `echo X|tr X '\101'` in
5294 A) # ASCII based system
5295 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5296 lt_SP2NL='tr \040 \012'
5297 lt_NL2SP='tr \015\012 \040\040'
5298 ;;
5299 *) # EBCDIC based system
5300 lt_SP2NL='tr \100 \n'
5301 lt_NL2SP='tr \r\n \100\100'
5302 ;;
5303esac
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5314$as_echo_n "checking for $LD option to reload object files... " >&6; }
5315if test "${lt_cv_ld_reload_flag+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317else
5318 lt_cv_ld_reload_flag='-r'
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5321$as_echo "$lt_cv_ld_reload_flag" >&6; }
5322reload_flag=$lt_cv_ld_reload_flag
5323case $reload_flag in
5324"" | " "*) ;;
5325*) reload_flag=" $reload_flag" ;;
5326esac
5327reload_cmds='$LD$reload_flag -o $output$reload_objs'
5328case $host_os in
5329 darwin*)
5330 if test "$GCC" = yes; then
5331 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5332 else
5333 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5334 fi
5335 ;;
5336esac
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346if test -n "$ac_tool_prefix"; then
5347 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5348set dummy ${ac_tool_prefix}objdump; ac_word=$2
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350$as_echo_n "checking for $ac_word... " >&6; }
5351if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
5353else
5354 if test -n "$OBJDUMP"; then
5355 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5367 fi
5368done
5369 done
5370IFS=$as_save_IFS
5371
5372fi
5373fi
5374OBJDUMP=$ac_cv_prog_OBJDUMP
5375if test -n "$OBJDUMP"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5377$as_echo "$OBJDUMP" >&6; }
5378else
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380$as_echo "no" >&6; }
5381fi
5382
5383
5384fi
5385if test -z "$ac_cv_prog_OBJDUMP"; then
5386 ac_ct_OBJDUMP=$OBJDUMP
5387 # Extract the first word of "objdump", so it can be a program name with args.
5388set dummy objdump; ac_word=$2
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390$as_echo_n "checking for $ac_word... " >&6; }
5391if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393else
5394 if test -n "$ac_ct_OBJDUMP"; then
5395 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5396else
5397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408done
5409 done
5410IFS=$as_save_IFS
5411
5412fi
5413fi
5414ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5415if test -n "$ac_ct_OBJDUMP"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5417$as_echo "$ac_ct_OBJDUMP" >&6; }
5418else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422
5423 if test "x$ac_ct_OBJDUMP" = x; then
5424 OBJDUMP="false"
5425 else
5426 case $cross_compiling:$ac_tool_warned in
5427yes:)
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5430ac_tool_warned=yes ;;
5431esac
5432 OBJDUMP=$ac_ct_OBJDUMP
5433 fi
5434else
5435 OBJDUMP="$ac_cv_prog_OBJDUMP"
5436fi
5437
5438test -z "$OBJDUMP" && OBJDUMP=objdump
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5449$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5450if test "${lt_cv_deplibs_check_method+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005452else
5453 lt_cv_file_magic_cmd='$MAGIC_CMD'
5454lt_cv_file_magic_test_file=
5455lt_cv_deplibs_check_method='unknown'
5456# Need to set the preceding variable on all platforms that support
5457# interlibrary dependencies.
5458# 'none' -- dependencies not supported.
5459# `unknown' -- same as none, but documents that we really don't know.
5460# 'pass_all' -- all dependencies passed with no checks.
5461# 'test_compile' -- check by making test program.
5462# 'file_magic [[regex]]' -- check by looking for files in library path
5463# which responds to the $file_magic_cmd with a given extended regex.
5464# If you have `file' or equivalent on your system and you're not sure
5465# whether `pass_all' will *always* work, you probably want this one.
5466
5467case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005468aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471
5472beos*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
mmentovai8c2a4de2006-09-20 16:20:15 +00005476bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5478 lt_cv_file_magic_cmd='/usr/bin/file -L'
5479 lt_cv_file_magic_test_file=/shlib/libc.so
5480 ;;
5481
5482cygwin*)
5483 # func_win32_libid is a shell function defined in ltmain.sh
5484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5485 lt_cv_file_magic_cmd='func_win32_libid'
5486 ;;
5487
5488mingw* | pw32*)
5489 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005490 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5491 # unless we find 'file', for example because we are cross-compiling.
5492 if ( file / ) >/dev/null 2>&1; then
5493 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5494 lt_cv_file_magic_cmd='func_win32_libid'
5495 else
5496 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5497 lt_cv_file_magic_cmd='$OBJDUMP -f'
5498 fi
brynercb91a2f2006-08-25 21:14:45 +00005499 ;;
5500
jimblandy92b1f832009-12-23 22:23:49 +00005501cegcc)
5502 # use the weaker test based on 'objdump'. See mingw*.
5503 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5504 lt_cv_file_magic_cmd='$OBJDUMP -f'
5505 ;;
5506
brynercb91a2f2006-08-25 21:14:45 +00005507darwin* | rhapsody*)
5508 lt_cv_deplibs_check_method=pass_all
5509 ;;
5510
ted.mielczarek1adb1842009-12-21 13:12:20 +00005511freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005513 case $host_cpu in
5514 i*86 )
5515 # Not sure whether the presence of OpenBSD here was a mistake.
5516 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
brynercb91a2f2006-08-25 21:14:45 +00005518 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5520 ;;
5521 esac
5522 else
5523 lt_cv_deplibs_check_method=pass_all
5524 fi
5525 ;;
5526
5527gnu*)
5528 lt_cv_deplibs_check_method=pass_all
5529 ;;
5530
5531hpux10.20* | hpux11*)
5532 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005533 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005534 ia64*)
5535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5536 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5537 ;;
5538 hppa*64*)
5539 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]'
5540 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5541 ;;
5542 *)
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5545 ;;
5546 esac
5547 ;;
5548
ted.mielczarek1adb1842009-12-21 13:12:20 +00005549interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005550 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5552 ;;
5553
brynercb91a2f2006-08-25 21:14:45 +00005554irix5* | irix6* | nonstopux*)
5555 case $LD in
5556 *-32|*"-32 ") libmagic=32-bit;;
5557 *-n32|*"-n32 ") libmagic=N32;;
5558 *-64|*"-64 ") libmagic=64-bit;;
5559 *) libmagic=never-match;;
5560 esac
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +00005565linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
jimblandy92b1f832009-12-23 22:23:49 +00005569netbsd* | netbsdelf*-gnu)
5570 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5572 else
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5574 fi
5575 ;;
5576
5577newos6*)
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5581 ;;
5582
jimblandy92b1f832009-12-23 22:23:49 +00005583*nto* | *qnx*)
5584 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005585 ;;
5586
5587openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005590 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005592 fi
5593 ;;
5594
5595osf3* | osf4* | osf5*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
ted.mielczarek1adb1842009-12-21 13:12:20 +00005599rdos*)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602
brynercb91a2f2006-08-25 21:14:45 +00005603solaris*)
5604 lt_cv_deplibs_check_method=pass_all
5605 ;;
5606
jimblandy92b1f832009-12-23 22:23:49 +00005607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
mmentovai8c2a4de2006-09-20 16:20:15 +00005611sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005612 case $host_vendor in
5613 motorola)
5614 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]'
5615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5616 ;;
5617 ncr)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620 sequent)
5621 lt_cv_file_magic_cmd='/bin/file'
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5623 ;;
5624 sni)
5625 lt_cv_file_magic_cmd='/bin/file'
5626 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5627 lt_cv_file_magic_test_file=/lib/libc.so
5628 ;;
5629 siemens)
5630 lt_cv_deplibs_check_method=pass_all
5631 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005632 pc)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
brynercb91a2f2006-08-25 21:14:45 +00005635 esac
5636 ;;
5637
jimblandy92b1f832009-12-23 22:23:49 +00005638tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641esac
5642
5643fi
jimblandy92b1f832009-12-23 22:23:49 +00005644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5645$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005646file_magic_cmd=$lt_cv_file_magic_cmd
5647deplibs_check_method=$lt_cv_deplibs_check_method
5648test -z "$deplibs_check_method" && deplibs_check_method=unknown
5649
5650
5651
5652
jimblandy92b1f832009-12-23 22:23:49 +00005653
5654
5655
5656
5657
5658
5659
5660
5661if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5663set dummy ${ac_tool_prefix}ar; ac_word=$2
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665$as_echo_n "checking for $ac_word... " >&6; }
5666if test "${ac_cv_prog_AR+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668else
5669 if test -n "$AR"; then
5670 ac_cv_prog_AR="$AR" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_AR="${ac_tool_prefix}ar"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684 done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689AR=$ac_cv_prog_AR
5690if test -n "$AR"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5692$as_echo "$AR" >&6; }
5693else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }
5696fi
5697
5698
5699fi
5700if test -z "$ac_cv_prog_AR"; then
5701 ac_ct_AR=$AR
5702 # Extract the first word of "ar", so it can be a program name with args.
5703set dummy ar; ac_word=$2
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705$as_echo_n "checking for $ac_word... " >&6; }
5706if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708else
5709 if test -n "$ac_ct_AR"; then
5710 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_AR="ar"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723done
5724 done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729ac_ct_AR=$ac_cv_prog_ac_ct_AR
5730if test -n "$ac_ct_AR"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5732$as_echo "$ac_ct_AR" >&6; }
5733else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736fi
5737
5738 if test "x$ac_ct_AR" = x; then
5739 AR="false"
5740 else
5741 case $cross_compiling:$ac_tool_warned in
5742yes:)
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745ac_tool_warned=yes ;;
5746esac
5747 AR=$ac_ct_AR
5748 fi
5749else
5750 AR="$ac_cv_prog_AR"
5751fi
5752
5753test -z "$AR" && AR=ar
5754test -z "$AR_FLAGS" && AR_FLAGS=cru
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766if test -n "$ac_tool_prefix"; then
5767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5768set dummy ${ac_tool_prefix}strip; ac_word=$2
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770$as_echo_n "checking for $ac_word... " >&6; }
5771if test "${ac_cv_prog_STRIP+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773else
5774 if test -n "$STRIP"; then
5775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780 IFS=$as_save_IFS
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 break 2
5787 fi
5788done
5789 done
5790IFS=$as_save_IFS
5791
5792fi
5793fi
5794STRIP=$ac_cv_prog_STRIP
5795if test -n "$STRIP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5797$as_echo "$STRIP" >&6; }
5798else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800$as_echo "no" >&6; }
5801fi
5802
5803
5804fi
5805if test -z "$ac_cv_prog_STRIP"; then
5806 ac_ct_STRIP=$STRIP
5807 # Extract the first word of "strip", so it can be a program name with args.
5808set dummy strip; ac_word=$2
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810$as_echo_n "checking for $ac_word... " >&6; }
5811if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813else
5814 if test -n "$ac_ct_STRIP"; then
5815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5816else
5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818for as_dir in $PATH
5819do
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_ac_ct_STRIP="strip"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828done
5829 done
5830IFS=$as_save_IFS
5831
5832fi
5833fi
5834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5835if test -n "$ac_ct_STRIP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5837$as_echo "$ac_ct_STRIP" >&6; }
5838else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841fi
5842
5843 if test "x$ac_ct_STRIP" = x; then
5844 STRIP=":"
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847yes:)
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850ac_tool_warned=yes ;;
5851esac
5852 STRIP=$ac_ct_STRIP
5853 fi
5854else
5855 STRIP="$ac_cv_prog_STRIP"
5856fi
5857
5858test -z "$STRIP" && STRIP=:
5859
5860
5861
5862
5863
5864
5865if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869$as_echo_n "checking for $ac_word... " >&6; }
5870if test "${ac_cv_prog_RANLIB+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872else
5873 if test -n "$RANLIB"; then
5874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
5891fi
5892fi
5893RANLIB=$ac_cv_prog_RANLIB
5894if test -n "$RANLIB"; then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5896$as_echo "$RANLIB" >&6; }
5897else
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899$as_echo "no" >&6; }
5900fi
5901
5902
5903fi
5904if test -z "$ac_cv_prog_RANLIB"; then
5905 ac_ct_RANLIB=$RANLIB
5906 # Extract the first word of "ranlib", so it can be a program name with args.
5907set dummy ranlib; ac_word=$2
5908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912else
5913 if test -n "$ac_ct_RANLIB"; then
5914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_ac_ct_RANLIB="ranlib"
5924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928 done
5929IFS=$as_save_IFS
5930
5931fi
5932fi
5933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5934if test -n "$ac_ct_RANLIB"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5936$as_echo "$ac_ct_RANLIB" >&6; }
5937else
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939$as_echo "no" >&6; }
5940fi
5941
5942 if test "x$ac_ct_RANLIB" = x; then
5943 RANLIB=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946yes:)
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949ac_tool_warned=yes ;;
5950esac
5951 RANLIB=$ac_ct_RANLIB
5952 fi
5953else
5954 RANLIB="$ac_cv_prog_RANLIB"
5955fi
5956
5957test -z "$RANLIB" && RANLIB=:
5958
5959
5960
5961
5962
5963
5964# Determine commands to create old-style static archives.
5965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5966old_postinstall_cmds='chmod 644 $oldlib'
5967old_postuninstall_cmds=
5968
5969if test -n "$RANLIB"; then
5970 case $host_os in
5971 openbsd*)
5972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5973 ;;
5974 *)
5975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5976 ;;
5977 esac
5978 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5979fi
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
brynercb91a2f2006-08-25 21:14:45 +00006014# If no C compiler was specified, use CC.
6015LTCC=${LTCC-"$CC"}
6016
mmentovai8c2a4de2006-09-20 16:20:15 +00006017# If no C compiler flags were specified, use CFLAGS.
6018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6019
brynercb91a2f2006-08-25 21:14:45 +00006020# Allow CC to be a program name with arguments.
6021compiler=$CC
6022
6023
brynercb91a2f2006-08-25 21:14:45 +00006024# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6026$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6027if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006029else
6030
6031# These are sane defaults that work on at least a few old systems.
6032# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6033
6034# Character class describing NM global symbol codes.
6035symcode='[BCDEGRST]'
6036
6037# Regexp to match symbols that can be accessed directly from C.
6038sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6039
brynercb91a2f2006-08-25 21:14:45 +00006040# Define system-specific variables.
6041case $host_os in
6042aix*)
6043 symcode='[BCDT]'
6044 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006045cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006046 symcode='[ABCDGISTW]'
6047 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006048hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006049 if test "$host_cpu" = ia64; then
6050 symcode='[ABCDEGRST]'
6051 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006052 ;;
brynercb91a2f2006-08-25 21:14:45 +00006053irix* | nonstopux*)
6054 symcode='[BCDEGRST]'
6055 ;;
6056osf*)
6057 symcode='[BCDEGQRST]'
6058 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006059solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006060 symcode='[BDRT]'
6061 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006062sco3.2v5*)
6063 symcode='[DT]'
6064 ;;
6065sysv4.2uw2*)
6066 symcode='[DT]'
6067 ;;
6068sysv5* | sco5v6* | unixware* | OpenUNIX*)
6069 symcode='[ABDT]'
6070 ;;
brynercb91a2f2006-08-25 21:14:45 +00006071sysv4)
6072 symcode='[DFNSTU]'
6073 ;;
6074esac
6075
brynercb91a2f2006-08-25 21:14:45 +00006076# If we're using GNU nm, then use its standard symbol codes.
6077case `$NM -V 2>&1` in
6078*GNU* | *'with BFD'*)
6079 symcode='[ABCDGIRSTW]' ;;
6080esac
6081
jimblandy92b1f832009-12-23 22:23:49 +00006082# Transform an extracted symbol line into a proper C declaration.
6083# Some systems (esp. on ia64) link data and code symbols differently,
6084# so use this general approach.
6085lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6086
6087# Transform an extracted symbol line into symbol name and symbol address
6088lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6089lt_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'"
6090
6091# Handle CRLF in mingw tool chain
6092opt_cr=
6093case $build_os in
6094mingw*)
6095 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6096 ;;
6097esac
6098
6099# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006100for ac_symprfx in "" "_"; do
6101
mmentovai8c2a4de2006-09-20 16:20:15 +00006102 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6103 symxfrm="\\1 $ac_symprfx\\2 \\2"
6104
brynercb91a2f2006-08-25 21:14:45 +00006105 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6107 # Fake it for dumpbin and say T for any non-static function
6108 # and D for any global variable.
6109 # Also find C++ and __fastcall symbols from MSVC++,
6110 # which start with @ or ?.
6111 lt_cv_sys_global_symbol_pipe="$AWK '"\
6112" {last_section=section; section=\$ 3};"\
6113" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6114" \$ 0!~/External *\|/{next};"\
6115" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6116" {if(hide[section]) next};"\
6117" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6118" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6119" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6120" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6121" ' prfx=^$ac_symprfx"
6122 else
6123 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6124 fi
brynercb91a2f2006-08-25 21:14:45 +00006125
6126 # Check to see that the pipe works correctly.
6127 pipe_works=no
6128
6129 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006130 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006131#ifdef __cplusplus
6132extern "C" {
6133#endif
6134char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006135void nm_test_func(void);
6136void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006137#ifdef __cplusplus
6138}
6139#endif
6140int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006141_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006142
jimblandy92b1f832009-12-23 22:23:49 +00006143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006144 (eval $ac_compile) 2>&5
6145 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006148 # Now try to grab the symbols.
6149 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006151 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6152 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006155 # Try sorting and uniquifying the output.
6156 if sort "$nlist" | uniq > "$nlist"T; then
6157 mv -f "$nlist"T "$nlist"
6158 else
6159 rm -f "$nlist"T
6160 fi
6161
6162 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006163 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6164 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6165 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006166#ifdef __cplusplus
6167extern "C" {
6168#endif
6169
jimblandy92b1f832009-12-23 22:23:49 +00006170_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006171 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006172 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006173
jimblandy92b1f832009-12-23 22:23:49 +00006174 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006175
jimblandy92b1f832009-12-23 22:23:49 +00006176/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006177const struct {
6178 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006179 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006180}
jimblandy92b1f832009-12-23 22:23:49 +00006181lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006182{
jimblandy92b1f832009-12-23 22:23:49 +00006183 { "@PROGRAM@", (void *) 0 },
6184_LT_EOF
6185 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6186 cat <<\_LT_EOF >> conftest.$ac_ext
6187 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006188};
6189
jimblandy92b1f832009-12-23 22:23:49 +00006190/* This works around a problem in FreeBSD linker */
6191#ifdef FREEBSD_WORKAROUND
6192static const void *lt_preloaded_setup() {
6193 return lt__PROGRAM__LTX_preloaded_symbols;
6194}
6195#endif
6196
brynercb91a2f2006-08-25 21:14:45 +00006197#ifdef __cplusplus
6198}
6199#endif
jimblandy92b1f832009-12-23 22:23:49 +00006200_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006201 # Now try linking the two files.
6202 mv conftest.$ac_objext conftstm.$ac_objext
6203 lt_save_LIBS="$LIBS"
6204 lt_save_CFLAGS="$CFLAGS"
6205 LIBS="conftstm.$ac_objext"
6206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006208 (eval $ac_link) 2>&5
6209 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006212 pipe_works=yes
6213 fi
6214 LIBS="$lt_save_LIBS"
6215 CFLAGS="$lt_save_CFLAGS"
6216 else
6217 echo "cannot find nm_test_func in $nlist" >&5
6218 fi
6219 else
6220 echo "cannot find nm_test_var in $nlist" >&5
6221 fi
6222 else
6223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6224 fi
6225 else
6226 echo "$progname: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6228 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006229 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006230
6231 # Do not use the global_symbol_pipe unless it works.
6232 if test "$pipe_works" = yes; then
6233 break
6234 else
6235 lt_cv_sys_global_symbol_pipe=
6236 fi
6237done
6238
6239fi
6240
6241if test -z "$lt_cv_sys_global_symbol_pipe"; then
6242 lt_cv_sys_global_symbol_to_cdecl=
6243fi
6244if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6246$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006247else
jimblandy92b1f832009-12-23 22:23:49 +00006248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6249$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006250fi
6251
jimblandy92b1f832009-12-23 22:23:49 +00006252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274# Check whether --enable-libtool-lock was given.
6275if test "${enable_libtool_lock+set}" = set; then :
6276 enableval=$enable_libtool_lock;
6277fi
6278
6279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6280
6281# Some flags need to be propagated to the compiler or linker for good
6282# libtool support.
6283case $host in
6284ia64-*-hpux*)
6285 # Find out which ABI we are using.
6286 echo 'int i;' > conftest.$ac_ext
6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6288 (eval $ac_compile) 2>&5
6289 ac_status=$?
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; }; then
6292 case `/usr/bin/file conftest.$ac_objext` in
6293 *ELF-32*)
6294 HPUX_IA64_MODE="32"
6295 ;;
6296 *ELF-64*)
6297 HPUX_IA64_MODE="64"
6298 ;;
6299 esac
6300 fi
6301 rm -rf conftest*
6302 ;;
6303*-*-irix6*)
6304 # Find out which ABI we are using.
6305 echo '#line 6305 "configure"' > conftest.$ac_ext
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307 (eval $ac_compile) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }; then
6311 if test "$lt_cv_prog_gnu_ld" = yes; then
6312 case `/usr/bin/file conftest.$ac_objext` in
6313 *32-bit*)
6314 LD="${LD-ld} -melf32bsmip"
6315 ;;
6316 *N32*)
6317 LD="${LD-ld} -melf32bmipn32"
6318 ;;
6319 *64-bit*)
6320 LD="${LD-ld} -melf64bmip"
6321 ;;
6322 esac
6323 else
6324 case `/usr/bin/file conftest.$ac_objext` in
6325 *32-bit*)
6326 LD="${LD-ld} -32"
6327 ;;
6328 *N32*)
6329 LD="${LD-ld} -n32"
6330 ;;
6331 *64-bit*)
6332 LD="${LD-ld} -64"
6333 ;;
6334 esac
6335 fi
6336 fi
6337 rm -rf conftest*
6338 ;;
6339
6340x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6341s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6342 # Find out which ABI we are using.
6343 echo 'int i;' > conftest.$ac_ext
6344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6345 (eval $ac_compile) 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; }; then
6349 case `/usr/bin/file conftest.o` in
6350 *32-bit*)
6351 case $host in
6352 x86_64-*kfreebsd*-gnu)
6353 LD="${LD-ld} -m elf_i386_fbsd"
6354 ;;
6355 x86_64-*linux*)
6356 LD="${LD-ld} -m elf_i386"
6357 ;;
6358 ppc64-*linux*|powerpc64-*linux*)
6359 LD="${LD-ld} -m elf32ppclinux"
6360 ;;
6361 s390x-*linux*)
6362 LD="${LD-ld} -m elf_s390"
6363 ;;
6364 sparc64-*linux*)
6365 LD="${LD-ld} -m elf32_sparc"
6366 ;;
6367 esac
6368 ;;
6369 *64-bit*)
6370 case $host in
6371 x86_64-*kfreebsd*-gnu)
6372 LD="${LD-ld} -m elf_x86_64_fbsd"
6373 ;;
6374 x86_64-*linux*)
6375 LD="${LD-ld} -m elf_x86_64"
6376 ;;
6377 ppc*-*linux*|powerpc*-*linux*)
6378 LD="${LD-ld} -m elf64ppc"
6379 ;;
6380 s390*-*linux*|s390*-*tpf*)
6381 LD="${LD-ld} -m elf64_s390"
6382 ;;
6383 sparc*-*linux*)
6384 LD="${LD-ld} -m elf64_sparc"
6385 ;;
6386 esac
6387 ;;
6388 esac
6389 fi
6390 rm -rf conftest*
6391 ;;
6392
6393*-*-sco3.2v5*)
6394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6395 SAVE_CFLAGS="$CFLAGS"
6396 CFLAGS="$CFLAGS -belf"
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6398$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6399if test "${lt_cv_cc_needs_belf+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401else
6402 ac_ext=c
6403ac_cpp='$CPP $CPPFLAGS'
6404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409/* end confdefs.h. */
6410
6411int
6412main ()
6413{
6414
6415 ;
6416 return 0;
6417}
6418_ACEOF
6419if ac_fn_c_try_link "$LINENO"; then :
6420 lt_cv_cc_needs_belf=yes
6421else
6422 lt_cv_cc_needs_belf=no
6423fi
6424rm -f core conftest.err conftest.$ac_objext \
6425 conftest$ac_exeext conftest.$ac_ext
6426 ac_ext=c
6427ac_cpp='$CPP $CPPFLAGS'
6428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430ac_compiler_gnu=$ac_cv_c_compiler_gnu
6431
6432fi
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6434$as_echo "$lt_cv_cc_needs_belf" >&6; }
6435 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6437 CFLAGS="$SAVE_CFLAGS"
6438 fi
6439 ;;
6440sparc*-*solaris*)
6441 # Find out which ABI we are using.
6442 echo 'int i;' > conftest.$ac_ext
6443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6444 (eval $ac_compile) 2>&5
6445 ac_status=$?
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }; then
6448 case `/usr/bin/file conftest.o` in
6449 *64-bit*)
6450 case $lt_cv_prog_gnu_ld in
6451 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6452 *)
6453 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6454 LD="${LD-ld} -64"
6455 fi
6456 ;;
6457 esac
6458 ;;
6459 esac
6460 fi
6461 rm -rf conftest*
6462 ;;
6463esac
6464
6465need_locks="$enable_libtool_lock"
6466
6467
6468 case $host_os in
6469 rhapsody* | darwin*)
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477else
6478 if test -n "$DSYMUTIL"; then
6479 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493 done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498DSYMUTIL=$ac_cv_prog_DSYMUTIL
6499if test -n "$DSYMUTIL"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6501$as_echo "$DSYMUTIL" >&6; }
6502else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507
6508fi
6509if test -z "$ac_cv_prog_DSYMUTIL"; then
6510 ac_ct_DSYMUTIL=$DSYMUTIL
6511 # Extract the first word of "dsymutil", so it can be a program name with args.
6512set dummy dsymutil; ac_word=$2
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517else
6518 if test -n "$ac_ct_DSYMUTIL"; then
6519 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6520else
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533 done
6534IFS=$as_save_IFS
6535
6536fi
6537fi
6538ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6539if test -n "$ac_ct_DSYMUTIL"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6541$as_echo "$ac_ct_DSYMUTIL" >&6; }
6542else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547 if test "x$ac_ct_DSYMUTIL" = x; then
6548 DSYMUTIL=":"
6549 else
6550 case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556 DSYMUTIL=$ac_ct_DSYMUTIL
6557 fi
6558else
6559 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6560fi
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6564set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569else
6570 if test -n "$NMEDIT"; then
6571 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584done
6585 done
6586IFS=$as_save_IFS
6587
6588fi
6589fi
6590NMEDIT=$ac_cv_prog_NMEDIT
6591if test -n "$NMEDIT"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6593$as_echo "$NMEDIT" >&6; }
6594else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
6598
6599
6600fi
6601if test -z "$ac_cv_prog_NMEDIT"; then
6602 ac_ct_NMEDIT=$NMEDIT
6603 # Extract the first word of "nmedit", so it can be a program name with args.
6604set dummy nmedit; ac_word=$2
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -n "$ac_ct_NMEDIT"; then
6611 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625 done
6626IFS=$as_save_IFS
6627
6628fi
6629fi
6630ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6631if test -n "$ac_ct_NMEDIT"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6633$as_echo "$ac_ct_NMEDIT" >&6; }
6634else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637fi
6638
6639 if test "x$ac_ct_NMEDIT" = x; then
6640 NMEDIT=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643yes:)
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646ac_tool_warned=yes ;;
6647esac
6648 NMEDIT=$ac_ct_NMEDIT
6649 fi
6650else
6651 NMEDIT="$ac_cv_prog_NMEDIT"
6652fi
6653
6654 if test -n "$ac_tool_prefix"; then
6655 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6656set dummy ${ac_tool_prefix}lipo; ac_word=$2
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658$as_echo_n "checking for $ac_word... " >&6; }
6659if test "${ac_cv_prog_LIPO+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6661else
6662 if test -n "$LIPO"; then
6663 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6664else
6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666for as_dir in $PATH
6667do
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6675 fi
6676done
6677 done
6678IFS=$as_save_IFS
6679
6680fi
6681fi
6682LIPO=$ac_cv_prog_LIPO
6683if test -n "$LIPO"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6685$as_echo "$LIPO" >&6; }
6686else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
6689fi
6690
6691
6692fi
6693if test -z "$ac_cv_prog_LIPO"; then
6694 ac_ct_LIPO=$LIPO
6695 # Extract the first word of "lipo", so it can be a program name with args.
6696set dummy lipo; ac_word=$2
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698$as_echo_n "checking for $ac_word... " >&6; }
6699if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 if test -n "$ac_ct_LIPO"; then
6703 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6704else
6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_ac_ct_LIPO="lipo"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717 done
6718IFS=$as_save_IFS
6719
6720fi
6721fi
6722ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6723if test -n "$ac_ct_LIPO"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6725$as_echo "$ac_ct_LIPO" >&6; }
6726else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731 if test "x$ac_ct_LIPO" = x; then
6732 LIPO=":"
6733 else
6734 case $cross_compiling:$ac_tool_warned in
6735yes:)
6736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738ac_tool_warned=yes ;;
6739esac
6740 LIPO=$ac_ct_LIPO
6741 fi
6742else
6743 LIPO="$ac_cv_prog_LIPO"
6744fi
6745
6746 if test -n "$ac_tool_prefix"; then
6747 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6748set dummy ${ac_tool_prefix}otool; ac_word=$2
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if test "${ac_cv_prog_OTOOL+set}" = set; then :
6752 $as_echo_n "(cached) " >&6
6753else
6754 if test -n "$OTOOL"; then
6755 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769 done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774OTOOL=$ac_cv_prog_OTOOL
6775if test -n "$OTOOL"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6777$as_echo "$OTOOL" >&6; }
6778else
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783
6784fi
6785if test -z "$ac_cv_prog_OTOOL"; then
6786 ac_ct_OTOOL=$OTOOL
6787 # Extract the first word of "otool", so it can be a program name with args.
6788set dummy otool; ac_word=$2
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790$as_echo_n "checking for $ac_word... " >&6; }
6791if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793else
6794 if test -n "$ac_ct_OTOOL"; then
6795 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_ac_ct_OTOOL="otool"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809 done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6815if test -n "$ac_ct_OTOOL"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6817$as_echo "$ac_ct_OTOOL" >&6; }
6818else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820$as_echo "no" >&6; }
6821fi
6822
6823 if test "x$ac_ct_OTOOL" = x; then
6824 OTOOL=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827yes:)
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830ac_tool_warned=yes ;;
6831esac
6832 OTOOL=$ac_ct_OTOOL
6833 fi
6834else
6835 OTOOL="$ac_cv_prog_OTOOL"
6836fi
6837
6838 if test -n "$ac_tool_prefix"; then
6839 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6840set dummy ${ac_tool_prefix}otool64; ac_word=$2
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842$as_echo_n "checking for $ac_word... " >&6; }
6843if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 if test -n "$OTOOL64"; then
6847 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6848else
6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850for as_dir in $PATH
6851do
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6859 fi
6860done
6861 done
6862IFS=$as_save_IFS
6863
6864fi
6865fi
6866OTOOL64=$ac_cv_prog_OTOOL64
6867if test -n "$OTOOL64"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6869$as_echo "$OTOOL64" >&6; }
6870else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872$as_echo "no" >&6; }
6873fi
6874
6875
6876fi
6877if test -z "$ac_cv_prog_OTOOL64"; then
6878 ac_ct_OTOOL64=$OTOOL64
6879 # Extract the first word of "otool64", so it can be a program name with args.
6880set dummy otool64; ac_word=$2
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885else
6886 if test -n "$ac_ct_OTOOL64"; then
6887 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6888else
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_ac_ct_OTOOL64="otool64"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6899 fi
6900done
6901 done
6902IFS=$as_save_IFS
6903
6904fi
6905fi
6906ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6907if test -n "$ac_ct_OTOOL64"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6909$as_echo "$ac_ct_OTOOL64" >&6; }
6910else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
6913fi
6914
6915 if test "x$ac_ct_OTOOL64" = x; then
6916 OTOOL64=":"
6917 else
6918 case $cross_compiling:$ac_tool_warned in
6919yes:)
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922ac_tool_warned=yes ;;
6923esac
6924 OTOOL64=$ac_ct_OTOOL64
6925 fi
6926else
6927 OTOOL64="$ac_cv_prog_OTOOL64"
6928fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6957$as_echo_n "checking for -single_module linker flag... " >&6; }
6958if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 lt_cv_apple_cc_single_mod=no
6962 if test -z "${LT_MULTI_MODULE}"; then
6963 # By default we will add the -single_module flag. You can override
6964 # by either setting the environment variable LT_MULTI_MODULE
6965 # non-empty at configure time, or by adding -multi_module to the
6966 # link flags.
6967 rm -rf libconftest.dylib*
6968 echo "int foo(void){return 1;}" > conftest.c
6969 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6970-dynamiclib -Wl,-single_module conftest.c" >&5
6971 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6972 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6973 _lt_result=$?
6974 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6975 lt_cv_apple_cc_single_mod=yes
6976 else
6977 cat conftest.err >&5
6978 fi
6979 rm -rf libconftest.dylib*
6980 rm -f conftest.*
6981 fi
6982fi
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6984$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6986$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6987if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989else
6990 lt_cv_ld_exported_symbols_list=no
6991 save_LDFLAGS=$LDFLAGS
6992 echo "_main" > conftest.sym
6993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h. */
6996
6997int
6998main ()
6999{
7000
7001 ;
7002 return 0;
7003}
7004_ACEOF
7005if ac_fn_c_try_link "$LINENO"; then :
7006 lt_cv_ld_exported_symbols_list=yes
7007else
7008 lt_cv_ld_exported_symbols_list=no
7009fi
7010rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 LDFLAGS="$save_LDFLAGS"
7013
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7016$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7017 case $host_os in
7018 rhapsody* | darwin1.[012])
7019 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7020 darwin1.*)
7021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 darwin*) # darwin 5.x on
7023 # if running on 10.5 or later, the deployment target defaults
7024 # to the OS version, if on x86, and 10.4, the deployment
7025 # target defaults to 10.4. Don't you love it?
7026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7027 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7029 10.[012]*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 10.*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 esac
7034 ;;
7035 esac
7036 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7037 _lt_dar_single_mod='$single_module'
7038 fi
7039 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7040 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7041 else
7042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7043 fi
7044 if test "$DSYMUTIL" != ":"; then
7045 _lt_dsymutil='~$DSYMUTIL $lib || :'
7046 else
7047 _lt_dsymutil=
7048 fi
7049 ;;
7050 esac
7051
7052
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7054$as_echo_n "checking for ANSI C header files... " >&6; }
7055if test "${ac_cv_header_stdc+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057else
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h. */
7060#include <stdlib.h>
7061#include <stdarg.h>
7062#include <string.h>
7063#include <float.h>
7064
7065int
7066main ()
7067{
7068
7069 ;
7070 return 0;
7071}
7072_ACEOF
7073if ac_fn_c_try_compile "$LINENO"; then :
7074 ac_cv_header_stdc=yes
7075else
7076 ac_cv_header_stdc=no
7077fi
7078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079
7080if test $ac_cv_header_stdc = yes; then
7081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083/* end confdefs.h. */
7084#include <string.h>
7085
7086_ACEOF
7087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7088 $EGREP "memchr" >/dev/null 2>&1; then :
7089
7090else
7091 ac_cv_header_stdc=no
7092fi
7093rm -f conftest*
7094
7095fi
7096
7097if test $ac_cv_header_stdc = yes; then
7098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100/* end confdefs.h. */
7101#include <stdlib.h>
7102
7103_ACEOF
7104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105 $EGREP "free" >/dev/null 2>&1; then :
7106
7107else
7108 ac_cv_header_stdc=no
7109fi
7110rm -f conftest*
7111
7112fi
7113
7114if test $ac_cv_header_stdc = yes; then
7115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7116 if test "$cross_compiling" = yes; then :
7117 :
7118else
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120/* end confdefs.h. */
7121#include <ctype.h>
7122#include <stdlib.h>
7123#if ((' ' & 0x0FF) == 0x020)
7124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7126#else
7127# define ISLOWER(c) \
7128 (('a' <= (c) && (c) <= 'i') \
7129 || ('j' <= (c) && (c) <= 'r') \
7130 || ('s' <= (c) && (c) <= 'z'))
7131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7132#endif
7133
7134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7135int
7136main ()
7137{
7138 int i;
7139 for (i = 0; i < 256; i++)
7140 if (XOR (islower (i), ISLOWER (i))
7141 || toupper (i) != TOUPPER (i))
7142 return 2;
7143 return 0;
7144}
7145_ACEOF
7146if ac_fn_c_try_run "$LINENO"; then :
7147
7148else
7149 ac_cv_header_stdc=no
7150fi
7151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7152 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153fi
7154
7155fi
7156fi
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7158$as_echo "$ac_cv_header_stdc" >&6; }
7159if test $ac_cv_header_stdc = yes; then
7160
7161$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7162
7163fi
7164
7165# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7166for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7167 inttypes.h stdint.h unistd.h
7168do :
7169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7170ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7171"
7172eval as_val=\$$as_ac_Header
7173 if test "x$as_val" = x""yes; then :
7174 cat >>confdefs.h <<_ACEOF
7175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7176_ACEOF
7177
7178fi
7179
7180done
7181
7182
7183for ac_header in dlfcn.h
7184do :
7185 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7186"
7187if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7188 cat >>confdefs.h <<_ACEOF
7189#define HAVE_DLFCN_H 1
7190_ACEOF
7191
7192fi
7193
7194done
7195
7196
7197
7198ac_ext=cpp
7199ac_cpp='$CXXCPP $CPPFLAGS'
7200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7203if test -z "$CXX"; then
7204 if test -n "$CCC"; then
7205 CXX=$CCC
7206 else
7207 if test -n "$ac_tool_prefix"; then
7208 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7209 do
7210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if test "${ac_cv_prog_CXX+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7216else
7217 if test -n "$CXX"; then
7218 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231done
7232 done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237CXX=$ac_cv_prog_CXX
7238if test -n "$CXX"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7240$as_echo "$CXX" >&6; }
7241else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246
7247 test -n "$CXX" && break
7248 done
7249fi
7250if test -z "$CXX"; then
7251 ac_ct_CXX=$CXX
7252 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7253do
7254 # Extract the first word of "$ac_prog", so it can be a program name with args.
7255set dummy $ac_prog; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7259 $as_echo_n "(cached) " >&6
7260else
7261 if test -n "$ac_ct_CXX"; then
7262 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_prog_ac_ct_CXX="$ac_prog"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275done
7276 done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7282if test -n "$ac_ct_CXX"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7284$as_echo "$ac_ct_CXX" >&6; }
7285else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290
7291 test -n "$ac_ct_CXX" && break
7292done
7293
7294 if test "x$ac_ct_CXX" = x; then
7295 CXX="g++"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298yes:)
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301ac_tool_warned=yes ;;
7302esac
7303 CXX=$ac_ct_CXX
7304 fi
7305fi
7306
7307 fi
7308fi
7309# Provide some information about the compiler.
7310$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7311set X $ac_compile
7312ac_compiler=$2
7313for ac_option in --version -v -V -qversion; do
7314 { { ac_try="$ac_compiler $ac_option >&5"
7315case "(($ac_try" in
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7318esac
7319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7320$as_echo "$ac_try_echo"; } >&5
7321 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7322 ac_status=$?
7323 if test -s conftest.err; then
7324 sed '10a\
7325... rest of stderr output deleted ...
7326 10q' conftest.err >conftest.er1
7327 cat conftest.er1 >&5
7328 rm -f conftest.er1 conftest.err
7329 fi
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }
7332done
7333
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7335$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7336if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338else
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340/* end confdefs.h. */
7341
7342int
7343main ()
7344{
7345#ifndef __GNUC__
7346 choke me
7347#endif
7348
7349 ;
7350 return 0;
7351}
7352_ACEOF
7353if ac_fn_cxx_try_compile "$LINENO"; then :
7354 ac_compiler_gnu=yes
7355else
7356 ac_compiler_gnu=no
7357fi
7358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7360
7361fi
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7363$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7364if test $ac_compiler_gnu = yes; then
7365 GXX=yes
7366else
7367 GXX=
7368fi
7369ac_test_CXXFLAGS=${CXXFLAGS+set}
7370ac_save_CXXFLAGS=$CXXFLAGS
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7372$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7373if test "${ac_cv_prog_cxx_g+set}" = set; then :
7374 $as_echo_n "(cached) " >&6
7375else
7376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7377 ac_cxx_werror_flag=yes
7378 ac_cv_prog_cxx_g=no
7379 CXXFLAGS="-g"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h. */
7382
7383int
7384main ()
7385{
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
7391if ac_fn_cxx_try_compile "$LINENO"; then :
7392 ac_cv_prog_cxx_g=yes
7393else
7394 CXXFLAGS=""
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h. */
7397
7398int
7399main ()
7400{
7401
7402 ;
7403 return 0;
7404}
7405_ACEOF
7406if ac_fn_cxx_try_compile "$LINENO"; then :
7407
7408else
7409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7410 CXXFLAGS="-g"
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h. */
7413
7414int
7415main ()
7416{
7417
7418 ;
7419 return 0;
7420}
7421_ACEOF
7422if ac_fn_cxx_try_compile "$LINENO"; then :
7423 ac_cv_prog_cxx_g=yes
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426fi
7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7431fi
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7433$as_echo "$ac_cv_prog_cxx_g" >&6; }
7434if test "$ac_test_CXXFLAGS" = set; then
7435 CXXFLAGS=$ac_save_CXXFLAGS
7436elif test $ac_cv_prog_cxx_g = yes; then
7437 if test "$GXX" = yes; then
7438 CXXFLAGS="-g -O2"
7439 else
7440 CXXFLAGS="-g"
7441 fi
7442else
7443 if test "$GXX" = yes; then
7444 CXXFLAGS="-O2"
7445 else
7446 CXXFLAGS=
7447 fi
7448fi
7449ac_ext=c
7450ac_cpp='$CPP $CPPFLAGS'
7451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454
7455depcc="$CXX" am_compiler_list=
7456
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7458$as_echo_n "checking dependency style of $depcc... " >&6; }
7459if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461else
7462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7463 # We make a subdir and do the tests there. Otherwise we can end up
7464 # making bogus files that we don't know about and never remove. For
7465 # instance it was reported that on HP-UX the gcc test will end up
7466 # making a dummy file named `D' -- because `-MD' means `put the output
7467 # in D'.
7468 mkdir conftest.dir
7469 # Copy depcomp to subdir because otherwise we won't find it if we're
7470 # using a relative directory.
7471 cp "$am_depcomp" conftest.dir
7472 cd conftest.dir
7473 # We will build objects and dependencies in a subdirectory because
7474 # it helps to detect inapplicable dependency modes. For instance
7475 # both Tru64's cc and ICC support -MD to output dependencies as a
7476 # side effect of compilation, but ICC will put the dependencies in
7477 # the current directory while Tru64 will put them in the object
7478 # directory.
7479 mkdir sub
7480
7481 am_cv_CXX_dependencies_compiler_type=none
7482 if test "$am_compiler_list" = ""; then
7483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7484 fi
7485 am__universal=false
7486 case " $depcc " in #(
7487 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7488 esac
7489
7490 for depmode in $am_compiler_list; do
7491 # Setup a source with many dependencies, because some compilers
7492 # like to wrap large dependency lists on column 80 (with \), and
7493 # we should not choose a depcomp mode which is confused by this.
7494 #
7495 # We need to recreate these files for each test, as the compiler may
7496 # overwrite some of them when testing with obscure command lines.
7497 # This happens at least with the AIX C compiler.
7498 : > sub/conftest.c
7499 for i in 1 2 3 4 5 6; do
7500 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7501 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7502 # Solaris 8's {/usr,}/bin/sh.
7503 touch sub/conftst$i.h
7504 done
7505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7506
7507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7508 # mode. It turns out that the SunPro C++ compiler does not properly
7509 # handle `-M -o', and we need to detect this. Also, some Intel
7510 # versions had trouble with output in subdirs
7511 am__obj=sub/conftest.${OBJEXT-o}
7512 am__minus_obj="-o $am__obj"
7513 case $depmode in
7514 gcc)
7515 # This depmode causes a compiler race in universal mode.
7516 test "$am__universal" = false || continue
7517 ;;
7518 nosideeffect)
7519 # after this tag, mechanisms are not by side-effect, so they'll
7520 # only be used when explicitly requested
7521 if test "x$enable_dependency_tracking" = xyes; then
7522 continue
7523 else
7524 break
7525 fi
7526 ;;
7527 msvisualcpp | msvcmsys)
7528 # This compiler won't grok `-c -o', but also, the minuso test has
7529 # not run yet. These depmodes are late enough in the game, and
7530 # so weak that their functioning should not be impacted.
7531 am__obj=conftest.${OBJEXT-o}
7532 am__minus_obj=
7533 ;;
7534 none) break ;;
7535 esac
7536 if depmode=$depmode \
7537 source=sub/conftest.c object=$am__obj \
7538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7540 >/dev/null 2>conftest.err &&
7541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7545 # icc doesn't choke on unknown options, it will just issue warnings
7546 # or remarks (even with -Werror). So we grep stderr for any message
7547 # that says an option was ignored or not supported.
7548 # When given -MP, icc 7.0 and 7.1 complain thusly:
7549 # icc: Command line warning: ignoring option '-M'; no argument required
7550 # The diagnosis changed in icc 8.0:
7551 # icc: Command line remark: option '-MP' not supported
7552 if (grep 'ignoring option' conftest.err ||
7553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7554 am_cv_CXX_dependencies_compiler_type=$depmode
7555 break
7556 fi
7557 fi
7558 done
7559
7560 cd ..
7561 rm -rf conftest.dir
7562else
7563 am_cv_CXX_dependencies_compiler_type=none
7564fi
7565
7566fi
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7568$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7569CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7570
7571 if
7572 test "x$enable_dependency_tracking" != xno \
7573 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7574 am__fastdepCXX_TRUE=
7575 am__fastdepCXX_FALSE='#'
7576else
7577 am__fastdepCXX_TRUE='#'
7578 am__fastdepCXX_FALSE=
7579fi
7580
7581
7582if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7583 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7584 (test "X$CXX" != "Xg++"))) ; then
7585 ac_ext=cpp
7586ac_cpp='$CXXCPP $CPPFLAGS'
7587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7591$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7592if test -z "$CXXCPP"; then
7593 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595else
7596 # Double quotes because CXXCPP needs to be expanded
7597 for CXXCPP in "$CXX -E" "/lib/cpp"
7598 do
7599 ac_preproc_ok=false
7600for ac_cxx_preproc_warn_flag in '' yes
7601do
7602 # Use a header file that comes with gcc, so configuring glibc
7603 # with a fresh cross-compiler works.
7604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7605 # <limits.h> exists even on freestanding compilers.
7606 # On the NeXT, cc -E runs the code through the compiler's parser,
7607 # not just through cpp. "Syntax error" is here to catch this case.
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609/* end confdefs.h. */
7610#ifdef __STDC__
7611# include <limits.h>
7612#else
7613# include <assert.h>
7614#endif
7615 Syntax error
7616_ACEOF
7617if ac_fn_cxx_try_cpp "$LINENO"; then :
7618
7619else
7620 # Broken: fails on valid input.
7621continue
7622fi
7623rm -f conftest.err conftest.$ac_ext
7624
7625 # OK, works on sane cases. Now check whether nonexistent headers
7626 # can be detected and how.
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629#include <ac_nonexistent.h>
7630_ACEOF
7631if ac_fn_cxx_try_cpp "$LINENO"; then :
7632 # Broken: success on invalid input.
7633continue
7634else
7635 # Passes both tests.
7636ac_preproc_ok=:
7637break
7638fi
7639rm -f conftest.err conftest.$ac_ext
7640
7641done
7642# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7643rm -f conftest.err conftest.$ac_ext
7644if $ac_preproc_ok; then :
7645 break
7646fi
7647
7648 done
7649 ac_cv_prog_CXXCPP=$CXXCPP
7650
7651fi
7652 CXXCPP=$ac_cv_prog_CXXCPP
7653else
7654 ac_cv_prog_CXXCPP=$CXXCPP
7655fi
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7657$as_echo "$CXXCPP" >&6; }
7658ac_preproc_ok=false
7659for ac_cxx_preproc_warn_flag in '' yes
7660do
7661 # Use a header file that comes with gcc, so configuring glibc
7662 # with a fresh cross-compiler works.
7663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7664 # <limits.h> exists even on freestanding compilers.
7665 # On the NeXT, cc -E runs the code through the compiler's parser,
7666 # not just through cpp. "Syntax error" is here to catch this case.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h. */
7669#ifdef __STDC__
7670# include <limits.h>
7671#else
7672# include <assert.h>
7673#endif
7674 Syntax error
7675_ACEOF
7676if ac_fn_cxx_try_cpp "$LINENO"; then :
7677
7678else
7679 # Broken: fails on valid input.
7680continue
7681fi
7682rm -f conftest.err conftest.$ac_ext
7683
7684 # OK, works on sane cases. Now check whether nonexistent headers
7685 # can be detected and how.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h. */
7688#include <ac_nonexistent.h>
7689_ACEOF
7690if ac_fn_cxx_try_cpp "$LINENO"; then :
7691 # Broken: success on invalid input.
7692continue
7693else
7694 # Passes both tests.
7695ac_preproc_ok=:
7696break
7697fi
7698rm -f conftest.err conftest.$ac_ext
7699
7700done
7701# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7702rm -f conftest.err conftest.$ac_ext
7703if $ac_preproc_ok; then :
7704
7705else
7706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7708_lt_caught_CXX_error=yes; }
7709fi
7710
7711ac_ext=c
7712ac_cpp='$CPP $CPPFLAGS'
7713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717else
7718 _lt_caught_CXX_error=yes
7719fi
7720
7721
7722
7723
7724
7725# Set options
7726
7727
7728
7729 enable_dlopen=no
7730
7731
7732 enable_win32_dll=no
7733
7734
7735 # Check whether --enable-shared was given.
7736if test "${enable_shared+set}" = set; then :
7737 enableval=$enable_shared; p=${PACKAGE-default}
7738 case $enableval in
7739 yes) enable_shared=yes ;;
7740 no) enable_shared=no ;;
7741 *)
7742 enable_shared=no
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745 for pkg in $enableval; do
7746 IFS="$lt_save_ifs"
7747 if test "X$pkg" = "X$p"; then
7748 enable_shared=yes
7749 fi
7750 done
7751 IFS="$lt_save_ifs"
7752 ;;
7753 esac
7754else
7755 enable_shared=yes
7756fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 # Check whether --enable-static was given.
7767if test "${enable_static+set}" = set; then :
7768 enableval=$enable_static; p=${PACKAGE-default}
7769 case $enableval in
7770 yes) enable_static=yes ;;
7771 no) enable_static=no ;;
7772 *)
7773 enable_static=no
7774 # Look at the argument we got. We use all the common list separators.
7775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7776 for pkg in $enableval; do
7777 IFS="$lt_save_ifs"
7778 if test "X$pkg" = "X$p"; then
7779 enable_static=yes
7780 fi
7781 done
7782 IFS="$lt_save_ifs"
7783 ;;
7784 esac
7785else
7786 enable_static=yes
7787fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798# Check whether --with-pic was given.
7799if test "${with_pic+set}" = set; then :
7800 withval=$with_pic; pic_mode="$withval"
7801else
7802 pic_mode=default
7803fi
7804
7805
7806test -z "$pic_mode" && pic_mode=default
7807
7808
7809
7810
7811
7812
7813
7814 # Check whether --enable-fast-install was given.
7815if test "${enable_fast_install+set}" = set; then :
7816 enableval=$enable_fast_install; p=${PACKAGE-default}
7817 case $enableval in
7818 yes) enable_fast_install=yes ;;
7819 no) enable_fast_install=no ;;
7820 *)
7821 enable_fast_install=no
7822 # Look at the argument we got. We use all the common list separators.
7823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7824 for pkg in $enableval; do
7825 IFS="$lt_save_ifs"
7826 if test "X$pkg" = "X$p"; then
7827 enable_fast_install=yes
7828 fi
7829 done
7830 IFS="$lt_save_ifs"
7831 ;;
7832 esac
7833else
7834 enable_fast_install=yes
7835fi
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847# This can be used to rebuild libtool when needed
7848LIBTOOL_DEPS="$ltmain"
7849
7850# Always use our own libtool.
7851LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877test -z "$LN_S" && LN_S="ln -s"
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892if test -n "${ZSH_VERSION+set}" ; then
7893 setopt NO_GLOB_SUBST
7894fi
7895
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7897$as_echo_n "checking for objdir... " >&6; }
7898if test "${lt_cv_objdir+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007900else
7901 rm -f .libs 2>/dev/null
7902mkdir .libs 2>/dev/null
7903if test -d .libs; then
7904 lt_cv_objdir=.libs
7905else
7906 # MS-DOS does not allow filenames that begin with a dot.
7907 lt_cv_objdir=_libs
7908fi
7909rmdir .libs 2>/dev/null
7910fi
jimblandy92b1f832009-12-23 22:23:49 +00007911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7912$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007913objdir=$lt_cv_objdir
7914
7915
7916
7917
7918
jimblandy92b1f832009-12-23 22:23:49 +00007919cat >>confdefs.h <<_ACEOF
7920#define LT_OBJDIR "$lt_cv_objdir/"
7921_ACEOF
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
brynercb91a2f2006-08-25 21:14:45 +00007939case $host_os in
7940aix3*)
7941 # AIX sometimes has problems with the GCC collect2 program. For some
7942 # reason, if we set the COLLECT_NAMES environment variable, the problems
7943 # vanish in a puff of smoke.
7944 if test "X${COLLECT_NAMES+set}" != Xset; then
7945 COLLECT_NAMES=
7946 export COLLECT_NAMES
7947 fi
7948 ;;
7949esac
7950
7951# Sed substitution that helps us do robust quoting. It backslashifies
7952# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00007953sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00007954
7955# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00007956double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00007957
7958# Sed substitution to delay expansion of an escaped shell variable in a
7959# double_quote_subst'ed string.
7960delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7961
jimblandy92b1f832009-12-23 22:23:49 +00007962# Sed substitution to delay expansion of an escaped single quote.
7963delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7964
brynercb91a2f2006-08-25 21:14:45 +00007965# Sed substitution to avoid accidental globbing in evaled expressions
7966no_glob_subst='s/\*/\\\*/g'
7967
brynercb91a2f2006-08-25 21:14:45 +00007968# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00007969ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00007970can_build_shared=yes
7971
mmentovai8c2a4de2006-09-20 16:20:15 +00007972# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00007973# which needs '.lib').
7974libext=a
jimblandy92b1f832009-12-23 22:23:49 +00007975
brynercb91a2f2006-08-25 21:14:45 +00007976with_gnu_ld="$lt_cv_prog_gnu_ld"
7977
brynercb91a2f2006-08-25 21:14:45 +00007978old_CC="$CC"
7979old_CFLAGS="$CFLAGS"
7980
7981# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00007982test -z "$CC" && CC=cc
7983test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00007984test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00007985test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00007986test -z "$ac_objext" && ac_objext=o
7987
mmentovai8c2a4de2006-09-20 16:20:15 +00007988for cc_temp in $compiler""; do
7989 case $cc_temp in
7990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7992 \-*) ;;
7993 *) break;;
7994 esac
7995done
jimblandy92b1f832009-12-23 22:23:49 +00007996cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00007997
7998
brynercb91a2f2006-08-25 21:14:45 +00007999# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008000test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008001case $deplibs_check_method in
8002file_magic*)
8003 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8005$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8006if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008008else
8009 case $MAGIC_CMD in
8010[\\/*] | ?:[\\/]*)
8011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8012 ;;
8013*)
8014 lt_save_MAGIC_CMD="$MAGIC_CMD"
8015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017 for ac_dir in $ac_dummy; do
8018 IFS="$lt_save_ifs"
8019 test -z "$ac_dir" && ac_dir=.
8020 if test -f $ac_dir/${ac_tool_prefix}file; then
8021 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8022 if test -n "$file_magic_test_file"; then
8023 case $deplibs_check_method in
8024 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028 $EGREP "$file_magic_regex" > /dev/null; then
8029 :
8030 else
jimblandy92b1f832009-12-23 22:23:49 +00008031 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008032
8033*** Warning: the command libtool uses to detect shared libraries,
8034*** $file_magic_cmd, produces output that libtool cannot recognize.
8035*** The result is that libtool may fail to recognize shared libraries
8036*** as such. This will affect the creation of libtool libraries that
8037*** depend on shared libraries, but programs linked with such libtool
8038*** libraries will work regardless of this problem. Nevertheless, you
8039*** may want to report the problem to your system manager and/or to
8040*** bug-libtool@gnu.org
8041
jimblandy92b1f832009-12-23 22:23:49 +00008042_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008043 fi ;;
8044 esac
8045 fi
8046 break
8047 fi
8048 done
8049 IFS="$lt_save_ifs"
8050 MAGIC_CMD="$lt_save_MAGIC_CMD"
8051 ;;
8052esac
8053fi
8054
8055MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8058$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008059else
jimblandy92b1f832009-12-23 22:23:49 +00008060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008062fi
8063
jimblandy92b1f832009-12-23 22:23:49 +00008064
8065
8066
8067
brynercb91a2f2006-08-25 21:14:45 +00008068if test -z "$lt_cv_path_MAGIC_CMD"; then
8069 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8071$as_echo_n "checking for file... " >&6; }
8072if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008074else
8075 case $MAGIC_CMD in
8076[\\/*] | ?:[\\/]*)
8077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8078 ;;
8079*)
8080 lt_save_MAGIC_CMD="$MAGIC_CMD"
8081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8083 for ac_dir in $ac_dummy; do
8084 IFS="$lt_save_ifs"
8085 test -z "$ac_dir" && ac_dir=.
8086 if test -f $ac_dir/file; then
8087 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8088 if test -n "$file_magic_test_file"; then
8089 case $deplibs_check_method in
8090 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8094 $EGREP "$file_magic_regex" > /dev/null; then
8095 :
8096 else
jimblandy92b1f832009-12-23 22:23:49 +00008097 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008098
8099*** Warning: the command libtool uses to detect shared libraries,
8100*** $file_magic_cmd, produces output that libtool cannot recognize.
8101*** The result is that libtool may fail to recognize shared libraries
8102*** as such. This will affect the creation of libtool libraries that
8103*** depend on shared libraries, but programs linked with such libtool
8104*** libraries will work regardless of this problem. Nevertheless, you
8105*** may want to report the problem to your system manager and/or to
8106*** bug-libtool@gnu.org
8107
jimblandy92b1f832009-12-23 22:23:49 +00008108_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008109 fi ;;
8110 esac
8111 fi
8112 break
8113 fi
8114 done
8115 IFS="$lt_save_ifs"
8116 MAGIC_CMD="$lt_save_MAGIC_CMD"
8117 ;;
8118esac
8119fi
8120
8121MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8124$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008125else
jimblandy92b1f832009-12-23 22:23:49 +00008126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008128fi
8129
jimblandy92b1f832009-12-23 22:23:49 +00008130
brynercb91a2f2006-08-25 21:14:45 +00008131 else
8132 MAGIC_CMD=:
8133 fi
8134fi
8135
8136 fi
8137 ;;
8138esac
8139
brynercb91a2f2006-08-25 21:14:45 +00008140# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008141
brynercb91a2f2006-08-25 21:14:45 +00008142lt_save_CC="$CC"
8143ac_ext=c
8144ac_cpp='$CPP $CPPFLAGS'
8145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148
8149
8150# Source file extension for C test sources.
8151ac_ext=c
8152
8153# Object file extension for compiled C test sources.
8154objext=o
8155objext=$objext
8156
8157# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008158lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008159
8160# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008161lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008162
8163
jimblandy92b1f832009-12-23 22:23:49 +00008164
8165
8166
8167
8168
brynercb91a2f2006-08-25 21:14:45 +00008169# If no C compiler was specified, use CC.
8170LTCC=${LTCC-"$CC"}
8171
mmentovai8c2a4de2006-09-20 16:20:15 +00008172# If no C compiler flags were specified, use CFLAGS.
8173LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8174
brynercb91a2f2006-08-25 21:14:45 +00008175# Allow CC to be a program name with arguments.
8176compiler=$CC
8177
jimblandy92b1f832009-12-23 22:23:49 +00008178# Save the default compiler, since it gets overwritten when the other
8179# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8180compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008181
mmentovai8c2a4de2006-09-20 16:20:15 +00008182# save warnings/boilerplate of simple test code
8183ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008184echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008185eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008187$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008188
mmentovai8c2a4de2006-09-20 16:20:15 +00008189ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008190echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008191eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008193$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008194
8195
jimblandy92b1f832009-12-23 22:23:49 +00008196if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008197
8198lt_prog_compiler_no_builtin_flag=
8199
8200if test "$GCC" = yes; then
8201 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8202
jimblandy92b1f832009-12-23 22:23:49 +00008203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8204$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8205if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008207else
8208 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008209 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008211 lt_compiler_flag="-fno-rtti -fno-exceptions"
8212 # Insert the option either (1) after the last *FLAGS variable, or
8213 # (2) before a word containing "conftest.", or (3) at the end.
8214 # Note that $ac_compile itself does not contain backslashes and begins
8215 # with a dollar sign (not a hyphen), so the echo should work correctly.
8216 # The option is referenced via a variable to avoid confusing sed.
8217 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220 -e 's:$: $lt_compiler_flag:'`
jimblandy92b1f832009-12-23 22:23:49 +00008221 (eval echo "\"\$as_me:8221: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008222 (eval "$lt_compile" 2>conftest.err)
8223 ac_status=$?
8224 cat conftest.err >&5
jimblandy92b1f832009-12-23 22:23:49 +00008225 echo "$as_me:8225: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008226 if (exit $ac_status) && test -s "$ac_outfile"; then
8227 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008228 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008229 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008232 lt_cv_prog_compiler_rtti_exceptions=yes
8233 fi
8234 fi
jimblandy92b1f832009-12-23 22:23:49 +00008235 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008236
8237fi
jimblandy92b1f832009-12-23 22:23:49 +00008238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8239$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008240
8241if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8243else
8244 :
8245fi
8246
8247fi
8248
jimblandy92b1f832009-12-23 22:23:49 +00008249
8250
8251
8252
8253
8254 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008255lt_prog_compiler_pic=
8256lt_prog_compiler_static=
8257
jimblandy92b1f832009-12-23 22:23:49 +00008258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8259$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008260
8261 if test "$GCC" = yes; then
8262 lt_prog_compiler_wl='-Wl,'
8263 lt_prog_compiler_static='-static'
8264
8265 case $host_os in
8266 aix*)
8267 # All AIX code is PIC.
8268 if test "$host_cpu" = ia64; then
8269 # AIX 5 now supports IA64 processor
8270 lt_prog_compiler_static='-Bstatic'
8271 fi
8272 ;;
8273
8274 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008275 case $host_cpu in
8276 powerpc)
8277 # see comment about AmigaOS4 .so support
8278 lt_prog_compiler_pic='-fPIC'
8279 ;;
8280 m68k)
8281 # FIXME: we need at least 68020 code to build shared libraries, but
8282 # adding the `-m68020' flag to GCC prevents building anything better,
8283 # like `-m68040'.
8284 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8285 ;;
8286 esac
brynercb91a2f2006-08-25 21:14:45 +00008287 ;;
8288
ted.mielczarek1adb1842009-12-21 13:12:20 +00008289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008290 # PIC is the default for these OSes.
8291 ;;
8292
jimblandy92b1f832009-12-23 22:23:49 +00008293 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008294 # This hack is so that the source file can tell whether it is being
8295 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8297 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008298 lt_prog_compiler_pic='-DDLL_EXPORT'
8299 ;;
8300
8301 darwin* | rhapsody*)
8302 # PIC is the default on this platform
8303 # Common symbols not allowed in MH_DYLIB files
8304 lt_prog_compiler_pic='-fno-common'
8305 ;;
8306
jimblandy92b1f832009-12-23 22:23:49 +00008307 hpux*)
8308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8310 # sets the default TLS model and affects inlining.
8311 case $host_cpu in
8312 hppa*64*)
8313 # +Z the default
8314 ;;
8315 *)
8316 lt_prog_compiler_pic='-fPIC'
8317 ;;
8318 esac
8319 ;;
8320
ted.mielczarek1adb1842009-12-21 13:12:20 +00008321 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008322 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8323 # Instead, we relocate shared libraries at runtime.
8324 ;;
8325
brynercb91a2f2006-08-25 21:14:45 +00008326 msdosdjgpp*)
8327 # Just because we use GCC doesn't mean we suddenly get shared libraries
8328 # on systems that don't support them.
8329 lt_prog_compiler_can_build_shared=no
8330 enable_shared=no
8331 ;;
8332
jimblandy92b1f832009-12-23 22:23:49 +00008333 *nto* | *qnx*)
8334 # QNX uses GNU C++, but need to define -shared option too, otherwise
8335 # it will coredump.
8336 lt_prog_compiler_pic='-fPIC -shared'
8337 ;;
8338
brynercb91a2f2006-08-25 21:14:45 +00008339 sysv4*MP*)
8340 if test -d /usr/nec; then
8341 lt_prog_compiler_pic=-Kconform_pic
8342 fi
8343 ;;
8344
brynercb91a2f2006-08-25 21:14:45 +00008345 *)
8346 lt_prog_compiler_pic='-fPIC'
8347 ;;
8348 esac
8349 else
8350 # PORTME Check for flag to pass linker flags through the system compiler.
8351 case $host_os in
8352 aix*)
8353 lt_prog_compiler_wl='-Wl,'
8354 if test "$host_cpu" = ia64; then
8355 # AIX 5 now supports IA64 processor
8356 lt_prog_compiler_static='-Bstatic'
8357 else
8358 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8359 fi
8360 ;;
8361
jimblandy92b1f832009-12-23 22:23:49 +00008362 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008363 # This hack is so that the source file can tell whether it is being
8364 # built for inclusion in a dll (and should export symbols for example).
8365 lt_prog_compiler_pic='-DDLL_EXPORT'
8366 ;;
8367
8368 hpux9* | hpux10* | hpux11*)
8369 lt_prog_compiler_wl='-Wl,'
8370 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8371 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008372 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008373 hppa*64*|ia64*)
8374 # +Z the default
8375 ;;
8376 *)
8377 lt_prog_compiler_pic='+Z'
8378 ;;
8379 esac
8380 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8381 lt_prog_compiler_static='${wl}-a ${wl}archive'
8382 ;;
8383
8384 irix5* | irix6* | nonstopux*)
8385 lt_prog_compiler_wl='-Wl,'
8386 # PIC (with -KPIC) is the default.
8387 lt_prog_compiler_static='-non_shared'
8388 ;;
8389
ted.mielczarek1adb1842009-12-21 13:12:20 +00008390 linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008391 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008392 # old Intel for x86_64 which still supported -KPIC.
8393 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_pic='-KPIC'
8396 lt_prog_compiler_static='-static'
8397 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008398 # icc used to be incompatible with GCC.
8399 # ICC 10 doesn't accept -KPIC any more.
8400 icc* | ifort*)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_pic='-fPIC'
8403 lt_prog_compiler_static='-static'
8404 ;;
8405 # Lahey Fortran 8.1.
8406 lf95*)
8407 lt_prog_compiler_wl='-Wl,'
8408 lt_prog_compiler_pic='--shared'
8409 lt_prog_compiler_static='--static'
8410 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008411 pgcc* | pgf77* | pgf90* | pgf95*)
8412 # Portland Group compilers (*not* the Pentium gcc compiler,
8413 # which looks to be a dead project)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-fpic'
8416 lt_prog_compiler_static='-Bstatic'
8417 ;;
brynercb91a2f2006-08-25 21:14:45 +00008418 ccc*)
8419 lt_prog_compiler_wl='-Wl,'
8420 # All Alpha code is PIC.
8421 lt_prog_compiler_static='-non_shared'
8422 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008423 xl*)
8424 # IBM XL C 8.0/Fortran 10.1 on PPC
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_pic='-qpic'
8427 lt_prog_compiler_static='-qstaticlink'
8428 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008429 *)
jimblandy92b1f832009-12-23 22:23:49 +00008430 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008431 *Sun\ C*)
8432 # Sun C 5.9
8433 lt_prog_compiler_pic='-KPIC'
8434 lt_prog_compiler_static='-Bstatic'
8435 lt_prog_compiler_wl='-Wl,'
8436 ;;
8437 *Sun\ F*)
8438 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 lt_prog_compiler_wl=''
8442 ;;
8443 esac
8444 ;;
brynercb91a2f2006-08-25 21:14:45 +00008445 esac
8446 ;;
8447
jimblandy92b1f832009-12-23 22:23:49 +00008448 newsos6)
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 ;;
8452
8453 *nto* | *qnx*)
8454 # QNX uses GNU C++, but need to define -shared option too, otherwise
8455 # it will coredump.
8456 lt_prog_compiler_pic='-fPIC -shared'
8457 ;;
8458
brynercb91a2f2006-08-25 21:14:45 +00008459 osf3* | osf4* | osf5*)
8460 lt_prog_compiler_wl='-Wl,'
8461 # All OSF/1 code is PIC.
8462 lt_prog_compiler_static='-non_shared'
8463 ;;
8464
ted.mielczarek1adb1842009-12-21 13:12:20 +00008465 rdos*)
8466 lt_prog_compiler_static='-non_shared'
8467 ;;
8468
brynercb91a2f2006-08-25 21:14:45 +00008469 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008472 case $cc_basename in
8473 f77* | f90* | f95*)
8474 lt_prog_compiler_wl='-Qoption ld ';;
8475 *)
8476 lt_prog_compiler_wl='-Wl,';;
8477 esac
brynercb91a2f2006-08-25 21:14:45 +00008478 ;;
8479
8480 sunos4*)
8481 lt_prog_compiler_wl='-Qoption ld '
8482 lt_prog_compiler_pic='-PIC'
8483 lt_prog_compiler_static='-Bstatic'
8484 ;;
8485
mmentovai8c2a4de2006-09-20 16:20:15 +00008486 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-KPIC'
8489 lt_prog_compiler_static='-Bstatic'
8490 ;;
8491
8492 sysv4*MP*)
8493 if test -d /usr/nec ;then
8494 lt_prog_compiler_pic='-Kconform_pic'
8495 lt_prog_compiler_static='-Bstatic'
8496 fi
8497 ;;
8498
mmentovai8c2a4de2006-09-20 16:20:15 +00008499 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-KPIC'
8502 lt_prog_compiler_static='-Bstatic'
8503 ;;
8504
8505 unicos*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_can_build_shared=no
8508 ;;
8509
brynercb91a2f2006-08-25 21:14:45 +00008510 uts4*)
8511 lt_prog_compiler_pic='-pic'
8512 lt_prog_compiler_static='-Bstatic'
8513 ;;
8514
8515 *)
8516 lt_prog_compiler_can_build_shared=no
8517 ;;
8518 esac
8519 fi
8520
jimblandy92b1f832009-12-23 22:23:49 +00008521case $host_os in
8522 # For platforms which do not support PIC, -DPIC is meaningless:
8523 *djgpp*)
8524 lt_prog_compiler_pic=
8525 ;;
8526 *)
8527 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8528 ;;
8529esac
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8531$as_echo "$lt_prog_compiler_pic" >&6; }
8532
8533
8534
8535
8536
brynercb91a2f2006-08-25 21:14:45 +00008537
8538#
8539# Check to make sure the PIC flag actually works.
8540#
8541if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8543$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8544if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008546else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008547 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008548 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008550 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8551 # Insert the option either (1) after the last *FLAGS variable, or
8552 # (2) before a word containing "conftest.", or (3) at the end.
8553 # Note that $ac_compile itself does not contain backslashes and begins
8554 # with a dollar sign (not a hyphen), so the echo should work correctly.
8555 # The option is referenced via a variable to avoid confusing sed.
8556 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
jimblandy92b1f832009-12-23 22:23:49 +00008560 (eval echo "\"\$as_me:8560: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008561 (eval "$lt_compile" 2>conftest.err)
8562 ac_status=$?
8563 cat conftest.err >&5
jimblandy92b1f832009-12-23 22:23:49 +00008564 echo "$as_me:8564: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008565 if (exit $ac_status) && test -s "$ac_outfile"; then
8566 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008567 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008571 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008572 fi
8573 fi
jimblandy92b1f832009-12-23 22:23:49 +00008574 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008575
8576fi
jimblandy92b1f832009-12-23 22:23:49 +00008577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8578$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008579
ted.mielczarek1adb1842009-12-21 13:12:20 +00008580if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008581 case $lt_prog_compiler_pic in
8582 "" | " "*) ;;
8583 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8584 esac
8585else
8586 lt_prog_compiler_pic=
8587 lt_prog_compiler_can_build_shared=no
8588fi
8589
8590fi
jimblandy92b1f832009-12-23 22:23:49 +00008591
8592
8593
8594
8595
brynercb91a2f2006-08-25 21:14:45 +00008596
mmentovai8c2a4de2006-09-20 16:20:15 +00008597#
8598# Check to make sure the static flag actually works.
8599#
8600wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8602$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8603if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008605else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008606 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008607 save_LDFLAGS="$LDFLAGS"
8608 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008609 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008610 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8611 # The linker can only warn and ignore the option if not recognized
8612 # So say no if there are warnings
8613 if test -s conftest.err; then
8614 # Append any errors to the config.log.
8615 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008616 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8618 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008619 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008620 fi
8621 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008622 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008623 fi
8624 fi
jimblandy92b1f832009-12-23 22:23:49 +00008625 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008626 LDFLAGS="$save_LDFLAGS"
8627
8628fi
jimblandy92b1f832009-12-23 22:23:49 +00008629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8630$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008631
ted.mielczarek1adb1842009-12-21 13:12:20 +00008632if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008633 :
8634else
8635 lt_prog_compiler_static=
8636fi
8637
8638
jimblandy92b1f832009-12-23 22:23:49 +00008639
8640
8641
8642
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8645$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8646if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008648else
8649 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008650 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008651 mkdir conftest
8652 cd conftest
8653 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008655
8656 lt_compiler_flag="-o out/conftest2.$ac_objext"
8657 # Insert the option either (1) after the last *FLAGS variable, or
8658 # (2) before a word containing "conftest.", or (3) at the end.
8659 # Note that $ac_compile itself does not contain backslashes and begins
8660 # with a dollar sign (not a hyphen), so the echo should work correctly.
8661 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664 -e 's:$: $lt_compiler_flag:'`
jimblandy92b1f832009-12-23 22:23:49 +00008665 (eval echo "\"\$as_me:8665: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008666 (eval "$lt_compile" 2>out/conftest.err)
8667 ac_status=$?
8668 cat out/conftest.err >&5
jimblandy92b1f832009-12-23 22:23:49 +00008669 echo "$as_me:8669: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8671 then
8672 # The compiler can only warn and ignore the option if not recognized
8673 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008674 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008677 lt_cv_prog_compiler_c_o=yes
8678 fi
8679 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008680 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008681 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008682 # SGI C++ compiler will create directory out/ii_files/ for
8683 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8685 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008686 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008687 $RM -r conftest
8688 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008689
8690fi
jimblandy92b1f832009-12-23 22:23:49 +00008691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8692$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8693
8694
8695
8696
8697
8698
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8700$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8701if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8703else
8704 lt_cv_prog_compiler_c_o=no
8705 $RM -r conftest 2>/dev/null
8706 mkdir conftest
8707 cd conftest
8708 mkdir out
8709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8710
8711 lt_compiler_flag="-o out/conftest2.$ac_objext"
8712 # Insert the option either (1) after the last *FLAGS variable, or
8713 # (2) before a word containing "conftest.", or (3) at the end.
8714 # Note that $ac_compile itself does not contain backslashes and begins
8715 # with a dollar sign (not a hyphen), so the echo should work correctly.
8716 lt_compile=`echo "$ac_compile" | $SED \
8717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719 -e 's:$: $lt_compiler_flag:'`
8720 (eval echo "\"\$as_me:8720: $lt_compile\"" >&5)
8721 (eval "$lt_compile" 2>out/conftest.err)
8722 ac_status=$?
8723 cat out/conftest.err >&5
8724 echo "$as_me:8724: \$? = $ac_status" >&5
8725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8726 then
8727 # The compiler can only warn and ignore the option if not recognized
8728 # So say no if there are warnings
8729 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8732 lt_cv_prog_compiler_c_o=yes
8733 fi
8734 fi
8735 chmod u+w . 2>&5
8736 $RM conftest*
8737 # SGI C++ compiler will create directory out/ii_files/ for
8738 # template instantiation
8739 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8740 $RM out/* && rmdir out
8741 cd ..
8742 $RM -r conftest
8743 $RM conftest*
8744
8745fi
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8747$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8748
8749
brynercb91a2f2006-08-25 21:14:45 +00008750
8751
8752hard_links="nottested"
8753if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8754 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8756$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008757 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008758 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8760 touch conftest.a
8761 ln conftest.a conftest.b 2>&5 || hard_links=no
8762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8764$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008765 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8767$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008768 need_locks=warn
8769 fi
8770else
8771 need_locks=no
8772fi
8773
jimblandy92b1f832009-12-23 22:23:49 +00008774
8775
8776
8777
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8780$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008781
8782 runpath_var=
8783 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008784 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008785 archive_cmds=
8786 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008787 compiler_needs_object=no
8788 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008789 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8791 hardcode_automatic=no
8792 hardcode_direct=no
8793 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008794 hardcode_libdir_flag_spec=
8795 hardcode_libdir_flag_spec_ld=
8796 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008797 hardcode_minus_L=no
8798 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008799 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008800 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008801 module_cmds=
8802 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008803 old_archive_from_new_cmds=
8804 old_archive_from_expsyms_cmds=
8805 thread_safe_flag_spec=
8806 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008807 # include_expsyms should be a list of space-separated symbols to be *always*
8808 # included in the symbol list
8809 include_expsyms=
8810 # exclude_expsyms can be an extended regexp of symbols to exclude
8811 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8812 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8813 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008814 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008815 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8816 # platforms (ab)use it in PIC code, but their linkers get confused if
8817 # the symbol is explicitly referenced. Since portable code cannot
8818 # rely on this symbol name, it's probably fine to never include it in
8819 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008820 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008821 extract_expsyms_cmds=
8822
8823 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008824 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8826 # When not using gcc, we currently assume that we are using
8827 # Microsoft Visual C++.
8828 if test "$GCC" != yes; then
8829 with_gnu_ld=no
8830 fi
8831 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008832 interix*)
8833 # we just hope/assume this is gcc and not c89 (= MSVC++)
8834 with_gnu_ld=yes
8835 ;;
brynercb91a2f2006-08-25 21:14:45 +00008836 openbsd*)
8837 with_gnu_ld=no
8838 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008839 linux* | k*bsd*-gnu)
8840 link_all_deplibs=no
8841 ;;
brynercb91a2f2006-08-25 21:14:45 +00008842 esac
8843
8844 ld_shlibs=yes
8845 if test "$with_gnu_ld" = yes; then
8846 # If archive_cmds runs LD, not CC, wlarc should be empty
8847 wlarc='${wl}'
8848
mmentovai8c2a4de2006-09-20 16:20:15 +00008849 # Set some defaults for GNU ld with shared library support. These
8850 # are reset later if shared libraries are not supported. Putting them
8851 # here allows them to be overridden if necessary.
8852 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008854 export_dynamic_flag_spec='${wl}--export-dynamic'
8855 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8857 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8858 else
8859 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008860 fi
8861 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008862 case `$LD -v 2>&1` in
mmentovai8c2a4de2006-09-20 16:20:15 +00008863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8866 *\ 2.11.*) ;; # other 2.11 versions
8867 *) supports_anon_versioning=yes ;;
8868 esac
8869
brynercb91a2f2006-08-25 21:14:45 +00008870 # See if GNU ld supports shared libraries.
8871 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008872 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008873 # On AIX/PPC, the GNU linker is very broken
8874 if test "$host_cpu" != ia64; then
8875 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008876 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008877
8878*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8879*** to be unable to reliably create shared libraries on AIX.
8880*** Therefore, libtool is disabling shared libraries support. If you
8881*** really care for shared libraries, you may want to modify your PATH
8882*** so that a non-GNU linker is found, and then restart.
8883
jimblandy92b1f832009-12-23 22:23:49 +00008884_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008885 fi
8886 ;;
8887
8888 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008889 case $host_cpu in
8890 powerpc)
8891 # see comment about AmigaOS4 .so support
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 archive_expsym_cmds=''
8894 ;;
8895 m68k)
8896 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)'
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_minus_L=yes
8899 ;;
8900 esac
brynercb91a2f2006-08-25 21:14:45 +00008901 ;;
8902
8903 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00008904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008905 allow_undefined_flag=unsupported
8906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8907 # support --undefined. This deserves some investigation. FIXME
8908 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909 else
8910 ld_shlibs=no
8911 fi
8912 ;;
8913
jimblandy92b1f832009-12-23 22:23:49 +00008914 cygwin* | mingw* | pw32* | cegcc*)
8915 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00008916 # as there is no search path for DLLs.
8917 hardcode_libdir_flag_spec='-L$libdir'
8918 allow_undefined_flag=unsupported
8919 always_export_symbols=no
8920 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00008921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00008922
jimblandy92b1f832009-12-23 22:23:49 +00008923 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00008925 # If the export-symbols file already is a .def file (1st line
8926 # is EXPORTS), use it as is; otherwise, prepend...
8927 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8928 cp $export_symbols $output_objdir/$soname.def;
8929 else
8930 echo EXPORTS > $output_objdir/$soname.def;
8931 cat $export_symbols >> $output_objdir/$soname.def;
8932 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00008933 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00008934 else
8935 ld_shlibs=no
8936 fi
8937 ;;
8938
ted.mielczarek1adb1842009-12-21 13:12:20 +00008939 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008940 hardcode_direct=no
8941 hardcode_shlibpath_var=no
8942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8943 export_dynamic_flag_spec='${wl}-E'
8944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8945 # Instead, shared libraries are loaded at an image base (0x10000000 by
8946 # default) and relocated if they conflict, which is a slow very memory
8947 # consuming and fragmenting process. To avoid this, we pick a random,
8948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8951 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'
8952 ;;
8953
jimblandy92b1f832009-12-23 22:23:49 +00008954 gnu* | linux* | tpf* | k*bsd*-gnu)
8955 tmp_diet=no
8956 if test "$host_os" = linux-dietlibc; then
8957 case $cc_basename in
8958 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8959 esac
8960 fi
8961 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8962 && test "$tmp_diet" = no
8963 then
mmentovai8c2a4de2006-09-20 16:20:15 +00008964 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00008965 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008966 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00008967 pgcc*) # Portland Group C compiler
8968 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'
mmentovai8c2a4de2006-09-20 16:20:15 +00008969 tmp_addflag=' $pic_flag'
8970 ;;
8971 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00008972 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'
mmentovai8c2a4de2006-09-20 16:20:15 +00008973 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00008974 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00008975 tmp_addflag=' -i_dynamic' ;;
8976 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8977 tmp_addflag=' -i_dynamic -nofor_main' ;;
8978 ifc* | ifort*) # Intel Fortran compiler
8979 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00008980 lf95*) # Lahey Fortran 8.1
8981 whole_archive_flag_spec=
8982 tmp_sharedflag='--shared' ;;
8983 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8984 tmp_sharedflag='-qmkshrobj'
8985 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008986 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00008987 case `$CC -V 2>&1 | sed 5q` in
8988 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00008989 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'
8990 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00008991 tmp_sharedflag='-G' ;;
8992 *Sun\ F*) # Sun Fortran 8.3
8993 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008994 esac
8995 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00008996
jimblandy92b1f832009-12-23 22:23:49 +00008997 if test "x$supports_anon_versioning" = xyes; then
8998 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9000 echo "local: *; };" >> $output_objdir/$libname.ver~
9001 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9002 fi
9003
9004 case $cc_basename in
9005 xlf*)
9006 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9007 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9008 hardcode_libdir_flag_spec=
9009 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9010 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9011 if test "x$supports_anon_versioning" = xyes; then
9012 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9014 echo "local: *; };" >> $output_objdir/$libname.ver~
9015 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9016 fi
9017 ;;
9018 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009019 else
jimblandy92b1f832009-12-23 22:23:49 +00009020 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009021 fi
9022 ;;
9023
jimblandy92b1f832009-12-23 22:23:49 +00009024 netbsd* | netbsdelf*-gnu)
9025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009026 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9027 wlarc=
9028 else
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 fi
9032 ;;
9033
mmentovai8c2a4de2006-09-20 16:20:15 +00009034 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009035 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009036 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009037 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009038
9039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9040*** create shared libraries on Solaris systems. Therefore, libtool
9041*** is disabling shared libraries support. We urge you to upgrade GNU
9042*** binutils to release 2.9.1 or newer. Another option is to modify
9043*** your PATH or compiler configuration so that the native linker is
9044*** used, and then restart.
9045
jimblandy92b1f832009-12-23 22:23:49 +00009046_LT_EOF
9047 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9050 else
9051 ld_shlibs=no
9052 fi
9053 ;;
9054
mmentovai8c2a4de2006-09-20 16:20:15 +00009055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9056 case `$LD -v 2>&1` in
9057 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9058 ld_shlibs=no
9059 cat <<_LT_EOF 1>&2
9060
9061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9062*** reliably create shared libraries on SCO systems. Therefore, libtool
9063*** is disabling shared libraries support. We urge you to upgrade GNU
9064*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9065*** your PATH or compiler configuration so that the native linker is
9066*** used, and then restart.
9067
9068_LT_EOF
9069 ;;
9070 *)
jimblandy92b1f832009-12-23 22:23:49 +00009071 # For security reasons, it is highly recommended that you always
9072 # use absolute paths for naming shared libraries, and exclude the
9073 # DT_RUNPATH tag from executables and libraries. But doing so
9074 # requires that you compile everything twice, which is a pain.
9075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009079 else
9080 ld_shlibs=no
9081 fi
9082 ;;
9083 esac
9084 ;;
9085
brynercb91a2f2006-08-25 21:14:45 +00009086 sunos4*)
9087 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9088 wlarc=
9089 hardcode_direct=yes
9090 hardcode_shlibpath_var=no
9091 ;;
9092
brynercb91a2f2006-08-25 21:14:45 +00009093 *)
jimblandy92b1f832009-12-23 22:23:49 +00009094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9097 else
9098 ld_shlibs=no
9099 fi
9100 ;;
9101 esac
9102
mmentovai8c2a4de2006-09-20 16:20:15 +00009103 if test "$ld_shlibs" = no; then
9104 runpath_var=
9105 hardcode_libdir_flag_spec=
9106 export_dynamic_flag_spec=
9107 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009108 fi
9109 else
9110 # PORTME fill in a description of your system's linker (not GNU ld)
9111 case $host_os in
9112 aix3*)
9113 allow_undefined_flag=unsupported
9114 always_export_symbols=yes
9115 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'
9116 # Note: this linker hardcodes the directories in LIBPATH if there
9117 # are no directories specified by -L.
9118 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009119 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009120 # Neither direct hardcoding nor static linking is supported with a
9121 # broken collect2.
9122 hardcode_direct=unsupported
9123 fi
9124 ;;
9125
ted.mielczarek1adb1842009-12-21 13:12:20 +00009126 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009127 if test "$host_cpu" = ia64; then
9128 # On IA64, the linker does run time linking by default, so we don't
9129 # have to do anything special.
9130 aix_use_runtimelinking=no
9131 exp_sym_flag='-Bexport'
9132 no_entry_flag=""
9133 else
9134 # If we're using GNU nm, then we don't want the "-C" option.
9135 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009136 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9137 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'
brynercb91a2f2006-08-25 21:14:45 +00009138 else
jimblandy92b1f832009-12-23 22:23:49 +00009139 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'
brynercb91a2f2006-08-25 21:14:45 +00009140 fi
9141 aix_use_runtimelinking=no
9142
9143 # Test if we are trying to use run time linking or normal
9144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9145 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009146 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009147 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9149 aix_use_runtimelinking=yes
9150 break
9151 fi
brynercb91a2f2006-08-25 21:14:45 +00009152 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009153 ;;
brynercb91a2f2006-08-25 21:14:45 +00009154 esac
9155
9156 exp_sym_flag='-bexport'
9157 no_entry_flag='-bnoentry'
9158 fi
9159
9160 # When large executables or shared objects are built, AIX ld can
9161 # have problems creating the table of contents. If linking a library
9162 # or program results in "error TOC overflow" add -mminimal-toc to
9163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9165
9166 archive_cmds=''
9167 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009168 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009169 hardcode_libdir_separator=':'
9170 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009171 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009172
9173 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009174 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009175 # We only want to do this on AIX 4.2 and lower, the check
9176 # below for broken collect2 doesn't work under 4.3+
9177 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009178 if test -f "$collect2name" &&
9179 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009180 then
jimblandy92b1f832009-12-23 22:23:49 +00009181 # We have reworked collect2
9182 :
brynercb91a2f2006-08-25 21:14:45 +00009183 else
jimblandy92b1f832009-12-23 22:23:49 +00009184 # We have old collect2
9185 hardcode_direct=unsupported
9186 # It fails to find uninstalled libraries when the uninstalled
9187 # path is not listed in the libpath. Setting hardcode_minus_L
9188 # to unsupported forces relinking
9189 hardcode_minus_L=yes
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009192 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009193 ;;
brynercb91a2f2006-08-25 21:14:45 +00009194 esac
9195 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009196 if test "$aix_use_runtimelinking" = yes; then
9197 shared_flag="$shared_flag "'${wl}-G'
9198 fi
jimblandy92b1f832009-12-23 22:23:49 +00009199 link_all_deplibs=no
brynercb91a2f2006-08-25 21:14:45 +00009200 else
9201 # not using gcc
9202 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009203 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9204 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009205 shared_flag='-G'
9206 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009207 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009208 shared_flag='${wl}-G'
9209 else
9210 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009211 fi
brynercb91a2f2006-08-25 21:14:45 +00009212 fi
9213 fi
9214
jimblandy92b1f832009-12-23 22:23:49 +00009215 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009216 # It seems that -bexpall does not export symbols beginning with
9217 # underscore (_), so it is better to generate a list of symbols to export.
9218 always_export_symbols=yes
9219 if test "$aix_use_runtimelinking" = yes; then
9220 # Warning - without using the other runtime loading flags (-brtl),
9221 # -berok will link without error, but may produce a broken library.
9222 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009223 # Determine the default libpath from the value encoded in an
9224 # empty executable.
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009226/* end confdefs.h. */
9227
9228int
9229main ()
9230{
9231
9232 ;
9233 return 0;
9234}
9235_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009236if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009237
ted.mielczarek1adb1842009-12-21 13:12:20 +00009238lt_aix_libpath_sed='
9239 /Import File Strings/,/^$/ {
9240 /^0/ {
9241 s/^0 *\(.*\)$/\1/
9242 p
9243 }
9244 }'
9245aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009246# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009247if test -z "$aix_libpath"; then
9248 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249fi
brynercb91a2f2006-08-25 21:14:45 +00009250fi
jimblandy92b1f832009-12-23 22:23:49 +00009251rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009253if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9254
jimblandy92b1f832009-12-23 22:23:49 +00009255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9256 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"
9257 else
brynercb91a2f2006-08-25 21:14:45 +00009258 if test "$host_cpu" = ia64; then
9259 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9260 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009261 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"
brynercb91a2f2006-08-25 21:14:45 +00009262 else
jimblandy92b1f832009-12-23 22:23:49 +00009263 # Determine the default libpath from the value encoded in an
9264 # empty executable.
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009266/* end confdefs.h. */
9267
9268int
9269main ()
9270{
9271
9272 ;
9273 return 0;
9274}
9275_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009276if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009277
ted.mielczarek1adb1842009-12-21 13:12:20 +00009278lt_aix_libpath_sed='
9279 /Import File Strings/,/^$/ {
9280 /^0/ {
9281 s/^0 *\(.*\)$/\1/
9282 p
9283 }
9284 }'
9285aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009286# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009287if test -z "$aix_libpath"; then
9288 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9289fi
brynercb91a2f2006-08-25 21:14:45 +00009290fi
jimblandy92b1f832009-12-23 22:23:49 +00009291rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009293if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9294
9295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9296 # Warning - without using the other run time loading flags,
9297 # -berok will link without error, but may produce a broken library.
9298 no_undefined_flag=' ${wl}-bernotok'
9299 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009300 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009301 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009302 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009303 # This is similar to how AIX traditionally builds its shared libraries.
9304 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'
brynercb91a2f2006-08-25 21:14:45 +00009305 fi
9306 fi
9307 ;;
9308
9309 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009310 case $host_cpu in
9311 powerpc)
9312 # see comment about AmigaOS4 .so support
9313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9314 archive_expsym_cmds=''
9315 ;;
9316 m68k)
9317 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)'
9318 hardcode_libdir_flag_spec='-L$libdir'
9319 hardcode_minus_L=yes
9320 ;;
9321 esac
brynercb91a2f2006-08-25 21:14:45 +00009322 ;;
9323
mmentovai8c2a4de2006-09-20 16:20:15 +00009324 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009325 export_dynamic_flag_spec=-rdynamic
9326 ;;
9327
jimblandy92b1f832009-12-23 22:23:49 +00009328 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009329 # When not using gcc, we currently assume that we are using
9330 # Microsoft Visual C++.
9331 # hardcode_libdir_flag_spec is actually meaningless, as there is
9332 # no search path for DLLs.
9333 hardcode_libdir_flag_spec=' '
9334 allow_undefined_flag=unsupported
9335 # Tell ltmain to make .lib files, not .a files.
9336 libext=lib
9337 # Tell ltmain to make .dll files, not .so files.
9338 shrext_cmds=".dll"
9339 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009340 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009341 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009342 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009343 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009344 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009345 fix_srcfile_path='`cygpath -w "$srcfile"`'
9346 enable_shared_with_static_runtimes=yes
9347 ;;
9348
9349 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009350
9351
9352 archive_cmds_need_lc=no
9353 hardcode_direct=no
9354 hardcode_automatic=yes
9355 hardcode_shlibpath_var=unsupported
9356 whole_archive_flag_spec=''
9357 link_all_deplibs=yes
9358 allow_undefined_flag="$_lt_dar_allow_undefined"
9359 case $cc_basename in
9360 ifort*) _lt_dar_can_shared=yes ;;
9361 *) _lt_dar_can_shared=$GCC ;;
9362 esac
9363 if test "$_lt_dar_can_shared" = "yes"; then
9364 output_verbose_link_cmd=echo
9365 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9366 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9367 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}"
9368 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}"
9369
9370 else
9371 ld_shlibs=no
9372 fi
9373
brynercb91a2f2006-08-25 21:14:45 +00009374 ;;
9375
9376 dgux*)
9377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 freebsd1*)
9383 ld_shlibs=no
9384 ;;
9385
9386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9387 # support. Future versions do this automatically, but an explicit c++rt0.o
9388 # does not break anything, and helps significantly (at the cost of a little
9389 # extra space).
9390 freebsd2.2*)
9391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9392 hardcode_libdir_flag_spec='-R$libdir'
9393 hardcode_direct=yes
9394 hardcode_shlibpath_var=no
9395 ;;
9396
9397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9398 freebsd2*)
9399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_direct=yes
9401 hardcode_minus_L=yes
9402 hardcode_shlibpath_var=no
9403 ;;
9404
9405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009406 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009407 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9408 hardcode_libdir_flag_spec='-R$libdir'
9409 hardcode_direct=yes
9410 hardcode_shlibpath_var=no
9411 ;;
9412
9413 hpux9*)
9414 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009415 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'
brynercb91a2f2006-08-25 21:14:45 +00009416 else
jimblandy92b1f832009-12-23 22:23:49 +00009417 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'
brynercb91a2f2006-08-25 21:14:45 +00009418 fi
9419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9420 hardcode_libdir_separator=:
9421 hardcode_direct=yes
9422
9423 # hardcode_minus_L: Not really in the search PATH,
9424 # but as the default location of the library.
9425 hardcode_minus_L=yes
9426 export_dynamic_flag_spec='${wl}-E'
9427 ;;
9428
mmentovai8c2a4de2006-09-20 16:20:15 +00009429 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9432 else
9433 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9434 fi
9435 if test "$with_gnu_ld" = no; then
9436 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009437 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009438 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009439 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009440 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009441 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009442 # hardcode_minus_L: Not really in the search PATH,
9443 # but as the default location of the library.
9444 hardcode_minus_L=yes
9445 fi
9446 ;;
9447
9448 hpux11*)
9449 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9450 case $host_cpu in
9451 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009452 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009454 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009455 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009456 ;;
brynercb91a2f2006-08-25 21:14:45 +00009457 *)
9458 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9459 ;;
9460 esac
9461 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009462 case $host_cpu in
9463 hppa*64*)
9464 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 ;;
9466 ia64*)
9467 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009468 ;;
9469 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009470 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009471 ;;
9472 esac
9473 fi
9474 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9476 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009477
mmentovai8c2a4de2006-09-20 16:20:15 +00009478 case $host_cpu in
9479 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009480 hardcode_direct=no
9481 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009482 ;;
brynercb91a2f2006-08-25 21:14:45 +00009483 *)
brynercb91a2f2006-08-25 21:14:45 +00009484 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009485 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009486 export_dynamic_flag_spec='${wl}-E'
9487
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 ;;
9492 esac
9493 fi
9494 ;;
9495
9496 irix5* | irix6* | nonstopux*)
9497 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009498 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'
9499 # Try to use the -exported_symbol ld option, if it does not
9500 # work, assume that -exports_file does not work either and
9501 # implicitly export all symbols.
9502 save_LDFLAGS="$LDFLAGS"
9503 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505/* end confdefs.h. */
9506int foo(void) {}
9507_ACEOF
9508if ac_fn_c_try_link "$LINENO"; then :
9509 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'
9510
9511fi
9512rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009515 else
jimblandy92b1f832009-12-23 22:23:49 +00009516 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'
9517 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'
brynercb91a2f2006-08-25 21:14:45 +00009518 fi
jimblandy92b1f832009-12-23 22:23:49 +00009519 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009522 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009523 link_all_deplibs=yes
9524 ;;
9525
jimblandy92b1f832009-12-23 22:23:49 +00009526 netbsd* | netbsdelf*-gnu)
9527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9529 else
9530 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9531 fi
9532 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9535 ;;
9536
9537 newsos6)
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_direct=yes
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 hardcode_libdir_separator=:
9542 hardcode_shlibpath_var=no
9543 ;;
9544
jimblandy92b1f832009-12-23 22:23:49 +00009545 *nto* | *qnx*)
9546 ;;
9547
brynercb91a2f2006-08-25 21:14:45 +00009548 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009549 if test -f /usr/libexec/ld.so; then
9550 hardcode_direct=yes
9551 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009552 hardcode_direct_absolute=yes
9553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00009554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557 export_dynamic_flag_spec='${wl}-E'
9558 else
9559 case $host_os in
9560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='-R$libdir'
9563 ;;
9564 *)
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567 ;;
9568 esac
jimblandy92b1f832009-12-23 22:23:49 +00009569 fi
brynercb91a2f2006-08-25 21:14:45 +00009570 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009571 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009572 fi
9573 ;;
9574
9575 os2*)
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_minus_L=yes
9578 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009579 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'
9580 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009581 ;;
9582
9583 osf3*)
9584 if test "$GCC" = yes; then
9585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009586 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'
brynercb91a2f2006-08-25 21:14:45 +00009587 else
9588 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009589 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'
brynercb91a2f2006-08-25 21:14:45 +00009590 fi
jimblandy92b1f832009-12-23 22:23:49 +00009591 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009592 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593 hardcode_libdir_separator=:
9594 ;;
9595
9596 osf4* | osf5*) # as osf3* with the addition of -msym flag
9597 if test "$GCC" = yes; then
9598 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009599 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'
brynercb91a2f2006-08-25 21:14:45 +00009600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 else
9602 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009603 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'
9604 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~
9605 $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'
brynercb91a2f2006-08-25 21:14:45 +00009606
9607 # Both c and cxx compiler support -rpath directly
9608 hardcode_libdir_flag_spec='-rpath $libdir'
9609 fi
jimblandy92b1f832009-12-23 22:23:49 +00009610 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009611 hardcode_libdir_separator=:
9612 ;;
9613
brynercb91a2f2006-08-25 21:14:45 +00009614 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009615 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009616 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009617 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009618 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +00009621 else
jimblandy92b1f832009-12-23 22:23:49 +00009622 case `$CC -V 2>&1` in
9623 *"Compilers 5.0"*)
9624 wlarc=''
9625 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9628 ;;
9629 *)
9630 wlarc='${wl}'
9631 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9634 ;;
9635 esac
brynercb91a2f2006-08-25 21:14:45 +00009636 fi
9637 hardcode_libdir_flag_spec='-R$libdir'
9638 hardcode_shlibpath_var=no
9639 case $host_os in
9640 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009641 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009642 # The compiler driver will combine and reorder linker options,
9643 # but understands `-z linker_flag'. GCC discards it without `$wl',
9644 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009645 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009646 if test "$GCC" = yes; then
9647 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9648 else
9649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9650 fi
9651 ;;
brynercb91a2f2006-08-25 21:14:45 +00009652 esac
9653 link_all_deplibs=yes
9654 ;;
9655
9656 sunos4*)
9657 if test "x$host_vendor" = xsequent; then
9658 # Use $CC to link under sequent, because it throws in some extra .o
9659 # files that make .init and .fini sections work.
9660 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9661 else
9662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9663 fi
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_direct=yes
9666 hardcode_minus_L=yes
9667 hardcode_shlibpath_var=no
9668 ;;
9669
9670 sysv4)
9671 case $host_vendor in
9672 sni)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_direct=yes # is this really true???
9675 ;;
9676 siemens)
9677 ## LD is ld it makes a PLAMLIB
9678 ## CC just makes a GrossModule.
9679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9680 reload_cmds='$CC -r -o $output$reload_objs'
9681 hardcode_direct=no
9682 ;;
9683 motorola)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9686 ;;
9687 esac
9688 runpath_var='LD_RUN_PATH'
9689 hardcode_shlibpath_var=no
9690 ;;
9691
9692 sysv4.3*)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_shlibpath_var=no
9695 export_dynamic_flag_spec='-Bexport'
9696 ;;
9697
9698 sysv4*MP*)
9699 if test -d /usr/nec; then
9700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_shlibpath_var=no
9702 runpath_var=LD_RUN_PATH
9703 hardcode_runpath_var=yes
9704 ld_shlibs=yes
9705 fi
9706 ;;
9707
ted.mielczarek1adb1842009-12-21 13:12:20 +00009708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009709 no_undefined_flag='${wl}-z,text'
9710 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009711 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009712 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009713
mmentovai3261e8b2006-09-06 02:56:44 +00009714 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009715 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009717 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009718 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009720 fi
brynerd5e66382006-09-08 02:35:53 +00009721 ;;
9722
mmentovai8c2a4de2006-09-20 16:20:15 +00009723 sysv5* | sco3.2v5* | sco5v6*)
9724 # Note: We can NOT use -z defs as we might desire, because we do not
9725 # link with -lc, and that would cause any symbols used from libc to
9726 # always be unresolved, which means just about no library would
9727 # ever link correctly. If we're not using GNU ld we use -z text
9728 # though, which does catch some bad symbols but isn't as heavy-handed
9729 # as -z defs.
9730 no_undefined_flag='${wl}-z,text'
9731 allow_undefined_flag='${wl}-z,nodefs'
9732 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009733 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009734 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009735 hardcode_libdir_separator=':'
9736 link_all_deplibs=yes
9737 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009738 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009739
9740 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009741 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009743 else
jimblandy92b1f832009-12-23 22:23:49 +00009744 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009746 fi
brynercb91a2f2006-08-25 21:14:45 +00009747 ;;
9748
9749 uts4*)
9750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_shlibpath_var=no
9753 ;;
9754
9755 *)
9756 ld_shlibs=no
9757 ;;
9758 esac
jimblandy92b1f832009-12-23 22:23:49 +00009759
9760 if test x$host_vendor = xsni; then
9761 case $host in
9762 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9763 export_dynamic_flag_spec='${wl}-Blargedynsym'
9764 ;;
9765 esac
9766 fi
brynercb91a2f2006-08-25 21:14:45 +00009767 fi
9768
jimblandy92b1f832009-12-23 22:23:49 +00009769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9770$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009771test "$ld_shlibs" = no && can_build_shared=no
9772
jimblandy92b1f832009-12-23 22:23:49 +00009773with_gnu_ld=$with_gnu_ld
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
brynercb91a2f2006-08-25 21:14:45 +00009789#
9790# Do we need to explicitly link libc?
9791#
9792case "x$archive_cmds_need_lc" in
9793x|xyes)
9794 # Assume -lc should be added
9795 archive_cmds_need_lc=yes
9796
9797 if test "$enable_shared" = yes && test "$GCC" = yes; then
9798 case $archive_cmds in
9799 *'~'*)
9800 # FIXME: we may have to deal with multi-command sequences.
9801 ;;
9802 '$CC '*)
9803 # Test whether the compiler implicitly links with -lc since on some
9804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9805 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9807$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9808 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009810
jimblandy92b1f832009-12-23 22:23:49 +00009811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009812 (eval $ac_compile) 2>&5
9813 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009816 soname=conftest
9817 lib=conftest
9818 libobjs=conftest.$ac_objext
9819 deplibs=
9820 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009821 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009822 compiler_flags=-v
9823 linker_flags=-v
9824 verstring=
9825 output_objdir=.
9826 libname=conftest
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009831 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009834 then
9835 archive_cmds_need_lc=no
9836 else
9837 archive_cmds_need_lc=yes
9838 fi
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9840 else
9841 cat conftest.err 1>&5
9842 fi
jimblandy92b1f832009-12-23 22:23:49 +00009843 $RM conftest*
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9845$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009846 ;;
9847 esac
9848 fi
9849 ;;
9850esac
9851
jimblandy92b1f832009-12-23 22:23:49 +00009852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10009$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010010
brynercb91a2f2006-08-25 21:14:45 +000010011if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010012 case $host_os in
10013 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10014 *) lt_awk_arg="/^libraries:/" ;;
10015 esac
10016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
jimblandy92b1f832009-12-23 22:23:49 +000010017 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010018 # if the path contains ";" then we assume it to be the separator
10019 # otherwise default to the standard path separator (i.e. ":") - it is
10020 # assumed that no part of a normal pathname contains ";" but that should
10021 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010022 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010023 else
jimblandy92b1f832009-12-23 22:23:49 +000010024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010025 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010026 # Ok, now we have the path, separated by spaces, we can step through it
10027 # and add multilib dir if necessary.
10028 lt_tmp_lt_search_path_spec=
10029 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10030 for lt_sys_path in $lt_search_path_spec; do
10031 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10033 else
10034 test -d "$lt_sys_path" && \
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10036 fi
10037 done
jimblandy92b1f832009-12-23 22:23:49 +000010038 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010039BEGIN {RS=" "; FS="/|\n";} {
10040 lt_foo="";
10041 lt_count=0;
10042 for (lt_i = NF; lt_i > 0; lt_i--) {
10043 if ($lt_i != "" && $lt_i != ".") {
10044 if ($lt_i == "..") {
10045 lt_count++;
10046 } else {
10047 if (lt_count == 0) {
10048 lt_foo="/" $lt_i lt_foo;
10049 } else {
10050 lt_count--;
10051 }
10052 }
10053 }
10054 }
10055 if (lt_foo != "") { lt_freq[lt_foo]++; }
10056 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10057}'`
jimblandy92b1f832009-12-23 22:23:49 +000010058 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010059else
10060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10061fi
jimblandy92b1f832009-12-23 22:23:49 +000010062library_names_spec=
10063libname_spec='lib$name'
10064soname_spec=
10065shrext_cmds=".so"
10066postinstall_cmds=
10067postuninstall_cmds=
10068finish_cmds=
10069finish_eval=
10070shlibpath_var=
10071shlibpath_overrides_runpath=unknown
10072version_type=none
10073dynamic_linker="$host_os ld.so"
10074sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010075need_lib_prefix=unknown
10076hardcode_into_libs=no
10077
10078# when you set need_version to no, make sure it does not cause -set_version
10079# flags to be left without arguments
10080need_version=unknown
10081
10082case $host_os in
10083aix3*)
10084 version_type=linux
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10086 shlibpath_var=LIBPATH
10087
10088 # AIX 3 has no versioning support, so we append a major version to the name.
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 ;;
10091
ted.mielczarek1adb1842009-12-21 13:12:20 +000010092aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010093 version_type=linux
10094 need_lib_prefix=no
10095 need_version=no
10096 hardcode_into_libs=yes
10097 if test "$host_cpu" = ia64; then
10098 # AIX 5 supports IA64
10099 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 else
10102 # With GCC up to 2.95.x, collect2 would create an import file
10103 # for dependence libraries. The import file would start with
10104 # the line `#! .'. This would cause the generated library to
10105 # depend on `.', always an invalid library. This was fixed in
10106 # development snapshots of GCC prior to 3.0.
10107 case $host_os in
10108 aix4 | aix4.[01] | aix4.[01].*)
10109 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10110 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010111 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010112 :
10113 else
10114 can_build_shared=no
10115 fi
10116 ;;
10117 esac
10118 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10119 # soname into executable. Probably we can add versioning support to
10120 # collect2, so additional links can be useful in future.
10121 if test "$aix_use_runtimelinking" = yes; then
10122 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10123 # instead of lib<name>.a to let people know that these are not
10124 # typical AIX shared libraries.
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 else
10127 # We preserve .a as extension for shared libraries through AIX4.2
10128 # and later when we are not doing run time linking.
10129 library_names_spec='${libname}${release}.a $libname.a'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 fi
10132 shlibpath_var=LIBPATH
10133 fi
10134 ;;
10135
10136amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010137 case $host_cpu in
10138 powerpc)
10139 # Since July 2007 AmigaOS4 officially supports .so libraries.
10140 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 ;;
10143 m68k)
10144 library_names_spec='$libname.ixlibrary $libname.a'
10145 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10146 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'
10147 ;;
10148 esac
brynercb91a2f2006-08-25 21:14:45 +000010149 ;;
10150
10151beos*)
10152 library_names_spec='${libname}${shared_ext}'
10153 dynamic_linker="$host_os ld.so"
10154 shlibpath_var=LIBRARY_PATH
10155 ;;
10156
mmentovai8c2a4de2006-09-20 16:20:15 +000010157bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010158 version_type=linux
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10166 # the default ld.so.conf also contains /usr/contrib/lib and
10167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10168 # libtool to hard-code these into programs
10169 ;;
10170
jimblandy92b1f832009-12-23 22:23:49 +000010171cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010172 version_type=windows
10173 shrext_cmds=".dll"
10174 need_version=no
10175 need_lib_prefix=no
10176
10177 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010178 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010179 library_names_spec='$libname.dll.a'
10180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10181 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010183 dldir=$destdir/`dirname \$dlpath`~
10184 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010185 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010186 chmod a+x \$dldir/$dlname~
10187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10189 fi'
brynercb91a2f2006-08-25 21:14:45 +000010190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10191 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010192 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010193 shlibpath_overrides_runpath=yes
10194
10195 case $host_os in
10196 cygwin*)
10197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10198 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10200 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010201 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010202 # MinGW DLLs use traditional 'lib' prefix
10203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010204 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10205 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010206 # It is most probably a Windows format PATH printed by
10207 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10208 # path with ; separators, and with drive letters. We can handle the
10209 # drive letters (cygwin fileutils understands them), so leave them,
10210 # especially as we might pass files found there to a mingw objdump,
10211 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010213 else
jimblandy92b1f832009-12-23 22:23:49 +000010214 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010215 fi
10216 ;;
10217 pw32*)
10218 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010219 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000010220 ;;
10221 esac
10222 ;;
10223
10224 *)
10225 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10226 ;;
10227 esac
10228 dynamic_linker='Win32 ld.exe'
10229 # FIXME: first we should search . and the directory the executable is in
10230 shlibpath_var=PATH
10231 ;;
10232
10233darwin* | rhapsody*)
10234 dynamic_linker="$host_os dyld"
10235 version_type=darwin
10236 need_lib_prefix=no
10237 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010238 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010239 soname_spec='${libname}${release}${major}$shared_ext'
10240 shlibpath_overrides_runpath=yes
10241 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010242 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010243
10244 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010245 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10246 ;;
10247
10248dgux*)
10249 version_type=linux
10250 need_lib_prefix=no
10251 need_version=no
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 shlibpath_var=LD_LIBRARY_PATH
10255 ;;
10256
10257freebsd1*)
10258 dynamic_linker=no
10259 ;;
10260
mmentovai8c2a4de2006-09-20 16:20:15 +000010261freebsd* | dragonfly*)
10262 # DragonFly does not have aout. When/if they implement a new
10263 # versioning mechanism, adjust this.
10264 if test -x /usr/bin/objformat; then
10265 objformat=`/usr/bin/objformat`
10266 else
10267 case $host_os in
10268 freebsd[123]*) objformat=aout ;;
10269 *) objformat=elf ;;
10270 esac
10271 fi
brynercb91a2f2006-08-25 21:14:45 +000010272 version_type=freebsd-$objformat
10273 case $version_type in
10274 freebsd-elf*)
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10276 need_version=no
10277 need_lib_prefix=no
10278 ;;
10279 freebsd-*)
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10281 need_version=yes
10282 ;;
10283 esac
10284 shlibpath_var=LD_LIBRARY_PATH
10285 case $host_os in
10286 freebsd2*)
10287 shlibpath_overrides_runpath=yes
10288 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010289 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010295 shlibpath_overrides_runpath=no
10296 hardcode_into_libs=yes
10297 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010298 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010299 shlibpath_overrides_runpath=yes
10300 hardcode_into_libs=yes
10301 ;;
brynercb91a2f2006-08-25 21:14:45 +000010302 esac
10303 ;;
10304
10305gnu*)
10306 version_type=linux
10307 need_lib_prefix=no
10308 need_version=no
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 hardcode_into_libs=yes
10313 ;;
10314
10315hpux9* | hpux10* | hpux11*)
10316 # Give a soname corresponding to the major version so that dld.sl refuses to
10317 # link against other versions.
10318 version_type=sunos
10319 need_lib_prefix=no
10320 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010321 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010322 ia64*)
10323 shrext_cmds='.so'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.so"
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 if test "X$HPUX_IA64_MODE" = X32; then
10331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10332 else
10333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10334 fi
10335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010337 hppa*64*)
10338 shrext_cmds='.sl'
10339 hardcode_into_libs=yes
10340 dynamic_linker="$host_os dld.sl"
10341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347 ;;
10348 *)
brynercb91a2f2006-08-25 21:14:45 +000010349 shrext_cmds='.sl'
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=SHLIB_PATH
10352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 ;;
10356 esac
10357 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10358 postinstall_cmds='chmod 555 $lib'
10359 ;;
10360
ted.mielczarek1adb1842009-12-21 13:12:20 +000010361interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010362 version_type=linux
10363 need_lib_prefix=no
10364 need_version=no
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=no
10370 hardcode_into_libs=yes
10371 ;;
10372
brynercb91a2f2006-08-25 21:14:45 +000010373irix5* | irix6* | nonstopux*)
10374 case $host_os in
10375 nonstopux*) version_type=nonstopux ;;
10376 *)
10377 if test "$lt_cv_prog_gnu_ld" = yes; then
10378 version_type=linux
10379 else
10380 version_type=irix
10381 fi ;;
10382 esac
10383 need_lib_prefix=no
10384 need_version=no
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10387 case $host_os in
10388 irix5* | nonstopux*)
10389 libsuff= shlibsuff=
10390 ;;
10391 *)
10392 case $LD in # libtool.m4 will add one of these switches to LD
10393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10394 libsuff= shlibsuff= libmagic=32-bit;;
10395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10396 libsuff=32 shlibsuff=N32 libmagic=N32;;
10397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10399 *) libsuff= shlibsuff= libmagic=never-match;;
10400 esac
10401 ;;
10402 esac
10403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10404 shlibpath_overrides_runpath=no
10405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10407 hardcode_into_libs=yes
10408 ;;
10409
10410# No shared lib support for Linux oldld, aout, or coff.
10411linux*oldld* | linux*aout* | linux*coff*)
10412 dynamic_linker=no
10413 ;;
10414
10415# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000010416linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010417 version_type=linux
10418 need_lib_prefix=no
10419 need_version=no
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010425 # Some binutils ld are patched to set DT_RUNPATH
10426 save_LDFLAGS=$LDFLAGS
10427 save_libdir=$libdir
10428 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10429 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431/* end confdefs.h. */
10432
10433int
10434main ()
10435{
10436
10437 ;
10438 return 0;
10439}
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"; then :
10442 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10443 shlibpath_overrides_runpath=yes
10444fi
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LDFLAGS=$save_LDFLAGS
10449 libdir=$save_libdir
10450
brynercb91a2f2006-08-25 21:14:45 +000010451 # This implies no fast_install, which is unacceptable.
10452 # Some rework will be needed to allow for fast_install
10453 # before this can be enabled.
10454 hardcode_into_libs=yes
10455
10456 # Append ld.so.conf contents to the search path
10457 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010458 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000010459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10460 fi
10461
10462 # We used to test for /lib/ld.so.1 and disable shared libraries on
10463 # powerpc, because MkLinux only supported shared libraries with the
10464 # GNU dynamic linker. Since this was broken with cross compilers,
10465 # most powerpc-linux boxes support dynamic linking these days and
10466 # people can always --disable-shared, the test was removed, and we
10467 # assume the GNU/Linux dynamic linker is in use.
10468 dynamic_linker='GNU/Linux ld.so'
10469 ;;
10470
jimblandy92b1f832009-12-23 22:23:49 +000010471netbsdelf*-gnu)
10472 version_type=linux
10473 need_lib_prefix=no
10474 need_version=no
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 shlibpath_overrides_runpath=no
10479 hardcode_into_libs=yes
10480 dynamic_linker='NetBSD ld.elf_so'
10481 ;;
10482
brynercb91a2f2006-08-25 21:14:45 +000010483netbsd*)
10484 version_type=sunos
10485 need_lib_prefix=no
10486 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490 dynamic_linker='NetBSD (a.out) ld.so'
10491 else
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 dynamic_linker='NetBSD ld.elf_so'
10495 fi
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 ;;
10500
10501newsos6)
10502 version_type=linux
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=yes
10506 ;;
10507
jimblandy92b1f832009-12-23 22:23:49 +000010508*nto* | *qnx*)
10509 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010518 ;;
10519
10520openbsd*)
10521 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010522 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010523 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10525 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10527 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010528 esac
brynercb91a2f2006-08-25 21:14:45 +000010529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010533 case $host_os in
10534 openbsd2.[89] | openbsd2.[89].*)
10535 shlibpath_overrides_runpath=no
10536 ;;
10537 *)
10538 shlibpath_overrides_runpath=yes
10539 ;;
10540 esac
10541 else
10542 shlibpath_overrides_runpath=yes
10543 fi
10544 ;;
10545
10546os2*)
10547 libname_spec='$name'
10548 shrext_cmds=".dll"
10549 need_lib_prefix=no
10550 library_names_spec='$libname${shared_ext} $libname.a'
10551 dynamic_linker='OS/2 ld.exe'
10552 shlibpath_var=LIBPATH
10553 ;;
10554
10555osf3* | osf4* | osf5*)
10556 version_type=osf
10557 need_lib_prefix=no
10558 need_version=no
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10564 ;;
10565
ted.mielczarek1adb1842009-12-21 13:12:20 +000010566rdos*)
10567 dynamic_linker=no
10568 ;;
10569
brynercb91a2f2006-08-25 21:14:45 +000010570solaris*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 # ldd complains unless libraries are executable
10580 postinstall_cmds='chmod +x $lib'
10581 ;;
10582
10583sunos4*)
10584 version_type=sunos
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 if test "$with_gnu_ld" = yes; then
10590 need_lib_prefix=no
10591 fi
10592 need_version=yes
10593 ;;
10594
mmentovai8c2a4de2006-09-20 16:20:15 +000010595sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010596 version_type=linux
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 case $host_vendor in
10601 sni)
10602 shlibpath_overrides_runpath=no
10603 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010604 runpath_var=LD_RUN_PATH
10605 ;;
10606 siemens)
10607 need_lib_prefix=no
10608 ;;
10609 motorola)
10610 need_lib_prefix=no
10611 need_version=no
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614 ;;
10615 esac
10616 ;;
10617
10618sysv4*MP*)
10619 if test -d /usr/nec ;then
10620 version_type=linux
10621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10622 soname_spec='$libname${shared_ext}.$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 fi
10625 ;;
10626
mmentovai8c2a4de2006-09-20 16:20:15 +000010627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 version_type=freebsd-elf
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010634 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010635 hardcode_into_libs=yes
10636 if test "$with_gnu_ld" = yes; then
10637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010638 else
10639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010640 case $host_os in
10641 sco3.2v5*)
10642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643 ;;
10644 esac
10645 fi
10646 sys_lib_dlsearch_path_spec='/usr/lib'
10647 ;;
10648
jimblandy92b1f832009-12-23 22:23:49 +000010649tpf*)
10650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10651 version_type=linux
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10658 ;;
10659
brynercb91a2f2006-08-25 21:14:45 +000010660uts4*)
10661 version_type=linux
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 ;;
10666
10667*)
10668 dynamic_linker=no
10669 ;;
10670esac
jimblandy92b1f832009-12-23 22:23:49 +000010671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10672$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010673test "$dynamic_linker" = no && can_build_shared=no
10674
mmentovai8c2a4de2006-09-20 16:20:15 +000010675variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676if test "$GCC" = yes; then
10677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678fi
10679
jimblandy92b1f832009-12-23 22:23:49 +000010680if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682fi
10683if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10685fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10774$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010775hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010776if test -n "$hardcode_libdir_flag_spec" ||
10777 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010778 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010779
jimblandy92b1f832009-12-23 22:23:49 +000010780 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010781 if test "$hardcode_direct" != no &&
10782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10783 # have to relink, otherwise we might link with an installed library
10784 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010786 test "$hardcode_minus_L" != no; then
10787 # Linking always hardcodes the temporary library directory.
10788 hardcode_action=relink
10789 else
10790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10791 hardcode_action=immediate
10792 fi
10793else
10794 # We cannot hardcode anything, or else we can only hardcode existing
10795 # directories.
10796 hardcode_action=unsupported
10797fi
jimblandy92b1f832009-12-23 22:23:49 +000010798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10799$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010800
jimblandy92b1f832009-12-23 22:23:49 +000010801if test "$hardcode_action" = relink ||
10802 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010803 # Fast installation is not supported
10804 enable_fast_install=no
10805elif test "$shlibpath_overrides_runpath" = yes ||
10806 test "$enable_shared" = no; then
10807 # Fast installation is not necessary
10808 enable_fast_install=needless
10809fi
10810
brynercb91a2f2006-08-25 21:14:45 +000010811
jimblandy92b1f832009-12-23 22:23:49 +000010812
10813
10814
10815
10816 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010817 enable_dlopen=unknown
10818 enable_dlopen_self=unknown
10819 enable_dlopen_self_static=unknown
10820else
10821 lt_cv_dlopen=no
10822 lt_cv_dlopen_libs=
10823
10824 case $host_os in
10825 beos*)
10826 lt_cv_dlopen="load_add_on"
10827 lt_cv_dlopen_libs=
10828 lt_cv_dlopen_self=yes
10829 ;;
10830
jimblandy92b1f832009-12-23 22:23:49 +000010831 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010832 lt_cv_dlopen="LoadLibrary"
10833 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010834 ;;
brynercb91a2f2006-08-25 21:14:45 +000010835
10836 cygwin*)
10837 lt_cv_dlopen="dlopen"
10838 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010839 ;;
brynercb91a2f2006-08-25 21:14:45 +000010840
10841 darwin*)
10842 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10844$as_echo_n "checking for dlopen in -ldl... " >&6; }
10845if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010847else
10848 ac_check_lib_save_LIBS=$LIBS
10849LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010851/* end confdefs.h. */
10852
mmentovai8c2a4de2006-09-20 16:20:15 +000010853/* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010856#ifdef __cplusplus
10857extern "C"
10858#endif
brynercb91a2f2006-08-25 21:14:45 +000010859char dlopen ();
10860int
10861main ()
10862{
mmentovai8c2a4de2006-09-20 16:20:15 +000010863return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010864 ;
10865 return 0;
10866}
10867_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010868if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010869 ac_cv_lib_dl_dlopen=yes
10870else
jimblandy92b1f832009-12-23 22:23:49 +000010871 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010872fi
jimblandy92b1f832009-12-23 22:23:49 +000010873rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010875LIBS=$ac_check_lib_save_LIBS
10876fi
jimblandy92b1f832009-12-23 22:23:49 +000010877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10878$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10879if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10881else
10882
10883 lt_cv_dlopen="dyld"
10884 lt_cv_dlopen_libs=
10885 lt_cv_dlopen_self=yes
10886
10887fi
10888
jimblandy92b1f832009-12-23 22:23:49 +000010889 ;;
brynercb91a2f2006-08-25 21:14:45 +000010890
10891 *)
jimblandy92b1f832009-12-23 22:23:49 +000010892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10893if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010894 lt_cv_dlopen="shl_load"
10895else
jimblandy92b1f832009-12-23 22:23:49 +000010896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10897$as_echo_n "checking for shl_load in -ldld... " >&6; }
10898if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010900else
10901 ac_check_lib_save_LIBS=$LIBS
10902LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010904/* end confdefs.h. */
10905
mmentovai8c2a4de2006-09-20 16:20:15 +000010906/* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010909#ifdef __cplusplus
10910extern "C"
10911#endif
brynercb91a2f2006-08-25 21:14:45 +000010912char shl_load ();
10913int
10914main ()
10915{
mmentovai8c2a4de2006-09-20 16:20:15 +000010916return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000010917 ;
10918 return 0;
10919}
10920_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010921if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010922 ac_cv_lib_dld_shl_load=yes
10923else
jimblandy92b1f832009-12-23 22:23:49 +000010924 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000010925fi
jimblandy92b1f832009-12-23 22:23:49 +000010926rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010928LIBS=$ac_check_lib_save_LIBS
10929fi
jimblandy92b1f832009-12-23 22:23:49 +000010930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10931$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10932if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000010933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000010934else
jimblandy92b1f832009-12-23 22:23:49 +000010935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10936if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010937 lt_cv_dlopen="dlopen"
10938else
jimblandy92b1f832009-12-23 22:23:49 +000010939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10940$as_echo_n "checking for dlopen in -ldl... " >&6; }
10941if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010943else
10944 ac_check_lib_save_LIBS=$LIBS
10945LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010947/* end confdefs.h. */
10948
mmentovai8c2a4de2006-09-20 16:20:15 +000010949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010952#ifdef __cplusplus
10953extern "C"
10954#endif
brynercb91a2f2006-08-25 21:14:45 +000010955char dlopen ();
10956int
10957main ()
10958{
mmentovai8c2a4de2006-09-20 16:20:15 +000010959return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010960 ;
10961 return 0;
10962}
10963_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010964if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010965 ac_cv_lib_dl_dlopen=yes
10966else
jimblandy92b1f832009-12-23 22:23:49 +000010967 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010968fi
jimblandy92b1f832009-12-23 22:23:49 +000010969rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010971LIBS=$ac_check_lib_save_LIBS
10972fi
jimblandy92b1f832009-12-23 22:23:49 +000010973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10974$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10975if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977else
jimblandy92b1f832009-12-23 22:23:49 +000010978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10979$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10980if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010982else
10983 ac_check_lib_save_LIBS=$LIBS
10984LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010986/* end confdefs.h. */
10987
mmentovai8c2a4de2006-09-20 16:20:15 +000010988/* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010991#ifdef __cplusplus
10992extern "C"
10993#endif
brynercb91a2f2006-08-25 21:14:45 +000010994char dlopen ();
10995int
10996main ()
10997{
mmentovai8c2a4de2006-09-20 16:20:15 +000010998return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010999 ;
11000 return 0;
11001}
11002_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011003if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011004 ac_cv_lib_svld_dlopen=yes
11005else
jimblandy92b1f832009-12-23 22:23:49 +000011006 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011007fi
jimblandy92b1f832009-12-23 22:23:49 +000011008rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011010LIBS=$ac_check_lib_save_LIBS
11011fi
jimblandy92b1f832009-12-23 22:23:49 +000011012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11013$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11014if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11016else
jimblandy92b1f832009-12-23 22:23:49 +000011017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11018$as_echo_n "checking for dld_link in -ldld... " >&6; }
11019if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011021else
11022 ac_check_lib_save_LIBS=$LIBS
11023LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011025/* end confdefs.h. */
11026
mmentovai8c2a4de2006-09-20 16:20:15 +000011027/* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011030#ifdef __cplusplus
11031extern "C"
11032#endif
brynercb91a2f2006-08-25 21:14:45 +000011033char dld_link ();
11034int
11035main ()
11036{
mmentovai8c2a4de2006-09-20 16:20:15 +000011037return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011038 ;
11039 return 0;
11040}
11041_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011042if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011043 ac_cv_lib_dld_dld_link=yes
11044else
jimblandy92b1f832009-12-23 22:23:49 +000011045 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011046fi
jimblandy92b1f832009-12-23 22:23:49 +000011047rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011049LIBS=$ac_check_lib_save_LIBS
11050fi
jimblandy92b1f832009-12-23 22:23:49 +000011051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11052$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11053if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011055fi
11056
11057
11058fi
11059
11060
11061fi
11062
11063
11064fi
11065
11066
11067fi
11068
11069
11070fi
11071
11072 ;;
11073 esac
11074
11075 if test "x$lt_cv_dlopen" != xno; then
11076 enable_dlopen=yes
11077 else
11078 enable_dlopen=no
11079 fi
11080
11081 case $lt_cv_dlopen in
11082 dlopen)
11083 save_CPPFLAGS="$CPPFLAGS"
11084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11085
11086 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011088
11089 save_LIBS="$LIBS"
11090 LIBS="$lt_cv_dlopen_libs $LIBS"
11091
jimblandy92b1f832009-12-23 22:23:49 +000011092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11093$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11094if test "${lt_cv_dlopen_self+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011096else
11097 if test "$cross_compiling" = yes; then :
11098 lt_cv_dlopen_self=cross
11099else
11100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11101 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011102 cat > conftest.$ac_ext <<_LT_EOF
11103#line 11103 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011104#include "confdefs.h"
11105
11106#if HAVE_DLFCN_H
11107#include <dlfcn.h>
11108#endif
11109
11110#include <stdio.h>
11111
11112#ifdef RTLD_GLOBAL
11113# define LT_DLGLOBAL RTLD_GLOBAL
11114#else
11115# ifdef DL_GLOBAL
11116# define LT_DLGLOBAL DL_GLOBAL
11117# else
11118# define LT_DLGLOBAL 0
11119# endif
11120#endif
11121
11122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11123 find out it does not work in some platform. */
11124#ifndef LT_DLLAZY_OR_NOW
11125# ifdef RTLD_LAZY
11126# define LT_DLLAZY_OR_NOW RTLD_LAZY
11127# else
11128# ifdef DL_LAZY
11129# define LT_DLLAZY_OR_NOW DL_LAZY
11130# else
11131# ifdef RTLD_NOW
11132# define LT_DLLAZY_OR_NOW RTLD_NOW
11133# else
11134# ifdef DL_NOW
11135# define LT_DLLAZY_OR_NOW DL_NOW
11136# else
11137# define LT_DLLAZY_OR_NOW 0
11138# endif
11139# endif
11140# endif
11141# endif
11142#endif
11143
brynercb91a2f2006-08-25 21:14:45 +000011144void fnord() { int i=42;}
11145int main ()
11146{
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11149
11150 if (self)
11151 {
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11153 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11154 /* dlclose (self); */
11155 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011156 else
11157 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011158
jimblandy92b1f832009-12-23 22:23:49 +000011159 return status;
brynercb91a2f2006-08-25 21:14:45 +000011160}
jimblandy92b1f832009-12-23 22:23:49 +000011161_LT_EOF
11162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011163 (eval $ac_link) 2>&5
11164 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11166 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011167 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011168 lt_status=$?
11169 case x$lt_status in
11170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011173 esac
11174 else :
11175 # compilation failed
11176 lt_cv_dlopen_self=no
11177 fi
11178fi
11179rm -fr conftest*
11180
11181
11182fi
jimblandy92b1f832009-12-23 22:23:49 +000011183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11184$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011185
11186 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11189$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11190if test "${lt_cv_dlopen_self_static+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011192else
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self_static=cross
11195else
11196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011198 cat > conftest.$ac_ext <<_LT_EOF
11199#line 11199 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011200#include "confdefs.h"
11201
11202#if HAVE_DLFCN_H
11203#include <dlfcn.h>
11204#endif
11205
11206#include <stdio.h>
11207
11208#ifdef RTLD_GLOBAL
11209# define LT_DLGLOBAL RTLD_GLOBAL
11210#else
11211# ifdef DL_GLOBAL
11212# define LT_DLGLOBAL DL_GLOBAL
11213# else
11214# define LT_DLGLOBAL 0
11215# endif
11216#endif
11217
11218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220#ifndef LT_DLLAZY_OR_NOW
11221# ifdef RTLD_LAZY
11222# define LT_DLLAZY_OR_NOW RTLD_LAZY
11223# else
11224# ifdef DL_LAZY
11225# define LT_DLLAZY_OR_NOW DL_LAZY
11226# else
11227# ifdef RTLD_NOW
11228# define LT_DLLAZY_OR_NOW RTLD_NOW
11229# else
11230# ifdef DL_NOW
11231# define LT_DLLAZY_OR_NOW DL_NOW
11232# else
11233# define LT_DLLAZY_OR_NOW 0
11234# endif
11235# endif
11236# endif
11237# endif
11238#endif
11239
brynercb91a2f2006-08-25 21:14:45 +000011240void fnord() { int i=42;}
11241int main ()
11242{
11243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11244 int status = $lt_dlunknown;
11245
11246 if (self)
11247 {
11248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 /* dlclose (self); */
11251 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011252 else
11253 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011254
jimblandy92b1f832009-12-23 22:23:49 +000011255 return status;
brynercb91a2f2006-08-25 21:14:45 +000011256}
jimblandy92b1f832009-12-23 22:23:49 +000011257_LT_EOF
11258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011259 (eval $ac_link) 2>&5
11260 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11262 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011263 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011264 lt_status=$?
11265 case x$lt_status in
11266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011268 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011269 esac
11270 else :
11271 # compilation failed
11272 lt_cv_dlopen_self_static=no
11273 fi
11274fi
11275rm -fr conftest*
11276
11277
11278fi
jimblandy92b1f832009-12-23 22:23:49 +000011279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11280$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011281 fi
11282
11283 CPPFLAGS="$save_CPPFLAGS"
11284 LDFLAGS="$save_LDFLAGS"
11285 LIBS="$save_LIBS"
11286 ;;
11287 esac
11288
11289 case $lt_cv_dlopen_self in
11290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11291 *) enable_dlopen_self=unknown ;;
11292 esac
11293
11294 case $lt_cv_dlopen_self_static in
11295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11296 *) enable_dlopen_self_static=unknown ;;
11297 esac
11298fi
11299
11300
brynercb91a2f2006-08-25 21:14:45 +000011301
brynercb91a2f2006-08-25 21:14:45 +000011302
brynercb91a2f2006-08-25 21:14:45 +000011303
jimblandy92b1f832009-12-23 22:23:49 +000011304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316striplib=
11317old_striplib=
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11319$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11320if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324$as_echo "yes" >&6; }
11325else
11326# FIXME - insert some real tests, host_os isn't really good enough
11327 case $host_os in
11328 darwin*)
11329 if test -n "$STRIP" ; then
11330 striplib="$STRIP -x"
11331 old_striplib="$STRIP -S"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11333$as_echo "yes" >&6; }
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
11337 fi
brynercb91a2f2006-08-25 21:14:45 +000011338 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011339 *)
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011342 ;;
11343 esac
jimblandy92b1f832009-12-23 22:23:49 +000011344fi
brynercb91a2f2006-08-25 21:14:45 +000011345
brynercb91a2f2006-08-25 21:14:45 +000011346
brynercb91a2f2006-08-25 21:14:45 +000011347
brynercb91a2f2006-08-25 21:14:45 +000011348
brynercb91a2f2006-08-25 21:14:45 +000011349
brynercb91a2f2006-08-25 21:14:45 +000011350
brynercb91a2f2006-08-25 21:14:45 +000011351
brynercb91a2f2006-08-25 21:14:45 +000011352
brynercb91a2f2006-08-25 21:14:45 +000011353
brynercb91a2f2006-08-25 21:14:45 +000011354
brynercb91a2f2006-08-25 21:14:45 +000011355
brynercb91a2f2006-08-25 21:14:45 +000011356
jimblandy92b1f832009-12-23 22:23:49 +000011357 # Report which library types will actually be built
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11359$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11361$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011362
jimblandy92b1f832009-12-23 22:23:49 +000011363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11364$as_echo_n "checking whether to build shared libraries... " >&6; }
11365 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011366
jimblandy92b1f832009-12-23 22:23:49 +000011367 # On AIX, shared libraries and static libraries use the same namespace, and
11368 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011369 case $host_os in
11370 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011371 test "$enable_shared" = yes && enable_static=no
11372 if test -n "$RANLIB"; then
11373 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11374 postinstall_cmds='$RANLIB $lib'
11375 fi
11376 ;;
brynercb91a2f2006-08-25 21:14:45 +000011377
jimblandy92b1f832009-12-23 22:23:49 +000011378 aix[4-9]*)
11379 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11380 test "$enable_shared" = yes && enable_static=no
11381 fi
brynercb91a2f2006-08-25 21:14:45 +000011382 ;;
11383 esac
jimblandy92b1f832009-12-23 22:23:49 +000011384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11385$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011386
jimblandy92b1f832009-12-23 22:23:49 +000011387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11388$as_echo_n "checking whether to build static libraries... " >&6; }
11389 # Make sure either enable_shared or enable_static is yes.
11390 test "$enable_shared" = yes || enable_static=yes
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11392$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011393
brynercb91a2f2006-08-25 21:14:45 +000011394
jimblandy92b1f832009-12-23 22:23:49 +000011395
11396
brynercb91a2f2006-08-25 21:14:45 +000011397fi
brynercb91a2f2006-08-25 21:14:45 +000011398ac_ext=c
11399ac_cpp='$CPP $CPPFLAGS'
11400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402ac_compiler_gnu=$ac_cv_c_compiler_gnu
11403
11404CC="$lt_save_CC"
11405
11406
jimblandy92b1f832009-12-23 22:23:49 +000011407ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011408ac_cpp='$CXXCPP $CPPFLAGS'
11409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11412
brynercb91a2f2006-08-25 21:14:45 +000011413archive_cmds_need_lc_CXX=no
11414allow_undefined_flag_CXX=
11415always_export_symbols_CXX=no
11416archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011417compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011418export_dynamic_flag_spec_CXX=
11419hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011420hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011421hardcode_libdir_flag_spec_CXX=
11422hardcode_libdir_flag_spec_ld_CXX=
11423hardcode_libdir_separator_CXX=
11424hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011425hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011426hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011427inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011428module_cmds_CXX=
11429module_expsym_cmds_CXX=
11430link_all_deplibs_CXX=unknown
11431old_archive_cmds_CXX=$old_archive_cmds
11432no_undefined_flag_CXX=
11433whole_archive_flag_spec_CXX=
11434enable_shared_with_static_runtimes_CXX=no
11435
brynercb91a2f2006-08-25 21:14:45 +000011436# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011437ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011438
11439# Object file extension for compiled C++ test sources.
11440objext=o
11441objext_CXX=$objext
11442
jimblandy92b1f832009-12-23 22:23:49 +000011443# No sense in running all these tests if we already determined that
11444# the CXX compiler isn't working. Some variables (like enable_shared)
11445# are currently assumed to apply to all compilers on this platform,
11446# and will be corrupted by setting them based on a non-working compiler.
11447if test "$_lt_caught_CXX_error" != yes; then
11448 # Code to be used in simple compile tests
11449 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011450
jimblandy92b1f832009-12-23 22:23:49 +000011451 # Code to be used in simple link tests
11452 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011453
jimblandy92b1f832009-12-23 22:23:49 +000011454 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11455
11456
11457
11458
11459
brynercb91a2f2006-08-25 21:14:45 +000011460
11461# If no C compiler was specified, use CC.
11462LTCC=${LTCC-"$CC"}
11463
mmentovai8c2a4de2006-09-20 16:20:15 +000011464# If no C compiler flags were specified, use CFLAGS.
11465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11466
brynercb91a2f2006-08-25 21:14:45 +000011467# Allow CC to be a program name with arguments.
11468compiler=$CC
11469
11470
jimblandy92b1f832009-12-23 22:23:49 +000011471 # save warnings/boilerplate of simple test code
11472 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011473echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011474eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011476$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011477
jimblandy92b1f832009-12-23 22:23:49 +000011478 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011479echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011480eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11481_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011482$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011483
11484
jimblandy92b1f832009-12-23 22:23:49 +000011485 # Allow CC to be a program name with arguments.
11486 lt_save_CC=$CC
11487 lt_save_LD=$LD
11488 lt_save_GCC=$GCC
11489 GCC=$GXX
11490 lt_save_with_gnu_ld=$with_gnu_ld
11491 lt_save_path_LD=$lt_cv_path_LD
11492 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11493 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11494 else
11495 $as_unset lt_cv_prog_gnu_ld
11496 fi
11497 if test -n "${lt_cv_path_LDCXX+set}"; then
11498 lt_cv_path_LD=$lt_cv_path_LDCXX
11499 else
11500 $as_unset lt_cv_path_LD
11501 fi
11502 test -z "${LDCXX+set}" || LD=$LDCXX
11503 CC=${CXX-"c++"}
11504 compiler=$CC
11505 compiler_CXX=$CC
11506 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011507 case $cc_temp in
11508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11510 \-*) ;;
11511 *) break;;
11512 esac
11513done
jimblandy92b1f832009-12-23 22:23:49 +000011514cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011515
brynercb91a2f2006-08-25 21:14:45 +000011516
jimblandy92b1f832009-12-23 22:23:49 +000011517 if test -n "$compiler"; then
11518 # We don't want -fno-exception when compiling C++ code, so set the
11519 # no_builtin_flag separately
11520 if test "$GXX" = yes; then
11521 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11522 else
11523 lt_prog_compiler_no_builtin_flag_CXX=
11524 fi
brynercb91a2f2006-08-25 21:14:45 +000011525
jimblandy92b1f832009-12-23 22:23:49 +000011526 if test "$GXX" = yes; then
11527 # Set up default GNU C++ configuration
11528
brynercb91a2f2006-08-25 21:14:45 +000011529
11530
mmentovai8c2a4de2006-09-20 16:20:15 +000011531# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011532if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011533 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011534else
11535 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011536fi
11537
brynercb91a2f2006-08-25 21:14:45 +000011538ac_prog=ld
11539if test "$GCC" = yes; then
11540 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11542$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011543 case $host in
11544 *-*-mingw*)
11545 # gcc leaves a trailing carriage return which upsets mingw
11546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11547 *)
11548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11549 esac
11550 case $ac_prog in
11551 # Accept absolute paths.
11552 [\\/]* | ?:[\\/]*)
11553 re_direlt='/[^/][^/]*/\.\./'
11554 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011558 done
11559 test -z "$LD" && LD="$ac_prog"
11560 ;;
11561 "")
11562 # If it fails, then pretend we aren't using GCC.
11563 ac_prog=ld
11564 ;;
11565 *)
11566 # If it is relative, then search for the first ld in PATH.
11567 with_gnu_ld=unknown
11568 ;;
11569 esac
11570elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11572$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011573else
jimblandy92b1f832009-12-23 22:23:49 +000011574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11575$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011576fi
jimblandy92b1f832009-12-23 22:23:49 +000011577if test "${lt_cv_path_LD+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011579else
11580 if test -z "$LD"; then
11581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11582 for ac_dir in $PATH; do
11583 IFS="$lt_save_ifs"
11584 test -z "$ac_dir" && ac_dir=.
11585 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11586 lt_cv_path_LD="$ac_dir/$ac_prog"
11587 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011588 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011589 # Break only if it was the GNU/non-GNU ld that we prefer.
11590 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11591 *GNU* | *'with BFD'*)
11592 test "$with_gnu_ld" != no && break
11593 ;;
11594 *)
11595 test "$with_gnu_ld" != yes && break
11596 ;;
11597 esac
11598 fi
11599 done
11600 IFS="$lt_save_ifs"
11601else
11602 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11603fi
11604fi
11605
11606LD="$lt_cv_path_LD"
11607if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11609$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011610else
jimblandy92b1f832009-12-23 22:23:49 +000011611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011613fi
jimblandy92b1f832009-12-23 22:23:49 +000011614test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11616$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11617if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011619else
mmentovai8c2a4de2006-09-20 16:20:15 +000011620 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011621case `$LD -v 2>&1 </dev/null` in
11622*GNU* | *'with BFD'*)
11623 lt_cv_prog_gnu_ld=yes
11624 ;;
11625*)
11626 lt_cv_prog_gnu_ld=no
11627 ;;
11628esac
11629fi
jimblandy92b1f832009-12-23 22:23:49 +000011630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11631$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011632with_gnu_ld=$lt_cv_prog_gnu_ld
11633
11634
11635
brynercb91a2f2006-08-25 21:14:45 +000011636
brynercb91a2f2006-08-25 21:14:45 +000011637
brynercb91a2f2006-08-25 21:14:45 +000011638
brynercb91a2f2006-08-25 21:14:45 +000011639
jimblandy92b1f832009-12-23 22:23:49 +000011640 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11641 # archiving commands below assume that GNU ld is being used.
11642 if test "$with_gnu_ld" = yes; then
11643 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11644 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011645
jimblandy92b1f832009-12-23 22:23:49 +000011646 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11647 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011648
jimblandy92b1f832009-12-23 22:23:49 +000011649 # If archive_cmds runs LD, not CC, wlarc should be empty
11650 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11651 # investigate it a little bit more. (MM)
11652 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011653
jimblandy92b1f832009-12-23 22:23:49 +000011654 # ancient GNU ld didn't support --whole-archive et. al.
11655 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11656 $GREP 'no-whole-archive' > /dev/null; then
11657 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11658 else
11659 whole_archive_flag_spec_CXX=
11660 fi
brynercb91a2f2006-08-25 21:14:45 +000011661 else
jimblandy92b1f832009-12-23 22:23:49 +000011662 with_gnu_ld=no
11663 wlarc=
11664
11665 # A generic and very simple default shared library creation
11666 # command for GNU C++ for the case where it uses the native
11667 # linker, instead of GNU ld. If possible, this setting should
11668 # overridden to take advantage of the native linker features on
11669 # the platform it is being used on.
11670 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011671 fi
brynercb91a2f2006-08-25 21:14:45 +000011672
brynercb91a2f2006-08-25 21:14:45 +000011673 # Commands to make compiler produce verbose output that lists
11674 # what "hidden" libraries, object files and flags are used when
11675 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11677
11678 else
11679 GXX=no
11680 with_gnu_ld=no
11681 wlarc=
11682 fi
11683
11684 # PORTME: fill in a description of your system's C++ link characteristics
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11686$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11687 ld_shlibs_CXX=yes
11688 case $host_os in
11689 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011692 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011693 aix[4-9]*)
11694 if test "$host_cpu" = ia64; then
11695 # On IA64, the linker does run time linking by default, so we don't
11696 # have to do anything special.
11697 aix_use_runtimelinking=no
11698 exp_sym_flag='-Bexport'
11699 no_entry_flag=""
11700 else
11701 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011702
jimblandy92b1f832009-12-23 22:23:49 +000011703 # Test if we are trying to use run time linking or normal
11704 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11705 # need to do runtime linking.
11706 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11707 for ld_flag in $LDFLAGS; do
11708 case $ld_flag in
11709 *-brtl*)
11710 aix_use_runtimelinking=yes
11711 break
11712 ;;
11713 esac
11714 done
11715 ;;
11716 esac
11717
11718 exp_sym_flag='-bexport'
11719 no_entry_flag='-bnoentry'
11720 fi
11721
11722 # When large executables or shared objects are built, AIX ld can
11723 # have problems creating the table of contents. If linking a library
11724 # or program results in "error TOC overflow" add -mminimal-toc to
11725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11727
11728 archive_cmds_CXX=''
11729 hardcode_direct_CXX=yes
11730 hardcode_direct_absolute_CXX=yes
11731 hardcode_libdir_separator_CXX=':'
11732 link_all_deplibs_CXX=yes
11733 file_list_spec_CXX='${wl}-f,'
11734
11735 if test "$GXX" = yes; then
11736 case $host_os in aix4.[012]|aix4.[012].*)
11737 # We only want to do this on AIX 4.2 and lower, the check
11738 # below for broken collect2 doesn't work under 4.3+
11739 collect2name=`${CC} -print-prog-name=collect2`
11740 if test -f "$collect2name" &&
11741 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11742 then
11743 # We have reworked collect2
11744 :
11745 else
11746 # We have old collect2
11747 hardcode_direct_CXX=unsupported
11748 # It fails to find uninstalled libraries when the uninstalled
11749 # path is not listed in the libpath. Setting hardcode_minus_L
11750 # to unsupported forces relinking
11751 hardcode_minus_L_CXX=yes
11752 hardcode_libdir_flag_spec_CXX='-L$libdir'
11753 hardcode_libdir_separator_CXX=
11754 fi
11755 esac
11756 shared_flag='-shared'
11757 if test "$aix_use_runtimelinking" = yes; then
11758 shared_flag="$shared_flag "'${wl}-G'
11759 fi
11760 else
11761 # not using gcc
11762 if test "$host_cpu" = ia64; then
11763 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11764 # chokes on -Wl,-G. The following line is correct:
11765 shared_flag='-G'
11766 else
11767 if test "$aix_use_runtimelinking" = yes; then
11768 shared_flag='${wl}-G'
11769 else
11770 shared_flag='${wl}-bM:SRE'
11771 fi
11772 fi
11773 fi
11774
11775 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11776 # It seems that -bexpall does not export symbols beginning with
11777 # underscore (_), so it is better to generate a list of symbols to
11778 # export.
11779 always_export_symbols_CXX=yes
11780 if test "$aix_use_runtimelinking" = yes; then
11781 # Warning - without using the other runtime loading flags (-brtl),
11782 # -berok will link without error, but may produce a broken library.
11783 allow_undefined_flag_CXX='-berok'
11784 # Determine the default libpath from the value encoded in an empty
11785 # executable.
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787/* end confdefs.h. */
11788
11789int
11790main ()
11791{
11792
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797if ac_fn_cxx_try_link "$LINENO"; then :
11798
11799lt_aix_libpath_sed='
11800 /Import File Strings/,/^$/ {
11801 /^0/ {
11802 s/^0 *\(.*\)$/\1/
11803 p
11804 }
11805 }'
11806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11807# Check for a 64-bit object if we didn't find anything.
11808if test -z "$aix_libpath"; then
11809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810fi
11811fi
11812rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11815
11816 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11817
11818 archive_expsym_cmds_CXX='$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"
11819 else
11820 if test "$host_cpu" = ia64; then
11821 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11822 allow_undefined_flag_CXX="-z nodefs"
11823 archive_expsym_cmds_CXX="\$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"
11824 else
11825 # Determine the default libpath from the value encoded in an
11826 # empty executable.
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828/* end confdefs.h. */
11829
11830int
11831main ()
11832{
11833
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838if ac_fn_cxx_try_link "$LINENO"; then :
11839
11840lt_aix_libpath_sed='
11841 /Import File Strings/,/^$/ {
11842 /^0/ {
11843 s/^0 *\(.*\)$/\1/
11844 p
11845 }
11846 }'
11847aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11848# Check for a 64-bit object if we didn't find anything.
11849if test -z "$aix_libpath"; then
11850 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11851fi
11852fi
11853rm -f core conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11856
11857 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11858 # Warning - without using the other run time loading flags,
11859 # -berok will link without error, but may produce a broken library.
11860 no_undefined_flag_CXX=' ${wl}-bernotok'
11861 allow_undefined_flag_CXX=' ${wl}-berok'
11862 # Exported symbols can be pulled into shared objects from archives
11863 whole_archive_flag_spec_CXX='$convenience'
11864 archive_cmds_need_lc_CXX=yes
11865 # This is similar to how AIX traditionally builds its shared
11866 # libraries.
11867 archive_expsym_cmds_CXX="\$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'
11868 fi
11869 fi
11870 ;;
11871
11872 beos*)
11873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11874 allow_undefined_flag_CXX=unsupported
11875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11876 # support --undefined. This deserves some investigation. FIXME
11877 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11878 else
11879 ld_shlibs_CXX=no
11880 fi
brynercb91a2f2006-08-25 21:14:45 +000011881 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011882
11883 chorus*)
11884 case $cc_basename in
11885 *)
11886 # FIXME: insert proper C++ library support
11887 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011888 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011889 esac
11890 ;;
11891
11892 cygwin* | mingw* | pw32* | cegcc*)
11893 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11894 # as there is no search path for DLLs.
11895 hardcode_libdir_flag_spec_CXX='-L$libdir'
11896 allow_undefined_flag_CXX=unsupported
11897 always_export_symbols_CXX=no
11898 enable_shared_with_static_runtimes_CXX=yes
11899
11900 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11901 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11902 # If the export-symbols file already is a .def file (1st line
11903 # is EXPORTS), use it as is; otherwise, prepend...
11904 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11905 cp $export_symbols $output_objdir/$soname.def;
11906 else
11907 echo EXPORTS > $output_objdir/$soname.def;
11908 cat $export_symbols >> $output_objdir/$soname.def;
11909 fi~
11910 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11911 else
11912 ld_shlibs_CXX=no
11913 fi
11914 ;;
11915 darwin* | rhapsody*)
11916
11917
11918 archive_cmds_need_lc_CXX=no
11919 hardcode_direct_CXX=no
11920 hardcode_automatic_CXX=yes
11921 hardcode_shlibpath_var_CXX=unsupported
11922 whole_archive_flag_spec_CXX=''
11923 link_all_deplibs_CXX=yes
11924 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11925 case $cc_basename in
11926 ifort*) _lt_dar_can_shared=yes ;;
11927 *) _lt_dar_can_shared=$GCC ;;
11928 esac
11929 if test "$_lt_dar_can_shared" = "yes"; then
11930 output_verbose_link_cmd=echo
11931 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11932 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11933 archive_expsym_cmds_CXX="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}"
11934 module_expsym_cmds_CXX="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}"
11935 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11936 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11937 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11938 fi
11939
11940 else
11941 ld_shlibs_CXX=no
11942 fi
11943
brynercb91a2f2006-08-25 21:14:45 +000011944 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011945
11946 dgux*)
11947 case $cc_basename in
11948 ec++*)
11949 # FIXME: insert proper C++ library support
11950 ld_shlibs_CXX=no
11951 ;;
11952 ghcx*)
11953 # Green Hills C++ Compiler
11954 # FIXME: insert proper C++ library support
11955 ld_shlibs_CXX=no
11956 ;;
11957 *)
11958 # FIXME: insert proper C++ library support
11959 ld_shlibs_CXX=no
11960 ;;
11961 esac
11962 ;;
11963
11964 freebsd[12]*)
11965 # C++ shared libraries reported to be fairly broken before
11966 # switch to ELF
11967 ld_shlibs_CXX=no
11968 ;;
11969
11970 freebsd-elf*)
11971 archive_cmds_need_lc_CXX=no
11972 ;;
11973
11974 freebsd* | dragonfly*)
11975 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11976 # conventions
11977 ld_shlibs_CXX=yes
11978 ;;
11979
11980 gnu*)
11981 ;;
11982
11983 hpux9*)
11984 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11985 hardcode_libdir_separator_CXX=:
11986 export_dynamic_flag_spec_CXX='${wl}-E'
11987 hardcode_direct_CXX=yes
11988 hardcode_minus_L_CXX=yes # Not in the search PATH,
11989 # but as the default
11990 # location of the library.
11991
11992 case $cc_basename in
11993 CC*)
11994 # FIXME: insert proper C++ library support
11995 ld_shlibs_CXX=no
11996 ;;
11997 aCC*)
11998 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11999 # Commands to make compiler produce verbose output that lists
12000 # what "hidden" libraries, object files and flags are used when
12001 # linking a shared library.
12002 #
12003 # There doesn't appear to be a way to prevent this compiler from
12004 # explicitly linking system object files so we need to strip them
12005 # from the output so that they don't get included in the library
12006 # dependencies.
12007 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12008 ;;
12009 *)
12010 if test "$GXX" = yes; then
12011 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12012 else
12013 # FIXME: insert proper C++ library support
12014 ld_shlibs_CXX=no
12015 fi
12016 ;;
12017 esac
12018 ;;
12019
12020 hpux10*|hpux11*)
12021 if test $with_gnu_ld = no; then
12022 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12023 hardcode_libdir_separator_CXX=:
12024
12025 case $host_cpu in
12026 hppa*64*|ia64*)
12027 ;;
12028 *)
12029 export_dynamic_flag_spec_CXX='${wl}-E'
12030 ;;
12031 esac
12032 fi
12033 case $host_cpu in
12034 hppa*64*|ia64*)
12035 hardcode_direct_CXX=no
12036 hardcode_shlibpath_var_CXX=no
12037 ;;
12038 *)
12039 hardcode_direct_CXX=yes
12040 hardcode_direct_absolute_CXX=yes
12041 hardcode_minus_L_CXX=yes # Not in the search PATH,
12042 # but as the default
12043 # location of the library.
12044 ;;
12045 esac
12046
12047 case $cc_basename in
12048 CC*)
12049 # FIXME: insert proper C++ library support
12050 ld_shlibs_CXX=no
12051 ;;
12052 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012053 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012054 hppa*64*)
12055 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12056 ;;
12057 ia64*)
12058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12059 ;;
12060 *)
12061 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12062 ;;
12063 esac
12064 # Commands to make compiler produce verbose output that lists
12065 # what "hidden" libraries, object files and flags are used when
12066 # linking a shared library.
12067 #
12068 # There doesn't appear to be a way to prevent this compiler from
12069 # explicitly linking system object files so we need to strip them
12070 # from the output so that they don't get included in the library
12071 # dependencies.
12072 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12073 ;;
12074 *)
12075 if test "$GXX" = yes; then
12076 if test $with_gnu_ld = no; then
12077 case $host_cpu in
12078 hppa*64*)
12079 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12080 ;;
12081 ia64*)
12082 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12083 ;;
12084 *)
12085 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12086 ;;
12087 esac
12088 fi
12089 else
12090 # FIXME: insert proper C++ library support
12091 ld_shlibs_CXX=no
12092 fi
12093 ;;
12094 esac
12095 ;;
12096
12097 interix[3-9]*)
12098 hardcode_direct_CXX=no
12099 hardcode_shlibpath_var_CXX=no
12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12101 export_dynamic_flag_spec_CXX='${wl}-E'
12102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12103 # Instead, shared libraries are loaded at an image base (0x10000000 by
12104 # default) and relocated if they conflict, which is a slow very memory
12105 # consuming and fragmenting process. To avoid this, we pick a random,
12106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12108 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12109 archive_expsym_cmds_CXX='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'
12110 ;;
12111 irix5* | irix6*)
12112 case $cc_basename in
12113 CC*)
12114 # SGI C++
12115 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12116
12117 # Archives containing C++ object files must be created using
12118 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12119 # necessary to make sure instantiated templates are included
12120 # in the archive.
12121 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12122 ;;
12123 *)
12124 if test "$GXX" = yes; then
12125 if test "$with_gnu_ld" = no; then
12126 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12127 else
12128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12129 fi
12130 fi
12131 link_all_deplibs_CXX=yes
12132 ;;
12133 esac
12134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12135 hardcode_libdir_separator_CXX=:
12136 inherit_rpath_CXX=yes
12137 ;;
12138
12139 linux* | k*bsd*-gnu)
12140 case $cc_basename in
12141 KCC*)
12142 # Kuck and Associates, Inc. (KAI) C++ Compiler
12143
12144 # KCC will only create a shared library if the output file
12145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12146 # to its proper name (with version) after linking.
12147 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12148 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12149 # Commands to make compiler produce verbose output that lists
12150 # what "hidden" libraries, object files and flags are used when
12151 # linking a shared library.
12152 #
12153 # There doesn't appear to be a way to prevent this compiler from
12154 # explicitly linking system object files so we need to strip them
12155 # from the output so that they don't get included in the library
12156 # dependencies.
12157 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12158
12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12161
12162 # Archives containing C++ object files must be created using
12163 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12164 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12165 ;;
12166 icpc* | ecpc* )
12167 # Intel C++
12168 with_gnu_ld=yes
12169 # version 8.0 and above of icpc choke on multiply defined symbols
12170 # if we add $predep_objects and $postdep_objects, however 7.1 and
12171 # earlier do not add the objects themselves.
12172 case `$CC -V 2>&1` in
12173 *"Version 7."*)
12174 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12175 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12176 ;;
12177 *) # Version 8.0 or newer
12178 tmp_idyn=
12179 case $host_cpu in
12180 ia64*) tmp_idyn=' -i_dynamic';;
12181 esac
12182 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12183 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12184 ;;
12185 esac
12186 archive_cmds_need_lc_CXX=no
12187 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12188 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12189 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12190 ;;
12191 pgCC* | pgcpp*)
12192 # Portland Group C++ compiler
12193 case `$CC -V` in
12194 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12195 prelink_cmds_CXX='tpldir=Template.dir~
12196 rm -rf $tpldir~
12197 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12198 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12199 old_archive_cmds_CXX='tpldir=Template.dir~
12200 rm -rf $tpldir~
12201 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12202 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12203 $RANLIB $oldlib'
12204 archive_cmds_CXX='tpldir=Template.dir~
12205 rm -rf $tpldir~
12206 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12207 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12208 archive_expsym_cmds_CXX='tpldir=Template.dir~
12209 rm -rf $tpldir~
12210 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12211 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000012212 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012213 *) # Version 6 will use weak symbols
12214 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12215 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000012216 ;;
12217 esac
brynercb91a2f2006-08-25 21:14:45 +000012218
jimblandy92b1f832009-12-23 22:23:49 +000012219 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12221 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12222 ;;
12223 cxx*)
12224 # Compaq C++
12225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12226 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000012227
jimblandy92b1f832009-12-23 22:23:49 +000012228 runpath_var=LD_RUN_PATH
12229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12230 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012231
jimblandy92b1f832009-12-23 22:23:49 +000012232 # Commands to make compiler produce verbose output that lists
12233 # what "hidden" libraries, object files and flags are used when
12234 # linking a shared library.
12235 #
12236 # There doesn't appear to be a way to prevent this compiler from
12237 # explicitly linking system object files so we need to strip them
12238 # from the output so that they don't get included in the library
12239 # dependencies.
12240 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12241 ;;
12242 xl*)
12243 # IBM XL 8.0 on PPC, with GNU ld
12244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12245 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12246 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12247 if test "x$supports_anon_versioning" = xyes; then
12248 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12250 echo "local: *; };" >> $output_objdir/$libname.ver~
12251 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12252 fi
12253 ;;
12254 *)
12255 case `$CC -V 2>&1 | sed 5q` in
12256 *Sun\ C*)
12257 # Sun C++ 5.9
12258 no_undefined_flag_CXX=' -zdefs'
12259 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12260 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12261 hardcode_libdir_flag_spec_CXX='-R$libdir'
12262 whole_archive_flag_spec_CXX='${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'
12263 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012264
jimblandy92b1f832009-12-23 22:23:49 +000012265 # Not sure whether something based on
12266 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12267 # would be better.
12268 output_verbose_link_cmd='echo'
12269
12270 # Archives containing C++ object files must be created using
12271 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12272 # necessary to make sure instantiated templates are included
12273 # in the archive.
12274 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12275 ;;
12276 esac
12277 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012278 esac
brynercb91a2f2006-08-25 21:14:45 +000012279 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012280
jimblandy92b1f832009-12-23 22:23:49 +000012281 lynxos*)
12282 # FIXME: insert proper C++ library support
12283 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012284 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012285
12286 m88k*)
12287 # FIXME: insert proper C++ library support
12288 ld_shlibs_CXX=no
12289 ;;
12290
12291 mvs*)
12292 case $cc_basename in
12293 cxx*)
12294 # FIXME: insert proper C++ library support
12295 ld_shlibs_CXX=no
12296 ;;
12297 *)
12298 # FIXME: insert proper C++ library support
12299 ld_shlibs_CXX=no
12300 ;;
12301 esac
12302 ;;
12303
12304 netbsd*)
12305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12306 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12307 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012308 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012309 hardcode_direct_CXX=yes
12310 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012311 fi
jimblandy92b1f832009-12-23 22:23:49 +000012312 # Workaround some broken pre-1.5 toolchains
12313 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
brynercb91a2f2006-08-25 21:14:45 +000012314 ;;
brynercb91a2f2006-08-25 21:14:45 +000012315
jimblandy92b1f832009-12-23 22:23:49 +000012316 *nto* | *qnx*)
12317 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012318 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012319
12320 openbsd2*)
12321 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012322 ld_shlibs_CXX=no
12323 ;;
brynercb91a2f2006-08-25 21:14:45 +000012324
jimblandy92b1f832009-12-23 22:23:49 +000012325 openbsd*)
12326 if test -f /usr/libexec/ld.so; then
12327 hardcode_direct_CXX=yes
12328 hardcode_shlibpath_var_CXX=no
12329 hardcode_direct_absolute_CXX=yes
12330 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12333 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12334 export_dynamic_flag_spec_CXX='${wl}-E'
12335 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012336 fi
jimblandy92b1f832009-12-23 22:23:49 +000012337 output_verbose_link_cmd=echo
12338 else
12339 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012340 fi
12341 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012342
jimblandy92b1f832009-12-23 22:23:49 +000012343 osf3* | osf4* | osf5*)
12344 case $cc_basename in
12345 KCC*)
12346 # Kuck and Associates, Inc. (KAI) C++ Compiler
12347
12348 # KCC will only create a shared library if the output file
12349 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12350 # to its proper name (with version) after linking.
12351 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12352
12353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12354 hardcode_libdir_separator_CXX=:
12355
12356 # Archives containing C++ object files must be created using
12357 # the KAI C++ compiler.
12358 case $host in
12359 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12360 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12361 esac
12362 ;;
12363 RCC*)
12364 # Rational C++ 2.4.1
12365 # FIXME: insert proper C++ library support
12366 ld_shlibs_CXX=no
12367 ;;
12368 cxx*)
12369 case $host in
12370 osf3*)
12371 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12372 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12374 ;;
12375 *)
12376 allow_undefined_flag_CXX=' -expect_unresolved \*'
12377 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12378 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12379 echo "-hidden">> $lib.exp~
12380 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12381 $RM $lib.exp'
12382 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12383 ;;
12384 esac
12385
12386 hardcode_libdir_separator_CXX=:
12387
12388 # Commands to make compiler produce verbose output that lists
12389 # what "hidden" libraries, object files and flags are used when
12390 # linking a shared library.
12391 #
12392 # There doesn't appear to be a way to prevent this compiler from
12393 # explicitly linking system object files so we need to strip them
12394 # from the output so that they don't get included in the library
12395 # dependencies.
12396 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12397 ;;
12398 *)
12399 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12400 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12401 case $host in
12402 osf3*)
12403 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12404 ;;
12405 *)
12406 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12407 ;;
12408 esac
12409
12410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12411 hardcode_libdir_separator_CXX=:
12412
12413 # Commands to make compiler produce verbose output that lists
12414 # what "hidden" libraries, object files and flags are used when
12415 # linking a shared library.
12416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12417
12418 else
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12421 fi
12422 ;;
12423 esac
12424 ;;
12425
12426 psos*)
12427 # FIXME: insert proper C++ library support
12428 ld_shlibs_CXX=no
12429 ;;
12430
12431 sunos4*)
12432 case $cc_basename in
12433 CC*)
12434 # Sun C++ 4.x
12435 # FIXME: insert proper C++ library support
12436 ld_shlibs_CXX=no
12437 ;;
12438 lcc*)
12439 # Lucid
12440 # FIXME: insert proper C++ library support
12441 ld_shlibs_CXX=no
12442 ;;
12443 *)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12446 ;;
12447 esac
12448 ;;
12449
12450 solaris*)
12451 case $cc_basename in
12452 CC*)
12453 # Sun C++ 4.2, 5.x and Centerline C++
12454 archive_cmds_need_lc_CXX=yes
12455 no_undefined_flag_CXX=' -zdefs'
12456 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12458 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12459
12460 hardcode_libdir_flag_spec_CXX='-R$libdir'
12461 hardcode_shlibpath_var_CXX=no
12462 case $host_os in
12463 solaris2.[0-5] | solaris2.[0-5].*) ;;
12464 *)
12465 # The compiler driver will combine and reorder linker options,
12466 # but understands `-z linker_flag'.
12467 # Supported since Solaris 2.6 (maybe 2.5.1?)
12468 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12469 ;;
12470 esac
12471 link_all_deplibs_CXX=yes
12472
12473 output_verbose_link_cmd='echo'
12474
12475 # Archives containing C++ object files must be created using
12476 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12477 # necessary to make sure instantiated templates are included
12478 # in the archive.
12479 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12480 ;;
12481 gcx*)
12482 # Green Hills C++ Compiler
12483 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12484
12485 # The C++ compiler must be used to create the archive.
12486 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12487 ;;
12488 *)
12489 # GNU C++ compiler with Solaris linker
12490 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12491 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12492 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12493 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12494 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12495 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12496
12497 # Commands to make compiler produce verbose output that lists
12498 # what "hidden" libraries, object files and flags are used when
12499 # linking a shared library.
12500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12501 else
12502 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12503 # platform.
12504 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12506 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12507
12508 # Commands to make compiler produce verbose output that lists
12509 # what "hidden" libraries, object files and flags are used when
12510 # linking a shared library.
12511 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12512 fi
12513
12514 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12515 case $host_os in
12516 solaris2.[0-5] | solaris2.[0-5].*) ;;
12517 *)
12518 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12519 ;;
12520 esac
12521 fi
12522 ;;
12523 esac
12524 ;;
12525
12526 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12527 no_undefined_flag_CXX='${wl}-z,text'
12528 archive_cmds_need_lc_CXX=no
12529 hardcode_shlibpath_var_CXX=no
12530 runpath_var='LD_RUN_PATH'
12531
12532 case $cc_basename in
12533 CC*)
12534 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12535 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12536 ;;
12537 *)
12538 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12539 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12540 ;;
12541 esac
12542 ;;
12543
12544 sysv5* | sco3.2v5* | sco5v6*)
12545 # Note: We can NOT use -z defs as we might desire, because we do not
12546 # link with -lc, and that would cause any symbols used from libc to
12547 # always be unresolved, which means just about no library would
12548 # ever link correctly. If we're not using GNU ld we use -z text
12549 # though, which does catch some bad symbols but isn't as heavy-handed
12550 # as -z defs.
12551 no_undefined_flag_CXX='${wl}-z,text'
12552 allow_undefined_flag_CXX='${wl}-z,nodefs'
12553 archive_cmds_need_lc_CXX=no
12554 hardcode_shlibpath_var_CXX=no
12555 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12556 hardcode_libdir_separator_CXX=':'
12557 link_all_deplibs_CXX=yes
12558 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12559 runpath_var='LD_RUN_PATH'
12560
12561 case $cc_basename in
12562 CC*)
12563 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12564 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565 ;;
12566 *)
12567 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569 ;;
12570 esac
12571 ;;
12572
12573 tandem*)
12574 case $cc_basename in
12575 NCC*)
12576 # NonStop-UX NCC 3.20
12577 # FIXME: insert proper C++ library support
12578 ld_shlibs_CXX=no
12579 ;;
12580 *)
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12583 ;;
12584 esac
12585 ;;
12586
12587 vxworks*)
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12590 ;;
12591
mmentovai8c2a4de2006-09-20 16:20:15 +000012592 *)
jimblandy92b1f832009-12-23 22:23:49 +000012593 # FIXME: insert proper C++ library support
12594 ld_shlibs_CXX=no
12595 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012596 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012597
jimblandy92b1f832009-12-23 22:23:49 +000012598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12599$as_echo "$ld_shlibs_CXX" >&6; }
12600 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012601
jimblandy92b1f832009-12-23 22:23:49 +000012602 GCC_CXX="$GXX"
12603 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012604
jimblandy92b1f832009-12-23 22:23:49 +000012605 ## CAVEAT EMPTOR:
12606 ## There is no encapsulation within the following macros, do not change
12607 ## the running order or otherwise move them around unless you know exactly
12608 ## what you are doing...
12609 # Dependencies to place before and after the object being linked:
12610predep_objects_CXX=
12611postdep_objects_CXX=
12612predeps_CXX=
12613postdeps_CXX=
12614compiler_lib_search_path_CXX=
12615
12616cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012617class Foo
12618{
12619public:
12620 Foo (void) { a = 0; }
12621private:
12622 int a;
12623};
jimblandy92b1f832009-12-23 22:23:49 +000012624_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012625
jimblandy92b1f832009-12-23 22:23:49 +000012626if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012627 (eval $ac_compile) 2>&5
12628 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12630 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012631 # Parse the compiler output and extract the necessary
12632 # objects, libraries and library flags.
12633
12634 # Sentinel used to keep track of whether or not we are before
12635 # the conftest object file.
12636 pre_test_object_deps_done=no
12637
jimblandy92b1f832009-12-23 22:23:49 +000012638 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012639 case $p in
12640
12641 -L* | -R* | -l*)
12642 # Some compilers place space between "-{L,R}" and the path.
12643 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012644 if test $p = "-L" ||
12645 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012646 prev=$p
12647 continue
12648 else
12649 prev=
12650 fi
12651
12652 if test "$pre_test_object_deps_done" = no; then
12653 case $p in
12654 -L* | -R*)
12655 # Internal compiler library paths should come after those
12656 # provided the user. The postdeps already come after the
12657 # user supplied libs so there is no need to process them.
12658 if test -z "$compiler_lib_search_path_CXX"; then
12659 compiler_lib_search_path_CXX="${prev}${p}"
12660 else
12661 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12662 fi
12663 ;;
12664 # The "-l" case would never come before the object being
12665 # linked, so don't bother handling this case.
12666 esac
12667 else
12668 if test -z "$postdeps_CXX"; then
12669 postdeps_CXX="${prev}${p}"
12670 else
12671 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12672 fi
12673 fi
12674 ;;
12675
12676 *.$objext)
12677 # This assumes that the test object file only shows up
12678 # once in the compiler output.
12679 if test "$p" = "conftest.$objext"; then
12680 pre_test_object_deps_done=yes
12681 continue
12682 fi
12683
12684 if test "$pre_test_object_deps_done" = no; then
12685 if test -z "$predep_objects_CXX"; then
12686 predep_objects_CXX="$p"
12687 else
12688 predep_objects_CXX="$predep_objects_CXX $p"
12689 fi
12690 else
12691 if test -z "$postdep_objects_CXX"; then
12692 postdep_objects_CXX="$p"
12693 else
12694 postdep_objects_CXX="$postdep_objects_CXX $p"
12695 fi
12696 fi
12697 ;;
12698
12699 *) ;; # Ignore the rest.
12700
12701 esac
12702 done
12703
12704 # Clean up.
12705 rm -f a.out a.exe
12706else
12707 echo "libtool.m4: error: problem compiling CXX test program"
12708fi
12709
jimblandy92b1f832009-12-23 22:23:49 +000012710$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012711
mmentovai8c2a4de2006-09-20 16:20:15 +000012712# PORTME: override above test on systems where it is broken
12713case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012714interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012715 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12716 # hack all around it, let's just trust "g++" to DTRT.
12717 predep_objects_CXX=
12718 postdep_objects_CXX=
12719 postdeps_CXX=
12720 ;;
12721
ted.mielczarek1adb1842009-12-21 13:12:20 +000012722linux*)
12723 case `$CC -V 2>&1 | sed 5q` in
12724 *Sun\ C*)
12725 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012726
ted.mielczarek1adb1842009-12-21 13:12:20 +000012727 # The more standards-conforming stlport4 library is
12728 # incompatible with the Cstd library. Avoid specifying
12729 # it if it's in CXXFLAGS. Ignore libCrun as
12730 # -library=stlport4 depends on it.
12731 case " $CXX $CXXFLAGS " in
12732 *" -library=stlport4 "*)
12733 solaris_use_stlport4=yes
12734 ;;
12735 esac
jimblandy92b1f832009-12-23 22:23:49 +000012736
ted.mielczarek1adb1842009-12-21 13:12:20 +000012737 if test "$solaris_use_stlport4" != yes; then
12738 postdeps_CXX='-library=Cstd -library=Crun'
12739 fi
12740 ;;
12741 esac
12742 ;;
12743
mmentovai8c2a4de2006-09-20 16:20:15 +000012744solaris*)
12745 case $cc_basename in
12746 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012747 # The more standards-conforming stlport4 library is
12748 # incompatible with the Cstd library. Avoid specifying
12749 # it if it's in CXXFLAGS. Ignore libCrun as
12750 # -library=stlport4 depends on it.
12751 case " $CXX $CXXFLAGS " in
12752 *" -library=stlport4 "*)
12753 solaris_use_stlport4=yes
12754 ;;
12755 esac
12756
mmentovai8c2a4de2006-09-20 16:20:15 +000012757 # Adding this requires a known-good setup of shared libraries for
12758 # Sun compiler versions before 5.6, else PIC objects from an old
12759 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012760 if test "$solaris_use_stlport4" != yes; then
12761 postdeps_CXX='-library=Cstd -library=Crun'
12762 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012763 ;;
12764 esac
12765 ;;
12766esac
12767
jimblandy92b1f832009-12-23 22:23:49 +000012768
brynercb91a2f2006-08-25 21:14:45 +000012769case " $postdeps_CXX " in
12770*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12771esac
jimblandy92b1f832009-12-23 22:23:49 +000012772 compiler_lib_search_dirs_CXX=
12773if test -n "${compiler_lib_search_path_CXX}"; then
12774 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12775fi
brynercb91a2f2006-08-25 21:14:45 +000012776
jimblandy92b1f832009-12-23 22:23:49 +000012777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012808lt_prog_compiler_pic_CXX=
12809lt_prog_compiler_static_CXX=
12810
jimblandy92b1f832009-12-23 22:23:49 +000012811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12812$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012813
12814 # C++ specific cases for pic, static, wl, etc.
12815 if test "$GXX" = yes; then
12816 lt_prog_compiler_wl_CXX='-Wl,'
12817 lt_prog_compiler_static_CXX='-static'
12818
12819 case $host_os in
12820 aix*)
12821 # All AIX code is PIC.
12822 if test "$host_cpu" = ia64; then
12823 # AIX 5 now supports IA64 processor
12824 lt_prog_compiler_static_CXX='-Bstatic'
12825 fi
12826 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012827
brynercb91a2f2006-08-25 21:14:45 +000012828 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012829 case $host_cpu in
12830 powerpc)
12831 # see comment about AmigaOS4 .so support
12832 lt_prog_compiler_pic_CXX='-fPIC'
12833 ;;
12834 m68k)
12835 # FIXME: we need at least 68020 code to build shared libraries, but
12836 # adding the `-m68020' flag to GCC prevents building anything better,
12837 # like `-m68040'.
12838 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12839 ;;
12840 esac
brynercb91a2f2006-08-25 21:14:45 +000012841 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012842
ted.mielczarek1adb1842009-12-21 13:12:20 +000012843 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012844 # PIC is the default for these OSes.
12845 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012846 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012847 # This hack is so that the source file can tell whether it is being
12848 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012849 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12850 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012851 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12852 ;;
12853 darwin* | rhapsody*)
12854 # PIC is the default on this platform
12855 # Common symbols not allowed in MH_DYLIB files
12856 lt_prog_compiler_pic_CXX='-fno-common'
12857 ;;
12858 *djgpp*)
12859 # DJGPP does not support shared libraries at all
12860 lt_prog_compiler_pic_CXX=
12861 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012862 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12864 # Instead, we relocate shared libraries at runtime.
12865 ;;
brynercb91a2f2006-08-25 21:14:45 +000012866 sysv4*MP*)
12867 if test -d /usr/nec; then
12868 lt_prog_compiler_pic_CXX=-Kconform_pic
12869 fi
12870 ;;
12871 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12874 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012875 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012876 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012877 ;;
12878 *)
12879 lt_prog_compiler_pic_CXX='-fPIC'
12880 ;;
12881 esac
12882 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012883 *qnx* | *nto*)
12884 # QNX uses GNU C++, but need to define -shared option too, otherwise
12885 # it will coredump.
12886 lt_prog_compiler_pic_CXX='-fPIC -shared'
12887 ;;
brynercb91a2f2006-08-25 21:14:45 +000012888 *)
12889 lt_prog_compiler_pic_CXX='-fPIC'
12890 ;;
12891 esac
12892 else
12893 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012894 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012895 # All AIX code is PIC.
12896 if test "$host_cpu" = ia64; then
12897 # AIX 5 now supports IA64 processor
12898 lt_prog_compiler_static_CXX='-Bstatic'
12899 else
12900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12901 fi
12902 ;;
12903 chorus*)
12904 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012905 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012906 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000012907 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
brynercb91a2f2006-08-25 21:14:45 +000012908 ;;
12909 esac
12910 ;;
12911 dgux*)
12912 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012913 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012914 lt_prog_compiler_pic_CXX='-KPIC'
12915 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012916 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012917 # Green Hills C++ Compiler
12918 lt_prog_compiler_pic_CXX='-pic'
12919 ;;
12920 *)
12921 ;;
12922 esac
12923 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012924 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012925 # FreeBSD uses GNU C++
12926 ;;
12927 hpux9* | hpux10* | hpux11*)
12928 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012929 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012930 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012931 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012932 if test "$host_cpu" != ia64; then
12933 lt_prog_compiler_pic_CXX='+Z'
12934 fi
12935 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012936 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012937 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012938 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12939 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012940 hppa*64*|ia64*)
12941 # +Z the default
12942 ;;
12943 *)
12944 lt_prog_compiler_pic_CXX='+Z'
12945 ;;
12946 esac
12947 ;;
12948 *)
12949 ;;
12950 esac
12951 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012952 interix*)
12953 # This is c89, which is MS Visual C++ (no shared libs)
12954 # Anyone wants to do a port?
12955 ;;
brynercb91a2f2006-08-25 21:14:45 +000012956 irix5* | irix6* | nonstopux*)
12957 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012958 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012959 lt_prog_compiler_wl_CXX='-Wl,'
12960 lt_prog_compiler_static_CXX='-non_shared'
12961 # CC pic flag -KPIC is the default.
12962 ;;
12963 *)
12964 ;;
12965 esac
12966 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012967 linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000012968 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012969 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012970 # KAI C++ Compiler
12971 lt_prog_compiler_wl_CXX='--backend -Wl,'
12972 lt_prog_compiler_pic_CXX='-fPIC'
12973 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012974 ecpc* )
12975 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000012976 lt_prog_compiler_wl_CXX='-Wl,'
12977 lt_prog_compiler_pic_CXX='-KPIC'
12978 lt_prog_compiler_static_CXX='-static'
12979 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012980 icpc* )
12981 # Intel C++, used to be incompatible with GCC.
12982 # ICC 10 doesn't accept -KPIC any more.
12983 lt_prog_compiler_wl_CXX='-Wl,'
12984 lt_prog_compiler_pic_CXX='-fPIC'
12985 lt_prog_compiler_static_CXX='-static'
12986 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012987 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000012988 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000012989 lt_prog_compiler_wl_CXX='-Wl,'
12990 lt_prog_compiler_pic_CXX='-fpic'
12991 lt_prog_compiler_static_CXX='-Bstatic'
12992 ;;
12993 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000012994 # Compaq C++
12995 # Make sure the PIC flag is empty. It appears that all Alpha
12996 # Linux and Compaq Tru64 Unix objects are PIC.
12997 lt_prog_compiler_pic_CXX=
12998 lt_prog_compiler_static_CXX='-non_shared'
12999 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013000 xlc* | xlC*)
13001 # IBM XL 8.0 on PPC
13002 lt_prog_compiler_wl_CXX='-Wl,'
13003 lt_prog_compiler_pic_CXX='-qpic'
13004 lt_prog_compiler_static_CXX='-qstaticlink'
13005 ;;
brynercb91a2f2006-08-25 21:14:45 +000013006 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013007 case `$CC -V 2>&1 | sed 5q` in
13008 *Sun\ C*)
13009 # Sun C++ 5.9
13010 lt_prog_compiler_pic_CXX='-KPIC'
13011 lt_prog_compiler_static_CXX='-Bstatic'
13012 lt_prog_compiler_wl_CXX='-Qoption ld '
13013 ;;
13014 esac
brynercb91a2f2006-08-25 21:14:45 +000013015 ;;
13016 esac
13017 ;;
13018 lynxos*)
13019 ;;
13020 m88k*)
13021 ;;
13022 mvs*)
13023 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013024 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013025 lt_prog_compiler_pic_CXX='-W c,exportall'
13026 ;;
13027 *)
13028 ;;
13029 esac
13030 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013031 netbsd* | netbsdelf*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013032 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013033 *qnx* | *nto*)
13034 # QNX uses GNU C++, but need to define -shared option too, otherwise
13035 # it will coredump.
13036 lt_prog_compiler_pic_CXX='-fPIC -shared'
13037 ;;
brynercb91a2f2006-08-25 21:14:45 +000013038 osf3* | osf4* | osf5*)
13039 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013040 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013041 lt_prog_compiler_wl_CXX='--backend -Wl,'
13042 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013043 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013044 # Rational C++ 2.4.1
13045 lt_prog_compiler_pic_CXX='-pic'
13046 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013047 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013048 # Digital/Compaq C++
13049 lt_prog_compiler_wl_CXX='-Wl,'
13050 # Make sure the PIC flag is empty. It appears that all Alpha
13051 # Linux and Compaq Tru64 Unix objects are PIC.
13052 lt_prog_compiler_pic_CXX=
13053 lt_prog_compiler_static_CXX='-non_shared'
13054 ;;
13055 *)
13056 ;;
13057 esac
13058 ;;
13059 psos*)
13060 ;;
brynercb91a2f2006-08-25 21:14:45 +000013061 solaris*)
13062 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013063 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013064 # Sun C++ 4.2, 5.x and Centerline C++
13065 lt_prog_compiler_pic_CXX='-KPIC'
13066 lt_prog_compiler_static_CXX='-Bstatic'
13067 lt_prog_compiler_wl_CXX='-Qoption ld '
13068 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013069 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013070 # Green Hills C++ Compiler
13071 lt_prog_compiler_pic_CXX='-PIC'
13072 ;;
13073 *)
13074 ;;
13075 esac
13076 ;;
13077 sunos4*)
13078 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013079 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013080 # Sun C++ 4.x
13081 lt_prog_compiler_pic_CXX='-pic'
13082 lt_prog_compiler_static_CXX='-Bstatic'
13083 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013084 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013085 # Lucid
13086 lt_prog_compiler_pic_CXX='-pic'
13087 ;;
13088 *)
13089 ;;
13090 esac
13091 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013092 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13093 case $cc_basename in
13094 CC*)
13095 lt_prog_compiler_wl_CXX='-Wl,'
13096 lt_prog_compiler_pic_CXX='-KPIC'
13097 lt_prog_compiler_static_CXX='-Bstatic'
13098 ;;
13099 esac
13100 ;;
brynercb91a2f2006-08-25 21:14:45 +000013101 tandem*)
13102 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013103 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013104 # NonStop-UX NCC 3.20
13105 lt_prog_compiler_pic_CXX='-KPIC'
13106 ;;
13107 *)
13108 ;;
13109 esac
13110 ;;
brynercb91a2f2006-08-25 21:14:45 +000013111 vxworks*)
13112 ;;
13113 *)
13114 lt_prog_compiler_can_build_shared_CXX=no
13115 ;;
13116 esac
13117 fi
13118
jimblandy92b1f832009-12-23 22:23:49 +000013119case $host_os in
13120 # For platforms which do not support PIC, -DPIC is meaningless:
13121 *djgpp*)
13122 lt_prog_compiler_pic_CXX=
13123 ;;
13124 *)
13125 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13126 ;;
13127esac
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13129$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13130
13131
brynercb91a2f2006-08-25 21:14:45 +000013132
13133#
13134# Check to make sure the PIC flag actually works.
13135#
13136if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13138$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13139if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13140 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013141else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013142 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013143 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013145 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13146 # Insert the option either (1) after the last *FLAGS variable, or
13147 # (2) before a word containing "conftest.", or (3) at the end.
13148 # Note that $ac_compile itself does not contain backslashes and begins
13149 # with a dollar sign (not a hyphen), so the echo should work correctly.
13150 # The option is referenced via a variable to avoid confusing sed.
13151 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13154 -e 's:$: $lt_compiler_flag:'`
jimblandy92b1f832009-12-23 22:23:49 +000013155 (eval echo "\"\$as_me:13155: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013156 (eval "$lt_compile" 2>conftest.err)
13157 ac_status=$?
13158 cat conftest.err >&5
jimblandy92b1f832009-12-23 22:23:49 +000013159 echo "$as_me:13159: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013160 if (exit $ac_status) && test -s "$ac_outfile"; then
13161 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013162 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013163 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013166 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013167 fi
13168 fi
jimblandy92b1f832009-12-23 22:23:49 +000013169 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013170
13171fi
jimblandy92b1f832009-12-23 22:23:49 +000013172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13173$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013174
ted.mielczarek1adb1842009-12-21 13:12:20 +000013175if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013176 case $lt_prog_compiler_pic_CXX in
13177 "" | " "*) ;;
13178 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13179 esac
13180else
13181 lt_prog_compiler_pic_CXX=
13182 lt_prog_compiler_can_build_shared_CXX=no
13183fi
13184
13185fi
jimblandy92b1f832009-12-23 22:23:49 +000013186
13187
brynercb91a2f2006-08-25 21:14:45 +000013188
mmentovai8c2a4de2006-09-20 16:20:15 +000013189#
13190# Check to make sure the static flag actually works.
13191#
13192wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13194$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13195if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013197else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013198 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013199 save_LDFLAGS="$LDFLAGS"
13200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13203 # The linker can only warn and ignore the option if not recognized
13204 # So say no if there are warnings
13205 if test -s conftest.err; then
13206 # Append any errors to the config.log.
13207 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013208 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13210 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013211 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013212 fi
13213 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013214 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013215 fi
13216 fi
jimblandy92b1f832009-12-23 22:23:49 +000013217 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013218 LDFLAGS="$save_LDFLAGS"
13219
13220fi
jimblandy92b1f832009-12-23 22:23:49 +000013221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13222$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013223
ted.mielczarek1adb1842009-12-21 13:12:20 +000013224if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013225 :
13226else
13227 lt_prog_compiler_static_CXX=
13228fi
13229
13230
jimblandy92b1f832009-12-23 22:23:49 +000013231
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13234$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13235if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013237else
13238 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013239 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013240 mkdir conftest
13241 cd conftest
13242 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013244
13245 lt_compiler_flag="-o out/conftest2.$ac_objext"
13246 # Insert the option either (1) after the last *FLAGS variable, or
13247 # (2) before a word containing "conftest.", or (3) at the end.
13248 # Note that $ac_compile itself does not contain backslashes and begins
13249 # with a dollar sign (not a hyphen), so the echo should work correctly.
13250 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13253 -e 's:$: $lt_compiler_flag:'`
jimblandy92b1f832009-12-23 22:23:49 +000013254 (eval echo "\"\$as_me:13254: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013255 (eval "$lt_compile" 2>out/conftest.err)
13256 ac_status=$?
13257 cat out/conftest.err >&5
jimblandy92b1f832009-12-23 22:23:49 +000013258 echo "$as_me:13258: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013259 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13260 then
13261 # The compiler can only warn and ignore the option if not recognized
13262 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013263 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013266 lt_cv_prog_compiler_c_o_CXX=yes
13267 fi
13268 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013269 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013270 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013271 # SGI C++ compiler will create directory out/ii_files/ for
13272 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13274 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013275 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013276 $RM -r conftest
13277 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013278
13279fi
jimblandy92b1f832009-12-23 22:23:49 +000013280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13281$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13282
13283
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13287if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 lt_cv_prog_compiler_c_o_CXX=no
13291 $RM -r conftest 2>/dev/null
13292 mkdir conftest
13293 cd conftest
13294 mkdir out
13295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13296
13297 lt_compiler_flag="-o out/conftest2.$ac_objext"
13298 # Insert the option either (1) after the last *FLAGS variable, or
13299 # (2) before a word containing "conftest.", or (3) at the end.
13300 # Note that $ac_compile itself does not contain backslashes and begins
13301 # with a dollar sign (not a hyphen), so the echo should work correctly.
13302 lt_compile=`echo "$ac_compile" | $SED \
13303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13305 -e 's:$: $lt_compiler_flag:'`
13306 (eval echo "\"\$as_me:13306: $lt_compile\"" >&5)
13307 (eval "$lt_compile" 2>out/conftest.err)
13308 ac_status=$?
13309 cat out/conftest.err >&5
13310 echo "$as_me:13310: \$? = $ac_status" >&5
13311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13312 then
13313 # The compiler can only warn and ignore the option if not recognized
13314 # So say no if there are warnings
13315 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13318 lt_cv_prog_compiler_c_o_CXX=yes
13319 fi
13320 fi
13321 chmod u+w . 2>&5
13322 $RM conftest*
13323 # SGI C++ compiler will create directory out/ii_files/ for
13324 # template instantiation
13325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13326 $RM out/* && rmdir out
13327 cd ..
13328 $RM -r conftest
13329 $RM conftest*
13330
13331fi
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13333$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13334
13335
brynercb91a2f2006-08-25 21:14:45 +000013336
13337
13338hard_links="nottested"
13339if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13340 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13342$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013343 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013344 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13346 touch conftest.a
13347 ln conftest.a conftest.b 2>&5 || hard_links=no
13348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13350$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013351 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13353$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013354 need_locks=warn
13355 fi
13356else
13357 need_locks=no
13358fi
13359
jimblandy92b1f832009-12-23 22:23:49 +000013360
13361
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13363$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013364
13365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013367 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013368 # If we're using GNU nm, then we don't want the "-C" option.
13369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13371 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013372 else
jimblandy92b1f832009-12-23 22:23:49 +000013373 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013374 fi
13375 ;;
13376 pw32*)
13377 export_symbols_cmds_CXX="$ltdll_cmds"
13378 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013379 cygwin* | mingw* | cegcc*)
13380 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13381 ;;
13382 linux* | k*bsd*-gnu)
13383 link_all_deplibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000013384 ;;
13385 *)
13386 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13387 ;;
13388 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013389 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013390
jimblandy92b1f832009-12-23 22:23:49 +000013391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13392$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013393test "$ld_shlibs_CXX" = no && can_build_shared=no
13394
jimblandy92b1f832009-12-23 22:23:49 +000013395with_gnu_ld_CXX=$with_gnu_ld
13396
13397
13398
13399
13400
13401
brynercb91a2f2006-08-25 21:14:45 +000013402#
13403# Do we need to explicitly link libc?
13404#
13405case "x$archive_cmds_need_lc_CXX" in
13406x|xyes)
13407 # Assume -lc should be added
13408 archive_cmds_need_lc_CXX=yes
13409
13410 if test "$enable_shared" = yes && test "$GCC" = yes; then
13411 case $archive_cmds_CXX in
13412 *'~'*)
13413 # FIXME: we may have to deal with multi-command sequences.
13414 ;;
13415 '$CC '*)
13416 # Test whether the compiler implicitly links with -lc since on some
13417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13418 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13420$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13421 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013423
jimblandy92b1f832009-12-23 22:23:49 +000013424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013425 (eval $ac_compile) 2>&5
13426 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013429 soname=conftest
13430 lib=conftest
13431 libobjs=conftest.$ac_objext
13432 deplibs=
13433 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013434 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013435 compiler_flags=-v
13436 linker_flags=-v
13437 verstring=
13438 output_objdir=.
13439 libname=conftest
13440 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13441 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13443 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013444 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013447 then
13448 archive_cmds_need_lc_CXX=no
13449 else
13450 archive_cmds_need_lc_CXX=yes
13451 fi
13452 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13453 else
13454 cat conftest.err 1>&5
13455 fi
jimblandy92b1f832009-12-23 22:23:49 +000013456 $RM conftest*
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13458$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013459 ;;
13460 esac
13461 fi
13462 ;;
13463esac
13464
jimblandy92b1f832009-12-23 22:23:49 +000013465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13529$as_echo_n "checking dynamic linker characteristics... " >&6; }
13530
brynercb91a2f2006-08-25 21:14:45 +000013531library_names_spec=
13532libname_spec='lib$name'
13533soname_spec=
13534shrext_cmds=".so"
13535postinstall_cmds=
13536postuninstall_cmds=
13537finish_cmds=
13538finish_eval=
13539shlibpath_var=
13540shlibpath_overrides_runpath=unknown
13541version_type=none
13542dynamic_linker="$host_os ld.so"
13543sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013544need_lib_prefix=unknown
13545hardcode_into_libs=no
13546
13547# when you set need_version to no, make sure it does not cause -set_version
13548# flags to be left without arguments
13549need_version=unknown
13550
13551case $host_os in
13552aix3*)
13553 version_type=linux
13554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13555 shlibpath_var=LIBPATH
13556
13557 # AIX 3 has no versioning support, so we append a major version to the name.
13558 soname_spec='${libname}${release}${shared_ext}$major'
13559 ;;
13560
ted.mielczarek1adb1842009-12-21 13:12:20 +000013561aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013562 version_type=linux
13563 need_lib_prefix=no
13564 need_version=no
13565 hardcode_into_libs=yes
13566 if test "$host_cpu" = ia64; then
13567 # AIX 5 supports IA64
13568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 else
13571 # With GCC up to 2.95.x, collect2 would create an import file
13572 # for dependence libraries. The import file would start with
13573 # the line `#! .'. This would cause the generated library to
13574 # depend on `.', always an invalid library. This was fixed in
13575 # development snapshots of GCC prior to 3.0.
13576 case $host_os in
13577 aix4 | aix4.[01] | aix4.[01].*)
13578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13579 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013580 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013581 :
13582 else
13583 can_build_shared=no
13584 fi
13585 ;;
13586 esac
13587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13588 # soname into executable. Probably we can add versioning support to
13589 # collect2, so additional links can be useful in future.
13590 if test "$aix_use_runtimelinking" = yes; then
13591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13592 # instead of lib<name>.a to let people know that these are not
13593 # typical AIX shared libraries.
13594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595 else
13596 # We preserve .a as extension for shared libraries through AIX4.2
13597 # and later when we are not doing run time linking.
13598 library_names_spec='${libname}${release}.a $libname.a'
13599 soname_spec='${libname}${release}${shared_ext}$major'
13600 fi
13601 shlibpath_var=LIBPATH
13602 fi
13603 ;;
13604
13605amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013606 case $host_cpu in
13607 powerpc)
13608 # Since July 2007 AmigaOS4 officially supports .so libraries.
13609 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 ;;
13612 m68k)
13613 library_names_spec='$libname.ixlibrary $libname.a'
13614 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13615 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'
13616 ;;
13617 esac
brynercb91a2f2006-08-25 21:14:45 +000013618 ;;
13619
13620beos*)
13621 library_names_spec='${libname}${shared_ext}'
13622 dynamic_linker="$host_os ld.so"
13623 shlibpath_var=LIBRARY_PATH
13624 ;;
13625
mmentovai8c2a4de2006-09-20 16:20:15 +000013626bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013627 version_type=linux
13628 need_version=no
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630 soname_spec='${libname}${release}${shared_ext}$major'
13631 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13632 shlibpath_var=LD_LIBRARY_PATH
13633 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13634 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13635 # the default ld.so.conf also contains /usr/contrib/lib and
13636 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13637 # libtool to hard-code these into programs
13638 ;;
13639
jimblandy92b1f832009-12-23 22:23:49 +000013640cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013641 version_type=windows
13642 shrext_cmds=".dll"
13643 need_version=no
13644 need_lib_prefix=no
13645
13646 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013647 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013648 library_names_spec='$libname.dll.a'
13649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13650 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013652 dldir=$destdir/`dirname \$dlpath`~
13653 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013654 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013655 chmod a+x \$dldir/$dlname~
13656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13658 fi'
brynercb91a2f2006-08-25 21:14:45 +000013659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13660 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013661 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013662 shlibpath_overrides_runpath=yes
13663
13664 case $host_os in
13665 cygwin*)
13666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13667 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13668 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13669 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013670 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013671 # MinGW DLLs use traditional 'lib' prefix
13672 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013673 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13674 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013675 # It is most probably a Windows format PATH printed by
13676 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13677 # path with ; separators, and with drive letters. We can handle the
13678 # drive letters (cygwin fileutils understands them), so leave them,
13679 # especially as we might pass files found there to a mingw objdump,
13680 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013682 else
jimblandy92b1f832009-12-23 22:23:49 +000013683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013684 fi
13685 ;;
13686 pw32*)
13687 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013688 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000013689 ;;
13690 esac
13691 ;;
13692
13693 *)
13694 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13695 ;;
13696 esac
13697 dynamic_linker='Win32 ld.exe'
13698 # FIXME: first we should search . and the directory the executable is in
13699 shlibpath_var=PATH
13700 ;;
13701
13702darwin* | rhapsody*)
13703 dynamic_linker="$host_os dyld"
13704 version_type=darwin
13705 need_lib_prefix=no
13706 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013707 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013708 soname_spec='${libname}${release}${major}$shared_ext'
13709 shlibpath_overrides_runpath=yes
13710 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013711 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013712
brynercb91a2f2006-08-25 21:14:45 +000013713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13714 ;;
13715
13716dgux*)
13717 version_type=linux
13718 need_lib_prefix=no
13719 need_version=no
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13721 soname_spec='${libname}${release}${shared_ext}$major'
13722 shlibpath_var=LD_LIBRARY_PATH
13723 ;;
13724
13725freebsd1*)
13726 dynamic_linker=no
13727 ;;
13728
mmentovai8c2a4de2006-09-20 16:20:15 +000013729freebsd* | dragonfly*)
13730 # DragonFly does not have aout. When/if they implement a new
13731 # versioning mechanism, adjust this.
13732 if test -x /usr/bin/objformat; then
13733 objformat=`/usr/bin/objformat`
13734 else
13735 case $host_os in
13736 freebsd[123]*) objformat=aout ;;
13737 *) objformat=elf ;;
13738 esac
13739 fi
brynercb91a2f2006-08-25 21:14:45 +000013740 version_type=freebsd-$objformat
13741 case $version_type in
13742 freebsd-elf*)
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13744 need_version=no
13745 need_lib_prefix=no
13746 ;;
13747 freebsd-*)
13748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13749 need_version=yes
13750 ;;
13751 esac
13752 shlibpath_var=LD_LIBRARY_PATH
13753 case $host_os in
13754 freebsd2*)
13755 shlibpath_overrides_runpath=yes
13756 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013757 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013758 shlibpath_overrides_runpath=yes
13759 hardcode_into_libs=yes
13760 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013761 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13762 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013763 shlibpath_overrides_runpath=no
13764 hardcode_into_libs=yes
13765 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013766 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013767 shlibpath_overrides_runpath=yes
13768 hardcode_into_libs=yes
13769 ;;
brynercb91a2f2006-08-25 21:14:45 +000013770 esac
13771 ;;
13772
13773gnu*)
13774 version_type=linux
13775 need_lib_prefix=no
13776 need_version=no
13777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13778 soname_spec='${libname}${release}${shared_ext}$major'
13779 shlibpath_var=LD_LIBRARY_PATH
13780 hardcode_into_libs=yes
13781 ;;
13782
13783hpux9* | hpux10* | hpux11*)
13784 # Give a soname corresponding to the major version so that dld.sl refuses to
13785 # link against other versions.
13786 version_type=sunos
13787 need_lib_prefix=no
13788 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013789 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013790 ia64*)
13791 shrext_cmds='.so'
13792 hardcode_into_libs=yes
13793 dynamic_linker="$host_os dld.so"
13794 shlibpath_var=LD_LIBRARY_PATH
13795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 if test "X$HPUX_IA64_MODE" = X32; then
13799 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13800 else
13801 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13802 fi
13803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13804 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013805 hppa*64*)
13806 shrext_cmds='.sl'
13807 hardcode_into_libs=yes
13808 dynamic_linker="$host_os dld.sl"
13809 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13810 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13812 soname_spec='${libname}${release}${shared_ext}$major'
13813 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13815 ;;
13816 *)
brynercb91a2f2006-08-25 21:14:45 +000013817 shrext_cmds='.sl'
13818 dynamic_linker="$host_os dld.sl"
13819 shlibpath_var=SHLIB_PATH
13820 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13822 soname_spec='${libname}${release}${shared_ext}$major'
13823 ;;
13824 esac
13825 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13826 postinstall_cmds='chmod 555 $lib'
13827 ;;
13828
ted.mielczarek1adb1842009-12-21 13:12:20 +000013829interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013830 version_type=linux
13831 need_lib_prefix=no
13832 need_version=no
13833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13834 soname_spec='${libname}${release}${shared_ext}$major'
13835 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 shlibpath_overrides_runpath=no
13838 hardcode_into_libs=yes
13839 ;;
13840
brynercb91a2f2006-08-25 21:14:45 +000013841irix5* | irix6* | nonstopux*)
13842 case $host_os in
13843 nonstopux*) version_type=nonstopux ;;
13844 *)
13845 if test "$lt_cv_prog_gnu_ld" = yes; then
13846 version_type=linux
13847 else
13848 version_type=irix
13849 fi ;;
13850 esac
13851 need_lib_prefix=no
13852 need_version=no
13853 soname_spec='${libname}${release}${shared_ext}$major'
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13855 case $host_os in
13856 irix5* | nonstopux*)
13857 libsuff= shlibsuff=
13858 ;;
13859 *)
13860 case $LD in # libtool.m4 will add one of these switches to LD
13861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13862 libsuff= shlibsuff= libmagic=32-bit;;
13863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13864 libsuff=32 shlibsuff=N32 libmagic=N32;;
13865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13867 *) libsuff= shlibsuff= libmagic=never-match;;
13868 esac
13869 ;;
13870 esac
13871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13872 shlibpath_overrides_runpath=no
13873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13875 hardcode_into_libs=yes
13876 ;;
13877
13878# No shared lib support for Linux oldld, aout, or coff.
13879linux*oldld* | linux*aout* | linux*coff*)
13880 dynamic_linker=no
13881 ;;
13882
13883# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000013884linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013885 version_type=linux
13886 need_lib_prefix=no
13887 need_version=no
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889 soname_spec='${libname}${release}${shared_ext}$major'
13890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13891 shlibpath_var=LD_LIBRARY_PATH
13892 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013893 # Some binutils ld are patched to set DT_RUNPATH
13894 save_LDFLAGS=$LDFLAGS
13895 save_libdir=$libdir
13896 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13897 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899/* end confdefs.h. */
13900
13901int
13902main ()
13903{
13904
13905 ;
13906 return 0;
13907}
13908_ACEOF
13909if ac_fn_cxx_try_link "$LINENO"; then :
13910 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13911 shlibpath_overrides_runpath=yes
13912fi
13913fi
13914rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13916 LDFLAGS=$save_LDFLAGS
13917 libdir=$save_libdir
13918
brynercb91a2f2006-08-25 21:14:45 +000013919 # This implies no fast_install, which is unacceptable.
13920 # Some rework will be needed to allow for fast_install
13921 # before this can be enabled.
13922 hardcode_into_libs=yes
13923
13924 # Append ld.so.conf contents to the search path
13925 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000013926 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000013927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13928 fi
13929
13930 # We used to test for /lib/ld.so.1 and disable shared libraries on
13931 # powerpc, because MkLinux only supported shared libraries with the
13932 # GNU dynamic linker. Since this was broken with cross compilers,
13933 # most powerpc-linux boxes support dynamic linking these days and
13934 # people can always --disable-shared, the test was removed, and we
13935 # assume the GNU/Linux dynamic linker is in use.
13936 dynamic_linker='GNU/Linux ld.so'
13937 ;;
13938
jimblandy92b1f832009-12-23 22:23:49 +000013939netbsdelf*-gnu)
13940 version_type=linux
13941 need_lib_prefix=no
13942 need_version=no
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=no
13947 hardcode_into_libs=yes
13948 dynamic_linker='NetBSD ld.elf_so'
13949 ;;
13950
brynercb91a2f2006-08-25 21:14:45 +000013951netbsd*)
13952 version_type=sunos
13953 need_lib_prefix=no
13954 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13958 dynamic_linker='NetBSD (a.out) ld.so'
13959 else
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13961 soname_spec='${libname}${release}${shared_ext}$major'
13962 dynamic_linker='NetBSD ld.elf_so'
13963 fi
13964 shlibpath_var=LD_LIBRARY_PATH
13965 shlibpath_overrides_runpath=yes
13966 hardcode_into_libs=yes
13967 ;;
13968
13969newsos6)
13970 version_type=linux
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972 shlibpath_var=LD_LIBRARY_PATH
13973 shlibpath_overrides_runpath=yes
13974 ;;
13975
jimblandy92b1f832009-12-23 22:23:49 +000013976*nto* | *qnx*)
13977 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000013978 need_lib_prefix=no
13979 need_version=no
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000013983 shlibpath_overrides_runpath=no
13984 hardcode_into_libs=yes
13985 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000013986 ;;
13987
13988openbsd*)
13989 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013990 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013991 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013992 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13993 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013994 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13995 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013996 esac
brynercb91a2f2006-08-25 21:14:45 +000013997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13998 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13999 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000014001 case $host_os in
14002 openbsd2.[89] | openbsd2.[89].*)
14003 shlibpath_overrides_runpath=no
14004 ;;
14005 *)
14006 shlibpath_overrides_runpath=yes
14007 ;;
14008 esac
14009 else
14010 shlibpath_overrides_runpath=yes
14011 fi
14012 ;;
14013
14014os2*)
14015 libname_spec='$name'
14016 shrext_cmds=".dll"
14017 need_lib_prefix=no
14018 library_names_spec='$libname${shared_ext} $libname.a'
14019 dynamic_linker='OS/2 ld.exe'
14020 shlibpath_var=LIBPATH
14021 ;;
14022
14023osf3* | osf4* | osf5*)
14024 version_type=osf
14025 need_lib_prefix=no
14026 need_version=no
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14031 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14032 ;;
14033
ted.mielczarek1adb1842009-12-21 13:12:20 +000014034rdos*)
14035 dynamic_linker=no
14036 ;;
14037
brynercb91a2f2006-08-25 21:14:45 +000014038solaris*)
14039 version_type=linux
14040 need_lib_prefix=no
14041 need_version=no
14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14043 soname_spec='${libname}${release}${shared_ext}$major'
14044 shlibpath_var=LD_LIBRARY_PATH
14045 shlibpath_overrides_runpath=yes
14046 hardcode_into_libs=yes
14047 # ldd complains unless libraries are executable
14048 postinstall_cmds='chmod +x $lib'
14049 ;;
14050
14051sunos4*)
14052 version_type=sunos
14053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 shlibpath_overrides_runpath=yes
14057 if test "$with_gnu_ld" = yes; then
14058 need_lib_prefix=no
14059 fi
14060 need_version=yes
14061 ;;
14062
mmentovai8c2a4de2006-09-20 16:20:15 +000014063sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014064 version_type=linux
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 shlibpath_var=LD_LIBRARY_PATH
14068 case $host_vendor in
14069 sni)
14070 shlibpath_overrides_runpath=no
14071 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014072 runpath_var=LD_RUN_PATH
14073 ;;
14074 siemens)
14075 need_lib_prefix=no
14076 ;;
14077 motorola)
14078 need_lib_prefix=no
14079 need_version=no
14080 shlibpath_overrides_runpath=no
14081 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14082 ;;
14083 esac
14084 ;;
14085
14086sysv4*MP*)
14087 if test -d /usr/nec ;then
14088 version_type=linux
14089 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14090 soname_spec='$libname${shared_ext}.$major'
14091 shlibpath_var=LD_LIBRARY_PATH
14092 fi
14093 ;;
14094
mmentovai8c2a4de2006-09-20 16:20:15 +000014095sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14096 version_type=freebsd-elf
14097 need_lib_prefix=no
14098 need_version=no
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014102 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014103 hardcode_into_libs=yes
14104 if test "$with_gnu_ld" = yes; then
14105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014106 else
14107 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014108 case $host_os in
14109 sco3.2v5*)
14110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14111 ;;
14112 esac
14113 fi
14114 sys_lib_dlsearch_path_spec='/usr/lib'
14115 ;;
14116
jimblandy92b1f832009-12-23 22:23:49 +000014117tpf*)
14118 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14119 version_type=linux
14120 need_lib_prefix=no
14121 need_version=no
14122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14123 shlibpath_var=LD_LIBRARY_PATH
14124 shlibpath_overrides_runpath=no
14125 hardcode_into_libs=yes
14126 ;;
14127
brynercb91a2f2006-08-25 21:14:45 +000014128uts4*)
14129 version_type=linux
14130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 shlibpath_var=LD_LIBRARY_PATH
14133 ;;
14134
14135*)
14136 dynamic_linker=no
14137 ;;
14138esac
jimblandy92b1f832009-12-23 22:23:49 +000014139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14140$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014141test "$dynamic_linker" = no && can_build_shared=no
14142
mmentovai8c2a4de2006-09-20 16:20:15 +000014143variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14144if test "$GCC" = yes; then
14145 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14146fi
14147
jimblandy92b1f832009-12-23 22:23:49 +000014148if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14149 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14150fi
14151if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14152 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14153fi
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14191$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014192hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014193if test -n "$hardcode_libdir_flag_spec_CXX" ||
14194 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014195 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014196
jimblandy92b1f832009-12-23 22:23:49 +000014197 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014198 if test "$hardcode_direct_CXX" != no &&
14199 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14200 # have to relink, otherwise we might link with an installed library
14201 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014202 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014203 test "$hardcode_minus_L_CXX" != no; then
14204 # Linking always hardcodes the temporary library directory.
14205 hardcode_action_CXX=relink
14206 else
14207 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14208 hardcode_action_CXX=immediate
14209 fi
14210else
14211 # We cannot hardcode anything, or else we can only hardcode existing
14212 # directories.
14213 hardcode_action_CXX=unsupported
14214fi
jimblandy92b1f832009-12-23 22:23:49 +000014215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14216$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014217
jimblandy92b1f832009-12-23 22:23:49 +000014218if test "$hardcode_action_CXX" = relink ||
14219 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014220 # Fast installation is not supported
14221 enable_fast_install=no
14222elif test "$shlibpath_overrides_runpath" = yes ||
14223 test "$enable_shared" = no; then
14224 # Fast installation is not necessary
14225 enable_fast_install=needless
14226fi
14227
brynercb91a2f2006-08-25 21:14:45 +000014228
brynercb91a2f2006-08-25 21:14:45 +000014229
brynercb91a2f2006-08-25 21:14:45 +000014230
brynercb91a2f2006-08-25 21:14:45 +000014231
brynercb91a2f2006-08-25 21:14:45 +000014232
brynercb91a2f2006-08-25 21:14:45 +000014233
jimblandy92b1f832009-12-23 22:23:49 +000014234 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014235
jimblandy92b1f832009-12-23 22:23:49 +000014236 CC=$lt_save_CC
14237 LDCXX=$LD
14238 LD=$lt_save_LD
14239 GCC=$lt_save_GCC
14240 with_gnu_ld=$lt_save_with_gnu_ld
14241 lt_cv_path_LDCXX=$lt_cv_path_LD
14242 lt_cv_path_LD=$lt_save_path_LD
14243 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14244 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14245fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014246
14247ac_ext=c
14248ac_cpp='$CPP $CPPFLAGS'
14249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14251ac_compiler_gnu=$ac_cv_c_compiler_gnu
14252
brynercb91a2f2006-08-25 21:14:45 +000014253
14254
brynercb91a2f2006-08-25 21:14:45 +000014255
14256
mmentovai8c2a4de2006-09-20 16:20:15 +000014257
14258
brynercb91a2f2006-08-25 21:14:45 +000014259
brynercb91a2f2006-08-25 21:14:45 +000014260
mmentovai8c2a4de2006-09-20 16:20:15 +000014261
brynercb91a2f2006-08-25 21:14:45 +000014262
brynercb91a2f2006-08-25 21:14:45 +000014263
brynerd5e66382006-09-08 02:35:53 +000014264
jimblandy92b1f832009-12-23 22:23:49 +000014265 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014266
brynercb91a2f2006-08-25 21:14:45 +000014267
brynercb91a2f2006-08-25 21:14:45 +000014268
brynercb91a2f2006-08-25 21:14:45 +000014269
jimblandy92b1f832009-12-23 22:23:49 +000014270# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014271
brynercb91a2f2006-08-25 21:14:45 +000014272
brynercb91a2f2006-08-25 21:14:45 +000014273
brynercb91a2f2006-08-25 21:14:45 +000014274
jimblandy92b1f832009-12-23 22:23:49 +000014275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14276$as_echo_n "checking for ANSI C header files... " >&6; }
14277if test "${ac_cv_header_stdc+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014279else
jimblandy92b1f832009-12-23 22:23:49 +000014280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014281/* end confdefs.h. */
14282#include <stdlib.h>
14283#include <stdarg.h>
14284#include <string.h>
14285#include <float.h>
14286
14287int
14288main ()
14289{
14290
14291 ;
14292 return 0;
14293}
14294_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014295if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014296 ac_cv_header_stdc=yes
14297else
jimblandy92b1f832009-12-23 22:23:49 +000014298 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014299fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014301
14302if test $ac_cv_header_stdc = yes; then
14303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014305/* end confdefs.h. */
14306#include <string.h>
14307
14308_ACEOF
14309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014310 $EGREP "memchr" >/dev/null 2>&1; then :
14311
brynercb91a2f2006-08-25 21:14:45 +000014312else
14313 ac_cv_header_stdc=no
14314fi
14315rm -f conftest*
14316
14317fi
14318
14319if test $ac_cv_header_stdc = yes; then
14320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014322/* end confdefs.h. */
14323#include <stdlib.h>
14324
14325_ACEOF
14326if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014327 $EGREP "free" >/dev/null 2>&1; then :
14328
brynercb91a2f2006-08-25 21:14:45 +000014329else
14330 ac_cv_header_stdc=no
14331fi
14332rm -f conftest*
14333
14334fi
14335
14336if test $ac_cv_header_stdc = yes; then
14337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014338 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014339 :
14340else
jimblandy92b1f832009-12-23 22:23:49 +000014341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014342/* end confdefs.h. */
14343#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014344#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014345#if ((' ' & 0x0FF) == 0x020)
14346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14348#else
14349# define ISLOWER(c) \
14350 (('a' <= (c) && (c) <= 'i') \
14351 || ('j' <= (c) && (c) <= 'r') \
14352 || ('s' <= (c) && (c) <= 'z'))
14353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14354#endif
14355
14356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14357int
14358main ()
14359{
14360 int i;
14361 for (i = 0; i < 256; i++)
14362 if (XOR (islower (i), ISLOWER (i))
14363 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014364 return 2;
14365 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014366}
14367_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014368if ac_fn_c_try_run "$LINENO"; then :
14369
brynercb91a2f2006-08-25 21:14:45 +000014370else
jimblandy92b1f832009-12-23 22:23:49 +000014371 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014372fi
jimblandy92b1f832009-12-23 22:23:49 +000014373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14374 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014375fi
14376
brynercb91a2f2006-08-25 21:14:45 +000014377fi
14378fi
jimblandy92b1f832009-12-23 22:23:49 +000014379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14380$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014381if test $ac_cv_header_stdc = yes; then
14382
jimblandy92b1f832009-12-23 22:23:49 +000014383$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014384
14385fi
14386
14387
mmentovai0dbedc92006-09-25 21:16:15 +000014388# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000014389if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000014390 enableval=$enable_selftest; case "${enableval}" in
14391 yes)
14392 selftest=true
14393 ;;
14394 no)
14395 selftest=false
14396 ;;
14397 *)
jimblandy92b1f832009-12-23 22:23:49 +000014398 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014399 ;;
14400 esac
14401else
14402 selftest=false
14403fi
14404
mmentovaiaf3c43f2007-05-17 18:34:37 +000014405 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000014406 SELFTEST_TRUE=
14407 SELFTEST_FALSE='#'
14408else
14409 SELFTEST_TRUE='#'
14410 SELFTEST_FALSE=
14411fi
14412
14413
mmentovai8c2a4de2006-09-20 16:20:15 +000014414ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000014415
14416cat >confcache <<\_ACEOF
14417# This file is a shell script that caches the results of configure
14418# tests run on this system so they can be shared between configure
14419# scripts and configure runs, see configure's option --config-cache.
14420# It is not useful on other systems. If it contains results you don't
14421# want to keep, you may remove or edit it.
14422#
14423# config.status only pays attention to the cache file if you give it
14424# the --recheck option to rerun configure.
14425#
14426# `ac_cv_env_foo' variables (set or unset) will be overridden when
14427# loading this file, other *unset* `ac_cv_foo' will be assigned the
14428# following values.
14429
14430_ACEOF
14431
14432# The following way of writing the cache mishandles newlines in values,
14433# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000014434# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000014435# Ultrix sh set writes to stderr and can't be redirected directly,
14436# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000014437(
14438 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14439 eval ac_val=\$$ac_var
14440 case $ac_val in #(
14441 *${as_nl}*)
14442 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000014443 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14444$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014445 esac
14446 case $ac_var in #(
14447 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000014448 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14449 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014450 esac ;;
14451 esac
14452 done
14453
brynercb91a2f2006-08-25 21:14:45 +000014454 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000014455 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14456 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000014457 # `set' does not quote correctly, so add quotes: double-quote
14458 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000014459 sed -n \
14460 "s/'/'\\\\''/g;
14461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000014462 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000014463 *)
14464 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000014465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000014466 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014467 esac |
14468 sort
14469) |
brynercb91a2f2006-08-25 21:14:45 +000014470 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000014471 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000014472 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000014473 :clear
brynercb91a2f2006-08-25 21:14:45 +000014474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14475 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000014476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14477 :end' >>confcache
14478if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14479 if test -w "$cache_file"; then
14480 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000014481 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14482$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000014483 cat confcache >$cache_file
14484 else
jimblandy92b1f832009-12-23 22:23:49 +000014485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14486$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000014487 fi
14488fi
14489rm -f confcache
14490
14491test "x$prefix" = xNONE && prefix=$ac_default_prefix
14492# Let make expand exec_prefix.
14493test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14494
brynercb91a2f2006-08-25 21:14:45 +000014495DEFS=-DHAVE_CONFIG_H
14496
14497ac_libobjs=
14498ac_ltlibobjs=
14499for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14500 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000014501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000014502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000014503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14504 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000014505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000014507done
14508LIBOBJS=$ac_libobjs
14509
14510LTLIBOBJS=$ac_ltlibobjs
14511
14512
jimblandy92b1f832009-12-23 22:23:49 +000014513 if test -n "$EXEEXT"; then
14514 am__EXEEXT_TRUE=
14515 am__EXEEXT_FALSE='#'
14516else
14517 am__EXEEXT_TRUE='#'
14518 am__EXEEXT_FALSE=
14519fi
14520
brynercb91a2f2006-08-25 21:14:45 +000014521if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014522 as_fn_error "conditional \"AMDEP\" was never defined.
14523Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014524fi
14525if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014526 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14527Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014528fi
14529if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014530 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14531Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532fi
14533if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14534 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14535Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014536fi
mmentovai0dbedc92006-09-25 21:16:15 +000014537if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014538 as_fn_error "conditional \"SELFTEST\" was never defined.
14539Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014540fi
brynercb91a2f2006-08-25 21:14:45 +000014541
14542: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000014543ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000014544ac_clean_files_save=$ac_clean_files
14545ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000014546{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14547$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14548as_write_fail=0
14549cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014550#! $SHELL
14551# Generated by $as_me.
14552# Run this file to recreate the current configuration.
14553# Compiler output produced by configure, useful for debugging
14554# configure, is in config.log if it exists.
14555
14556debug=false
14557ac_cs_recheck=false
14558ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000014559
jimblandy92b1f832009-12-23 22:23:49 +000014560SHELL=\${CONFIG_SHELL-$SHELL}
14561export SHELL
14562_ASEOF
14563cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14564## -------------------- ##
14565## M4sh Initialization. ##
14566## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000014567
mmentovaiaf3c43f2007-05-17 18:34:37 +000014568# Be more Bourne compatible
14569DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000014570if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000014571 emulate sh
14572 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000014573 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000014574 # is contrary to our usage. Disable this feature.
14575 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000014576 setopt NO_GLOB_SUBST
14577else
jimblandy92b1f832009-12-23 22:23:49 +000014578 case `(set -o) 2>/dev/null` in #(
14579 *posix*) :
14580 set -o posix ;; #(
14581 *) :
14582 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000014583esac
brynercb91a2f2006-08-25 21:14:45 +000014584fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000014585
14586
jimblandy92b1f832009-12-23 22:23:49 +000014587as_nl='
14588'
14589export as_nl
14590# Printing a long string crashes Solaris 7 /usr/bin/printf.
14591as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14592as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14593as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14594# Prefer a ksh shell builtin over an external printf program on Solaris,
14595# but without wasting forks for bash or zsh.
14596if test -z "$BASH_VERSION$ZSH_VERSION" \
14597 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14598 as_echo='print -r --'
14599 as_echo_n='print -rn --'
14600elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14601 as_echo='printf %s\n'
14602 as_echo_n='printf %s'
14603else
14604 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14605 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14606 as_echo_n='/usr/ucb/echo -n'
14607 else
14608 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14609 as_echo_n_body='eval
14610 arg=$1;
14611 case $arg in #(
14612 *"$as_nl"*)
14613 expr "X$arg" : "X\\(.*\\)$as_nl";
14614 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14615 esac;
14616 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14617 '
14618 export as_echo_n_body
14619 as_echo_n='sh -c $as_echo_n_body as_echo'
14620 fi
14621 export as_echo_body
14622 as_echo='sh -c $as_echo_body as_echo'
14623fi
brynercb91a2f2006-08-25 21:14:45 +000014624
14625# The user is always right.
14626if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000014627 PATH_SEPARATOR=:
14628 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14629 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14630 PATH_SEPARATOR=';'
14631 }
mmentovai8c2a4de2006-09-20 16:20:15 +000014632fi
brynercb91a2f2006-08-25 21:14:45 +000014633
mmentovai8c2a4de2006-09-20 16:20:15 +000014634
14635# IFS
14636# We need space, tab and new line, in precisely that order. Quoting is
14637# there to prevent editors from complaining about space-tab.
14638# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14639# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000014640IFS=" "" $as_nl"
14641
14642# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000014643case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000014644 *[\\/]* ) as_myself=$0 ;;
14645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000014646for as_dir in $PATH
14647do
14648 IFS=$as_save_IFS
14649 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000014650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14651 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014652IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000014653
mmentovai8c2a4de2006-09-20 16:20:15 +000014654 ;;
14655esac
14656# We did not find ourselves, most probably we were run as `sh COMMAND'
14657# in which case we are not to be found in the path.
14658if test "x$as_myself" = x; then
14659 as_myself=$0
14660fi
14661if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000014662 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14663 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000014664fi
14665
jimblandy92b1f832009-12-23 22:23:49 +000014666# Unset variables that we do not need and which cause bugs (e.g. in
14667# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14668# suppresses any "Segmentation fault" message there. '((' could
14669# trigger a bug in pdksh 5.2.14.
14670for as_var in BASH_ENV ENV MAIL MAILPATH
14671do eval test x\${$as_var+set} = xset \
14672 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000014673done
14674PS1='$ '
14675PS2='> '
14676PS4='+ '
14677
14678# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000014679LC_ALL=C
14680export LC_ALL
14681LANGUAGE=C
14682export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000014683
jimblandy92b1f832009-12-23 22:23:49 +000014684# CDPATH.
14685(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14686
14687
14688# as_fn_error ERROR [LINENO LOG_FD]
14689# ---------------------------------
14690# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14691# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14692# script with status $?, using 1 if that was 0.
14693as_fn_error ()
14694{
14695 as_status=$?; test $as_status -eq 0 && as_status=1
14696 if test "$3"; then
14697 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14698 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14699 fi
14700 $as_echo "$as_me: error: $1" >&2
14701 as_fn_exit $as_status
14702} # as_fn_error
14703
14704
14705# as_fn_set_status STATUS
14706# -----------------------
14707# Set $? to STATUS, without forking.
14708as_fn_set_status ()
14709{
14710 return $1
14711} # as_fn_set_status
14712
14713# as_fn_exit STATUS
14714# -----------------
14715# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14716as_fn_exit ()
14717{
14718 set +e
14719 as_fn_set_status $1
14720 exit $1
14721} # as_fn_exit
14722
14723# as_fn_unset VAR
14724# ---------------
14725# Portably unset VAR.
14726as_fn_unset ()
14727{
14728 { eval $1=; unset $1;}
14729}
14730as_unset=as_fn_unset
14731# as_fn_append VAR VALUE
14732# ----------------------
14733# Append the text in VALUE to the end of the definition contained in VAR. Take
14734# advantage of any shell optimizations that allow amortized linear growth over
14735# repeated appends, instead of the typical quadratic growth present in naive
14736# implementations.
14737if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14738 eval 'as_fn_append ()
14739 {
14740 eval $1+=\$2
14741 }'
14742else
14743 as_fn_append ()
14744 {
14745 eval $1=\$$1\$2
14746 }
14747fi # as_fn_append
14748
14749# as_fn_arith ARG...
14750# ------------------
14751# Perform arithmetic evaluation on the ARGs, and store the result in the
14752# global $as_val. Take advantage of shells that can avoid forks. The arguments
14753# must be portable across $(()) and expr.
14754if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14755 eval 'as_fn_arith ()
14756 {
14757 as_val=$(( $* ))
14758 }'
14759else
14760 as_fn_arith ()
14761 {
14762 as_val=`expr "$@" || test $? -eq 1`
14763 }
14764fi # as_fn_arith
14765
14766
mmentovai8c2a4de2006-09-20 16:20:15 +000014767if expr a : '\(a\)' >/dev/null 2>&1 &&
14768 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14769 as_expr=expr
14770else
14771 as_expr=false
14772fi
14773
14774if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14775 as_basename=basename
14776else
14777 as_basename=false
14778fi
14779
jimblandy92b1f832009-12-23 22:23:49 +000014780if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14781 as_dirname=dirname
14782else
14783 as_dirname=false
14784fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014785
mmentovai8c2a4de2006-09-20 16:20:15 +000014786as_me=`$as_basename -- "$0" ||
14787$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14788 X"$0" : 'X\(//\)$' \| \
14789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000014790$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000014791 sed '/^.*\/\([^/][^/]*\)\/*$/{
14792 s//\1/
14793 q
14794 }
14795 /^X\/\(\/\/\)$/{
14796 s//\1/
14797 q
14798 }
14799 /^X\/\(\/\).*/{
14800 s//\1/
14801 q
14802 }
14803 s/.*/./; q'`
14804
jimblandy92b1f832009-12-23 22:23:49 +000014805# Avoid depending upon Character Ranges.
14806as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14807as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14808as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14809as_cr_digits='0123456789'
14810as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000014811
14812ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000014813case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000014814-n*)
jimblandy92b1f832009-12-23 22:23:49 +000014815 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000014816 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000014817 xy) ECHO_C='\c';;
14818 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14819 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000014820 esac;;
14821*)
14822 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000014823esac
14824
brynercb91a2f2006-08-25 21:14:45 +000014825rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000014826if test -d conf$$.dir; then
14827 rm -f conf$$.dir/conf$$.file
14828else
14829 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000014830 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000014831fi
jimblandy92b1f832009-12-23 22:23:49 +000014832if (echo >conf$$.file) 2>/dev/null; then
14833 if ln -s conf$$.file conf$$ 2>/dev/null; then
14834 as_ln_s='ln -s'
14835 # ... but there are two gotchas:
14836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14838 # In both cases, we have to default to `cp -p'.
14839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14840 as_ln_s='cp -p'
14841 elif ln conf$$.file conf$$ 2>/dev/null; then
14842 as_ln_s=ln
14843 else
brynercb91a2f2006-08-25 21:14:45 +000014844 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000014845 fi
brynercb91a2f2006-08-25 21:14:45 +000014846else
14847 as_ln_s='cp -p'
14848fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014849rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14850rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000014851
jimblandy92b1f832009-12-23 22:23:49 +000014852
14853# as_fn_mkdir_p
14854# -------------
14855# Create "$as_dir" as a directory, including parents if necessary.
14856as_fn_mkdir_p ()
14857{
14858
14859 case $as_dir in #(
14860 -*) as_dir=./$as_dir;;
14861 esac
14862 test -d "$as_dir" || eval $as_mkdir_p || {
14863 as_dirs=
14864 while :; do
14865 case $as_dir in #(
14866 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14867 *) as_qdir=$as_dir;;
14868 esac
14869 as_dirs="'$as_qdir' $as_dirs"
14870 as_dir=`$as_dirname -- "$as_dir" ||
14871$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14872 X"$as_dir" : 'X\(//\)[^/]' \| \
14873 X"$as_dir" : 'X\(//\)$' \| \
14874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14875$as_echo X"$as_dir" |
14876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14877 s//\1/
14878 q
14879 }
14880 /^X\(\/\/\)[^/].*/{
14881 s//\1/
14882 q
14883 }
14884 /^X\(\/\/\)$/{
14885 s//\1/
14886 q
14887 }
14888 /^X\(\/\).*/{
14889 s//\1/
14890 q
14891 }
14892 s/.*/./; q'`
14893 test -d "$as_dir" && break
14894 done
14895 test -z "$as_dirs" || eval "mkdir $as_dirs"
14896 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14897
14898
14899} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000014900if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000014901 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000014902else
14903 test -d ./-p && rmdir ./-p
14904 as_mkdir_p=false
14905fi
14906
mmentovaiaf3c43f2007-05-17 18:34:37 +000014907if test -x / >/dev/null 2>&1; then
14908 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000014909else
mmentovaiaf3c43f2007-05-17 18:34:37 +000014910 if ls -dL / >/dev/null 2>&1; then
14911 as_ls_L_option=L
14912 else
14913 as_ls_L_option=
14914 fi
14915 as_test_x='
14916 eval sh -c '\''
14917 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000014918 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000014919 else
jimblandy92b1f832009-12-23 22:23:49 +000014920 case $1 in #(
14921 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000014922 esac;
jimblandy92b1f832009-12-23 22:23:49 +000014923 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000014924 ???[sx]*):;;*)false;;esac;fi
14925 '\'' sh
14926 '
mmentovai8c2a4de2006-09-20 16:20:15 +000014927fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000014928as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000014929
14930# Sed expression to map a string onto a valid CPP name.
14931as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14932
14933# Sed expression to map a string onto a valid variable name.
14934as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14935
14936
brynercb91a2f2006-08-25 21:14:45 +000014937exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000014938## ----------------------------------- ##
14939## Main body of $CONFIG_STATUS script. ##
14940## ----------------------------------- ##
14941_ASEOF
14942test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014943
jimblandy92b1f832009-12-23 22:23:49 +000014944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14945# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000014946# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000014947# values after options handling.
14948ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000014949This file was extended by breakpad $as_me 0.1, which was
jimblandy92b1f832009-12-23 22:23:49 +000014950generated by GNU Autoconf 2.64. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000014951
14952 CONFIG_FILES = $CONFIG_FILES
14953 CONFIG_HEADERS = $CONFIG_HEADERS
14954 CONFIG_LINKS = $CONFIG_LINKS
14955 CONFIG_COMMANDS = $CONFIG_COMMANDS
14956 $ $0 $@
14957
mmentovai8c2a4de2006-09-20 16:20:15 +000014958on `(hostname || uname -n) 2>/dev/null | sed 1q`
14959"
14960
brynercb91a2f2006-08-25 21:14:45 +000014961_ACEOF
14962
jimblandy92b1f832009-12-23 22:23:49 +000014963case $ac_config_files in *"
14964"*) set x $ac_config_files; shift; ac_config_files=$*;;
14965esac
14966
14967case $ac_config_headers in *"
14968"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14969esac
14970
14971
14972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014973# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000014974config_files="$ac_config_files"
14975config_headers="$ac_config_headers"
14976config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000014977
mmentovai8c2a4de2006-09-20 16:20:15 +000014978_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000014979
jimblandy92b1f832009-12-23 22:23:49 +000014980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014981ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000014982\`$as_me' instantiates files and other configuration actions
14983from templates according to the current configuration. Unless the files
14984and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000014985
jimblandy92b1f832009-12-23 22:23:49 +000014986Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000014987
14988 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000014989 -V, --version print version number and configuration settings, then exit
jimblandy92b1f832009-12-23 22:23:49 +000014990 -q, --quiet, --silent
14991 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000014992 -d, --debug don't remove temporary files
14993 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000014994 --file=FILE[:TEMPLATE]
14995 instantiate the configuration file FILE
14996 --header=FILE[:TEMPLATE]
14997 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000014998
14999Configuration files:
15000$config_files
15001
15002Configuration headers:
15003$config_headers
15004
15005Configuration commands:
15006$config_commands
15007
jimblandy92b1f832009-12-23 22:23:49 +000015008Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015009
mmentovai8c2a4de2006-09-20 16:20:15 +000015010_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015012ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015013breakpad config.status 0.1
jimblandy92b1f832009-12-23 22:23:49 +000015014configured by $0, generated by GNU Autoconf 2.64,
15015 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
brynercb91a2f2006-08-25 21:14:45 +000015016
jimblandy92b1f832009-12-23 22:23:49 +000015017Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015018This config.status script is free software; the Free Software Foundation
15019gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015020
15021ac_pwd='$ac_pwd'
15022srcdir='$srcdir'
15023INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015024MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015025AWK='$AWK'
15026test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015027_ACEOF
15028
jimblandy92b1f832009-12-23 22:23:49 +000015029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15030# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015031ac_need_defaults=:
15032while test $# != 0
15033do
15034 case $1 in
15035 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015038 ac_shift=:
15039 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015040 *)
brynercb91a2f2006-08-25 21:14:45 +000015041 ac_option=$1
15042 ac_optarg=$2
15043 ac_shift=shift
15044 ;;
brynercb91a2f2006-08-25 21:14:45 +000015045 esac
15046
15047 case $ac_option in
15048 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15050 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015051 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015052 $as_echo "$ac_cs_version"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015053 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015054 debug=: ;;
15055 --file | --fil | --fi | --f )
15056 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015057 case $ac_optarg in
15058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15059 esac
15060 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015061 ac_need_defaults=false;;
15062 --header | --heade | --head | --hea )
15063 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015064 case $ac_optarg in
15065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15066 esac
15067 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015068 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015069 --he | --h)
15070 # Conflict between --help and --header
jimblandy92b1f832009-12-23 22:23:49 +000015071 as_fn_error "ambiguous option: \`$1'
15072Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015073 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015074 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15077 ac_cs_silent=: ;;
15078
15079 # This is an error.
jimblandy92b1f832009-12-23 22:23:49 +000015080 -*) as_fn_error "unrecognized option: \`$1'
15081Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015082
jimblandy92b1f832009-12-23 22:23:49 +000015083 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015084 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015085
15086 esac
15087 shift
15088done
15089
15090ac_configure_extra_args=
15091
15092if $ac_cs_silent; then
15093 exec 6>/dev/null
15094 ac_configure_extra_args="$ac_configure_extra_args --silent"
15095fi
15096
15097_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015099if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015100 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15101 shift
15102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15103 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015104 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015105 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015106fi
15107
15108_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015110exec 5>>config.log
15111{
15112 echo
15113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15114## Running $as_me. ##
15115_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015116 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015117} >&5
brynercb91a2f2006-08-25 21:14:45 +000015118
mmentovai8c2a4de2006-09-20 16:20:15 +000015119_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015121#
mmentovai8c2a4de2006-09-20 16:20:15 +000015122# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015123#
brynercb91a2f2006-08-25 21:14:45 +000015124AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15125
jimblandy92b1f832009-12-23 22:23:49 +000015126
15127# The HP-UX ksh and POSIX shell print the target directory to stdout
15128# if CDPATH is set.
15129(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15130
15131sed_quote_subst='$sed_quote_subst'
15132double_quote_subst='$double_quote_subst'
15133delay_variable_subst='$delay_variable_subst'
15134macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15135macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15136enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15137enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15138pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15139enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15140host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15141host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15142host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15143build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15144build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15145build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15146SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15147Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15148GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15149EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15150FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15151LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15152NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15153LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15154max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15155ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15156exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15157lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15158lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15159lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15160reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15161reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15162OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15163deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15164file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15165AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15166AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15167STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15168RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15169old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15170old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15171old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15172CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15173CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15174compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15175GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15176lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15177lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15178lt_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"`'
15179lt_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"`'
15180objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15181SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15182ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15183MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15184lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15185lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15186lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15187lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15188lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15189need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15190DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15191NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15192LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15193OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15194OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15195libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15196shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15197extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15198archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15199enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15200export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15201whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15202compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15203old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15204old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15205archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15206archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15207module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15209with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15210allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15211no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15212hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15213hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15214hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15215hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15216hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15217hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15218hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15219hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15220inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15221link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15222fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15223always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15224export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15225exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15226include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15227prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15228file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15229variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15230need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15231need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15232version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15233runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15234shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15235shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15236libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15237library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15238soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15239postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15240postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15241finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15242finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15243hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15244sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15245sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15246hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15247enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15248enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15249enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15250old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15251striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15252compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15253predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15254postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15255predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15256postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15257compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15258LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15259old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15260compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15261GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15262lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15263lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15264lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15265lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15266lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15267archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15268enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15269export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15270whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15271compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15272old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15273old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15274archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15275archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15276module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15277module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15278with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15279allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15280no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15281hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15282hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15283hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15284hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15285hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15286hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15287hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15288hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15289inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15290link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15291fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15292always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15293export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15294exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15295include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15296prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15297file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15298hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15299compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15300predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15301postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15302predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15303postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15304compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15305
15306LTCC='$LTCC'
15307LTCFLAGS='$LTCFLAGS'
15308compiler='$compiler_DEFAULT'
15309
15310# Quote evaled strings.
15311for var in SED \
15312GREP \
15313EGREP \
15314FGREP \
15315LD \
15316NM \
15317LN_S \
15318lt_SP2NL \
15319lt_NL2SP \
15320reload_flag \
15321OBJDUMP \
15322deplibs_check_method \
15323file_magic_cmd \
15324AR \
15325AR_FLAGS \
15326STRIP \
15327RANLIB \
15328CC \
15329CFLAGS \
15330compiler \
15331lt_cv_sys_global_symbol_pipe \
15332lt_cv_sys_global_symbol_to_cdecl \
15333lt_cv_sys_global_symbol_to_c_name_address \
15334lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15335SHELL \
15336ECHO \
15337lt_prog_compiler_no_builtin_flag \
15338lt_prog_compiler_wl \
15339lt_prog_compiler_pic \
15340lt_prog_compiler_static \
15341lt_cv_prog_compiler_c_o \
15342need_locks \
15343DSYMUTIL \
15344NMEDIT \
15345LIPO \
15346OTOOL \
15347OTOOL64 \
15348shrext_cmds \
15349export_dynamic_flag_spec \
15350whole_archive_flag_spec \
15351compiler_needs_object \
15352with_gnu_ld \
15353allow_undefined_flag \
15354no_undefined_flag \
15355hardcode_libdir_flag_spec \
15356hardcode_libdir_flag_spec_ld \
15357hardcode_libdir_separator \
15358fix_srcfile_path \
15359exclude_expsyms \
15360include_expsyms \
15361file_list_spec \
15362variables_saved_for_relink \
15363libname_spec \
15364library_names_spec \
15365soname_spec \
15366finish_eval \
15367old_striplib \
15368striplib \
15369compiler_lib_search_dirs \
15370predep_objects \
15371postdep_objects \
15372predeps \
15373postdeps \
15374compiler_lib_search_path \
15375LD_CXX \
15376compiler_CXX \
15377lt_prog_compiler_no_builtin_flag_CXX \
15378lt_prog_compiler_wl_CXX \
15379lt_prog_compiler_pic_CXX \
15380lt_prog_compiler_static_CXX \
15381lt_cv_prog_compiler_c_o_CXX \
15382export_dynamic_flag_spec_CXX \
15383whole_archive_flag_spec_CXX \
15384compiler_needs_object_CXX \
15385with_gnu_ld_CXX \
15386allow_undefined_flag_CXX \
15387no_undefined_flag_CXX \
15388hardcode_libdir_flag_spec_CXX \
15389hardcode_libdir_flag_spec_ld_CXX \
15390hardcode_libdir_separator_CXX \
15391fix_srcfile_path_CXX \
15392exclude_expsyms_CXX \
15393include_expsyms_CXX \
15394file_list_spec_CXX \
15395compiler_lib_search_dirs_CXX \
15396predep_objects_CXX \
15397postdep_objects_CXX \
15398predeps_CXX \
15399postdeps_CXX \
15400compiler_lib_search_path_CXX; do
15401 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15402 *[\\\\\\\`\\"\\\$]*)
15403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15404 ;;
15405 *)
15406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15407 ;;
15408 esac
15409done
15410
15411# Double-quote double-evaled strings.
15412for var in reload_cmds \
15413old_postinstall_cmds \
15414old_postuninstall_cmds \
15415old_archive_cmds \
15416extract_expsyms_cmds \
15417old_archive_from_new_cmds \
15418old_archive_from_expsyms_cmds \
15419archive_cmds \
15420archive_expsym_cmds \
15421module_cmds \
15422module_expsym_cmds \
15423export_symbols_cmds \
15424prelink_cmds \
15425postinstall_cmds \
15426postuninstall_cmds \
15427finish_cmds \
15428sys_lib_search_path_spec \
15429sys_lib_dlsearch_path_spec \
15430old_archive_cmds_CXX \
15431old_archive_from_new_cmds_CXX \
15432old_archive_from_expsyms_cmds_CXX \
15433archive_cmds_CXX \
15434archive_expsym_cmds_CXX \
15435module_cmds_CXX \
15436module_expsym_cmds_CXX \
15437export_symbols_cmds_CXX \
15438prelink_cmds_CXX; do
15439 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15440 *[\\\\\\\`\\"\\\$]*)
15441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15442 ;;
15443 *)
15444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15445 ;;
15446 esac
15447done
15448
15449# Fix-up fallback echo if it was mangled by the above quoting rules.
15450case \$lt_ECHO in
15451*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15452 ;;
15453esac
15454
15455ac_aux_dir='$ac_aux_dir'
15456xsi_shell='$xsi_shell'
15457lt_shell_append='$lt_shell_append'
15458
15459# See if we are running on zsh, and set the options which allow our
15460# commands through without removal of \ escapes INIT.
15461if test -n "\${ZSH_VERSION+set}" ; then
15462 setopt NO_GLOB_SUBST
15463fi
15464
15465
15466 PACKAGE='$PACKAGE'
15467 VERSION='$VERSION'
15468 TIMESTAMP='$TIMESTAMP'
15469 RM='$RM'
15470 ofile='$ofile'
15471
15472
15473
15474
15475
15476
brynercb91a2f2006-08-25 21:14:45 +000015477_ACEOF
15478
jimblandy92b1f832009-12-23 22:23:49 +000015479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015480
15481# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000015482for ac_config_target in $ac_config_targets
15483do
mmentovai8c2a4de2006-09-20 16:20:15 +000015484 case $ac_config_target in
15485 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15486 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000015487 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15489
jimblandy92b1f832009-12-23 22:23:49 +000015490 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000015491 esac
15492done
15493
mmentovai8c2a4de2006-09-20 16:20:15 +000015494
brynercb91a2f2006-08-25 21:14:45 +000015495# If the user did not use the arguments to specify the items to instantiate,
15496# then the envvar interface is used. Set only those that are not.
15497# We use the long form for the default assignment because of an extremely
15498# bizarre bug on SunOS 4.1.3.
15499if $ac_need_defaults; then
15500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15503fi
15504
15505# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000015506# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000015507# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000015508# Hook for its removal unless debugging.
15509# Note that there is a small window in which the directory will not be cleaned:
15510# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000015511$debug ||
15512{
mmentovai8c2a4de2006-09-20 16:20:15 +000015513 tmp=
15514 trap 'exit_status=$?
15515 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15516' 0
jimblandy92b1f832009-12-23 22:23:49 +000015517 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000015518}
brynercb91a2f2006-08-25 21:14:45 +000015519# Create a (secure) tmp directory for tmp files.
15520
15521{
mmentovai8c2a4de2006-09-20 16:20:15 +000015522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000015523 test -n "$tmp" && test -d "$tmp"
15524} ||
15525{
mmentovai8c2a4de2006-09-20 16:20:15 +000015526 tmp=./conf$$-$RANDOM
15527 (umask 077 && mkdir "$tmp")
jimblandy92b1f832009-12-23 22:23:49 +000015528} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015529
jimblandy92b1f832009-12-23 22:23:49 +000015530# Set up the scripts for CONFIG_FILES section.
15531# No need to generate them if there are no CONFIG_FILES.
15532# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000015533if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000015534
jimblandy92b1f832009-12-23 22:23:49 +000015535
15536ac_cr=`echo X | tr X '\015'`
15537# On cygwin, bash can eat \r inside `` if the user requested igncr.
15538# But we know of no other shell where ac_cr would be empty at this
15539# point, so we can use a bashism as a fallback.
15540if test "x$ac_cr" = x; then
15541 eval ac_cr=\$\'\\r\'
15542fi
15543ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15544if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15545 ac_cs_awk_cr='\r'
15546else
15547 ac_cs_awk_cr=$ac_cr
15548fi
15549
15550echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000015551_ACEOF
15552
mmentovai8c2a4de2006-09-20 16:20:15 +000015553
jimblandy92b1f832009-12-23 22:23:49 +000015554{
15555 echo "cat >conf$$subs.awk <<_ACEOF" &&
15556 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15557 echo "_ACEOF"
15558} >conf$$subs.sh ||
15559 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15560ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +000015561ac_delim='%!_!# '
15562for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000015563 . ./conf$$subs.sh ||
15564 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000015565
jimblandy92b1f832009-12-23 22:23:49 +000015566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15567 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015568 break
15569 elif $ac_last_try; then
jimblandy92b1f832009-12-23 22:23:49 +000015570 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000015571 else
15572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000015573 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015574done
jimblandy92b1f832009-12-23 22:23:49 +000015575rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000015576
jimblandy92b1f832009-12-23 22:23:49 +000015577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000015579_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015580sed -n '
15581h
15582s/^/S["/; s/!.*/"]=/
15583p
15584g
15585s/^[^!]*!//
15586:repl
15587t repl
15588s/'"$ac_delim"'$//
15589t delim
15590:nl
15591h
15592s/\(.\{148\}\).*/\1/
15593t more1
15594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15595p
15596n
15597b repl
15598:more1
15599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15600p
15601g
15602s/.\{148\}//
15603t nl
15604:delim
15605h
15606s/\(.\{148\}\).*/\1/
15607t more2
15608s/["\\]/\\&/g; s/^/"/; s/$/"/
15609p
15610b
15611:more2
15612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15613p
15614g
15615s/.\{148\}//
15616t delim
15617' <conf$$subs.awk | sed '
15618/^[^""]/{
15619 N
15620 s/\n//
15621}
15622' >>$CONFIG_STATUS || ac_write_fail=1
15623rm -f conf$$subs.awk
15624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625_ACAWK
15626cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15627 for (key in S) S_is_set[key] = 1
15628 FS = ""
15629
15630}
15631{
15632 line = $ 0
15633 nfields = split(line, field, "@")
15634 substed = 0
15635 len = length(field[1])
15636 for (i = 2; i < nfields; i++) {
15637 key = field[i]
15638 keylen = length(key)
15639 if (S_is_set[key]) {
15640 value = S[key]
15641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15642 len += length(value) + length(field[++i])
15643 substed = 1
15644 } else
15645 len += 1 + keylen
15646 }
15647
15648 print line
15649}
15650
15651_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000015652_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15656else
15657 cat
15658fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15659 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000015660_ACEOF
15661
mmentovai8c2a4de2006-09-20 16:20:15 +000015662# VPATH may cause trouble with some makes, so we remove $(srcdir),
15663# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15664# trailing colons and then remove the whole line if VPATH becomes empty
15665# (actually we leave an empty line to preserve line numbers).
15666if test "x$srcdir" = x.; then
15667 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15668s/:*\$(srcdir):*/:/
15669s/:*\${srcdir}:*/:/
15670s/:*@srcdir@:*/:/
15671s/^\([^=]*=[ ]*\):*/\1/
15672s/:*$//
15673s/^[^=]*=[ ]*$//
15674}'
15675fi
15676
jimblandy92b1f832009-12-23 22:23:49 +000015677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015678fi # test -n "$CONFIG_FILES"
15679
jimblandy92b1f832009-12-23 22:23:49 +000015680# Set up the scripts for CONFIG_HEADERS section.
15681# No need to generate them if there are no CONFIG_HEADERS.
15682# This happens for instance with `./config.status Makefile'.
15683if test -n "$CONFIG_HEADERS"; then
15684cat >"$tmp/defines.awk" <<\_ACAWK ||
15685BEGIN {
15686_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000015687
jimblandy92b1f832009-12-23 22:23:49 +000015688# Transform confdefs.h into an awk script `defines.awk', embedded as
15689# here-document in config.status, that substitutes the proper values into
15690# config.h.in to produce config.h.
15691
15692# Create a delimiter string that does not exist in confdefs.h, to ease
15693# handling of long lines.
15694ac_delim='%!_!# '
15695for ac_last_try in false false :; do
15696 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15697 if test -z "$ac_t"; then
15698 break
15699 elif $ac_last_try; then
15700 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15701 else
15702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15703 fi
15704done
15705
15706# For the awk script, D is an array of macro values keyed by name,
15707# likewise P contains macro parameters if any. Preserve backslash
15708# newline sequences.
15709
15710ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15711sed -n '
15712s/.\{148\}/&'"$ac_delim"'/g
15713t rset
15714:rset
15715s/^[ ]*#[ ]*define[ ][ ]*/ /
15716t def
15717d
15718:def
15719s/\\$//
15720t bsnl
15721s/["\\]/\\&/g
15722s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15723D["\1"]=" \3"/p
15724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15725d
15726:bsnl
15727s/["\\]/\\&/g
15728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15729D["\1"]=" \3\\\\\\n"\\/p
15730t cont
15731s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15732t cont
15733d
15734:cont
15735n
15736s/.\{148\}/&'"$ac_delim"'/g
15737t clear
15738:clear
15739s/\\$//
15740t bsnlc
15741s/["\\]/\\&/g; s/^/"/; s/$/"/p
15742d
15743:bsnlc
15744s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15745b cont
15746' <confdefs.h | sed '
15747s/'"$ac_delim"'/"\\\
15748"/g' >>$CONFIG_STATUS || ac_write_fail=1
15749
15750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15751 for (key in D) D_is_set[key] = 1
15752 FS = ""
15753}
15754/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15755 line = \$ 0
15756 split(line, arg, " ")
15757 if (arg[1] == "#") {
15758 defundef = arg[2]
15759 mac1 = arg[3]
15760 } else {
15761 defundef = substr(arg[1], 2)
15762 mac1 = arg[2]
15763 }
15764 split(mac1, mac2, "(") #)
15765 macro = mac2[1]
15766 prefix = substr(line, 1, index(line, defundef) - 1)
15767 if (D_is_set[macro]) {
15768 # Preserve the white space surrounding the "#".
15769 print prefix "define", macro P[macro] D[macro]
15770 next
15771 } else {
15772 # Replace #undef with comments. This is necessary, for example,
15773 # in the case of _POSIX_SOURCE, which is predefined and required
15774 # on some systems where configure will not decide to define it.
15775 if (defundef == "undef") {
15776 print "/*", prefix defundef, macro, "*/"
15777 next
15778 }
15779 }
15780}
15781{ print }
15782_ACAWK
15783_ACEOF
15784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15786fi # test -n "$CONFIG_HEADERS"
15787
15788
15789eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15790shift
15791for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000015792do
15793 case $ac_tag in
15794 :[FHLC]) ac_mode=$ac_tag; continue;;
15795 esac
15796 case $ac_mode$ac_tag in
15797 :[FHL]*:*);;
jimblandy92b1f832009-12-23 22:23:49 +000015798 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015799 :[FH]-) ac_tag=-:-;;
15800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15801 esac
15802 ac_save_IFS=$IFS
15803 IFS=:
15804 set x $ac_tag
15805 IFS=$ac_save_IFS
15806 shift
15807 ac_file=$1
15808 shift
15809
15810 case $ac_mode in
15811 :L) ac_source=$1;;
15812 :[FH])
15813 ac_file_inputs=
15814 for ac_f
15815 do
15816 case $ac_f in
15817 -) ac_f="$tmp/stdin";;
15818 *) # Look for the file first in the build tree, then in the source tree
15819 # (if the path is not absolute). The absolute path cannot be DOS-style,
15820 # because $ac_f cannot contain `:'.
15821 test -f "$ac_f" ||
15822 case $ac_f in
15823 [\\/$]*) false;;
15824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15825 esac ||
jimblandy92b1f832009-12-23 22:23:49 +000015826 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015827 esac
jimblandy92b1f832009-12-23 22:23:49 +000015828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15829 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000015830 done
15831
15832 # Let's still pretend it is `configure' which instantiates (i.e., don't
15833 # use $as_me), people would be surprised to read:
15834 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000015835 configure_input='Generated from '`
15836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15837 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000015838 if test x"$ac_file" != x-; then
15839 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000015840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15841$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000015842 fi
jimblandy92b1f832009-12-23 22:23:49 +000015843 # Neutralize special characters interpreted by sed in replacement strings.
15844 case $configure_input in #(
15845 *\&* | *\|* | *\\* )
15846 ac_sed_conf_input=`$as_echo "$configure_input" |
15847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15848 *) ac_sed_conf_input=$configure_input;;
15849 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015850
15851 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000015852 *:-:* | *:-) cat >"$tmp/stdin" \
15853 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015854 esac
15855 ;;
brynercb91a2f2006-08-25 21:14:45 +000015856 esac
15857
mmentovai8c2a4de2006-09-20 16:20:15 +000015858 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000015859$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15860 X"$ac_file" : 'X\(//\)[^/]' \| \
15861 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000015862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015863$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15865 s//\1/
15866 q
15867 }
15868 /^X\(\/\/\)[^/].*/{
15869 s//\1/
15870 q
15871 }
15872 /^X\(\/\/\)$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\).*/{
15877 s//\1/
15878 q
15879 }
15880 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000015881 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015882 ac_builddir=.
15883
mmentovai8c2a4de2006-09-20 16:20:15 +000015884case "$ac_dir" in
15885.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15886*)
jimblandy92b1f832009-12-23 22:23:49 +000015887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000015888 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000015889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000015890 case $ac_top_builddir_sub in
15891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15893 esac ;;
15894esac
15895ac_abs_top_builddir=$ac_pwd
15896ac_abs_builddir=$ac_pwd$ac_dir_suffix
15897# for backward compatibility:
15898ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000015899
15900case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000015901 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000015902 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000015903 ac_top_srcdir=$ac_top_builddir_sub
15904 ac_abs_top_srcdir=$ac_pwd ;;
15905 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000015906 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000015907 ac_top_srcdir=$srcdir
15908 ac_abs_top_srcdir=$srcdir ;;
15909 *) # Relative name.
15910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15911 ac_top_srcdir=$ac_top_build_prefix$srcdir
15912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000015913esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015914ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000015915
brynercb91a2f2006-08-25 21:14:45 +000015916
mmentovai8c2a4de2006-09-20 16:20:15 +000015917 case $ac_mode in
15918 :F)
15919 #
15920 # CONFIG_FILE
15921 #
brynercb91a2f2006-08-25 21:14:45 +000015922
15923 case $INSTALL in
15924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000015926 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000015927 ac_MKDIR_P=$MKDIR_P
15928 case $MKDIR_P in
15929 [\\/$]* | ?:[\\/]* ) ;;
15930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15931 esac
brynercb91a2f2006-08-25 21:14:45 +000015932_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000015933
jimblandy92b1f832009-12-23 22:23:49 +000015934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015935# If the template does not know about datarootdir, expand it.
15936# FIXME: This hack should be removed a few years after 2.60.
15937ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000015938ac_sed_dataroot='
15939/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000015940 p
15941 q
15942}
15943/@datadir@/p
15944/@docdir@/p
15945/@infodir@/p
15946/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000015947/@mandir@/p'
15948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015949*datarootdir*) ac_datarootdir_seen=yes;;
15950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000015951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000015953_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015955 ac_datarootdir_hack='
15956 s&@datadir@&$datadir&g
15957 s&@docdir@&$docdir&g
15958 s&@infodir@&$infodir&g
15959 s&@localedir@&$localedir&g
15960 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000015961 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015962esac
15963_ACEOF
15964
15965# Neutralize VPATH when `$srcdir' = `.'.
15966# Shell code in configure.ac might set extrasub.
15967# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000015968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000015970$extrasub
15971_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015973:t
15974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000015975s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000015976s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000015977s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000015978s&@srcdir@&$ac_srcdir&;t t
15979s&@abs_srcdir@&$ac_abs_srcdir&;t t
15980s&@top_srcdir@&$ac_top_srcdir&;t t
15981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15982s&@builddir@&$ac_builddir&;t t
15983s&@abs_builddir@&$ac_abs_builddir&;t t
15984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15985s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000015986s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000015987$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000015988"
15989eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15990 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015991
mmentovai8c2a4de2006-09-20 16:20:15 +000015992test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15993 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000015995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000015996which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +000015997$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000015998which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000015999
mmentovai8c2a4de2006-09-20 16:20:15 +000016000 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016001 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016002 -) cat "$tmp/out" && rm -f "$tmp/out";;
16003 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16004 esac \
16005 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016006 ;;
16007 :H)
16008 #
16009 # CONFIG_HEADER
16010 #
brynercb91a2f2006-08-25 21:14:45 +000016011 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016012 {
16013 $as_echo "/* $configure_input */" \
16014 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16015 } >"$tmp/config.h" \
16016 || as_fn_error "could not create $ac_file" "$LINENO" 5
16017 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16019$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016020 else
jimblandy92b1f832009-12-23 22:23:49 +000016021 rm -f "$ac_file"
16022 mv "$tmp/config.h" "$ac_file" \
16023 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016024 fi
16025 else
jimblandy92b1f832009-12-23 22:23:49 +000016026 $as_echo "/* $configure_input */" \
16027 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16028 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016029 fi
jimblandy92b1f832009-12-23 22:23:49 +000016030# Compute "$ac_file"'s index in $config_headers.
16031_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016032_am_stamp_count=1
16033for _am_header in $config_headers :; do
16034 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016035 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016036 break ;;
16037 * )
16038 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16039 esac
16040done
jimblandy92b1f832009-12-23 22:23:49 +000016041echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16042$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$_am_arg" : 'X\(//\)[^/]' \| \
16044 X"$_am_arg" : 'X\(//\)$' \| \
16045 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16046$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 s//\1/
16049 q
16050 }
16051 /^X\(\/\/\)[^/].*/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\/\)$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\).*/{
16060 s//\1/
16061 q
16062 }
16063 s/.*/./; q'`/stamp-h$_am_stamp_count
16064 ;;
brynercb91a2f2006-08-25 21:14:45 +000016065
jimblandy92b1f832009-12-23 22:23:49 +000016066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16067$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016068 ;;
16069 esac
brynercb91a2f2006-08-25 21:14:45 +000016070
16071
mmentovai8c2a4de2006-09-20 16:20:15 +000016072 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16074 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16075 # are listed without --file. Let's play safe and only enable the eval
16076 # if we detect the quoting.
16077 case $CONFIG_FILES in
16078 *\'*) eval set x "$CONFIG_FILES" ;;
16079 *) set x $CONFIG_FILES ;;
16080 esac
16081 shift
16082 for mf
16083 do
16084 # Strip MF so we end up with the name of the file.
16085 mf=`echo "$mf" | sed -e 's/:.*$//'`
16086 # Check whether this is an Automake generated Makefile or not.
16087 # We used to match only the files named `Makefile.in', but
16088 # some people rename them; so instead we look at the file content.
16089 # Grep'ing the first line is not enough: some people post-process
16090 # each Makefile.in and add a new line on top of each file to say so.
16091 # Grep'ing the whole file is not good either: AIX grep has a line
16092 # limit of 2048, but all sed's we know have understand at least 4000.
16093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16094 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016095$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096 X"$mf" : 'X\(//\)[^/]' \| \
16097 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016098 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016099$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101 s//\1/
16102 q
16103 }
16104 /^X\(\/\/\)[^/].*/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\).*/{
16113 s//\1/
16114 q
16115 }
16116 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016117 else
16118 continue
16119 fi
16120 # Extract the definition of DEPDIR, am__include, and am__quote
16121 # from the Makefile without running `make'.
16122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16123 test -z "$DEPDIR" && continue
16124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16125 test -z "am__include" && continue
16126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16127 # When using ansi2knr, U may be empty or an underscore; expand it
16128 U=`sed -n 's/^U = //p' < "$mf"`
16129 # Find all dependency output files, they are included files with
16130 # $(DEPDIR) in their names. We invoke sed twice because it is the
16131 # simplest approach to changing $(DEPDIR) to its actual value in the
16132 # expansion.
16133 for file in `sed -n "
16134 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16136 # Make sure the directory exists.
16137 test -f "$dirpart/$file" && continue
16138 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016139$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16140 X"$file" : 'X\(//\)[^/]' \| \
16141 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016142 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016143$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16145 s//\1/
16146 q
16147 }
16148 /^X\(\/\/\)[^/].*/{
16149 s//\1/
16150 q
16151 }
16152 /^X\(\/\/\)$/{
16153 s//\1/
16154 q
16155 }
16156 /^X\(\/\).*/{
16157 s//\1/
16158 q
16159 }
16160 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016161 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16162 # echo "creating $dirpart/$file"
16163 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016164 done
brynercb91a2f2006-08-25 21:14:45 +000016165 done
jimblandy92b1f832009-12-23 22:23:49 +000016166}
16167 ;;
16168 "libtool":C)
16169
16170 # See if we are running on zsh, and set the options which allow our
16171 # commands through without removal of \ escapes.
16172 if test -n "${ZSH_VERSION+set}" ; then
16173 setopt NO_GLOB_SUBST
16174 fi
16175
16176 cfgfile="${ofile}T"
16177 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16178 $RM "$cfgfile"
16179
16180 cat <<_LT_EOF >> "$cfgfile"
16181#! $SHELL
16182
16183# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16184# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16186# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16187#
16188# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16189# 2006, 2007, 2008 Free Software Foundation, Inc.
16190# Written by Gordon Matzigkeit, 1996
16191#
16192# This file is part of GNU Libtool.
16193#
16194# GNU Libtool is free software; you can redistribute it and/or
16195# modify it under the terms of the GNU General Public License as
16196# published by the Free Software Foundation; either version 2 of
16197# the License, or (at your option) any later version.
16198#
16199# As a special exception to the GNU General Public License,
16200# if you distribute this file as part of a program or library that
16201# is built using GNU Libtool, you may include this file under the
16202# same distribution terms that you use for the rest of that program.
16203#
16204# GNU Libtool is distributed in the hope that it will be useful,
16205# but WITHOUT ANY WARRANTY; without even the implied warranty of
16206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16207# GNU General Public License for more details.
16208#
16209# You should have received a copy of the GNU General Public License
16210# along with GNU Libtool; see the file COPYING. If not, a copy
16211# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16212# obtained by writing to the Free Software Foundation, Inc.,
16213# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16214
16215
16216# The names of the tagged configurations supported by this script.
16217available_tags="CXX "
16218
16219# ### BEGIN LIBTOOL CONFIG
16220
16221# Which release of libtool.m4 was used?
16222macro_version=$macro_version
16223macro_revision=$macro_revision
16224
16225# Whether or not to build shared libraries.
16226build_libtool_libs=$enable_shared
16227
16228# Whether or not to build static libraries.
16229build_old_libs=$enable_static
16230
16231# What type of objects to build.
16232pic_mode=$pic_mode
16233
16234# Whether or not to optimize for fast installation.
16235fast_install=$enable_fast_install
16236
16237# The host system.
16238host_alias=$host_alias
16239host=$host
16240host_os=$host_os
16241
16242# The build system.
16243build_alias=$build_alias
16244build=$build
16245build_os=$build_os
16246
16247# A sed program that does not truncate output.
16248SED=$lt_SED
16249
16250# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16251Xsed="\$SED -e 1s/^X//"
16252
16253# A grep program that handles long lines.
16254GREP=$lt_GREP
16255
16256# An ERE matcher.
16257EGREP=$lt_EGREP
16258
16259# A literal string matcher.
16260FGREP=$lt_FGREP
16261
16262# A BSD- or MS-compatible name lister.
16263NM=$lt_NM
16264
16265# Whether we need soft or hard links.
16266LN_S=$lt_LN_S
16267
16268# What is the maximum length of a command?
16269max_cmd_len=$max_cmd_len
16270
16271# Object file suffix (normally "o").
16272objext=$ac_objext
16273
16274# Executable file suffix (normally "").
16275exeext=$exeext
16276
16277# whether the shell understands "unset".
16278lt_unset=$lt_unset
16279
16280# turn spaces into newlines.
16281SP2NL=$lt_lt_SP2NL
16282
16283# turn newlines into spaces.
16284NL2SP=$lt_lt_NL2SP
16285
16286# How to create reloadable object files.
16287reload_flag=$lt_reload_flag
16288reload_cmds=$lt_reload_cmds
16289
16290# An object symbol dumper.
16291OBJDUMP=$lt_OBJDUMP
16292
16293# Method to check whether dependent libraries are shared objects.
16294deplibs_check_method=$lt_deplibs_check_method
16295
16296# Command to use when deplibs_check_method == "file_magic".
16297file_magic_cmd=$lt_file_magic_cmd
16298
16299# The archiver.
16300AR=$lt_AR
16301AR_FLAGS=$lt_AR_FLAGS
16302
16303# A symbol stripping program.
16304STRIP=$lt_STRIP
16305
16306# Commands used to install an old-style archive.
16307RANLIB=$lt_RANLIB
16308old_postinstall_cmds=$lt_old_postinstall_cmds
16309old_postuninstall_cmds=$lt_old_postuninstall_cmds
16310
16311# A C compiler.
16312LTCC=$lt_CC
16313
16314# LTCC compiler flags.
16315LTCFLAGS=$lt_CFLAGS
16316
16317# Take the output of nm and produce a listing of raw symbols and C names.
16318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16319
16320# Transform the output of nm in a proper C declaration.
16321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16322
16323# Transform the output of nm in a C name address pair.
16324global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16325
16326# Transform the output of nm in a C name address pair when lib prefix is needed.
16327global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16328
16329# The name of the directory that contains temporary libtool files.
16330objdir=$objdir
16331
16332# Shell to use when invoking shell scripts.
16333SHELL=$lt_SHELL
16334
16335# An echo program that does not interpret backslashes.
16336ECHO=$lt_ECHO
16337
16338# Used to examine libraries when file_magic_cmd begins with "file".
16339MAGIC_CMD=$MAGIC_CMD
16340
16341# Must we lock files when doing compilation?
16342need_locks=$lt_need_locks
16343
16344# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16345DSYMUTIL=$lt_DSYMUTIL
16346
16347# Tool to change global to local symbols on Mac OS X.
16348NMEDIT=$lt_NMEDIT
16349
16350# Tool to manipulate fat objects and archives on Mac OS X.
16351LIPO=$lt_LIPO
16352
16353# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16354OTOOL=$lt_OTOOL
16355
16356# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16357OTOOL64=$lt_OTOOL64
16358
16359# Old archive suffix (normally "a").
16360libext=$libext
16361
16362# Shared library suffix (normally ".so").
16363shrext_cmds=$lt_shrext_cmds
16364
16365# The commands to extract the exported symbol list from a shared archive.
16366extract_expsyms_cmds=$lt_extract_expsyms_cmds
16367
16368# Variables whose values should be saved in libtool wrapper scripts and
16369# restored at link time.
16370variables_saved_for_relink=$lt_variables_saved_for_relink
16371
16372# Do we need the "lib" prefix for modules?
16373need_lib_prefix=$need_lib_prefix
16374
16375# Do we need a version for libraries?
16376need_version=$need_version
16377
16378# Library versioning type.
16379version_type=$version_type
16380
16381# Shared library runtime path variable.
16382runpath_var=$runpath_var
16383
16384# Shared library path variable.
16385shlibpath_var=$shlibpath_var
16386
16387# Is shlibpath searched before the hard-coded library search path?
16388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16389
16390# Format of library name prefix.
16391libname_spec=$lt_libname_spec
16392
16393# List of archive names. First name is the real one, the rest are links.
16394# The last name is the one that the linker finds with -lNAME
16395library_names_spec=$lt_library_names_spec
16396
16397# The coded name of the library, if different from the real name.
16398soname_spec=$lt_soname_spec
16399
16400# Command to use after installation of a shared archive.
16401postinstall_cmds=$lt_postinstall_cmds
16402
16403# Command to use after uninstallation of a shared archive.
16404postuninstall_cmds=$lt_postuninstall_cmds
16405
16406# Commands used to finish a libtool library installation in a directory.
16407finish_cmds=$lt_finish_cmds
16408
16409# As "finish_cmds", except a single script fragment to be evaled but
16410# not shown.
16411finish_eval=$lt_finish_eval
16412
16413# Whether we should hardcode library paths into libraries.
16414hardcode_into_libs=$hardcode_into_libs
16415
16416# Compile-time system search path for libraries.
16417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16418
16419# Run-time system search path for libraries.
16420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16421
16422# Whether dlopen is supported.
16423dlopen_support=$enable_dlopen
16424
16425# Whether dlopen of programs is supported.
16426dlopen_self=$enable_dlopen_self
16427
16428# Whether dlopen of statically linked programs is supported.
16429dlopen_self_static=$enable_dlopen_self_static
16430
16431# Commands to strip libraries.
16432old_striplib=$lt_old_striplib
16433striplib=$lt_striplib
16434
16435
16436# The linker used to build libraries.
16437LD=$lt_LD
16438
16439# Commands used to build an old-style archive.
16440old_archive_cmds=$lt_old_archive_cmds
16441
16442# A language specific compiler.
16443CC=$lt_compiler
16444
16445# Is the compiler the GNU compiler?
16446with_gcc=$GCC
16447
16448# Compiler flag to turn off builtin functions.
16449no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16450
16451# How to pass a linker flag through the compiler.
16452wl=$lt_lt_prog_compiler_wl
16453
16454# Additional compiler flags for building library objects.
16455pic_flag=$lt_lt_prog_compiler_pic
16456
16457# Compiler flag to prevent dynamic linking.
16458link_static_flag=$lt_lt_prog_compiler_static
16459
16460# Does compiler simultaneously support -c and -o options?
16461compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16462
16463# Whether or not to add -lc for building shared libraries.
16464build_libtool_need_lc=$archive_cmds_need_lc
16465
16466# Whether or not to disallow shared libs when runtime libs are static.
16467allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16468
16469# Compiler flag to allow reflexive dlopens.
16470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16471
16472# Compiler flag to generate shared objects directly from archives.
16473whole_archive_flag_spec=$lt_whole_archive_flag_spec
16474
16475# Whether the compiler copes with passing no objects directly.
16476compiler_needs_object=$lt_compiler_needs_object
16477
16478# Create an old-style archive from a shared archive.
16479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16480
16481# Create a temporary old-style archive to link instead of a shared archive.
16482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16483
16484# Commands used to build a shared archive.
16485archive_cmds=$lt_archive_cmds
16486archive_expsym_cmds=$lt_archive_expsym_cmds
16487
16488# Commands used to build a loadable module if different from building
16489# a shared archive.
16490module_cmds=$lt_module_cmds
16491module_expsym_cmds=$lt_module_expsym_cmds
16492
16493# Whether we are building with GNU ld or not.
16494with_gnu_ld=$lt_with_gnu_ld
16495
16496# Flag that allows shared libraries with undefined symbols to be built.
16497allow_undefined_flag=$lt_allow_undefined_flag
16498
16499# Flag that enforces no undefined symbols.
16500no_undefined_flag=$lt_no_undefined_flag
16501
16502# Flag to hardcode \$libdir into a binary during linking.
16503# This must work even if \$libdir does not exist
16504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16505
16506# If ld is used when linking, flag to hardcode \$libdir into a binary
16507# during linking. This must work even if \$libdir does not exist.
16508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16509
16510# Whether we need a single "-rpath" flag with a separated argument.
16511hardcode_libdir_separator=$lt_hardcode_libdir_separator
16512
16513# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16514# DIR into the resulting binary.
16515hardcode_direct=$hardcode_direct
16516
16517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16518# DIR into the resulting binary and the resulting library dependency is
16519# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16520# library is relocated.
16521hardcode_direct_absolute=$hardcode_direct_absolute
16522
16523# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16524# into the resulting binary.
16525hardcode_minus_L=$hardcode_minus_L
16526
16527# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16528# into the resulting binary.
16529hardcode_shlibpath_var=$hardcode_shlibpath_var
16530
16531# Set to "yes" if building a shared library automatically hardcodes DIR
16532# into the library and all subsequent libraries and executables linked
16533# against it.
16534hardcode_automatic=$hardcode_automatic
16535
16536# Set to yes if linker adds runtime paths of dependent libraries
16537# to runtime path list.
16538inherit_rpath=$inherit_rpath
16539
16540# Whether libtool must link a program against all its dependency libraries.
16541link_all_deplibs=$link_all_deplibs
16542
16543# Fix the shell variable \$srcfile for the compiler.
16544fix_srcfile_path=$lt_fix_srcfile_path
16545
16546# Set to "yes" if exported symbols are required.
16547always_export_symbols=$always_export_symbols
16548
16549# The commands to list exported symbols.
16550export_symbols_cmds=$lt_export_symbols_cmds
16551
16552# Symbols that should not be listed in the preloaded symbols.
16553exclude_expsyms=$lt_exclude_expsyms
16554
16555# Symbols that must always be exported.
16556include_expsyms=$lt_include_expsyms
16557
16558# Commands necessary for linking programs (against libraries) with templates.
16559prelink_cmds=$lt_prelink_cmds
16560
16561# Specify filename containing input files.
16562file_list_spec=$lt_file_list_spec
16563
16564# How to hardcode a shared library path into an executable.
16565hardcode_action=$hardcode_action
16566
16567# The directories searched by this compiler when creating a shared library.
16568compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16569
16570# Dependencies to place before and after the objects being linked to
16571# create a shared library.
16572predep_objects=$lt_predep_objects
16573postdep_objects=$lt_postdep_objects
16574predeps=$lt_predeps
16575postdeps=$lt_postdeps
16576
16577# The library search path used internally by the compiler when linking
16578# a shared library.
16579compiler_lib_search_path=$lt_compiler_lib_search_path
16580
16581# ### END LIBTOOL CONFIG
16582
16583_LT_EOF
16584
16585 case $host_os in
16586 aix3*)
16587 cat <<\_LT_EOF >> "$cfgfile"
16588# AIX sometimes has problems with the GCC collect2 program. For some
16589# reason, if we set the COLLECT_NAMES environment variable, the problems
16590# vanish in a puff of smoke.
16591if test "X${COLLECT_NAMES+set}" != Xset; then
16592 COLLECT_NAMES=
16593 export COLLECT_NAMES
16594fi
16595_LT_EOF
16596 ;;
16597 esac
16598
16599
16600ltmain="$ac_aux_dir/ltmain.sh"
16601
16602
16603 # We use sed instead of cat because bash on DJGPP gets confused if
16604 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16605 # text mode, it properly converts lines to CR/LF. This bash problem
16606 # is reportedly fixed, but why not run on old versions too?
16607 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16608 || (rm -f "$cfgfile"; exit 1)
16609
16610 case $xsi_shell in
16611 yes)
16612 cat << \_LT_EOF >> "$cfgfile"
16613
16614# func_dirname file append nondir_replacement
16615# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16616# otherwise set result to NONDIR_REPLACEMENT.
16617func_dirname ()
16618{
16619 case ${1} in
16620 */*) func_dirname_result="${1%/*}${2}" ;;
16621 * ) func_dirname_result="${3}" ;;
16622 esac
16623}
16624
16625# func_basename file
16626func_basename ()
16627{
16628 func_basename_result="${1##*/}"
16629}
16630
16631# func_dirname_and_basename file append nondir_replacement
16632# perform func_basename and func_dirname in a single function
16633# call:
16634# dirname: Compute the dirname of FILE. If nonempty,
16635# add APPEND to the result, otherwise set result
16636# to NONDIR_REPLACEMENT.
16637# value returned in "$func_dirname_result"
16638# basename: Compute filename of FILE.
16639# value retuned in "$func_basename_result"
16640# Implementation must be kept synchronized with func_dirname
16641# and func_basename. For efficiency, we do not delegate to
16642# those functions but instead duplicate the functionality here.
16643func_dirname_and_basename ()
16644{
16645 case ${1} in
16646 */*) func_dirname_result="${1%/*}${2}" ;;
16647 * ) func_dirname_result="${3}" ;;
16648 esac
16649 func_basename_result="${1##*/}"
16650}
16651
16652# func_stripname prefix suffix name
16653# strip PREFIX and SUFFIX off of NAME.
16654# PREFIX and SUFFIX must not contain globbing or regex special
16655# characters, hashes, percent signs, but SUFFIX may contain a leading
16656# dot (in which case that matches only a dot).
16657func_stripname ()
16658{
16659 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16660 # positional parameters, so assign one to ordinary parameter first.
16661 func_stripname_result=${3}
16662 func_stripname_result=${func_stripname_result#"${1}"}
16663 func_stripname_result=${func_stripname_result%"${2}"}
16664}
16665
16666# func_opt_split
16667func_opt_split ()
16668{
16669 func_opt_split_opt=${1%%=*}
16670 func_opt_split_arg=${1#*=}
16671}
16672
16673# func_lo2o object
16674func_lo2o ()
16675{
16676 case ${1} in
16677 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16678 *) func_lo2o_result=${1} ;;
16679 esac
16680}
16681
16682# func_xform libobj-or-source
16683func_xform ()
16684{
16685 func_xform_result=${1%.*}.lo
16686}
16687
16688# func_arith arithmetic-term...
16689func_arith ()
16690{
16691 func_arith_result=$(( $* ))
16692}
16693
16694# func_len string
16695# STRING may not start with a hyphen.
16696func_len ()
16697{
16698 func_len_result=${#1}
16699}
16700
16701_LT_EOF
16702 ;;
16703 *) # Bourne compatible functions.
16704 cat << \_LT_EOF >> "$cfgfile"
16705
16706# func_dirname file append nondir_replacement
16707# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16708# otherwise set result to NONDIR_REPLACEMENT.
16709func_dirname ()
16710{
16711 # Extract subdirectory from the argument.
16712 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16713 if test "X$func_dirname_result" = "X${1}"; then
16714 func_dirname_result="${3}"
16715 else
16716 func_dirname_result="$func_dirname_result${2}"
16717 fi
16718}
16719
16720# func_basename file
16721func_basename ()
16722{
16723 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16724}
16725
16726
16727# func_stripname prefix suffix name
16728# strip PREFIX and SUFFIX off of NAME.
16729# PREFIX and SUFFIX must not contain globbing or regex special
16730# characters, hashes, percent signs, but SUFFIX may contain a leading
16731# dot (in which case that matches only a dot).
16732# func_strip_suffix prefix name
16733func_stripname ()
16734{
16735 case ${2} in
16736 .*) func_stripname_result=`$ECHO "X${3}" \
16737 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16738 *) func_stripname_result=`$ECHO "X${3}" \
16739 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16740 esac
16741}
16742
16743# sed scripts:
16744my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16745my_sed_long_arg='1s/^-[^=]*=//'
16746
16747# func_opt_split
16748func_opt_split ()
16749{
16750 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16751 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16752}
16753
16754# func_lo2o object
16755func_lo2o ()
16756{
16757 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16758}
16759
16760# func_xform libobj-or-source
16761func_xform ()
16762{
16763 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16764}
16765
16766# func_arith arithmetic-term...
16767func_arith ()
16768{
16769 func_arith_result=`expr "$@"`
16770}
16771
16772# func_len string
16773# STRING may not start with a hyphen.
16774func_len ()
16775{
16776 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16777}
16778
16779_LT_EOF
16780esac
16781
16782case $lt_shell_append in
16783 yes)
16784 cat << \_LT_EOF >> "$cfgfile"
16785
16786# func_append var value
16787# Append VALUE to the end of shell variable VAR.
16788func_append ()
16789{
16790 eval "$1+=\$2"
16791}
16792_LT_EOF
16793 ;;
16794 *)
16795 cat << \_LT_EOF >> "$cfgfile"
16796
16797# func_append var value
16798# Append VALUE to the end of shell variable VAR.
16799func_append ()
16800{
16801 eval "$1=\$$1\$2"
16802}
16803
16804_LT_EOF
16805 ;;
16806 esac
16807
16808
16809 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16810 || (rm -f "$cfgfile"; exit 1)
16811
16812 mv -f "$cfgfile" "$ofile" ||
16813 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16814 chmod +x "$ofile"
16815
16816
16817 cat <<_LT_EOF >> "$ofile"
16818
16819# ### BEGIN LIBTOOL TAG CONFIG: CXX
16820
16821# The linker used to build libraries.
16822LD=$lt_LD_CXX
16823
16824# Commands used to build an old-style archive.
16825old_archive_cmds=$lt_old_archive_cmds_CXX
16826
16827# A language specific compiler.
16828CC=$lt_compiler_CXX
16829
16830# Is the compiler the GNU compiler?
16831with_gcc=$GCC_CXX
16832
16833# Compiler flag to turn off builtin functions.
16834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16835
16836# How to pass a linker flag through the compiler.
16837wl=$lt_lt_prog_compiler_wl_CXX
16838
16839# Additional compiler flags for building library objects.
16840pic_flag=$lt_lt_prog_compiler_pic_CXX
16841
16842# Compiler flag to prevent dynamic linking.
16843link_static_flag=$lt_lt_prog_compiler_static_CXX
16844
16845# Does compiler simultaneously support -c and -o options?
16846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16847
16848# Whether or not to add -lc for building shared libraries.
16849build_libtool_need_lc=$archive_cmds_need_lc_CXX
16850
16851# Whether or not to disallow shared libs when runtime libs are static.
16852allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16853
16854# Compiler flag to allow reflexive dlopens.
16855export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16856
16857# Compiler flag to generate shared objects directly from archives.
16858whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16859
16860# Whether the compiler copes with passing no objects directly.
16861compiler_needs_object=$lt_compiler_needs_object_CXX
16862
16863# Create an old-style archive from a shared archive.
16864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16865
16866# Create a temporary old-style archive to link instead of a shared archive.
16867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16868
16869# Commands used to build a shared archive.
16870archive_cmds=$lt_archive_cmds_CXX
16871archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16872
16873# Commands used to build a loadable module if different from building
16874# a shared archive.
16875module_cmds=$lt_module_cmds_CXX
16876module_expsym_cmds=$lt_module_expsym_cmds_CXX
16877
16878# Whether we are building with GNU ld or not.
16879with_gnu_ld=$lt_with_gnu_ld_CXX
16880
16881# Flag that allows shared libraries with undefined symbols to be built.
16882allow_undefined_flag=$lt_allow_undefined_flag_CXX
16883
16884# Flag that enforces no undefined symbols.
16885no_undefined_flag=$lt_no_undefined_flag_CXX
16886
16887# Flag to hardcode \$libdir into a binary during linking.
16888# This must work even if \$libdir does not exist
16889hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16890
16891# If ld is used when linking, flag to hardcode \$libdir into a binary
16892# during linking. This must work even if \$libdir does not exist.
16893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16894
16895# Whether we need a single "-rpath" flag with a separated argument.
16896hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16897
16898# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16899# DIR into the resulting binary.
16900hardcode_direct=$hardcode_direct_CXX
16901
16902# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16903# DIR into the resulting binary and the resulting library dependency is
16904# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16905# library is relocated.
16906hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16907
16908# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16909# into the resulting binary.
16910hardcode_minus_L=$hardcode_minus_L_CXX
16911
16912# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16913# into the resulting binary.
16914hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16915
16916# Set to "yes" if building a shared library automatically hardcodes DIR
16917# into the library and all subsequent libraries and executables linked
16918# against it.
16919hardcode_automatic=$hardcode_automatic_CXX
16920
16921# Set to yes if linker adds runtime paths of dependent libraries
16922# to runtime path list.
16923inherit_rpath=$inherit_rpath_CXX
16924
16925# Whether libtool must link a program against all its dependency libraries.
16926link_all_deplibs=$link_all_deplibs_CXX
16927
16928# Fix the shell variable \$srcfile for the compiler.
16929fix_srcfile_path=$lt_fix_srcfile_path_CXX
16930
16931# Set to "yes" if exported symbols are required.
16932always_export_symbols=$always_export_symbols_CXX
16933
16934# The commands to list exported symbols.
16935export_symbols_cmds=$lt_export_symbols_cmds_CXX
16936
16937# Symbols that should not be listed in the preloaded symbols.
16938exclude_expsyms=$lt_exclude_expsyms_CXX
16939
16940# Symbols that must always be exported.
16941include_expsyms=$lt_include_expsyms_CXX
16942
16943# Commands necessary for linking programs (against libraries) with templates.
16944prelink_cmds=$lt_prelink_cmds_CXX
16945
16946# Specify filename containing input files.
16947file_list_spec=$lt_file_list_spec_CXX
16948
16949# How to hardcode a shared library path into an executable.
16950hardcode_action=$hardcode_action_CXX
16951
16952# The directories searched by this compiler when creating a shared library.
16953compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16954
16955# Dependencies to place before and after the objects being linked to
16956# create a shared library.
16957predep_objects=$lt_predep_objects_CXX
16958postdep_objects=$lt_postdep_objects_CXX
16959predeps=$lt_predeps_CXX
16960postdeps=$lt_postdeps_CXX
16961
16962# The library search path used internally by the compiler when linking
16963# a shared library.
16964compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16965
16966# ### END LIBTOOL TAG CONFIG: CXX
16967_LT_EOF
16968
brynercb91a2f2006-08-25 21:14:45 +000016969 ;;
brynercb91a2f2006-08-25 21:14:45 +000016970
mmentovai8c2a4de2006-09-20 16:20:15 +000016971 esac
16972done # for ac_tag
16973
brynercb91a2f2006-08-25 21:14:45 +000016974
jimblandy92b1f832009-12-23 22:23:49 +000016975as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000016976_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000016977ac_clean_files=$ac_clean_files_save
16978
jimblandy92b1f832009-12-23 22:23:49 +000016979test $ac_write_fail = 0 ||
16980 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16981
brynercb91a2f2006-08-25 21:14:45 +000016982
16983# configure is writing to config.log, and then calls config.status.
16984# config.status does its own redirection, appending to config.log.
16985# Unfortunately, on DOS this fails, as config.log is still kept open
16986# by configure, so config.status won't be able to write to it; its
16987# output is simply discarded. So we exec the FD to /dev/null,
16988# effectively closing config.log, so it can be properly (re)opened and
16989# appended to by config.status. When coming back to configure, we
16990# need to make the FD available again.
16991if test "$no_create" != yes; then
16992 ac_cs_success=:
16993 ac_config_status_args=
16994 test "$silent" = yes &&
16995 ac_config_status_args="$ac_config_status_args --quiet"
16996 exec 5>/dev/null
16997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16998 exec 5>>config.log
16999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17000 # would make configure fail if this is the last instruction.
jimblandy92b1f832009-12-23 22:23:49 +000017001 $ac_cs_success || as_fn_exit $?
17002fi
17003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017006fi
17007